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
2a50bebc
Commit
2a50bebc
authored
Sep 06, 2018
by
chengxiuhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test main
parent
f41857d7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
8 deletions
+46
-8
MorePeopleTestActivity.java
app/src/main/java/com/oo/eye/activity/MorePeopleTestActivity.java
+4
-1
SinglePeopleTestActivity.java
app/src/main/java/com/oo/eye/activity/SinglePeopleTestActivity.java
+4
-1
TestListActivity.java
app/src/main/java/com/oo/eye/activity/TestListActivity.java
+20
-3
activity_morepeople.xml
app/src/main/res/layout/activity_morepeople.xml
+6
-1
activity_singletest.xml
app/src/main/res/layout/activity_singletest.xml
+6
-1
activity_testlist.xml
app/src/main/res/layout/activity_testlist.xml
+6
-1
No files found.
app/src/main/java/com/oo/eye/activity/MorePeopleTestActivity.java
View file @
2a50bebc
...
...
@@ -94,9 +94,12 @@ public class MorePeopleTestActivity extends BaseActivity {
ButterKnife
.
bind
(
this
);
}
@OnClick
({
R
.
id
.
selete_area_lay
,
R
.
id
.
selete_lay
,
R
.
id
.
selete1_lay
,
R
.
id
.
do_search
,
R
.
id
.
begin_test
})
@OnClick
({
R
.
id
.
back_iv
,
R
.
id
.
selete_area_lay
,
R
.
id
.
selete_lay
,
R
.
id
.
selete1_lay
,
R
.
id
.
do_search
,
R
.
id
.
begin_test
})
public
void
onClick
(
View
view
)
{
switch
(
view
.
getId
())
{
case
R
.
id
.
back_iv
:
finish
();
break
;
case
R
.
id
.
selete_area_lay
:
showPopWindow
(
1
);
break
;
...
...
app/src/main/java/com/oo/eye/activity/SinglePeopleTestActivity.java
View file @
2a50bebc
...
...
@@ -63,9 +63,12 @@ public class SinglePeopleTestActivity extends BaseActivity {
mRecycleView
.
setAdapter
(
mPeopleAdapter
);
}
@OnClick
({
R
.
id
.
selete_area_lay
,
R
.
id
.
do_search
,
R
.
id
.
begin_test
})
@OnClick
({
R
.
id
.
back_iv
,
R
.
id
.
selete_area_lay
,
R
.
id
.
do_search
,
R
.
id
.
begin_test
})
public
void
onClick
(
View
view
)
{
switch
(
view
.
getId
())
{
case
R
.
id
.
back_iv
:
finish
();
break
;
case
R
.
id
.
selete_area_lay
:
showPopWindow
();
break
;
...
...
app/src/main/java/com/oo/eye/activity/TestListActivity.java
View file @
2a50bebc
package
com
.
oo
.
eye
.
activity
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.RecyclerView
;
import
android.view.View
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
...
...
@@ -15,6 +17,7 @@ import com.oo.eye.bean.StudentBean;
import
java.util.List
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
/**
...
...
@@ -42,9 +45,23 @@ public class TestListActivity extends BaseActivity {
mRecycleView
.
setAdapter
(
new
TestListAdapter
(
list
,
this
));
}
@OnClick
(
R
.
id
.
begin_test
)
public
void
onClick
()
{
Intent
intent
=
new
Intent
(
this
,
EyeTestActivity
.
class
);
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
// TODO: add setContentView(...) invocation
ButterKnife
.
bind
(
this
);
}
@OnClick
({
R
.
id
.
back_iv
,
R
.
id
.
begin_test
})
public
void
onClick
(
View
view
)
{
switch
(
view
.
getId
())
{
case
R
.
id
.
back_iv
:
finish
();
break
;
case
R
.
id
.
begin_test
:
Intent
intent
=
new
Intent
(
this
,
EyeTestActivity
.
class
);
startActivity
(
intent
);
break
;
}
}
}
app/src/main/res/layout/activity_morepeople.xml
View file @
2a50bebc
...
...
@@ -3,7 +3,12 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/e_test_color"
>
<ImageView
android:id=
"@+id/back_iv"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/dp_12"
android:src=
"@drawable/back"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
app/src/main/res/layout/activity_singletest.xml
View file @
2a50bebc
...
...
@@ -3,7 +3,12 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/e_test_color"
>
<ImageView
android:id=
"@+id/back_iv"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/dp_12"
android:src=
"@drawable/back"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
app/src/main/res/layout/activity_testlist.xml
View file @
2a50bebc
...
...
@@ -3,7 +3,12 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/e_test_color"
>
<ImageView
android:id=
"@+id/back_iv"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/dp_12"
android:src=
"@drawable/back"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
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