Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haihang
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐丛奇
haihang
Commits
546c73b7
Commit
546c73b7
authored
Sep 04, 2018
by
chengxiuhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test main
parent
4e83b2ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
AfterTestDialog.java
app/src/main/java/com/oo/eye/widget/AfterTestDialog.java
+9
-1
dialog_after_eye_test.xml
app/src/main/res/layout/dialog_after_eye_test.xml
+1
-0
No files found.
app/src/main/java/com/oo/eye/widget/AfterTestDialog.java
View file @
546c73b7
...
@@ -3,11 +3,16 @@ package com.oo.eye.widget;
...
@@ -3,11 +3,16 @@ package com.oo.eye.widget;
import
android.app.Dialog
;
import
android.app.Dialog
;
import
android.content.Context
;
import
android.content.Context
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.view.Display
;
import
android.view.Gravity
;
import
android.view.View
;
import
android.view.View
;
import
android.view.WindowManager
;
import
android.view.WindowManager
;
import
android.widget.FrameLayout
;
import
android.widget.ListView
;
import
android.widget.ListView
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.app.baselibrary.commonUtil.DensityUtil
;
import
com.facebook.drawee.view.SimpleDraweeView
;
import
com.facebook.drawee.view.SimpleDraweeView
;
import
com.oo.eye.R
;
import
com.oo.eye.R
;
...
@@ -52,8 +57,11 @@ public class AfterTestDialog extends Dialog implements View.OnClickListener {
...
@@ -52,8 +57,11 @@ public class AfterTestDialog extends Dialog implements View.OnClickListener {
private
void
initView
()
{
private
void
initView
()
{
RelativeLayout
rootView
=
(
RelativeLayout
)
findViewById
(
R
.
id
.
root_view
);
FrameLayout
.
LayoutParams
params
=
new
FrameLayout
.
LayoutParams
(
DensityUtil
.
getScreenWidth
(),
DensityUtil
.
getScreenHeight
());
rootView
.
setLayoutParams
(
params
);
mUsername_tv
=
(
TextView
)
findViewById
(
R
.
id
.
tv_after_name
);
mUsername_tv
=
(
TextView
)
findViewById
(
R
.
id
.
tv_after_name
);
mNextName
=
(
TextView
)
findViewById
(
R
.
id
.
tv_nest_name
);
mNextName
=
(
TextView
)
findViewById
(
R
.
id
.
tv_nest_name
);
mLeftEye
=
(
TextView
)
findViewById
(
R
.
id
.
tv_after_result_left
);
mLeftEye
=
(
TextView
)
findViewById
(
R
.
id
.
tv_after_result_left
);
mRightEye
=
(
TextView
)
findViewById
(
R
.
id
.
tv_after_result_right
);
mRightEye
=
(
TextView
)
findViewById
(
R
.
id
.
tv_after_result_right
);
mTestTime
=
(
TextView
)
findViewById
(
R
.
id
.
tv_after_time
);
mTestTime
=
(
TextView
)
findViewById
(
R
.
id
.
tv_after_time
);
...
...
app/src/main/res/layout/dialog_after_eye_test.xml
View file @
546c73b7
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/root_view"
android:background=
"@color/line_color"
android:background=
"@color/line_color"
android:paddingBottom=
"@dimen/activity_vertical_margin"
android:paddingBottom=
"@dimen/activity_vertical_margin"
android:paddingLeft=
"@dimen/activity_horizontal_margin"
android:paddingLeft=
"@dimen/activity_horizontal_margin"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment