Commit 34cca944 authored by 王海's avatar 王海

修改ui

parent 10703f05
......@@ -50,7 +50,7 @@ public class LoginActivity extends BaseActivity<LoginPresenter, ActivityLoginBin
// }
LogUtils.e("LoginActivity + initView");
loadRootFragment(R.id.fra, mPresenter.signInFragment);
loadRootFragment(R.id.fra, mPresenter.bindingCounterFragment);
mViewBinding.setText1(": 400 - 800 - 9406");
mViewBinding.setOnClickListener(v -> {
switch (v.getId()) {
......
......@@ -13,26 +13,14 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/appBack"
android:orientation="vertical"
android:padding="@dimen/all_margin">'
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/iv_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/all_margin"
android:src="@mipmap/create_store_logo"/>
</LinearLayout>
<include layout="@layout/title"></include>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:layout_marginTop="@dimen/all_padding"
android:orientation="vertical">
<LinearLayout
......@@ -47,6 +35,7 @@
android:padding="@dimen/et_padding"
android:text="@string/login_createstorefragment_tv_nickname"
android:textColor="@color/white"
android:textSize="@dimen/text_three_title"
android:textStyle="bold"/>
<TextView
......@@ -88,6 +77,7 @@
android:padding="@dimen/et_padding"
android:text="@string/login_createstorefragment_tv_storename"
android:textColor="@color/white"
android:textSize="@dimen/text_three_title"
android:textStyle="bold"/>
<com.xingdata.zzdpos.view.ContainsEmojiEditText
......@@ -136,29 +126,26 @@
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/item_title_margin"
android:gravity="center"
android:orientation="horizontal">
android:orientation="vertical">
<TextView
android:layout_width="@dimen/item_title_width"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/et_padding"
android:text="@string/login_createstorefragment_tv_storeaddress"
android:textColor="@color/white"/>
android:textColor="@color/white"
android:textSize="@dimen/text_three_title"
android:textStyle="bold"/>
<TextView
android:id="@+id/tv_storeaddress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/transparent_border"
style="@style/editText"
android:drawableRight="@mipmap/createstore_drop_down"
android:ems="10"
android:gravity="center_vertical"
android:hint="@string/login_createstorefragment_tv_storeaddress_hint"
android:maxLength="11"
android:onClick="@{onClickListener}"
android:padding="@dimen/et_padding"
android:textColorHint="@color/hint"
android:textSize="@dimen/et_textsize"/>
/>
</LinearLayout>
<LinearLayout
......@@ -166,29 +153,25 @@
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/item_title_margin"
android:gravity="center"
android:orientation="horizontal">
android:orientation="vertical">
<TextView
android:layout_width="@dimen/item_title_width"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/et_padding"
android:textColor="@color/white"/>
android:text="@string/login_createstorefragment_tv_storeaddressmessage"
android:textColor="@color/white"
android:textSize="@dimen/text_three_title"
android:textStyle="bold"/>
<com.xingdata.zzdpos.view.ContainsEmojiEditText
android:id="@+id/tv_storedetailedaddress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/transparent_border"
style="@style/editText"
android:ems="15"
android:gravity="center_vertical"
android:hint="@string/login_createstorefragment_et_storedetailedaddress_hint"
android:lines="1"
android:maxLength="30"
android:padding="@dimen/et_padding"
android:saveEnabled="false"
android:singleLine="true"
android:textColorHint="@color/hint"
android:textSize="@dimen/et_textsize"/>
android:singleLine="true"/>
</LinearLayout>
......@@ -199,31 +182,25 @@
android:gravity="center"
android:orientation="horizontal">
<TextView
android:layout_width="@dimen/item_title_width"
android:layout_height="wrap_content"
android:textColor="@color/white"/>
<View
android:layout_width="@dimen/et_width"
android:layout_width="match_parent"
android:layout_height="@dimen/all_line_width"
android:background="@color/blue"></View>
android:background="@color/red_guanyu"></View>
</LinearLayout>
<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">
<TextView
android:layout_width="@dimen/item_title_width"
android:layout_height="wrap_content"
android:textColor="@color/white"/>
<RelativeLayout
android:layout_width="@dimen/et_width"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
......@@ -231,7 +208,7 @@
android:layout_width="@dimen/create_store_btn_width"
android:layout_height="@dimen/create_store_btn_height"
android:layout_alignParentLeft="true"
android:background="@drawable/blue_border"
android:background="@drawable/red_border"
android:onClick="@{onClickListener}"
android:text="@string/login_createstorefragment_btn_last"
android:textColor="@color/white"
......@@ -242,13 +219,13 @@
android:layout_width="@dimen/create_store_btn_width"
android:layout_height="@dimen/create_store_btn_height"
android:layout_alignParentRight="true"
android:background="@drawable/blue_border"
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>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
......
......@@ -13,95 +13,102 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/appBack"
android:gravity="center"
android:orientation="vertical">'
android:orientation="vertical">
<ImageView
android:id="@+id/iv_logo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/login_logo"/>
<include layout="@layout/title"></include>
<RelativeLayout
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/et_height"
android:layout_marginTop="@dimen/et_margin_logo">
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
<ImageView
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_height="@dimen/et_height"
android:layout_marginTop="@dimen/et_margin_logo">
<EditText
android:id="@+id/et_phone"
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"/>
<LinearLayout
android:layout_width="@dimen/smscodefragment_drop_get_sms_width"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/all_margin_left"
android:orientation="horizontal">
<View
android:layout_width="@dimen/all_line_width"
android:layout_height="match_parent"
android:background="@color/blue"></View>
<TextView
android:id="@+id/tv_getsms"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:onClick="@{onClickListener}"
android:paddingBottom="@dimen/et_padding"
android:paddingTop="@dimen/et_padding"
android:text="@string/login_smscodefragment_tv_get_sms"
android:textColor="@color/blue"/>
</LinearLayout>
</RelativeLayout>
<EditText
android:id="@+id/et_phone"
android:id="@+id/et_sms_code"
style="@style/editText"
android:layout_marginTop="@dimen/all_margin"
android:digits="1234567890"
android:ems="10"
android:gravity="center_vertical"
android:hint="@string/login_et_phone_hint"
android:hint="@string/login_smscodefragment_et_input_sms_hint"
android:inputType="phone|number"
android:maxLength="11"/>
android:maxLength="11"
/>
<LinearLayout
android:layout_width="@dimen/smscodefragment_drop_get_sms_width"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/all_margin_left"
android:orientation="horizontal">
<Button
android:id="@+id/btn_next"
style="@style/button"
android:layout_marginTop="@dimen/et_margin_logo"
android:onClick="@{onClickListener}"
android:text="@string/login_smscodefragment_btn_next"
/>
<View
android:layout_width="@dimen/all_line_width"
android:layout_height="match_parent"
android:background="@color/blue"></View>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/et_margin_logo">
<TextView
android:id="@+id/tv_getsms"
android:layout_width="match_parent"
android:id="@+id/tv_existing_account"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/all_margin_left"
android:onClick="@{onClickListener}"
android:paddingBottom="@dimen/et_padding"
android:paddingTop="@dimen/et_padding"
android:text="@string/login_smscodefragment_tv_get_sms"
android:textColor="@color/blue"/>
</LinearLayout>
</RelativeLayout>
<EditText
android:id="@+id/et_sms_code"
style="@style/editText"
android:layout_marginTop="@dimen/all_margin"
android:digits="1234567890"
android:ems="10"
android:hint="@string/login_smscodefragment_et_input_sms_hint"
android:inputType="phone|number"
android:maxLength="11"
/>
<Button
android:id="@+id/btn_next"
style="@style/button"
android:layout_marginTop="@dimen/et_margin_logo"
android:onClick="@{onClickListener}"
android:text="@string/login_smscodefragment_btn_next"
/>
<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>
android:text="已有账号 >"
android:textColor="@color/white"/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</layout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<layout>
<data>
<variable
name="onClickListener"
type="com.xingdata.zzdpos.util.OnClickListener"/>
</data>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/appBack"
android:orientation="horizontal">
<ImageView
android:id="@+id/iv_back"
android:layout_width="@dimen/title_height"
android:layout_height="match_parent"
android:gravity="center"
android:onClick="@{onClickListener}"
android:padding="16dp"
android:src="@mipmap/back_white"/>
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:padding="16dp"
android:text="标题"
android:textColor="@color/white"
android:textSize="@dimen/et_textsize"
android:textStyle="bold"/>
</RelativeLayout>
</layout>
\ No newline at end of file
......@@ -30,6 +30,8 @@
<dimen name="text_primary_title">28sp</dimen>
<!--二级标题-->
<dimen name="text_secondary_title">20sp</dimen>
<!--三级标题-->
<dimen name="text_three_title">18sp</dimen>
<!--标题控件宽度-->
<dimen name="title_width">84dp</dimen>
<!--Dialog-->
......@@ -91,13 +93,13 @@
<dimen name="smscodefragment_drop_get_sms_width">84dp</dimen>
<!--创建门店界面-->
<dimen name="item_title_width">80dp</dimen>
<dimen name="item_title_margin">15dp</dimen>
<dimen name="item_title_margin">5dp</dimen>
<dimen name="bar_margin">15dp</dimen>
<dimen name="create_store_btn_width">110dp</dimen>
<dimen name="create_store_btn_height">40dp</dimen>
<!--绑定款台界面-->
<dimen name="new_counter_btn_width">150dp</dimen>
<dimen name="new_counter_btn_height">40dp</dimen>
<dimen name="new_counter_btn_width">120dp</dimen>
<dimen name="new_counter_btn_height">30dp</dimen>
<dimen name="new_counter_btn_margin_left">10dp</dimen>
<dimen name="bingding_counter_btn_width">110dp</dimen>
<dimen name="bingding_counter_btn_height">40dp</dimen>
......@@ -105,8 +107,9 @@
<dimen name="nicespinner_height">40dp</dimen>
<dimen name="counter_bar_width">350dp</dimen>
<dimen name="counter_input_height">45dp</dimen>
<dimen name="counter_input_select">35dp</dimen>
<dimen name="counter_tv_width">590dp</dimen>
<dimen name="center_height">230dp</dimen>
<dimen name="center_height">380dp</dimen>
<!-- 副屏 -->
......
......@@ -227,6 +227,7 @@
<string name="login_createstorefragment_tv_storename">门店名称</string>
<string name="login_createstorefragment_tv_storetype">门店类型</string>
<string name="login_createstorefragment_tv_storeaddress">门店地址</string>
<string name="login_createstorefragment_tv_storeaddressmessage">详细地址</string>
<string name="login_createstorefragment_tv_storetype_hint">请选择门店类别(连锁/超市)</string>
<string name="login_createstorefragment_tv_storeaddress_hint">请选择门店地址(省/市/县)</string>
<string name="login_createstorefragment_et_nickname_hint">请输入昵称</string>
......
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