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
95d08fe5
Commit
95d08fe5
authored
Sep 06, 2018
by
徐丛奇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.iouou.cn:xucongqi/haihang
parents
bfff9647
2a50bebc
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
171 additions
and
79 deletions
+171
-79
misc.xml
.idea/misc.xml
+1
-4
modules.xml
.idea/modules.xml
+1
-2
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
TestResurtListActivity.java
app/src/main/java/com/oo/eye/activity/TestResurtListActivity.java
+31
-6
indicator_light_color.xml
app/src/main/res/color/indicator_light_color.xml
+8
-0
back.png
app/src/main/res/drawable-hdpi/back.png
+0
-0
btn_result_focus_selector.xml
app/src/main/res/drawable/btn_result_focus_selector.xml
+1
-1
activity_morepeople.xml
app/src/main/res/layout/activity_morepeople.xml
+14
-9
activity_singletest.xml
app/src/main/res/layout/activity_singletest.xml
+15
-9
activity_testlist.xml
app/src/main/res/layout/activity_testlist.xml
+13
-8
activity_testresult.xml
app/src/main/res/layout/activity_testresult.xml
+55
-33
item_testresultlist.xml
app/src/main/res/layout/item_testresultlist.xml
+1
-1
colors.xml
app/src/main/res/values/colors.xml
+2
-0
strings.xml
app/src/main/res/values/strings.xml
+1
-1
No files found.
.idea/misc.xml
View file @
95d08fe5
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"EntryPointsManager"
>
<entry_points
version=
"2.0"
/>
</component>
<component
name=
"NullableNotNullManager"
>
<component
name=
"NullableNotNullManager"
>
<option
name=
"myDefaultNullable"
value=
"android.support.annotation.Nullable"
/>
<option
name=
"myDefaultNullable"
value=
"android.support.annotation.Nullable"
/>
<option
name=
"myDefaultNotNull"
value=
"android.support.annotation.NonNull"
/>
<option
name=
"myDefaultNotNull"
value=
"android.support.annotation.NonNull"
/>
...
@@ -43,7 +40,7 @@
...
@@ -43,7 +40,7 @@
</profile-state>
</profile-state>
</entry>
</entry>
</component>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_7"
default=
"true"
assert-keyword=
"true"
jdk-15=
"true"
project-jdk-name=
"1.8
"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_7"
default=
"true"
project-jdk-name=
"1.8 (6)
"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
</component>
<component
name=
"ProjectType"
>
<component
name=
"ProjectType"
>
...
...
.idea/modules.xml
View file @
95d08fe5
...
@@ -4,8 +4,7 @@
...
@@ -4,8 +4,7 @@
<modules>
<modules>
<module
fileurl=
"file://$PROJECT_DIR$/app/app.iml"
filepath=
"$PROJECT_DIR$/app/app.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/app/app.iml"
filepath=
"$PROJECT_DIR$/app/app.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/library/baselibrary/baselibrary.iml"
filepath=
"$PROJECT_DIR$/library/baselibrary/baselibrary.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/library/baselibrary/baselibrary.iml"
filepath=
"$PROJECT_DIR$/library/baselibrary/baselibrary.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/eye_haihang.iml"
filepath=
"$PROJECT_DIR$/eye_haihang.iml"
/>
<module
fileurl=
"file://G:\workspace_ooyby\haihang\eye_haihang.iml"
filepath=
"G:\workspace_ooyby\haihang\eye_haihang.iml"
/>
<module
fileurl=
"file://G:/workspace_ooyby/haihang/eye_haihang.iml"
filepath=
"G:/workspace_ooyby/haihang/eye_haihang.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/.idea/haihang.iml"
filepath=
"$PROJECT_DIR$/.idea/haihang.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/.idea/haihang.iml"
filepath=
"$PROJECT_DIR$/.idea/haihang.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/library/library.iml"
filepath=
"$PROJECT_DIR$/library/library.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/library/library.iml"
filepath=
"$PROJECT_DIR$/library/library.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/library/netlibrary/netlibrary.iml"
filepath=
"$PROJECT_DIR$/library/netlibrary/netlibrary.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/library/netlibrary/netlibrary.iml"
filepath=
"$PROJECT_DIR$/library/netlibrary/netlibrary.iml"
/>
...
...
app/src/main/java/com/oo/eye/activity/MorePeopleTestActivity.java
View file @
95d08fe5
...
@@ -94,9 +94,12 @@ public class MorePeopleTestActivity extends BaseActivity {
...
@@ -94,9 +94,12 @@ public class MorePeopleTestActivity extends BaseActivity {
ButterKnife
.
bind
(
this
);
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
)
{
public
void
onClick
(
View
view
)
{
switch
(
view
.
getId
())
{
switch
(
view
.
getId
())
{
case
R
.
id
.
back_iv
:
finish
();
break
;
case
R
.
id
.
selete_area_lay
:
case
R
.
id
.
selete_area_lay
:
showPopWindow
(
1
);
showPopWindow
(
1
);
break
;
break
;
...
...
app/src/main/java/com/oo/eye/activity/SinglePeopleTestActivity.java
View file @
95d08fe5
...
@@ -62,9 +62,12 @@ public class SinglePeopleTestActivity extends BaseActivity {
...
@@ -62,9 +62,12 @@ public class SinglePeopleTestActivity extends BaseActivity {
mRecycleView
.
setAdapter
(
mPeopleAdapter
);
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
)
{
public
void
onClick
(
View
view
)
{
switch
(
view
.
getId
())
{
switch
(
view
.
getId
())
{
case
R
.
id
.
back_iv
:
finish
();
break
;
case
R
.
id
.
selete_area_lay
:
case
R
.
id
.
selete_area_lay
:
showPopWindow
();
showPopWindow
();
break
;
break
;
...
...
app/src/main/java/com/oo/eye/activity/TestListActivity.java
View file @
95d08fe5
package
com
.
oo
.
eye
.
activity
;
package
com
.
oo
.
eye
.
activity
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.RecyclerView
;
import
android.support.v7.widget.RecyclerView
;
import
android.view.View
;
import
android.widget.LinearLayout
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
android.widget.TextView
;
...
@@ -15,6 +17,7 @@ import com.oo.eye.bean.StudentBean;
...
@@ -15,6 +17,7 @@ import com.oo.eye.bean.StudentBean;
import
java.util.List
;
import
java.util.List
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
import
butterknife.OnClick
;
/**
/**
...
@@ -42,9 +45,23 @@ public class TestListActivity extends BaseActivity {
...
@@ -42,9 +45,23 @@ public class TestListActivity extends BaseActivity {
mRecycleView
.
setAdapter
(
new
TestListAdapter
(
list
,
this
));
mRecycleView
.
setAdapter
(
new
TestListAdapter
(
list
,
this
));
}
}
@OnClick
(
R
.
id
.
begin_test
)
@Override
public
void
onClick
()
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
Intent
intent
=
new
Intent
(
this
,
EyeTestActivity
.
class
);
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
);
startActivity
(
intent
);
break
;
}
}
}
}
}
app/src/main/java/com/oo/eye/activity/TestResurtListActivity.java
View file @
95d08fe5
package
com
.
oo
.
eye
.
activity
;
package
com
.
oo
.
eye
.
activity
;
import
android.graphics.drawable.ColorDrawable
;
import
android.graphics.drawable.ColorDrawable
;
import
android.os.Bundle
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.RecyclerView
;
import
android.support.v7.widget.RecyclerView
;
import
android.view.View
;
import
android.view.View
;
...
@@ -22,6 +23,7 @@ import java.util.ArrayList;
...
@@ -22,6 +23,7 @@ import java.util.ArrayList;
import
java.util.List
;
import
java.util.List
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
import
butterknife.OnClick
;
/**
/**
...
@@ -32,8 +34,6 @@ import butterknife.OnClick;
...
@@ -32,8 +34,6 @@ import butterknife.OnClick;
public
class
TestResurtListActivity
extends
BaseActivity
{
public
class
TestResurtListActivity
extends
BaseActivity
{
@BindView
(
R
.
id
.
ddd
)
@BindView
(
R
.
id
.
ddd
)
LinearLayout
mDdd
;
LinearLayout
mDdd
;
@BindView
(
R
.
id
.
begin_test
)
TextView
mBeginTest
;
@BindView
(
R
.
id
.
recycle_view
)
@BindView
(
R
.
id
.
recycle_view
)
RecyclerView
mRecycleView
;
RecyclerView
mRecycleView
;
@BindView
(
R
.
id
.
selete_area_tv
)
@BindView
(
R
.
id
.
selete_area_tv
)
...
@@ -64,6 +64,12 @@ public class TestResurtListActivity extends BaseActivity {
...
@@ -64,6 +64,12 @@ public class TestResurtListActivity extends BaseActivity {
EditText
mKeyTest
;
EditText
mKeyTest
;
@BindView
(
R
.
id
.
do_search
)
@BindView
(
R
.
id
.
do_search
)
TextView
mDoSearch
;
TextView
mDoSearch
;
@BindView
(
R
.
id
.
title_1
)
TextView
mTitle1
;
@BindView
(
R
.
id
.
title_2
)
TextView
mTitle2
;
@BindView
(
R
.
id
.
textView
)
TextView
mTextView
;
@Override
@Override
protected
int
getLayoutId
()
{
protected
int
getLayoutId
()
{
...
@@ -72,6 +78,8 @@ public class TestResurtListActivity extends BaseActivity {
...
@@ -72,6 +78,8 @@ public class TestResurtListActivity extends BaseActivity {
@Override
@Override
protected
void
init
()
{
protected
void
init
()
{
mTitle1
.
setSelected
(
true
);
mTitle2
.
setSelected
(
false
);
mRecycleView
.
setLayoutManager
(
new
LinearLayoutManager
(
this
));
mRecycleView
.
setLayoutManager
(
new
LinearLayoutManager
(
this
));
List
<
StudentBean
>
list
=
new
ArrayList
<>();
List
<
StudentBean
>
list
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
...
@@ -83,9 +91,20 @@ public class TestResurtListActivity extends BaseActivity {
...
@@ -83,9 +91,20 @@ public class TestResurtListActivity extends BaseActivity {
private
boolean
isA
;
private
boolean
isA
;
@OnClick
({
R
.
id
.
selete_area_lay
,
R
.
id
.
selete_lay
,
R
.
id
.
selete1_lay
,
R
.
id
.
selete2_lay
,
R
.
id
.
do_search
,
R
.
id
.
begin_test
})
@OnClick
({
R
.
id
.
title_1
,
R
.
id
.
title_2
,
R
.
id
.
back_iv
,
R
.
id
.
selete_area_lay
,
R
.
id
.
selete_lay
,
R
.
id
.
selete1_lay
,
R
.
id
.
selete2_lay
,
R
.
id
.
do_search
})
public
void
onClick
(
View
view
)
{
public
void
onClick
(
View
view
)
{
switch
(
view
.
getId
())
{
switch
(
view
.
getId
())
{
case
R
.
id
.
title_1
:
mTitle1
.
setSelected
(
true
);
mTitle2
.
setSelected
(
false
);
break
;
case
R
.
id
.
title_2
:
mTitle1
.
setSelected
(
false
);
mTitle2
.
setSelected
(
true
);
break
;
case
R
.
id
.
back_iv
:
finish
();
break
;
case
R
.
id
.
selete_area_lay
:
case
R
.
id
.
selete_area_lay
:
showPopWindow
(
1
);
showPopWindow
(
1
);
break
;
break
;
...
@@ -105,8 +124,6 @@ public class TestResurtListActivity extends BaseActivity {
...
@@ -105,8 +124,6 @@ public class TestResurtListActivity extends BaseActivity {
break
;
break
;
case
R
.
id
.
do_search
:
case
R
.
id
.
do_search
:
break
;
break
;
case
R
.
id
.
begin_test
:
break
;
}
}
}
}
...
@@ -132,7 +149,7 @@ public class TestResurtListActivity extends BaseActivity {
...
@@ -132,7 +149,7 @@ public class TestResurtListActivity extends BaseActivity {
ColorDrawable
cd
=
new
ColorDrawable
(
0x00ffffff
);
// 背景颜色全透明
ColorDrawable
cd
=
new
ColorDrawable
(
0x00ffffff
);
// 背景颜色全透明
popupWindow
.
setBackgroundDrawable
(
cd
);
popupWindow
.
setBackgroundDrawable
(
cd
);
ListView
listView
=
(
ListView
)
conview
.
findViewById
(
R
.
id
.
list_view
);
ListView
listView
=
(
ListView
)
conview
.
findViewById
(
R
.
id
.
list_view
);
listView
.
setAdapter
(
new
PopuAdapter
(
this
,
null
));
listView
.
setAdapter
(
new
PopuAdapter
(
this
,
null
));
int
[]
location
=
new
int
[
2
];
int
[]
location
=
new
int
[
2
];
view
.
getLocationOnScreen
(
location
);
view
.
getLocationOnScreen
(
location
);
// popupWindow.setAnimationStyle(R.style.style_pop_animation);// 动画效果必须放在showAsDropDown()方法上边,否则无效
// popupWindow.setAnimationStyle(R.style.style_pop_animation);// 动画效果必须放在showAsDropDown()方法上边,否则无效
...
@@ -145,4 +162,12 @@ public class TestResurtListActivity extends BaseActivity {
...
@@ -145,4 +162,12 @@ public class TestResurtListActivity extends BaseActivity {
}
}
}
}
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
// TODO: add setContentView(...) invocation
ButterKnife
.
bind
(
this
);
}
}
}
app/src/main/res/color/indicator_light_color.xml
0 → 100644
View file @
95d08fe5
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:color=
"@color/white"
android:state_selected=
"true"
/>
<item
android:color=
"@color/white"
android:state_focused=
"true"
/>
<item
android:color=
"@color/white"
android:state_pressed=
"true"
/>
<item
android:color=
"@color/light_color"
/>
</selector>
\ No newline at end of file
app/src/main/res/drawable-
x
hdpi/back.png
→
app/src/main/res/drawable-hdpi/back.png
View file @
95d08fe5
File moved
app/src/main/res/drawable/btn_result_focus_selector.xml
View file @
95d08fe5
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<item>
<item>
<shape>
<shape>
<solid
android:color=
"@color/
white
"
/>
<solid
android:color=
"@color/
light_color
"
/>
<corners
android:radius=
"@dimen/dp_4"
></corners>
<corners
android:radius=
"@dimen/dp_4"
></corners>
</shape>
</shape>
</item>
</item>
...
...
app/src/main/res/layout/activity_morepeople.xml
View file @
95d08fe5
...
@@ -3,13 +3,18 @@
...
@@ -3,13 +3,18 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/e_test_color"
>
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
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"@dimen/dp_
20
"
android:layout_marginTop=
"@dimen/dp_
16
"
android:text=
"选择测试学员(可多选)"
android:text=
"选择测试学员(可多选)"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"24sp"
android:textSize=
"24sp"
...
@@ -19,7 +24,7 @@
...
@@ -19,7 +24,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"@dimen/dp_
7
0"
android:layout_marginTop=
"@dimen/dp_
6
0"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
...
@@ -32,7 +37,7 @@
...
@@ -32,7 +37,7 @@
android:id=
"@+id/selete_area_tv"
android:id=
"@+id/selete_area_tv"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
黄冈校区22323
"
android:text=
"
选择学校
"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/sp_18"
/>
android:textSize=
"@dimen/sp_18"
/>
...
@@ -128,17 +133,17 @@
...
@@ -128,17 +133,17 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginTop=
"@dimen/dp_
120
"
android:layout_marginTop=
"@dimen/dp_
95
"
android:background=
"@color/white"
></LinearLayout>
android:background=
"@color/white"
></LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/ddd"
android:id=
"@+id/ddd"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/dp_
120
"
android:layout_marginTop=
"@dimen/dp_
95
"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingTop=
"@dimen/dp_
20
"
>
android:paddingTop=
"@dimen/dp_
12
"
>
<RelativeLayout
<RelativeLayout
android:layout_width=
"@dimen/item_dimen_2"
android:layout_width=
"@dimen/item_dimen_2"
android:layout_height=
"@dimen/dp_40"
android:layout_height=
"@dimen/dp_40"
...
@@ -256,11 +261,11 @@
...
@@ -256,11 +261,11 @@
<TextView
<TextView
android:layout_marginTop=
"@dimen/dp_12"
android:layout_marginTop=
"@dimen/dp_12"
android:id=
"@+id/begin_test"
android:id=
"@+id/begin_test"
android:layout_width=
"1
3
0dip"
android:layout_width=
"1
4
0dip"
android:layout_height=
"40dip"
android:layout_height=
"40dip"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginBottom=
"@dimen/dp_
30
"
android:layout_marginBottom=
"@dimen/dp_
12
"
android:background=
"@drawable/after_btn_bg"
android:background=
"@drawable/after_btn_bg"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"生成测试队列"
android:text=
"生成测试队列"
...
...
app/src/main/res/layout/activity_singletest.xml
View file @
95d08fe5
...
@@ -3,13 +3,18 @@
...
@@ -3,13 +3,18 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/e_test_color"
>
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
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"@dimen/dp_
20
"
android:layout_marginTop=
"@dimen/dp_
16
"
android:text=
"请输入学员编号"
android:text=
"请输入学员编号"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"24sp"
android:textSize=
"24sp"
...
@@ -19,7 +24,7 @@
...
@@ -19,7 +24,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"@dimen/dp_
7
0"
android:layout_marginTop=
"@dimen/dp_
6
0"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
...
@@ -32,7 +37,7 @@
...
@@ -32,7 +37,7 @@
android:id=
"@+id/selete_area_tv"
android:id=
"@+id/selete_area_tv"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
黄冈校区22323
"
android:text=
"
选择学校
"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/sp_18"
/>
android:textSize=
"@dimen/sp_18"
/>
...
@@ -92,17 +97,17 @@
...
@@ -92,17 +97,17 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginTop=
"@dimen/dp_
120
"
android:layout_marginTop=
"@dimen/dp_
95
"
android:background=
"@color/white"
></LinearLayout>
android:background=
"@color/white"
></LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/ddd"
android:id=
"@+id/ddd"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/dp_
120
"
android:layout_marginTop=
"@dimen/dp_
95
"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingTop=
"@dimen/dp_
20
"
>
android:paddingTop=
"@dimen/dp_
12
"
>
<RelativeLayout
<RelativeLayout
android:layout_width=
"@dimen/item_dimen_2"
android:layout_width=
"@dimen/item_dimen_2"
android:layout_height=
"@dimen/dp_40"
android:layout_height=
"@dimen/dp_40"
...
@@ -218,11 +223,12 @@
...
@@ -218,11 +223,12 @@
</LinearLayout>
</LinearLayout>
<TextView
<TextView
android:id=
"@+id/begin_test"
android:id=
"@+id/begin_test"
android:layout_width=
"1
0
0dip"
android:layout_width=
"1
1
0dip"
android:layout_height=
"40dip"
android:layout_height=
"40dip"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginBottom=
"@dimen/dp_40"
android:layout_marginBottom=
"@dimen/dp_12"
android:layout_marginTop=
"@dimen/dp_12"
android:background=
"@drawable/after_btn_bg"
android:background=
"@drawable/after_btn_bg"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"开始测试"
android:text=
"开始测试"
...
...
app/src/main/res/layout/activity_testlist.xml
View file @
95d08fe5
...
@@ -3,13 +3,18 @@
...
@@ -3,13 +3,18 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/e_test_color"
>
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
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"@dimen/dp_
20
"
android:layout_marginTop=
"@dimen/dp_
16
"
android:text=
"测试顺序"
android:text=
"测试顺序"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"24sp"
android:textSize=
"24sp"
...
@@ -19,7 +24,7 @@
...
@@ -19,7 +24,7 @@
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/dp_
7
0"
android:layout_marginTop=
"@dimen/dp_
6
0"
android:text=
"请学员按以下顺序排队测试"
android:text=
"请学员按以下顺序排队测试"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/sp_18"
/>
android:textSize=
"@dimen/sp_18"
/>
...
@@ -27,17 +32,17 @@
...
@@ -27,17 +32,17 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginTop=
"@dimen/dp_
120
"
android:layout_marginTop=
"@dimen/dp_
95
"
android:background=
"@color/white"
></LinearLayout>
android:background=
"@color/white"
></LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/ddd"
android:id=
"@+id/ddd"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/dp_
120
"
android:layout_marginTop=
"@dimen/dp_
95
"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingTop=
"@dimen/dp_
20
"
>
android:paddingTop=
"@dimen/dp_
12
"
>
<RelativeLayout
<RelativeLayout
android:layout_width=
"@dimen/item_dimen_4"
android:layout_width=
"@dimen/item_dimen_4"
android:layout_height=
"@dimen/dp_40"
android:layout_height=
"@dimen/dp_40"
...
@@ -157,11 +162,11 @@
...
@@ -157,11 +162,11 @@
<TextView
<TextView
android:id=
"@+id/begin_test"
android:id=
"@+id/begin_test"
android:layout_width=
"1
0
0dip"
android:layout_width=
"1
1
0dip"
android:layout_height=
"40dip"
android:layout_height=
"40dip"
android:layout_alignParentBottom=
"true"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginBottom=
"@dimen/dp_
30
"
android:layout_marginBottom=
"@dimen/dp_
12
"
android:layout_marginTop=
"@dimen/dp_12"
android:layout_marginTop=
"@dimen/dp_12"
android:background=
"@drawable/after_btn_bg"
android:background=
"@drawable/after_btn_bg"
android:gravity=
"center"
android:gravity=
"center"
...
...
app/src/main/res/layout/activity_testresult.xml
View file @
95d08fe5
...
@@ -4,35 +4,69 @@
...
@@ -4,35 +4,69 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/e_test_color"
>
android:background=
"@color/e_test_color"
>
<TextView
<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"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignTop=
"@+id/textView"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_gravity=
"center_horizontal"
android:orientation=
"horizontal"
>
android:layout_marginTop=
"@dimen/dp_20"
android:text=
"请输入学员编号"
<TextView
android:textColor=
"@color/white"
android:id=
"@+id/title_1"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"结果报表"
android:textColor=
"@color/indicator_light_color"
android:textSize=
"24sp"
android:textSize=
"24sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<View
android:layout_width=
"1px"
android:layout_height=
"@dimen/dp_20"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"@dimen/dp_30"
android:layout_marginRight=
"@dimen/dp_30"
android:background=
"@color/white"
/>
<TextView
<TextView
android:layout_alignParentRight=
"true"
android:id=
"@+id/title_2"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"临时报表"
android:textColor=
"@color/indicator_light_color"
android:textSize=
"24sp"
android:textStyle=
"bold"
/>
</LinearLayout>
<TextView
android:id=
"@+id/textView"
android:layout_width=
"@dimen/dp_60"
android:layout_width=
"@dimen/dp_60"
android:layout_height=
"@dimen/dp_26"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"@dimen/dp_40"
android:layout_marginRight=
"@dimen/dp_40"
android:layout_height=
"@dimen/dp_30"
android:layout_marginTop=
"@dimen/dp_16"
android:layout_marginTop=
"@dimen/dp_20"
android:background=
"@drawable/btn_result_focus_selector"
android:text=
"导出"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"导出"
android:textColor=
"@color/e_test_color"
android:textColor=
"@color/e_test_color"
android:textSize=
"15sp"
android:textSize=
"15sp"
android:background=
"@drawable/btn_result_focus_selector"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"@dimen/dp_
7
0"
android:layout_marginTop=
"@dimen/dp_
6
0"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<LinearLayout
<LinearLayout
android:id=
"@+id/selete_area_lay"
android:id=
"@+id/selete_area_lay"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -43,7 +77,7 @@
...
@@ -43,7 +77,7 @@
android:id=
"@+id/selete_area_tv"
android:id=
"@+id/selete_area_tv"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
黄冈校区22323
"
android:text=
"
选择学校
"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/sp_18"
/>
android:textSize=
"@dimen/sp_18"
/>
...
@@ -54,11 +88,12 @@
...
@@ -54,11 +88,12 @@
android:layout_marginLeft=
"@dimen/dp_6"
android:layout_marginLeft=
"@dimen/dp_6"
android:src=
"@drawable/more"
/>
android:src=
"@drawable/more"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/selete_lay"
android:id=
"@+id/selete_lay"
android:layout_marginLeft=
"@dimen/dp_20"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_20"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
...
@@ -109,9 +144,9 @@
...
@@ -109,9 +144,9 @@
<ImageView
<ImageView
android:id=
"@+id/selete2_iv"
android:id=
"@+id/selete2_iv"
android:layout_gravity=
"center_vertical"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:src=
"@drawable/select3_nor"
/>
android:src=
"@drawable/select3_nor"
/>
<TextView
<TextView
...
@@ -166,17 +201,17 @@
...
@@ -166,17 +201,17 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginTop=
"@dimen/dp_
127
"
android:layout_marginTop=
"@dimen/dp_
95
"
android:background=
"@color/white"
></LinearLayout>
android:background=
"@color/white"
></LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/ddd"
android:id=
"@+id/ddd"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/dp_
120
"
android:layout_marginTop=
"@dimen/dp_
95
"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
android:paddingTop=
"@dimen/dp_
20
"
>
android:paddingTop=
"@dimen/dp_
12
"
>
<RelativeLayout
<RelativeLayout
android:layout_width=
"@dimen/item_dimen_5"
android:layout_width=
"@dimen/item_dimen_5"
...
@@ -316,25 +351,11 @@
...
@@ -316,25 +351,11 @@
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<TextView
android:id=
"@+id/begin_test"
android:layout_width=
"130dip"
android:layout_height=
"40dip"
android:layout_alignParentBottom=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginBottom=
"@dimen/dp_30"
android:layout_marginTop=
"@dimen/dp_12"
android:background=
"@drawable/after_btn_bg"
android:gravity=
"center"
android:text=
"生成测试队列"
android:textColor=
"@color/white"
android:textSize=
"@dimen/sp_16"
/>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/recycle_view"
android:id=
"@+id/recycle_view"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_
above=
"@+id/begin_test
"
android:layout_
below=
"@+id/ddd
"
android:layout_
below=
"@+id/ddd
"
></android.support.v7.widget.RecyclerView>
android:layout_
marginBottom=
"@dimen/dp_20
"
></android.support.v7.widget.RecyclerView>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
app/src/main/res/layout/item_testresultlist.xml
View file @
95d08fe5
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:text=
"5.2
|
5.3"
android:text=
"5.2
|
5.3"
android:textColor=
"@color/text_color"
android:textColor=
"@color/text_color"
android:textSize=
"@dimen/sp_18"
/>
android:textSize=
"@dimen/sp_18"
/>
...
...
app/src/main/res/values/colors.xml
View file @
95d08fe5
...
@@ -8,4 +8,5 @@
...
@@ -8,4 +8,5 @@
<color
name=
"hint_text_color"
>
#ccc
</color>
<color
name=
"hint_text_color"
>
#ccc
</color>
<color
name=
"line_color"
>
#979797
</color>
<color
name=
"line_color"
>
#979797
</color>
<color
name=
"text_color"
>
#4A4A4A
</color>
<color
name=
"text_color"
>
#4A4A4A
</color>
<color
name=
"light_color"
>
#92c2ea
</color>
</resources>
</resources>
\ No newline at end of file
app/src/main/res/values/strings.xml
View file @
95d08fe5
<resources>
<resources>
<string
name=
"app_name"
>
etest_library
</string>
<string
name=
"app_name"
>
海航
</string>
<string
name=
"prompt"
>
提示
</string>
<string
name=
"prompt"
>
提示
</string>
<!-- 视力测试 -->
<!-- 视力测试 -->
<string
name=
"eye_prompt"
>
欧欧视力检查工具
</string>
<string
name=
"eye_prompt"
>
欧欧视力检查工具
</string>
...
...
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