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
35bc0154
Commit
35bc0154
authored
Dec 21, 2017
by
王海
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改ui
parent
21eaf788
Changes
33
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
529 additions
and
423 deletions
+529
-423
app/src/main/AndroidManifest.xml
app/src/main/AndroidManifest.xml
+10
-9
app/src/main/java/com/xingdata/zzdpos/ui/login/LoginActivity.java
...main/java/com/xingdata/zzdpos/ui/login/LoginActivity.java
+1
-1
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/BindingCounterFragment.java
...data/zzdpos/ui/login/fragment/BindingCounterFragment.java
+14
-7
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/ChoiceStoreFragment.java
...ingdata/zzdpos/ui/login/fragment/ChoiceStoreFragment.java
+8
-1
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/CreateStoreFragment.java
...ingdata/zzdpos/ui/login/fragment/CreateStoreFragment.java
+8
-0
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/InputPasswordFragment.java
...gdata/zzdpos/ui/login/fragment/InputPasswordFragment.java
+9
-0
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/SignInFragment.java
...com/xingdata/zzdpos/ui/login/fragment/SignInFragment.java
+0
-1
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/SmsCodeFragment.java
...om/xingdata/zzdpos/ui/login/fragment/SmsCodeFragment.java
+11
-1
app/src/main/res/drawable/blue_border.xml
app/src/main/res/drawable/blue_border.xml
+2
-2
app/src/main/res/drawable/gra_border.xml
app/src/main/res/drawable/gra_border.xml
+2
-2
app/src/main/res/drawable/selector_gradient_gray_button_background.xml
...res/drawable/selector_gradient_gray_button_background.xml
+1
-1
app/src/main/res/drawable/selector_gradient_gray_button_background_noradius.xml
...ble/selector_gradient_gray_button_background_noradius.xml
+8
-0
app/src/main/res/drawable/selector_gradient_red_button_background.xml
.../res/drawable/selector_gradient_red_button_background.xml
+2
-2
app/src/main/res/drawable/selector_gradient_red_button_background_noradius.xml
...able/selector_gradient_red_button_background_noradius.xml
+8
-0
app/src/main/res/drawable/shape_gradient_gray_round_rectangle_stroke_noradius.xml
...e/shape_gradient_gray_round_rectangle_stroke_noradius.xml
+15
-0
app/src/main/res/drawable/shape_gradient_red_round_rectangle.xml
.../main/res/drawable/shape_gradient_red_round_rectangle.xml
+14
-0
app/src/main/res/drawable/shape_gradient_red_round_rectangle_noradius.xml
.../drawable/shape_gradient_red_round_rectangle_noradius.xml
+13
-0
app/src/main/res/drawable/shape_gray_round_rectangle_stroke.xml
...c/main/res/drawable/shape_gray_round_rectangle_stroke.xml
+3
-4
app/src/main/res/drawable/shape_gray_round_rectangle_stroke_noradius.xml
...s/drawable/shape_gray_round_rectangle_stroke_noradius.xml
+10
-0
app/src/main/res/drawable/shape_grey_round_rectangle_strokeless.xml
...in/res/drawable/shape_grey_round_rectangle_strokeless.xml
+0
-1
app/src/main/res/drawable/shape_grey_round_rectangle_strokeless_noradius.xml
...awable/shape_grey_round_rectangle_strokeless_noradius.xml
+6
-0
app/src/main/res/drawable/shape_red_round_rectangle_strokeless.xml
...ain/res/drawable/shape_red_round_rectangle_strokeless.xml
+7
-0
app/src/main/res/drawable/shape_red_round_rectangle_strokeless_noradius.xml
...rawable/shape_red_round_rectangle_strokeless_noradius.xml
+6
-0
app/src/main/res/layout/activity_error_dialog.xml
app/src/main/res/layout/activity_error_dialog.xml
+1
-1
app/src/main/res/layout/dialog_prompt.xml
app/src/main/res/layout/dialog_prompt.xml
+3
-3
app/src/main/res/layout/fragment_binding_counter.xml
app/src/main/res/layout/fragment_binding_counter.xml
+125
-141
app/src/main/res/layout/fragment_choice_store.xml
app/src/main/res/layout/fragment_choice_store.xml
+111
-118
app/src/main/res/layout/fragment_create_store.xml
app/src/main/res/layout/fragment_create_store.xml
+41
-67
app/src/main/res/layout/fragment_input_password.xml
app/src/main/res/layout/fragment_input_password.xml
+57
-50
app/src/main/res/layout/fragment_sms_code.xml
app/src/main/res/layout/fragment_sms_code.xml
+1
-1
app/src/main/res/layout/title.xml
app/src/main/res/layout/title.xml
+1
-2
app/src/main/res/values/dimens.xml
app/src/main/res/values/dimens.xml
+6
-5
app/src/main/res/values/styles.xml
app/src/main/res/values/styles.xml
+25
-3
No files found.
app/src/main/AndroidManifest.xml
View file @
35bc0154
...
@@ -19,37 +19,38 @@
...
@@ -19,37 +19,38 @@
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:label=
"@string/main_title"
android:label=
"@string/main_title"
android:launchMode=
"singleTask"
android:launchMode=
"singleTask"
android:windowSoftInputMode=
"adjustUnspecified|stateHidden"
>
android:windowSoftInputMode=
"adjustUnspecified|stateHidden"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
</activity>
<activity
<activity
android:name=
".ui.splash.SplashActivity"
android:name=
".ui.splash.SplashActivity"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:theme=
"@style/AppTheme"
>
android:theme=
"@style/AppTheme"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
</activity>
<activity
<activity
android:name=
".ui.login.LoginActivity"
android:name=
".ui.login.LoginActivity"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:windowSoftInputMode=
"adjustUnspecified|stateHidden"
/>
android:windowSoftInputMode=
"adjustUnspecified|stateHidden"
/>
<activity
<activity
android:name=
".ui.exception.ErrorDialogActivity"
android:name=
".ui.exception.ErrorDialogActivity"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:theme=
"@style/Theme.AppCompat.Light.Dialog"
/>
android:theme=
"@style/Theme.AppCompat.Light.Dialog"
/>
<activity
<activity
android:name=
".ui.exception.ServerErrActivity"
android:name=
".ui.exception.ServerErrActivity"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:theme=
"@style/Theme.AppCompat.Light.Dialog"
/>
android:theme=
"@style/Theme.AppCompat.Light.Dialog"
/>
<activity
<activity
android:name=
".ui.payment.PaymentActivity"
android:name=
".ui.payment.PaymentActivity"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:configChanges=
"keyboard|orientation|screenSize|keyboardHidden"
android:windowSoftInputMode=
"adjustUnspecified|stateHidden"
/>
android:windowSoftInputMode=
"adjustUnspecified|stateHidden"
/>
</application>
</application>
</manifest>
</manifest>
\ No newline at end of file
app/src/main/java/com/xingdata/zzdpos/ui/login/LoginActivity.java
View file @
35bc0154
...
@@ -48,7 +48,7 @@ public class LoginActivity extends BaseActivity<LoginPresenter, ActivityLoginBin
...
@@ -48,7 +48,7 @@ public class LoginActivity extends BaseActivity<LoginPresenter, ActivityLoginBin
// }
// }
LogUtils
.
e
(
"LoginActivity + initView"
);
LogUtils
.
e
(
"LoginActivity + initView"
);
loadRootFragment
(
R
.
id
.
fra
,
mPresenter
.
bindingCounter
Fragment
);
loadRootFragment
(
R
.
id
.
fra
,
mPresenter
.
signIn
Fragment
);
mViewBinding
.
setText1
(
": 400 - 800 - 9406"
);
mViewBinding
.
setText1
(
": 400 - 800 - 9406"
);
mViewBinding
.
setOnClickListener
(
v
->
{
mViewBinding
.
setOnClickListener
(
v
->
{
switch
(
v
.
getId
())
{
switch
(
v
.
getId
())
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/BindingCounterFragment.java
View file @
35bc0154
...
@@ -4,10 +4,6 @@ import android.view.View;
...
@@ -4,10 +4,6 @@ import android.view.View;
import
android.widget.AdapterView
;
import
android.widget.AdapterView
;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.blankj.utilcode.util.ToastUtils
;
import
java.util.ArrayList
;
import
java.util.List
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.base.BaseFragment
;
...
@@ -16,6 +12,10 @@ import com.xingdata.zzdpos.ui.dialog.LoadingDialog;
...
@@ -16,6 +12,10 @@ import com.xingdata.zzdpos.ui.dialog.LoadingDialog;
import
com.xingdata.zzdpos.ui.dialog.PromptDialog
;
import
com.xingdata.zzdpos.ui.dialog.PromptDialog
;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.ui.login.fragment.bean.Shops
;
import
com.xingdata.zzdpos.ui.login.fragment.bean.Shops
;
import
com.xingdata.zzdpos.util.OnClickListener
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
/**
* 绑定款台界面
* 绑定款台界面
...
@@ -39,6 +39,13 @@ public class BindingCounterFragment extends BaseFragment<LoginPresenter,
...
@@ -39,6 +39,13 @@ public class BindingCounterFragment extends BaseFragment<LoginPresenter,
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
"绑定款台"
);
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
protected
void
myOnClickListener
(
View
v
)
{
pop
();
}
});
if
(
LoginPresenter
.
userStoreInfo
.
getMerchant
()
!=
null
)
{
if
(
LoginPresenter
.
userStoreInfo
.
getMerchant
()
!=
null
)
{
mViewBinding
.
tvNickname
.
setText
(
LoginPresenter
.
userStoreInfo
.
getMerchant
().
getMerName
mViewBinding
.
tvNickname
.
setText
(
LoginPresenter
.
userStoreInfo
.
getMerchant
().
getMerName
());
());
...
@@ -94,7 +101,7 @@ public class BindingCounterFragment extends BaseFragment<LoginPresenter,
...
@@ -94,7 +101,7 @@ public class BindingCounterFragment extends BaseFragment<LoginPresenter,
}
}
break
;
break
;
case
R
.
id
.
ll_new_counter
:
{
case
R
.
id
.
ll_new_counter
:
{
isNewCounterCount
=
0
;
isNewCounterCount
=
0
;
setNewCounter
(
true
);
setNewCounter
(
true
);
}
}
...
@@ -109,7 +116,6 @@ public class BindingCounterFragment extends BaseFragment<LoginPresenter,
...
@@ -109,7 +116,6 @@ public class BindingCounterFragment extends BaseFragment<LoginPresenter,
/**
/**
* 设置新增款台或者绑定款台的ui信息
* 设置新增款台或者绑定款台的ui信息
*
*/
*/
private
void
setNewCounter
(
Boolean
b
)
{
private
void
setNewCounter
(
Boolean
b
)
{
if
(
b
)
{
if
(
b
)
{
...
@@ -129,7 +135,8 @@ public class BindingCounterFragment extends BaseFragment<LoginPresenter,
...
@@ -129,7 +135,8 @@ public class BindingCounterFragment extends BaseFragment<LoginPresenter,
mShops
=
shops
;
mShops
=
shops
;
setType
();
setType
();
}
}
private
void
setType
(){
private
void
setType
()
{
if
(
mShops
!=
null
&&
mShops
.
getCashers
()
!=
null
&&
mShops
.
getCashers
().
size
()
>
0
)
{
if
(
mShops
!=
null
&&
mShops
.
getCashers
()
!=
null
&&
mShops
.
getCashers
().
size
()
>
0
)
{
isNewCounterCount
=
1
;
isNewCounterCount
=
1
;
}
else
{
}
else
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/ChoiceStoreFragment.java
View file @
35bc0154
...
@@ -11,6 +11,7 @@ import com.xingdata.zzdpos.databinding.FragmentChoiceStoreBinding;
...
@@ -11,6 +11,7 @@ import com.xingdata.zzdpos.databinding.FragmentChoiceStoreBinding;
import
com.xingdata.zzdpos.ui.dialog.LoadingDialog
;
import
com.xingdata.zzdpos.ui.dialog.LoadingDialog
;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.ui.login.fragment.bean.Shops
;
import
com.xingdata.zzdpos.ui.login.fragment.bean.Shops
;
import
com.xingdata.zzdpos.util.OnClickListener
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -33,7 +34,13 @@ public class ChoiceStoreFragment extends BaseFragment<LoginPresenter,
...
@@ -33,7 +34,13 @@ public class ChoiceStoreFragment extends BaseFragment<LoginPresenter,
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
"绑定款台"
);
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
protected
void
myOnClickListener
(
View
v
)
{
pop
();
}
});
mViewBinding
.
setOnClickListener
(
view
->
{
mViewBinding
.
setOnClickListener
(
view
->
{
switch
(
view
.
getId
())
{
switch
(
view
.
getId
())
{
...
...
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/CreateStoreFragment.java
View file @
35bc0154
...
@@ -15,6 +15,7 @@ import com.xingdata.zzdpos.ui.dialog.LoadingDialog;
...
@@ -15,6 +15,7 @@ import com.xingdata.zzdpos.ui.dialog.LoadingDialog;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.ui.login.fragment.bean.StoreAddressJsonBean
;
import
com.xingdata.zzdpos.ui.login.fragment.bean.StoreAddressJsonBean
;
import
com.xingdata.zzdpos.ui.login.fragment.bean.StoreTypeJsonBean
;
import
com.xingdata.zzdpos.ui.login.fragment.bean.StoreTypeJsonBean
;
import
com.xingdata.zzdpos.util.OnClickListener
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -46,6 +47,13 @@ public class CreateStoreFragment extends BaseFragment<LoginPresenter,
...
@@ -46,6 +47,13 @@ public class CreateStoreFragment extends BaseFragment<LoginPresenter,
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
"创建门店"
);
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
protected
void
myOnClickListener
(
View
v
)
{
pop
();
}
});
if
(
startway
==
1
)
{
if
(
startway
==
1
)
{
mViewBinding
.
etNickname
.
setVisibility
(
View
.
VISIBLE
);
mViewBinding
.
etNickname
.
setVisibility
(
View
.
VISIBLE
);
mViewBinding
.
tvNickname
.
setVisibility
(
View
.
GONE
);
mViewBinding
.
tvNickname
.
setVisibility
(
View
.
GONE
);
...
...
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/InputPasswordFragment.java
View file @
35bc0154
...
@@ -2,6 +2,7 @@ package com.xingdata.zzdpos.ui.login.fragment;
...
@@ -2,6 +2,7 @@ package com.xingdata.zzdpos.ui.login.fragment;
import
android.text.InputFilter
;
import
android.text.InputFilter
;
import
android.text.InputType
;
import
android.text.InputType
;
import
android.view.View
;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.blankj.utilcode.util.ToastUtils
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
...
@@ -10,6 +11,7 @@ import com.xingdata.zzdpos.base.BaseFragment;
...
@@ -10,6 +11,7 @@ import com.xingdata.zzdpos.base.BaseFragment;
import
com.xingdata.zzdpos.databinding.FragmentInputPasswordBinding
;
import
com.xingdata.zzdpos.databinding.FragmentInputPasswordBinding
;
import
com.xingdata.zzdpos.ui.dialog.LoadingDialog
;
import
com.xingdata.zzdpos.ui.dialog.LoadingDialog
;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.util.OnClickListener
;
/**
/**
* 输入密码界面
* 输入密码界面
...
@@ -32,6 +34,13 @@ public class InputPasswordFragment extends BaseFragment<LoginPresenter,
...
@@ -32,6 +34,13 @@ public class InputPasswordFragment extends BaseFragment<LoginPresenter,
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
"输入密码"
);
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
protected
void
myOnClickListener
(
View
v
)
{
pop
();
}
});
InputFilter
[]
inputFilter
=
new
InputFilter
[]{
new
InputFilter
.
LengthFilter
(
6
)};
InputFilter
[]
inputFilter
=
new
InputFilter
[]{
new
InputFilter
.
LengthFilter
(
6
)};
mViewBinding
.
etOnePassword
.
setInputType
(
InputType
.
TYPE_CLASS_NUMBER
|
InputType
mViewBinding
.
etOnePassword
.
setInputType
(
InputType
.
TYPE_CLASS_NUMBER
|
InputType
.
TYPE_NUMBER_VARIATION_PASSWORD
);
.
TYPE_NUMBER_VARIATION_PASSWORD
);
...
...
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/SignInFragment.java
View file @
35bc0154
...
@@ -45,7 +45,6 @@ public class SignInFragment extends BaseFragment<LoginPresenter,
...
@@ -45,7 +45,6 @@ public class SignInFragment extends BaseFragment<LoginPresenter,
.
TYPE_NUMBER_VARIATION_PASSWORD
);
.
TYPE_NUMBER_VARIATION_PASSWORD
);
mViewBinding
.
etPwd
.
setFilters
(
inputFilter
);
mViewBinding
.
etPwd
.
setFilters
(
inputFilter
);
if
(
SPUtils
.
getInstance
().
getInt
(
C
.
SP_KEY
.
IS_SHOW_SIGNUP_BTN
)
!=
0
)
{
if
(
SPUtils
.
getInstance
().
getInt
(
C
.
SP_KEY
.
IS_SHOW_SIGNUP_BTN
)
!=
0
)
{
mViewBinding
.
tvSignUp
.
setVisibility
mViewBinding
.
tvSignUp
.
setVisibility
(
View
.
INVISIBLE
);
(
View
.
INVISIBLE
);
...
...
app/src/main/java/com/xingdata/zzdpos/ui/login/fragment/SmsCodeFragment.java
View file @
35bc0154
package
com
.
xingdata
.
zzdpos
.
ui
.
login
.
fragment
;
package
com
.
xingdata
.
zzdpos
.
ui
.
login
.
fragment
;
import
android.view.View
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseActivity
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.base.BaseFragment
;
import
com.xingdata.zzdpos.databinding.FragmentSmsCodeBinding
;
import
com.xingdata.zzdpos.databinding.FragmentSmsCodeBinding
;
import
com.xingdata.zzdpos.ui.dialog.LoadingDialog
;
import
com.xingdata.zzdpos.ui.dialog.LoadingDialog
;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.ui.login.LoginPresenter
;
import
com.xingdata.zzdpos.util.OnClickListener
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
...
@@ -39,6 +42,13 @@ public class SmsCodeFragment extends BaseFragment<LoginPresenter,
...
@@ -39,6 +42,13 @@ public class SmsCodeFragment extends BaseFragment<LoginPresenter,
@Override
@Override
public
void
initView
()
{
public
void
initView
()
{
mViewBinding
.
icTitle
.
tvTitle
.
setText
(
"发送验证码"
);
mViewBinding
.
icTitle
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
protected
void
myOnClickListener
(
View
v
)
{
pop
();
}
});
// mViewBinding.tvTwo.setOnClickListener(view -> mPresenter.checkSmsCode("",""));
// mViewBinding.tvTwo.setOnClickListener(view -> mPresenter.checkSmsCode("",""));
mViewBinding
.
setOnClickListener
(
view
->
{
mViewBinding
.
setOnClickListener
(
view
->
{
switch
(
view
.
getId
())
{
switch
(
view
.
getId
())
{
...
@@ -51,7 +61,7 @@ public class SmsCodeFragment extends BaseFragment<LoginPresenter,
...
@@ -51,7 +61,7 @@ public class SmsCodeFragment extends BaseFragment<LoginPresenter,
case
R
.
id
.
btn_next
:
{
case
R
.
id
.
btn_next
:
{
mLoadingDialog
.
show
((
BaseActivity
)
getActivity
());
mLoadingDialog
.
show
((
BaseActivity
)
getActivity
());
mPresenter
.
checkSmsCode
(
mViewBinding
.
etPhone
.
getText
().
toString
(),
mPresenter
.
checkSmsCode
(
mViewBinding
.
etPhone
.
getText
().
toString
(),
mViewBinding
.
etSmsCode
.
getText
().
toString
(),
mLoadingDialog
);
mViewBinding
.
etSmsCode
.
getText
().
toString
(),
mLoadingDialog
);
// start(mPresenter.inputPasswordFragment);
// start(mPresenter.inputPasswordFragment);
}
}
...
...
app/src/main/res/drawable/blue_border.xml
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"@dimen/all_
shape_
radius"
/>
<corners
android:radius=
"@dimen/all_radius"
/>
<solid
android:color=
"@color/blue"
/>
<solid
android:color=
"@color/blue
_mawu
"
/>
</shape>
</shape>
\ No newline at end of file
app/src/main/res/drawable/gra_border.xml
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"@dimen/all_
shape_
radius"
/>
<corners
android:radius=
"@dimen/all_radius"
/>
<solid
android:color=
"@color/gray"
/>
<solid
android:color=
"@color/gray
_huanggai
"
/>
</shape>
</shape>
\ No newline at end of file
app/src/main/res/drawable/selector_gradient_gray_button_background.xml
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@drawable/shape_
blue
_round_rectangle_strokeless"
android:state_pressed=
"true"
/>
<item
android:drawable=
"@drawable/shape_
red
_round_rectangle_strokeless"
android:state_pressed=
"true"
/>
<item
android:drawable=
"@drawable/shape_gray_round_rectangle_stroke"
android:state_enabled=
"false"
/>
<item
android:drawable=
"@drawable/shape_gray_round_rectangle_stroke"
android:state_enabled=
"false"
/>
<item
android:drawable=
"@drawable/shape_gradient_gray_round_rectangle_stroke"
/>
<item
android:drawable=
"@drawable/shape_gradient_gray_round_rectangle_stroke"
/>
...
...
app/src/main/res/drawable/selector_gradient_gray_button_background_noradius.xml
0 → 100644
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@drawable/shape_red_round_rectangle_strokeless_noradius"
android:state_pressed=
"true"
/>
<item
android:drawable=
"@drawable/shape_gray_round_rectangle_stroke_noradius"
android:state_enabled=
"false"
/>
<item
android:drawable=
"@drawable/shape_gradient_gray_round_rectangle_stroke_noradius"
/>
</selector>
\ No newline at end of file
app/src/main/res/drawable/selector_gradient_
blue
_button_background.xml
→
app/src/main/res/drawable/selector_gradient_
red
_button_background.xml
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@drawable/shape_
blue
_round_rectangle_strokeless"
android:state_pressed=
"true"
/>
<item
android:drawable=
"@drawable/shape_
red
_round_rectangle_strokeless"
android:state_pressed=
"true"
/>
<item
android:drawable=
"@drawable/shape_grey_round_rectangle_strokeless"
android:state_enabled=
"false"
/>
<item
android:drawable=
"@drawable/shape_grey_round_rectangle_strokeless"
android:state_enabled=
"false"
/>
<item
android:drawable=
"@drawable/shape_gradient_
blue
_round_rectangle"
/>
<item
android:drawable=
"@drawable/shape_gradient_
red
_round_rectangle"
/>
</selector>
</selector>
\ No newline at end of file
app/src/main/res/drawable/selector_gradient_red_button_background_noradius.xml
0 → 100644
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@drawable/shape_red_round_rectangle_strokeless_noradius"
android:state_pressed=
"true"
/>
<item
android:drawable=
"@drawable/shape_grey_round_rectangle_strokeless_noradius"
android:state_enabled=
"false"
/>
<item
android:drawable=
"@drawable/shape_gradient_red_round_rectangle_noradius"
/>
</selector>
\ No newline at end of file
app/src/main/res/drawable/shape_gradient_
blue_round_rectangle
.xml
→
app/src/main/res/drawable/shape_gradient_
gray_round_rectangle_stroke_noradius
.xml
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"@dimen/all_shape_radius"
/>
<stroke
<stroke
android:width=
"@dimen/all_line_width"
android:width=
"@dimen/all_
slight_
line_width"
android:color=
"@color/passive_stroke"
/>
android:color=
"@color/passive_stroke"
/>
<gradient
<gradient
android:angle=
"90"
android:angle=
"90"
android:endColor=
"@color/p
osit
ive_gradient_end"
android:endColor=
"@color/p
ass
ive_gradient_end"
android:startColor=
"@color/p
osit
ive_gradient_start"
/>
android:startColor=
"@color/p
ass
ive_gradient_start"
/>
</shape>
</shape>
\ No newline at end of file
app/src/main/res/drawable/shape_gradient_red_round_rectangle.xml
0 → 100644
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"@dimen/all_shape_radius"
/>
<stroke
android:width=
"@dimen/all_line_width"
android:color=
"@color/red_guanyu"
/>
<gradient
android:angle=
"90"
android:endColor=
"@color/red_guanyu"
android:startColor=
"@color/red_guanyu"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/shape_gradient_red_round_rectangle_noradius.xml
0 → 100644
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<stroke
android:width=
"@dimen/all_line_width"
android:color=
"@color/red_guanyu"
/>
<gradient
android:angle=
"90"
android:endColor=
"@color/red_guanyu"
android:startColor=
"@color/red_guanyu"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/shape_gray_round_rectangle_stroke.xml
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"@dimen/all_shape_radius"
/>
<corners
android:radius=
"@dimen/all_shape_radius"
/>
<stroke
<stroke
android:width=
"@dimen/edit_border"
android:width=
"@dimen/edit_border"
android:color=
"@color/gary"
/>
android:color=
"@color/gary"
/>
<solid
android:color=
"@color/lyt_main_bg"
/>
<solid
android:color=
"@color/lyt_main_bg"
/>
</shape>
</shape>
\ No newline at end of file
app/src/main/res/drawable/shape_gray_round_rectangle_stroke_noradius.xml
0 → 100644
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<stroke
android:width=
"@dimen/edit_border"
android:color=
"@color/gary"
/>
<solid
android:color=
"@color/lyt_main_bg"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/shape_grey_round_rectangle_strokeless.xml
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"@dimen/all_shape_radius"
/>
<corners
android:radius=
"@dimen/all_shape_radius"
/>
<solid
android:color=
"@color/gray"
/>
<solid
android:color=
"@color/gray"
/>
...
...
app/src/main/res/drawable/shape_
blue_round_rectangle_strokeles
s.xml
→
app/src/main/res/drawable/shape_
grey_round_rectangle_strokeless_noradiu
s.xml
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"@dimen/all_shape_radius"
/>
<solid
android:color=
"@color/gray"
/>
<solid
android:color=
"@color/pressed_solid"
/>
</shape>
</shape>
\ No newline at end of file
app/src/main/res/drawable/shape_red_round_rectangle_strokeless.xml
0 → 100644
View file @
35bc0154
<?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/drawable/shape_red_round_rectangle_strokeless_noradius.xml
0 → 100644
View file @
35bc0154
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"@color/red_guanyu"
/>
</shape>
\ No newline at end of file
app/src/main/res/layout/activity_error_dialog.xml
View file @
35bc0154
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@drawable/selector_gradient_
blue
_button_background"
android:background=
"@drawable/selector_gradient_
red
_button_background"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"@{ok}"
android:text=
"@{ok}"
android:textColor=
"@color/white"
/>
android:textColor=
"@color/white"
/>
...
...
app/src/main/res/layout/dialog_prompt.xml
View file @
35bc0154
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<Button
<Button
android:id=
"@+id/btn_custom"
android:id=
"@+id/btn_custom"
style=
"@style/button_positive"
style=
"@style/button_positive
_noradius
"
android:layout_width=
"@dimen/dialog_button_width"
android:layout_width=
"@dimen/dialog_button_width"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/all_margin"
android:layout_marginBottom=
"@dimen/all_margin"
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
<Button
<Button
android:id=
"@+id/btn_cancel"
android:id=
"@+id/btn_cancel"
style=
"@style/button_positive_bg_gray"
style=
"@style/button_positive_bg_gray
_noradius
"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
<Button
<Button
android:id=
"@+id/btn_ok"
android:id=
"@+id/btn_ok"
style=
"@style/button_positive"
style=
"@style/button_positive
_noradius
"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
...
...
app/src/main/res/layout/fragment_binding_counter.xml
View file @
35bc0154
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/fragment_choice_store.xml
View file @
35bc0154
This diff is collapsed.
Click to expand it.
app/src/main/res/layout/fragment_create_store.xml
View file @
35bc0154
...
@@ -9,17 +9,19 @@
...
@@ -9,17 +9,19 @@
</data>
</data>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/appBack"
android:background=
"@color/appBack"
>
android:orientation=
"vertical"
>
<include
layout=
"@layout/title"
></include>
<include
android:id=
"@+id/ic_title"
layout=
"@layout/title"
></include>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@+id/ic_title"
android:layout_marginTop=
"@dimen/all_padding"
android:layout_marginTop=
"@dimen/all_padding"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
...
@@ -42,6 +44,7 @@
...
@@ -42,6 +44,7 @@
android:id=
"@+id/tv_nickname"
android:id=
"@+id/tv_nickname"
android:layout_width=
"@dimen/et_width"
android:layout_width=
"@dimen/et_width"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"left"
android:ems=
"10"
android:ems=
"10"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:hint=
"@string/login_createstorefragment_et_nickname_hint"
android:hint=
"@string/login_createstorefragment_et_nickname_hint"
...
@@ -140,12 +143,12 @@
...
@@ -140,12 +143,12 @@
<TextView
<TextView
android:id=
"@+id/tv_storeaddress"
android:id=
"@+id/tv_storeaddress"
style=
"@style/editText"
style=
"@style/editText"
android:drawablePadding=
"@dimen/all_padding"
android:drawableRight=
"@mipmap/createstore_drop_down"
android:drawableRight=
"@mipmap/createstore_drop_down"
android:ems=
"10"
android:ems=
"10"
android:hint=
"@string/login_createstorefragment_tv_storeaddress_hint"
android:hint=
"@string/login_createstorefragment_tv_storeaddress_hint"
android:maxLength=
"11"
android:maxLength=
"11"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
/>
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
...
@@ -175,66 +178,37 @@
...
@@ -175,66 +178,37 @@
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/bar_margin"
android:gravity=
"center"
android:orientation=
"horizontal"
>
<View
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/all_line_width"
android:background=
"@color/red_guanyu"
></View>
</LinearLayout>
<RelativeLayout
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/bar_margin"
android:gravity=
"center"
android:orientation=
"horizontal"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<Button
android:id=
"@+id/btn_last"
android:layout_width=
"@dimen/create_store_btn_width"
android:layout_height=
"@dimen/create_store_btn_height"
android:layout_alignParentLeft=
"true"
android:background=
"@drawable/red_border"
android:onClick=
"@{onClickListener}"
android:text=
"@string/login_createstorefragment_btn_last"
android:textColor=
"@color/white"
android:textSize=
"@dimen/et_textsize"
/>
<Button
android:id=
"@+id/btn_next"
android:layout_width=
"@dimen/create_store_btn_width"
android:layout_height=
"@dimen/create_store_btn_height"
android:layout_alignParentRight=
"true"
android:background=
"@drawable/red_border"
android:onClick=
"@{onClickListener}"
android:text=
"@string/login_createstorefragment_btn_next"
android:textColor=
"@color/white"
android:textSize=
"@dimen/et_textsize"
/>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<RelativeLayout
<org.angmarch.views.NiceSpinner
android:layout_width=
"match_parent"
android:id=
"@+id/nice_spinner"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_alignParentBottom=
"true"
android:text=
"123"
/>
android:layout_marginBottom=
"@dimen/all_margin"
</LinearLayout>
android:padding=
"@dimen/all_padding"
>
<Button
android:id=
"@+id/btn_last"
style=
"@style/button_positive"
android:layout_width=
"@dimen/create_store_btn_width"
android:layout_height=
"@dimen/create_store_btn_height"
android:layout_alignParentLeft=
"true"
android:onClick=
"@{onClickListener}"
android:text=
"@string/login_createstorefragment_btn_last"
android:textColor=
"@color/white"
android:textSize=
"@dimen/et_textsize"
/>
<Button
android:id=
"@+id/btn_next"
style=
"@style/button_positive"
android:layout_width=
"@dimen/create_store_btn_width"
android:layout_height=
"@dimen/create_store_btn_height"
android:layout_alignParentRight=
"true"
android:onClick=
"@{onClickListener}"
android:text=
"@string/login_createstorefragment_btn_next"
android:textColor=
"@color/white"
android:textSize=
"@dimen/et_textsize"
/>
</RelativeLayout>
</RelativeLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/fragment_input_password.xml
View file @
35bc0154
...
@@ -14,68 +14,75 @@
...
@@ -14,68 +14,75 @@
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/appBack"
android:background=
"@color/appBack"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
'
android:orientation=
"vertical"
>
<include
android:id=
"@+id/ic_title"
layout=
"@layout/title"
/>
<ImageView
<LinearLayout
android:id=
"@+id/iv_logo"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/login_logo"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
android:gravity=
"center"
android:orientation=
"vertical"
>
<EditText
<ImageView
android:id=
"@+id/et_one_password"
android:id=
"@+id/iv_logo"
style=
"@style/editText"
android:layout_width=
"wrap_content"
android:background=
"@drawable/transparent_border"
android:layout_height=
"wrap_content"
android:digits=
"1234567890"
android:src=
"@mipmap/login_logo"
/>
android:ems=
"10"
android:hint=
"@string/login_smscodefragment_et_one_input_password_hint"
android:inputType=
"textPassword"
android:maxLength=
"11"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
</RelativeLayout>
<EditText
android:id=
"@+id/et_one_password"
style=
"@style/editText"
android:background=
"@drawable/transparent_border"
android:digits=
"1234567890"
android:ems=
"10"
android:hint=
"@string/login_smscodefragment_et_one_input_password_hint"
android:inputType=
"textPassword"
android:maxLength=
"11"
/>
<EditText
android:id=
"@+id/et_two_password"
style=
"@style/editText"
android:layout_marginTop=
"@dimen/et_margin_edittext"
android:digits=
"1234567890"
android:ems=
"10"
android:hint=
"@string/login_smscodefragment_et_two_input_password_hint"
android:inputType=
"textPassword"
android:maxLength=
"8"
/>
</RelativeLayout>
<Button
<EditText
android:id=
"@+id/btn_next"
android:id=
"@+id/et_two_password"
style=
"@style/button"
style=
"@style/editText"
android:layout_marginTop=
"@dimen/et_margin_logo"
android:layout_marginTop=
"@dimen/et_margin_edittext"
android:onClick=
"@{onClickListener}"
android:digits=
"1234567890"
android:text=
"@string/login_smscodefragment_btn_next"
android:ems=
"10"
/>
android:hint=
"@string/login_smscodefragment_et_two_input_password_hint"
android:inputType=
"textPassword"
android:maxLength=
"8"
/>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
<TextView
<Button
android:id=
"@+id/tv_existing_account"
android:id=
"@+id/btn_next"
android:layout_width=
"wrap_content"
style=
"@style/button"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_logo"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"@dimen/all_margin_left"
android:onClick=
"@{onClickListener}"
android:onClick=
"@{onClickListener}"
android:text=
"已有账号 >"
android:text=
"@string/login_smscodefragment_btn_next"
android:textColor=
"@color/white"
/>
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/et_margin_logo"
>
<TextView
android:id=
"@+id/tv_existing_account"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"@dimen/all_margin_left"
android:onClick=
"@{onClickListener}"
android:text=
"已有账号 >"
android:textColor=
"@color/white"
/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</layout>
</layout>
\ No newline at end of file
app/src/main/res/layout/fragment_sms_code.xml
View file @
35bc0154
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
android:background=
"@color/appBack"
android:background=
"@color/appBack"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<include
layout=
"@layout/title"
></include>
<include
android:id=
"@+id/ic_title"
layout=
"@layout/title"
></include>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
app/src/main/res/layout/title.xml
View file @
35bc0154
...
@@ -31,10 +31,9 @@
...
@@ -31,10 +31,9 @@
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"
android:padding=
"16dp"
android:text=
"标题"
android:text=
"标题"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"@dimen/
et_textsiz
e"
android:textSize=
"@dimen/
text_secondary_titl
e"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
...
app/src/main/res/values/dimens.xml
View file @
35bc0154
<resources>
<resources>
<!--ALL-->
<!--ALL-->
<dimen
name=
"all_shape_radius"
>
3dp
</dimen>
<dimen
name=
"all_shape_radius"
>
3dp
</dimen>
<dimen
name=
"all_radius"
>
100dp
</dimen>
<dimen
name=
"all_line_width"
>
0.5dp
</dimen>
<dimen
name=
"all_line_width"
>
0.5dp
</dimen>
<dimen
name=
"all_slight_line_width"
>
0.5dp
</dimen>
<dimen
name=
"all_slight_line_width"
>
0.5dp
</dimen>
<dimen
name=
"all_margin"
>
18dp
</dimen>
<dimen
name=
"all_margin"
>
18dp
</dimen>
...
@@ -41,7 +42,7 @@
...
@@ -41,7 +42,7 @@
<dimen
name=
"dialog_padding"
>
12sp
</dimen>
<dimen
name=
"dialog_padding"
>
12sp
</dimen>
<dimen
name=
"dialog_button_width"
>
190dp
</dimen>
<dimen
name=
"dialog_button_width"
>
190dp
</dimen>
<!--提示对话框-->
<!--提示对话框-->
<dimen
name=
"prompt_dialog_width"
>
45
0dp
</dimen>
<dimen
name=
"prompt_dialog_width"
>
30
0dp
</dimen>
<dimen
name=
"prompt_dialog_height"
>
250dp
</dimen>
<dimen
name=
"prompt_dialog_height"
>
250dp
</dimen>
<dimen
name=
"prompt_dialog_logo_size"
>
64dp
</dimen>
<dimen
name=
"prompt_dialog_logo_size"
>
64dp
</dimen>
<!--商品页面-->
<!--商品页面-->
...
@@ -96,19 +97,19 @@
...
@@ -96,19 +97,19 @@
<dimen
name=
"item_title_margin"
>
5dp
</dimen>
<dimen
name=
"item_title_margin"
>
5dp
</dimen>
<dimen
name=
"bar_margin"
>
15dp
</dimen>
<dimen
name=
"bar_margin"
>
15dp
</dimen>
<dimen
name=
"create_store_btn_width"
>
110dp
</dimen>
<dimen
name=
"create_store_btn_width"
>
110dp
</dimen>
<dimen
name=
"create_store_btn_height"
>
4
0
dp
</dimen>
<dimen
name=
"create_store_btn_height"
>
4
4
dp
</dimen>
<!--绑定款台界面-->
<!--绑定款台界面-->
<dimen
name=
"new_counter_btn_width"
>
120dp
</dimen>
<dimen
name=
"new_counter_btn_width"
>
120dp
</dimen>
<dimen
name=
"new_counter_btn_height"
>
30dp
</dimen>
<dimen
name=
"new_counter_btn_height"
>
30dp
</dimen>
<dimen
name=
"new_counter_btn_margin_left"
>
10dp
</dimen>
<dimen
name=
"new_counter_btn_margin_left"
>
10dp
</dimen>
<dimen
name=
"bingding_counter_btn_width"
>
110dp
</dimen>
<dimen
name=
"bingding_counter_btn_width"
>
110dp
</dimen>
<dimen
name=
"bingding_counter_btn_height"
>
40dp
</dimen>
<dimen
name=
"bingding_counter_btn_height"
>
40dp
</dimen>
<dimen
name=
"nicespinner_width"
>
43
0dp
</dimen>
<dimen
name=
"nicespinner_width"
>
28
0dp
</dimen>
<dimen
name=
"nicespinner_height"
>
40dp
</dimen>
<dimen
name=
"nicespinner_height"
>
40dp
</dimen>
<dimen
name=
"counter_bar_width"
>
350dp
</dimen>
<dimen
name=
"counter_bar_width"
>
350dp
</dimen>
<dimen
name=
"counter_input_height"
>
4
5
dp
</dimen>
<dimen
name=
"counter_input_height"
>
4
3
dp
</dimen>
<dimen
name=
"counter_input_select"
>
35dp
</dimen>
<dimen
name=
"counter_input_select"
>
35dp
</dimen>
<dimen
name=
"counter_tv_width"
>
59
0dp
</dimen>
<dimen
name=
"counter_tv_width"
>
40
0dp
</dimen>
<dimen
name=
"center_height"
>
380dp
</dimen>
<dimen
name=
"center_height"
>
380dp
</dimen>
<!-- 副屏 -->
<!-- 副屏 -->
...
...
app/src/main/res/values/styles.xml
View file @
35bc0154
...
@@ -240,13 +240,19 @@
...
@@ -240,13 +240,19 @@
</style>
</style>
<style
name=
"button_positive"
parent=
"android:ButtonBar"
>
<style
name=
"button_positive"
parent=
"android:ButtonBar"
>
<item
name=
"android:background"
>
@drawable/selector_gradient_blue_button_background
</item>
<item
name=
"android:background"
>
@drawable/selector_gradient_red_button_background
</item>
<item
name=
"android:textColor"
>
@color/white
</item>
<item
name=
"android:gravity"
>
center
</item>
<item
name=
"android:focusable"
>
false
</item>
<item
name=
"android:focusableInTouchMode"
>
false
</item>
</style>
<style
name=
"button_positive_noradius"
parent=
"android:ButtonBar"
>
<item
name=
"android:background"
>
@drawable/selector_gradient_red_button_background_noradius
</item>
<item
name=
"android:textColor"
>
@color/white
</item>
<item
name=
"android:textColor"
>
@color/white
</item>
<item
name=
"android:gravity"
>
center
</item>
<item
name=
"android:gravity"
>
center
</item>
<item
name=
"android:focusable"
>
false
</item>
<item
name=
"android:focusable"
>
false
</item>
<item
name=
"android:focusableInTouchMode"
>
false
</item>
<item
name=
"android:focusableInTouchMode"
>
false
</item>
</style>
</style>
<style
name=
"button_positive_bg_gray"
parent=
"android:ButtonBar"
>
<style
name=
"button_positive_bg_gray"
parent=
"android:ButtonBar"
>
<item
name=
"android:background"
>
@drawable/selector_gradient_gray_button_background
</item>
<item
name=
"android:background"
>
@drawable/selector_gradient_gray_button_background
</item>
<item
name=
"android:textColor"
>
@color/blue
</item>
<item
name=
"android:textColor"
>
@color/blue
</item>
...
@@ -254,7 +260,13 @@
...
@@ -254,7 +260,13 @@
<item
name=
"android:focusable"
>
false
</item>
<item
name=
"android:focusable"
>
false
</item>
<item
name=
"android:focusableInTouchMode"
>
false
</item>
<item
name=
"android:focusableInTouchMode"
>
false
</item>
</style>
</style>
<style
name=
"button_positive_bg_gray_noradius"
parent=
"android:ButtonBar"
>
<item
name=
"android:background"
>
@drawable/selector_gradient_gray_button_background_noradius
</item>
<item
name=
"android:textColor"
>
@color/blue
</item>
<item
name=
"android:gravity"
>
center
</item>
<item
name=
"android:focusable"
>
false
</item>
<item
name=
"android:focusableInTouchMode"
>
false
</item>
</style>
<style
name=
"xuline_margin"
>
<style
name=
"xuline_margin"
>
<item
name=
"android:layout_width"
>
match_parent
</item>
<item
name=
"android:layout_width"
>
match_parent
</item>
<item
name=
"android:layout_height"
>
1dp
</item>
<item
name=
"android:layout_height"
>
1dp
</item>
...
@@ -294,4 +306,14 @@
...
@@ -294,4 +306,14 @@
<item
name=
" android:textColor"
>
@color/white
</item>
<item
name=
" android:textColor"
>
@color/white
</item>
<item
name=
"android:textColorHint"
>
@color/hint
</item>
<item
name=
"android:textColorHint"
>
@color/hint
</item>
</style>
</style>
<style
name=
"textView_title"
>
<item
name=
"android:layout_height"
>
@dimen/et_height
</item>
<item
name=
"android:layout_width"
>
match_parent
</item>
<item
name=
"android:layout_marginLeft"
>
@dimen/all_margin_left
</item>
<item
name=
"android:textSize"
>
@dimen/text_three_title
</item>
<item
name=
"android:background"
>
@color/transparent
</item>
<item
name=
" android:textColor"
>
@color/gary
</item>
<item
name=
"android:gravity"
>
center|left
</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