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
f41857d7
Commit
f41857d7
authored
Sep 06, 2018
by
chengxiuhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test main
parent
85814438
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
94 additions
and
19 deletions
+94
-19
TestResurtListActivity.java
app/src/main/java/com/oo/eye/activity/TestResurtListActivity.java
+31
-2
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
+1
-1
activity_singletest.xml
app/src/main/res/layout/activity_singletest.xml
+1
-1
activity_testresult.xml
app/src/main/res/layout/activity_testresult.xml
+50
-14
colors.xml
app/src/main/res/values/colors.xml
+2
-0
No files found.
app/src/main/java/com/oo/eye/activity/TestResurtListActivity.java
View file @
f41857d7
package
com
.
oo
.
eye
.
activity
;
import
android.graphics.drawable.ColorDrawable
;
import
android.os.Bundle
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.RecyclerView
;
import
android.view.View
;
...
...
@@ -22,6 +23,7 @@ import java.util.ArrayList;
import
java.util.List
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
/**
...
...
@@ -62,6 +64,12 @@ public class TestResurtListActivity extends BaseActivity {
EditText
mKeyTest
;
@BindView
(
R
.
id
.
do_search
)
TextView
mDoSearch
;
@BindView
(
R
.
id
.
title_1
)
TextView
mTitle1
;
@BindView
(
R
.
id
.
title_2
)
TextView
mTitle2
;
@BindView
(
R
.
id
.
textView
)
TextView
mTextView
;
@Override
protected
int
getLayoutId
()
{
...
...
@@ -70,6 +78,8 @@ public class TestResurtListActivity extends BaseActivity {
@Override
protected
void
init
()
{
mTitle1
.
setSelected
(
true
);
mTitle2
.
setSelected
(
false
);
mRecycleView
.
setLayoutManager
(
new
LinearLayoutManager
(
this
));
List
<
StudentBean
>
list
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
...
...
@@ -81,9 +91,20 @@ public class TestResurtListActivity extends BaseActivity {
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
})
@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
)
{
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
:
showPopWindow
(
1
);
break
;
...
...
@@ -128,7 +149,7 @@ public class TestResurtListActivity extends BaseActivity {
ColorDrawable
cd
=
new
ColorDrawable
(
0x00ffffff
);
// 背景颜色全透明
popupWindow
.
setBackgroundDrawable
(
cd
);
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
];
view
.
getLocationOnScreen
(
location
);
// popupWindow.setAnimationStyle(R.style.style_pop_animation);// 动画效果必须放在showAsDropDown()方法上边,否则无效
...
...
@@ -141,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 @
f41857d7
<?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 @
f41857d7
File moved
app/src/main/res/drawable/btn_result_focus_selector.xml
View file @
f41857d7
...
...
@@ -23,7 +23,7 @@
<item>
<shape>
<solid
android:color=
"@color/
white
"
/>
<solid
android:color=
"@color/
light_color
"
/>
<corners
android:radius=
"@dimen/dp_4"
></corners>
</shape>
</item>
...
...
app/src/main/res/layout/activity_morepeople.xml
View file @
f41857d7
...
...
@@ -32,7 +32,7 @@
android:id=
"@+id/selete_area_tv"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
黄冈校区22323
"
android:text=
"
选择学校
"
android:textColor=
"@color/white"
android:textSize=
"@dimen/sp_18"
/>
...
...
app/src/main/res/layout/activity_singletest.xml
View file @
f41857d7
...
...
@@ -32,7 +32,7 @@
android:id=
"@+id/selete_area_tv"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
黄冈校区22323
"
android:text=
"
选择学校
"
android:textColor=
"@color/white"
android:textSize=
"@dimen/sp_18"
/>
...
...
app/src/main/res/layout/activity_testresult.xml
View file @
f41857d7
...
...
@@ -4,28 +4,61 @@
android:layout_height=
"match_parent"
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_height=
"wrap_content"
android:layout_alignTop=
"@+id/textView"
android:layout_centerHorizontal=
"true"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"@dimen/dp_16"
android:text=
"请输入学员编号"
android:textColor=
"@color/white"
android:orientation=
"horizontal"
>
<TextView
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: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
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_marginRight=
"@dimen/dp_40"
android:layout_height=
"@dimen/dp_26"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"@dimen/dp_40"
android:layout_marginTop=
"@dimen/dp_16"
android:
text=
"导出
"
android:
background=
"@drawable/btn_result_focus_selector
"
android:gravity=
"center"
android:text=
"导出"
android:textColor=
"@color/e_test_color"
android:textSize=
"15sp"
android:background=
"@drawable/btn_result_focus_selector"
android:textStyle=
"bold"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
...
...
@@ -33,6 +66,7 @@
android:layout_marginTop=
"@dimen/dp_60"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<LinearLayout
android:id=
"@+id/selete_area_lay"
android:layout_width=
"wrap_content"
...
...
@@ -43,7 +77,7 @@
android:id=
"@+id/selete_area_tv"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
黄冈校区22323
"
android:text=
"
选择学校
"
android:textColor=
"@color/white"
android:textSize=
"@dimen/sp_18"
/>
...
...
@@ -54,11 +88,12 @@
android:layout_marginLeft=
"@dimen/dp_6"
android:src=
"@drawable/more"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/selete_lay"
android:layout_marginLeft=
"@dimen/dp_20"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_20"
android:orientation=
"horizontal"
>
<TextView
...
...
@@ -109,9 +144,9 @@
<ImageView
android:id=
"@+id/selete2_iv"
android:layout_gravity=
"center_vertical"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:src=
"@drawable/select3_nor"
/>
<TextView
...
...
@@ -318,9 +353,9 @@
<android.support.v7.widget.RecyclerView
android:id=
"@+id/recycle_view"
android:layout_marginBottom=
"@dimen/dp_20"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@+id/ddd"
></android.support.v7.widget.RecyclerView>
android:layout_below=
"@+id/ddd"
android:layout_marginBottom=
"@dimen/dp_20"
></android.support.v7.widget.RecyclerView>
</RelativeLayout>
\ No newline at end of file
app/src/main/res/values/colors.xml
View file @
f41857d7
...
...
@@ -8,4 +8,5 @@
<color
name=
"hint_text_color"
>
#ccc
</color>
<color
name=
"line_color"
>
#979797
</color>
<color
name=
"text_color"
>
#4A4A4A
</color>
<color
name=
"light_color"
>
#92c2ea
</color>
</resources>
\ No newline at end of file
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