Commit a4f49f09 authored by chenyuling's avatar chenyuling

"另外开分支,使用设计稿的UI显示,定制组名信息"

parent 86253c4b
...@@ -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"
} }
......
...@@ -33,19 +33,19 @@ ...@@ -33,19 +33,19 @@
android:value="" /> android:value="" />
</activity> </activity>
<activity <activity
android:name=".uis.MainActivity" android:name=".uis.MainActivity1"
android:exported="true" > android:exported="false" >
<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" />
<!-- &lt;!&ndash;
<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" />
--> &ndash;&gt;
</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.MainOldActivity" android:name=".uis.MainActivity"
android:configChanges="keyboardHidden|orientation" android:configChanges="keyboardHidden|orientation"
android:exported="false" android:exported="true"
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="" />
......
...@@ -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));
} }
} }
...@@ -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.MainOldActivity"> 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="invisible"
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="invisible"
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
...@@ -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.MainActivity1">
<TextView <TextView
android:id="@+id/tv_setting" android:id="@+id/tv_setting"
android:layout_width="wrap_content" android:layout_width="wrap_content"
......
...@@ -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="32dp" android:layout_marginBottom="22dp"
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
......
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment