Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TangKuPos
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
王海
TangKuPos
Commits
1a61ae0c
Commit
1a61ae0c
authored
Dec 21, 2017
by
王海
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改ui
parent
c1bfdd62
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
64 additions
and
71 deletions
+64
-71
app/src/main/java/com/xingdata/zzdpos/ui/splash/SplashActivity.java
...in/java/com/xingdata/zzdpos/ui/splash/SplashActivity.java
+0
-2
app/src/main/java/com/xingdata/zzdpos/util/SystemUtil.java
app/src/main/java/com/xingdata/zzdpos/util/SystemUtil.java
+1
-1
app/src/main/res/drawable/red_border.xml
app/src/main/res/drawable/red_border.xml
+8
-0
app/src/main/res/layout/activity_login.xml
app/src/main/res/layout/activity_login.xml
+1
-0
app/src/main/res/layout/activity_splash.xml
app/src/main/res/layout/activity_splash.xml
+3
-3
app/src/main/res/layout/fragment_input_password.xml
app/src/main/res/layout/fragment_input_password.xml
+7
-21
app/src/main/res/layout/fragment_sign_in.xml
app/src/main/res/layout/fragment_sign_in.xml
+13
-20
app/src/main/res/layout/fragment_sms_code.xml
app/src/main/res/layout/fragment_sms_code.xml
+10
-21
app/src/main/res/mipmap-hdpi/login_logo.png
app/src/main/res/mipmap-hdpi/login_logo.png
+0
-0
app/src/main/res/mipmap-hdpi/splash.png
app/src/main/res/mipmap-hdpi/splash.png
+0
-0
app/src/main/res/values/colors.xml
app/src/main/res/values/colors.xml
+1
-1
app/src/main/res/values/dimens.xml
app/src/main/res/values/dimens.xml
+3
-2
app/src/main/res/values/styles.xml
app/src/main/res/values/styles.xml
+17
-0
No files found.
app/src/main/java/com/xingdata/zzdpos/ui/splash/SplashActivity.java
View file @
1a61ae0c
...
@@ -7,8 +7,6 @@ import android.view.animation.AlphaAnimation;
...
@@ -7,8 +7,6 @@ import android.view.animation.AlphaAnimation;
import
com.blankj.utilcode.util.ActivityUtils
;
import
com.blankj.utilcode.util.ActivityUtils
;
import
com.blankj.utilcode.util.LogUtils
;
import
com.blankj.utilcode.util.LogUtils
;
import
com.github.ybq.android.spinkit.style.FadingCircle
;
import
com.github.ybq.android.spinkit.style.FadingCircle
;
import
com.xingdata.zzdpos.App
;
import
com.xingdata.zzdpos.MainActivity
;
import
com.xingdata.zzdpos.MainActivity
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseActivity
;
...
...
app/src/main/java/com/xingdata/zzdpos/util/SystemUtil.java
View file @
1a61ae0c
...
@@ -55,7 +55,7 @@ public final class SystemUtil {
...
@@ -55,7 +55,7 @@ public final class SystemUtil {
}
}
}
}
// return deviceSN;
// return deviceSN;
return
"9220932
0
"
;
return
"9220932
5
"
;
}
}
...
...
app/src/main/res/drawable/red_border.xml
0 → 100644
View file @
1a61ae0c
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"@dimen/all_shape_radius"
/>
<solid
android:color=
"@color/red_guanyu"
/>
</shape>
\ No newline at end of file
app/src/main/res/layout/activity_login.xml
View file @
1a61ae0c
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:visibility=
"gone"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
...
...
app/src/main/res/layout/activity_splash.xml
View file @
1a61ae0c
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,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"
app:SpinKit_Color=
"@color/
appBack
"
/>
app:SpinKit_Color=
"@color/
white
"
/>
<TextView
<TextView
android:id=
"@+id/tv_progress"
android:id=
"@+id/tv_progress"
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:layout_centerInParent=
"true"
android:text=
"0 %"
android:text=
"0 %"
android:textColor=
"@color/
appBack
"
/>
android:textColor=
"@color/
white
"
/>
</RelativeLayout>
</RelativeLayout>
<TextView
<TextView
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
android:layout_marginTop=
"@dimen/all_padding"
android:layout_marginTop=
"@dimen/all_padding"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"正在加载数据..."
android:text=
"正在加载数据..."
android:textColor=
"@color/
appBack
"
/>
android:textColor=
"@color/
white
"
/>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_input_password.xml
View file @
1a61ae0c
...
@@ -24,51 +24,38 @@
...
@@ -24,51 +24,38 @@
android:src=
"@mipmap/login_logo"
/>
android:src=
"@mipmap/login_logo"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"
@dimen/et_width
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
android:layout_marginTop=
"@dimen/et_margin_logo"
>
<EditText
<EditText
android:id=
"@+id/et_one_password"
android:id=
"@+id/et_one_password"
android:layout_width=
"@dimen/et_width"
style=
"@style/editText"
android:layout_height=
"wrap_content"
android:background=
"@drawable/transparent_border"
android:background=
"@drawable/transparent_border"
android:digits=
"1234567890"
android:digits=
"1234567890"
android:ems=
"10"
android:ems=
"10"
android:gravity=
"center_vertical"
android:hint=
"@string/login_smscodefragment_et_one_input_password_hint"
android:hint=
"@string/login_smscodefragment_et_one_input_password_hint"
android:inputType=
"textPassword"
android:inputType=
"textPassword"
android:maxLength=
"11"
android:maxLength=
"11"
/>
android:padding=
"@dimen/et_padding"
android:saveEnabled=
"false"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
</RelativeLayout>
</RelativeLayout>
<EditText
<EditText
android:id=
"@+id/et_two_password"
android:id=
"@+id/et_two_password"
android:layout_width=
"@dimen/et_width"
style=
"@style/editText"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_edittext"
android:layout_marginTop=
"@dimen/et_margin_edittext"
android:background=
"@drawable/transparent_border"
android:digits=
"1234567890"
android:digits=
"1234567890"
android:ems=
"10"
android:ems=
"10"
android:gravity=
"center_vertical"
android:hint=
"@string/login_smscodefragment_et_two_input_password_hint"
android:hint=
"@string/login_smscodefragment_et_two_input_password_hint"
android:inputType=
"textPassword"
android:inputType=
"textPassword"
android:maxLength=
"8"
android:maxLength=
"8"
android:padding=
"@dimen/et_padding"
/>
android:saveEnabled=
"false"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
<Button
<Button
android:id=
"@+id/btn_next"
android:id=
"@+id/btn_next"
android:layout_width=
"@dimen/et_width"
style=
"@style/view_base"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_logo"
android:layout_marginTop=
"@dimen/et_margin_logo"
android:background=
"@drawable/blue_border"
android:background=
"@drawable/blue_border"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
...
@@ -77,8 +64,7 @@
...
@@ -77,8 +64,7 @@
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"@dimen/et_width"
style=
"@style/view_base"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
android:layout_marginTop=
"@dimen/et_margin_logo"
>
<TextView
<TextView
...
...
app/src/main/res/layout/fragment_sign_in.xml
View file @
1a61ae0c
...
@@ -24,25 +24,19 @@
...
@@ -24,25 +24,19 @@
android:src=
"@mipmap/login_logo"
/>
android:src=
"@mipmap/login_logo"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"
@dimen/et_width
"
android:layout_width=
"
match_parent
"
android:layout_height=
"@dimen/et_height"
android:layout_height=
"@dimen/et_height"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
android:layout_marginTop=
"@dimen/et_margin_logo"
>
<EditText
<EditText
android:id=
"@+id/et_phone"
android:id=
"@+id/et_phone"
android:layout_width=
"@dimen/et_width"
style=
"@style/editText"
android:layout_height=
"match_parent"
android:background=
"@drawable/transparent_border"
android:digits=
"1234567890"
android:digits=
"1234567890"
android:ems=
"10"
android:ems=
"10"
android:gravity=
"center_vertical"
android:hint=
"@string/login_et_phone_hint"
android:hint=
"@string/login_et_phone_hint"
android:inputType=
"phone"
android:inputType=
"phone"
android:maxLength=
"11"
android:maxLength=
"11"
android:padding=
"@dimen/et_padding"
/>
android:saveEnabled=
"false"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_down"
android:id=
"@+id/ll_down"
...
@@ -50,6 +44,7 @@
...
@@ -50,6 +44,7 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"@dimen/all_margin_left"
android:gravity=
"center"
android:gravity=
"center"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:orientation=
"vertical"
android:orientation=
"vertical"
...
@@ -67,35 +62,33 @@
...
@@ -67,35 +62,33 @@
<EditText
<EditText
android:id=
"@+id/et_pwd"
android:id=
"@+id/et_pwd"
android:layout_width=
"@dimen/et_width"
style=
"@style/editText"
android:layout_height=
"@dimen/et_height"
android:layout_marginTop=
"@dimen/et_margin_edittext"
android:layout_marginTop=
"@dimen/et_margin_edittext"
android:background=
"@drawable/transparent_border"
android:digits=
"1234567890"
android:digits=
"1234567890"
android:ems=
"10"
android:ems=
"10"
android:gravity=
"center_vertical"
android:hint=
"@string/login_et_password_hint"
android:hint=
"@string/login_et_password_hint"
android:inputType=
"textPassword"
android:inputType=
"textPassword"
android:maxLength=
"16"
android:maxLength=
"16"
android:padding=
"@dimen/et_padding"
/>
android:saveEnabled=
"false"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
<Button
<Button
android:id=
"@+id/btn_login"
android:id=
"@+id/btn_login"
android:layout_width=
"
@dimen/et_width
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_marginTop=
"@dimen/et_margin_logo"
android:layout_marginTop=
"@dimen/et_margin_logo"
android:background=
"@drawable/
blue
_border"
android:background=
"@drawable/
red
_border"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"@string/login_signinfragmentfragment_btn_login"
android:text=
"@string/login_signinfragmentfragment_btn_login"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"@dimen/et_width"
android:layout_width=
"match_parent"
android:layout_marginLeft=
"@dimen/all_margin_left"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
android:layout_marginTop=
"@dimen/et_margin_logo"
>
...
...
app/src/main/res/layout/fragment_sms_code.xml
View file @
1a61ae0c
...
@@ -23,25 +23,19 @@
...
@@ -23,25 +23,19 @@
android:src=
"@mipmap/login_logo"
/>
android:src=
"@mipmap/login_logo"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"
@dimen/et_width
"
android:layout_width=
"
match_parent
"
android:layout_height=
"
wrap_conten
t"
android:layout_height=
"
@dimen/et_heigh
t"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
android:layout_marginTop=
"@dimen/et_margin_logo"
>
<EditText
<EditText
android:id=
"@+id/et_phone"
android:id=
"@+id/et_phone"
android:layout_width=
"@dimen/et_width"
style=
"@style/editText"
android:layout_height=
"wrap_content"
android:background=
"@drawable/transparent_border"
android:digits=
"1234567890"
android:digits=
"1234567890"
android:ems=
"10"
android:ems=
"10"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:hint=
"@string/login_et_phone_hint"
android:hint=
"@string/login_et_phone_hint"
android:inputType=
"phone|number"
android:inputType=
"phone|number"
android:maxLength=
"11"
android:maxLength=
"11"
/>
android:padding=
"@dimen/et_padding"
android:saveEnabled=
"false"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
<LinearLayout
<LinearLayout
...
@@ -49,6 +43,7 @@
...
@@ -49,6 +43,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"@dimen/all_margin_left"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<View
<View
...
@@ -73,26 +68,19 @@
...
@@ -73,26 +68,19 @@
<EditText
<EditText
android:id=
"@+id/et_sms_code"
android:id=
"@+id/et_sms_code"
android:layout_width=
"@dimen/et_width"
style=
"@style/editText"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/all_margin"
android:layout_marginTop=
"@dimen/all_margin"
android:background=
"@drawable/transparent_border"
android:digits=
"1234567890"
android:digits=
"1234567890"
android:ems=
"10"
android:ems=
"10"
android:gravity=
"center_vertical"
android:hint=
"@string/login_smscodefragment_et_input_sms_hint"
android:hint=
"@string/login_smscodefragment_et_input_sms_hint"
android:inputType=
"phone|number"
android:inputType=
"phone|number"
android:maxLength=
"11"
android:maxLength=
"11"
android:padding=
"@dimen/et_padding"
/>
android:saveEnabled=
"false"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
<Button
<Button
android:id=
"@+id/btn_next"
android:id=
"@+id/btn_next"
android:layout_width=
"@dimen/et_width"
style=
"@style/view_base"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_logo"
android:layout_marginTop=
"@dimen/et_margin_logo"
android:background=
"@drawable/blue_border"
android:background=
"@drawable/blue_border"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
...
@@ -101,7 +89,7 @@
...
@@ -101,7 +89,7 @@
android:textSize=
"@dimen/et_textsize"
/>
android:textSize=
"@dimen/et_textsize"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"
@dimen/et_width
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
android:layout_marginTop=
"@dimen/et_margin_logo"
>
...
@@ -109,6 +97,7 @@
...
@@ -109,6 +97,7 @@
android:id=
"@+id/tv_existing_account"
android:id=
"@+id/tv_existing_account"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_alignParentRight=
"true"
android:layout_alignParentRight=
"true"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"已有账号 >"
android:text=
"已有账号 >"
...
...
app/src/main/res/mipmap-hdpi/login_logo.png
View replaced file @
c1bfdd62
View file @
1a61ae0c
20.5 KB
|
W:
|
H:
19.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
app/src/main/res/mipmap-hdpi/splash.png
View replaced file @
c1bfdd62
View file @
1a61ae0c
54.5 KB
|
W:
|
H:
36.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
app/src/main/res/values/colors.xml
View file @
1a61ae0c
...
@@ -116,5 +116,5 @@
...
@@ -116,5 +116,5 @@
<color
name=
"navy_blue"
>
#1f7bdb
</color>
<color
name=
"navy_blue"
>
#1f7bdb
</color>
<color
name=
"light_grey"
>
#b9b9b9
</color>
<color
name=
"light_grey"
>
#b9b9b9
</color>
<color
name=
"red_guanyu"
>
#b4282d
</color>
</resources>
</resources>
app/src/main/res/values/dimens.xml
View file @
1a61ae0c
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<dimen
name=
"all_padding"
>
10dp
</dimen>
<dimen
name=
"all_padding"
>
10dp
</dimen>
<dimen
name=
"all_text_size_big"
>
22sp
</dimen>
<dimen
name=
"all_text_size_big"
>
22sp
</dimen>
<dimen
name=
"all_text_size_super_big"
>
25sp
</dimen>
<dimen
name=
"all_text_size_super_big"
>
25sp
</dimen>
<dimen
name=
"all_margin_left"
>
15dp
</dimen>
<dimen
name=
"title_height"
>
50dp
</dimen>
<dimen
name=
"title_height"
>
50dp
</dimen>
<dimen
name=
"small_text_size"
>
13sp
</dimen>
<dimen
name=
"small_text_size"
>
13sp
</dimen>
<dimen
name=
"big_text_size"
>
18sp
</dimen>
<dimen
name=
"big_text_size"
>
18sp
</dimen>
...
@@ -80,8 +81,8 @@
...
@@ -80,8 +81,8 @@
<dimen
name=
"fragment_menu_show"
>
36dp
</dimen>
<dimen
name=
"fragment_menu_show"
>
36dp
</dimen>
<!--登录界面-->
<!--登录界面-->
<dimen
name=
"et_width"
>
40
0dp
</dimen>
<dimen
name=
"et_width"
>
27
0dp
</dimen>
<dimen
name=
"et_height"
>
4
5
dp
</dimen>
<dimen
name=
"et_height"
>
4
4
dp
</dimen>
<dimen
name=
"et_textsize"
>
16sp
</dimen>
<dimen
name=
"et_textsize"
>
16sp
</dimen>
<dimen
name=
"et_padding"
>
12dp
</dimen>
<dimen
name=
"et_padding"
>
12dp
</dimen>
<dimen
name=
"et_margin_logo"
>
40dp
</dimen>
<dimen
name=
"et_margin_logo"
>
40dp
</dimen>
...
...
app/src/main/res/values/styles.xml
View file @
1a61ae0c
...
@@ -269,4 +269,21 @@
...
@@ -269,4 +269,21 @@
<item
name=
"android:textColor"
>
@drawable/selector_gray_button_text_color
</item>
<item
name=
"android:textColor"
>
@drawable/selector_gray_button_text_color
</item>
<item
name=
"android:gravity"
>
center
</item>
<item
name=
"android:gravity"
>
center
</item>
</style>
</style>
<style
name=
"view_base"
parent=
"android:ButtonBar"
>
<item
name=
"android:layout_height"
>
@dimen/et_height
</item>
<item
name=
"android:layout_width"
>
match_parent
</item>
<item
name=
"android:gravity"
>
center_vertical
</item>
<item
name=
"android:layout_marginLeft"
>
@dimen/all_margin_left
</item>
<item
name=
"android:layout_marginRight"
>
@dimen/all_margin_left
</item>
</style>
<style
name=
"editText"
parent=
"view_base"
>
<item
name=
" android:background"
>
@drawable/transparent_border
</item>
<item
name=
"android:padding"
>
@dimen/et_padding
</item>
<item
name=
" android:saveEnabled"
>
false
</item>
<item
name=
"android:textSize"
>
@dimen/et_textsize
</item>
<item
name=
"android:textColorHint"
>
@color/hint
</item>
</style>
</resources>
</resources>
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