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
a43e0c01
Commit
a43e0c01
authored
Dec 21, 2017
by
zhang_z
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of 192.168.254.154:w525721508/TangKuPos
parents
4a9ef3fe
1a61ae0c
Changes
13
Hide 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 @
a43e0c01
...
...
@@ -7,8 +7,6 @@ import android.view.animation.AlphaAnimation;
import
com.blankj.utilcode.util.ActivityUtils
;
import
com.blankj.utilcode.util.LogUtils
;
import
com.github.ybq.android.spinkit.style.FadingCircle
;
import
com.xingdata.zzdpos.App
;
import
com.xingdata.zzdpos.MainActivity
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseActivity
;
...
...
app/src/main/java/com/xingdata/zzdpos/util/SystemUtil.java
View file @
a43e0c01
...
...
@@ -55,7 +55,7 @@ public final class SystemUtil {
}
}
// return deviceSN;
return
"9220932
0
"
;
return
"9220932
5
"
;
}
...
...
app/src/main/res/drawable/red_border.xml
0 → 100644
View file @
a43e0c01
<?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 @
a43e0c01
...
...
@@ -46,6 +46,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:visibility=
"gone"
android:gravity=
"center"
android:orientation=
"horizontal"
>
...
...
app/src/main/res/layout/activity_splash.xml
View file @
a43e0c01
...
...
@@ -37,7 +37,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
app:SpinKit_Color=
"@color/
appBack
"
/>
app:SpinKit_Color=
"@color/
white
"
/>
<TextView
android:id=
"@+id/tv_progress"
...
...
@@ -45,7 +45,7 @@
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:text=
"0 %"
android:textColor=
"@color/
appBack
"
/>
android:textColor=
"@color/
white
"
/>
</RelativeLayout>
<TextView
...
...
@@ -55,7 +55,7 @@
android:layout_marginTop=
"@dimen/all_padding"
android:gravity=
"center"
android:text=
"正在加载数据..."
android:textColor=
"@color/
appBack
"
/>
android:textColor=
"@color/
white
"
/>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_input_password.xml
View file @
a43e0c01
...
...
@@ -24,51 +24,38 @@
android:src=
"@mipmap/login_logo"
/>
<RelativeLayout
android:layout_width=
"
@dimen/et_width
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
<EditText
android:id=
"@+id/et_one_password"
android:layout_width=
"@dimen/et_width"
android:layout_height=
"wrap_content"
style=
"@style/editText"
android:background=
"@drawable/transparent_border"
android:digits=
"1234567890"
android:ems=
"10"
android:gravity=
"center_vertical"
android:hint=
"@string/login_smscodefragment_et_one_input_password_hint"
android:inputType=
"textPassword"
android:maxLength=
"11"
android:padding=
"@dimen/et_padding"
android:saveEnabled=
"false"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
android:maxLength=
"11"
/>
</RelativeLayout>
<EditText
android:id=
"@+id/et_two_password"
android:layout_width=
"@dimen/et_width"
android:layout_height=
"wrap_content"
style=
"@style/editText"
android:layout_marginTop=
"@dimen/et_margin_edittext"
android:background=
"@drawable/transparent_border"
android:digits=
"1234567890"
android:ems=
"10"
android:gravity=
"center_vertical"
android:hint=
"@string/login_smscodefragment_et_two_input_password_hint"
android:inputType=
"textPassword"
android:maxLength=
"8"
android:padding=
"@dimen/et_padding"
android:saveEnabled=
"false"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
/>
<Button
android:id=
"@+id/btn_next"
android:layout_width=
"@dimen/et_width"
android:layout_height=
"wrap_content"
style=
"@style/view_base"
android:layout_marginTop=
"@dimen/et_margin_logo"
android:background=
"@drawable/blue_border"
android:onClick=
"@{onClickListener}"
...
...
@@ -77,8 +64,7 @@
android:textSize=
"@dimen/et_textsize"
/>
<RelativeLayout
android:layout_width=
"@dimen/et_width"
android:layout_height=
"wrap_content"
style=
"@style/view_base"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
<TextView
...
...
app/src/main/res/layout/fragment_sign_in.xml
View file @
a43e0c01
...
...
@@ -24,25 +24,19 @@
android:src=
"@mipmap/login_logo"
/>
<RelativeLayout
android:layout_width=
"
@dimen/et_width
"
android:layout_width=
"
match_parent
"
android:layout_height=
"@dimen/et_height"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
<EditText
android:id=
"@+id/et_phone"
android:layout_width=
"@dimen/et_width"
android:layout_height=
"match_parent"
android:background=
"@drawable/transparent_border"
style=
"@style/editText"
android:digits=
"1234567890"
android:ems=
"10"
android:gravity=
"center_vertical"
android:hint=
"@string/login_et_phone_hint"
android:inputType=
"phone"
android:maxLength=
"11"
android:padding=
"@dimen/et_padding"
android:saveEnabled=
"false"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
/>
<LinearLayout
android:id=
"@+id/ll_down"
...
...
@@ -50,6 +44,7 @@
android:layout_height=
"match_parent"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"@dimen/all_margin_left"
android:gravity=
"center"
android:onClick=
"@{onClickListener}"
android:orientation=
"vertical"
...
...
@@ -67,35 +62,33 @@
<EditText
android:id=
"@+id/et_pwd"
android:layout_width=
"@dimen/et_width"
android:layout_height=
"@dimen/et_height"
style=
"@style/editText"
android:layout_marginTop=
"@dimen/et_margin_edittext"
android:background=
"@drawable/transparent_border"
android:digits=
"1234567890"
android:ems=
"10"
android:gravity=
"center_vertical"
android:hint=
"@string/login_et_password_hint"
android:inputType=
"textPassword"
android:maxLength=
"16"
android:padding=
"@dimen/et_padding"
android:saveEnabled=
"false"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
/>
<Button
android:id=
"@+id/btn_login"
android:layout_width=
"
@dimen/et_width
"
android:layout_width=
"
match_parent
"
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:background=
"@drawable/
blue
_border"
android:background=
"@drawable/
red
_border"
android:onClick=
"@{onClickListener}"
android:text=
"@string/login_signinfragmentfragment_btn_login"
android:textColor=
"@color/white"
android:textSize=
"@dimen/et_textsize"
/>
<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_marginTop=
"@dimen/et_margin_logo"
>
...
...
app/src/main/res/layout/fragment_sms_code.xml
View file @
a43e0c01
...
...
@@ -23,25 +23,19 @@
android:src=
"@mipmap/login_logo"
/>
<RelativeLayout
android:layout_width=
"
@dimen/et_width
"
android:layout_height=
"
wrap_conten
t"
android:layout_width=
"
match_parent
"
android:layout_height=
"
@dimen/et_heigh
t"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
<EditText
android:id=
"@+id/et_phone"
android:layout_width=
"@dimen/et_width"
android:layout_height=
"wrap_content"
android:background=
"@drawable/transparent_border"
style=
"@style/editText"
android:digits=
"1234567890"
android:ems=
"10"
android:gravity=
"center_vertical"
android:hint=
"@string/login_et_phone_hint"
android:inputType=
"phone|number"
android:maxLength=
"11"
android:padding=
"@dimen/et_padding"
android:saveEnabled=
"false"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
android:maxLength=
"11"
/>
<LinearLayout
...
...
@@ -49,6 +43,7 @@
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"@dimen/all_margin_left"
android:orientation=
"horizontal"
>
<View
...
...
@@ -73,26 +68,19 @@
<EditText
android:id=
"@+id/et_sms_code"
android:layout_width=
"@dimen/et_width"
android:layout_height=
"wrap_content"
style=
"@style/editText"
android:layout_marginTop=
"@dimen/all_margin"
android:background=
"@drawable/transparent_border"
android:digits=
"1234567890"
android:ems=
"10"
android:gravity=
"center_vertical"
android:hint=
"@string/login_smscodefragment_et_input_sms_hint"
android:inputType=
"phone|number"
android:maxLength=
"11"
android:padding=
"@dimen/et_padding"
android:saveEnabled=
"false"
android:textColorHint=
"@color/hint"
android:textSize=
"@dimen/et_textsize"
/>
/>
<Button
android:id=
"@+id/btn_next"
android:layout_width=
"@dimen/et_width"
android:layout_height=
"wrap_content"
style=
"@style/view_base"
android:layout_marginTop=
"@dimen/et_margin_logo"
android:background=
"@drawable/blue_border"
android:onClick=
"@{onClickListener}"
...
...
@@ -101,7 +89,7 @@
android:textSize=
"@dimen/et_textsize"
/>
<RelativeLayout
android:layout_width=
"
@dimen/et_width
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
...
...
@@ -109,6 +97,7 @@
android:id=
"@+id/tv_existing_account"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginRight=
"@dimen/all_margin_left"
android:layout_alignParentRight=
"true"
android:onClick=
"@{onClickListener}"
android:text=
"已有账号 >"
...
...
app/src/main/res/mipmap-hdpi/login_logo.png
View replaced file @
4a9ef3fe
View file @
a43e0c01
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 @
4a9ef3fe
View file @
a43e0c01
54.5 KB
|
W:
|
H:
36.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
app/src/main/res/values/colors.xml
View file @
a43e0c01
...
...
@@ -116,5 +116,5 @@
<color
name=
"navy_blue"
>
#1f7bdb
</color>
<color
name=
"light_grey"
>
#b9b9b9
</color>
<color
name=
"red_guanyu"
>
#b4282d
</color>
</resources>
app/src/main/res/values/dimens.xml
View file @
a43e0c01
...
...
@@ -13,6 +13,7 @@
<dimen
name=
"all_padding"
>
10dp
</dimen>
<dimen
name=
"all_text_size_big"
>
22sp
</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=
"small_text_size"
>
13sp
</dimen>
<dimen
name=
"big_text_size"
>
18sp
</dimen>
...
...
@@ -80,8 +81,8 @@
<dimen
name=
"fragment_menu_show"
>
36dp
</dimen>
<!--登录界面-->
<dimen
name=
"et_width"
>
40
0dp
</dimen>
<dimen
name=
"et_height"
>
4
5
dp
</dimen>
<dimen
name=
"et_width"
>
27
0dp
</dimen>
<dimen
name=
"et_height"
>
4
4
dp
</dimen>
<dimen
name=
"et_textsize"
>
16sp
</dimen>
<dimen
name=
"et_padding"
>
12dp
</dimen>
<dimen
name=
"et_margin_logo"
>
40dp
</dimen>
...
...
app/src/main/res/values/styles.xml
View file @
a43e0c01
...
...
@@ -269,4 +269,21 @@
<item
name=
"android:textColor"
>
@drawable/selector_gray_button_text_color
</item>
<item
name=
"android:gravity"
>
center
</item>
</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>
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