Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StatInfo_1
Project
Project
Details
Activity
Releases
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
chenyuling
StatInfo_1
Commits
a4f49f09
Commit
a4f49f09
authored
Jan 05, 2024
by
chenyuling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"另外开分支,使用设计稿的UI显示,定制组名信息"
parent
86253c4b
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
673 additions
and
625 deletions
+673
-625
build.gradle
app/build.gradle
+2
-2
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+19
-8
GroupConst.java
...main/java/com/srthinker/statinfo/constant/GroupConst.java
+11
-9
MainActivity.java
...rc/main/java/com/srthinker/statinfo/uis/MainActivity.java
+373
-232
MainActivity1.java
...c/main/java/com/srthinker/statinfo/uis/MainActivity1.java
+255
-366
activity_main.xml
app/src/main/res/layout/activity_main.xml
+7
-5
activity_new_main.xml
app/src/main/res/layout/activity_new_main.xml
+1
-1
dialog_select.xml
app/src/main/res/layout/dialog_select.xml
+2
-1
dimens.xml
app/src/main/res/values/dimens.xml
+3
-1
No files found.
app/build.gradle
View file @
a4f49f09
...
@@ -19,8 +19,8 @@ android {
...
@@ -19,8 +19,8 @@ android {
applicationId
"com.srthinker.statinfo"
applicationId
"com.srthinker.statinfo"
minSdk
24
minSdk
24
targetSdk
32
targetSdk
32
versionCode
1
versionCode
2
versionName
"
1.0.4
"
versionName
"
2.0.1
"
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"androidx.test.runner.AndroidJUnitRunner"
}
}
...
...
app/src/main/AndroidManifest.xml
View file @
a4f49f09
...
@@ -33,19 +33,19 @@
...
@@ -33,19 +33,19 @@
android:value=
""
/>
android:value=
""
/>
</activity>
</activity>
<activity
<activity
android:name=
".uis.MainActivity"
android:name=
".uis.MainActivity
1
"
android:exported=
"
tru
e"
>
android:exported=
"
fals
e"
>
<intent-filter>
<
!--<
intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LAUNCHER" />
<!--
<!–
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.DEFAULT" />
-->
–>
</intent-filter>
</intent-filter>
-->
<meta-data
<meta-data
android:name=
"android.app.lib_name"
android:name=
"android.app.lib_name"
...
@@ -80,10 +80,21 @@
...
@@ -80,10 +80,21 @@
</provider>
</provider>
<activity
<activity
android:name=
".uis.Main
Old
Activity"
android:name=
".uis.MainActivity"
android:configChanges=
"keyboardHidden|orientation"
android:configChanges=
"keyboardHidden|orientation"
android:exported=
"
fals
e"
android:exported=
"
tru
e"
android:windowSoftInputMode=
"adjustPan"
>
android:windowSoftInputMode=
"adjustPan"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
<!--
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
-->
</intent-filter>
<meta-data
<meta-data
android:name=
"android.app.lib_name"
android:name=
"android.app.lib_name"
android:value=
""
/>
android:value=
""
/>
...
...
app/src/main/java/com/srthinker/statinfo/constant/GroupConst.java
View file @
a4f49f09
...
@@ -19,16 +19,18 @@ public class GroupConst {
...
@@ -19,16 +19,18 @@ public class GroupConst {
public
static
final
int
NO_GROUP
=
100
;
public
static
final
int
NO_GROUP
=
100
;
public
static
final
int
GROUPED
=
200
;
public
static
final
int
GROUPED
=
200
;
//钢筋班组,木工班组,
泥工班组,水电班组,防水班组,外架班组,项目部,监理单位
//钢筋班组,木工班组,
外架班组,防水班组,瓦工班组,安全文明施工,防水班组,众安管理人员,中交六公司管理人员,特种作业人员
public
static
ArrayList
<
Group2Bean
>
group2BeansConst
=
new
ArrayList
<>();
public
static
ArrayList
<
Group2Bean
>
group2BeansConst
=
new
ArrayList
<>();
static
{
static
{
group2BeansConst
.
add
(
new
Group2Bean
(
5
,
"钢筋班组"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
1
,
"钢筋班组"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
6
,
"木工班组"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
2
,
"木工班组"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
7
,
"泥工班组"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
3
,
"外架班组"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
8
,
"水电班组"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
4
,
"防水班组"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
1
,
"防水班组"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
5
,
"瓦工班组"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
2
,
"外架班组"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
6
,
"安全文明施工"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
3
,
"项目部"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
7
,
"防水班组"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
4
,
"监理单位"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
8
,
"众安管理人员"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
9
,
"中交六公司管理人员"
,
0
));
group2BeansConst
.
add
(
new
Group2Bean
(
10
,
"特种作业人员"
,
0
));
}
}
}
}
app/src/main/java/com/srthinker/statinfo/uis/MainActivity.java
View file @
a4f49f09
This diff is collapsed.
Click to expand it.
app/src/main/java/com/srthinker/statinfo/uis/Main
OldActivity
.java
→
app/src/main/java/com/srthinker/statinfo/uis/Main
Activity1
.java
View file @
a4f49f09
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/activity_main.xml
View file @
a4f49f09
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
android:focusableInTouchMode=
"true"
android:focusableInTouchMode=
"true"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:background=
"@color/bg_070A2E"
android:background=
"@color/bg_070A2E"
tools:context=
".uis.Main
Old
Activity"
>
tools:context=
".uis.MainActivity"
>
<RelativeLayout
<RelativeLayout
android:layout_width=
"939.59dp"
android:layout_width=
"939.59dp"
...
@@ -109,8 +109,9 @@
...
@@ -109,8 +109,9 @@
android:id=
"@+id/rv_group"
android:id=
"@+id/rv_group"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"32dp"
android:layout_gravity=
"center"
android:layout_marginLeft=
"10dp"
/>
android:layout_marginTop=
"15dp"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:layout_width=
"653dp"
android:layout_width=
"653dp"
...
@@ -195,7 +196,7 @@
...
@@ -195,7 +196,7 @@
android:textSize=
"@dimen/text_10"
android:textSize=
"@dimen/text_10"
android:layout_toRightOf=
"@+id/tv_enter_text"
android:layout_toRightOf=
"@+id/tv_enter_text"
android:layout_alignBottom=
"@+id/tv_enter_text"
android:layout_alignBottom=
"@+id/tv_enter_text"
android:visibility=
"visible"
android:visibility=
"
in
visible"
android:layout_marginLeft=
"5dp"
/>
android:layout_marginLeft=
"5dp"
/>
<TextView
<TextView
android:id=
"@+id/tv_leave_text"
android:id=
"@+id/tv_leave_text"
...
@@ -216,7 +217,7 @@
...
@@ -216,7 +217,7 @@
android:textSize=
"@dimen/text_10"
android:textSize=
"@dimen/text_10"
android:layout_toLeftOf=
"@+id/tv_leave_text"
android:layout_toLeftOf=
"@+id/tv_leave_text"
android:layout_alignBottom=
"@+id/tv_leave_text"
android:layout_alignBottom=
"@+id/tv_leave_text"
android:visibility=
"visible"
android:visibility=
"
in
visible"
android:layout_marginRight=
"5dp"
/>
android:layout_marginRight=
"5dp"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
@@ -245,5 +246,6 @@
...
@@ -245,5 +246,6 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"left|center"
android:gravity=
"left|center"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:layout_marginLeft=
"15dp"
android:textSize=
"@dimen/text_10"
/>
android:textSize=
"@dimen/text_10"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/activity_new_main.xml
View file @
a4f49f09
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/black"
android:background=
"@color/black"
tools:context=
".uis.MainActivity"
>
tools:context=
".uis.MainActivity
1
"
>
<TextView
<TextView
android:id=
"@+id/tv_setting"
android:id=
"@+id/tv_setting"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
...
app/src/main/res/layout/dialog_select.xml
View file @
a4f49f09
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<RelativeLayout
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"42dp"
android:layout_height=
"42dp"
android:layout_marginBottom=
"
3
2dp"
android:layout_marginBottom=
"
2
2dp"
android:background=
"@color/color_2D52E3"
>
android:background=
"@color/color_2D52E3"
>
<TextView
<TextView
android:id=
"@+id/tv_title"
android:id=
"@+id/tv_title"
...
@@ -66,6 +66,7 @@
...
@@ -66,6 +66,7 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_gravity=
"center"
android:padding=
"10dp"
android:gravity=
"center"
>
android:gravity=
"center"
>
</androidx.recyclerview.widget.RecyclerView>
</androidx.recyclerview.widget.RecyclerView>
<LinearLayout
<LinearLayout
...
...
app/src/main/res/values/dimens.xml
View file @
a4f49f09
...
@@ -11,5 +11,7 @@
...
@@ -11,5 +11,7 @@
<dimen
name=
"text_15"
>
15sp
</dimen>
<dimen
name=
"text_15"
>
15sp
</dimen>
<dimen
name=
"text_11"
>
11sp
</dimen>
<dimen
name=
"text_11"
>
11sp
</dimen>
<dimen
name=
"dlg_margin"
>
10dp
</dimen>
<dimen
name=
"dlg_margin"
>
10dp
</dimen>
<dimen
name=
"display_text"
>
77sp
</dimen>
//一列:95sp
<dimen
name=
"display_text"
>
77sp
</dimen>
<dimen
name=
"text_30"
>
30sp
</dimen>
//一列:95sp
</resources>
</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