修改包名
This commit is contained in:
15
app/src/main/res/drawable/device_home_icon_bg.xml
Normal file
15
app/src/main/res/drawable/device_home_icon_bg.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_activated="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#EFF1F4" />
|
||||
<corners android:radius="14dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#E9F8F0" />
|
||||
<corners android:radius="14dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
|
||||
<solid android:color="@color/device_home_orange" />
|
||||
<stroke android:width="1dp" android:color="@android:color/white" />
|
||||
</shape>
|
||||
4
app/src/main/res/drawable/device_home_stat_icon_bg.xml
Normal file
4
app/src/main/res/drawable/device_home_stat_icon_bg.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
|
||||
<solid android:color="#38FFFFFF" />
|
||||
</shape>
|
||||
13
app/src/main/res/drawable/device_home_status_dot.xml
Normal file
13
app/src/main/res/drawable/device_home_status_dot.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_activated="true">
|
||||
<shape android:shape="oval">
|
||||
<solid android:color="@color/device_home_offline" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape android:shape="oval">
|
||||
<solid android:color="@color/device_home_online" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="#F5F6F8" />
|
||||
<corners android:radius="999dp" />
|
||||
</shape>
|
||||
@@ -13,7 +13,7 @@
|
||||
android:layout_height="@dimen/dp_48"
|
||||
android:background="#000000">
|
||||
</RelativeLayout>
|
||||
<com.kyzy.bazi.custom.view.HackyViewPager
|
||||
<com.ckkj.griddle.custom.view.HackyViewPager
|
||||
android:id="@+id/ViewPager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
268
app/src/main/res/layout/device_index_fragment.xml
Normal file
268
app/src/main/res/layout/device_index_fragment.xml
Normal file
@@ -0,0 +1,268 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/device_home_background"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:orientation="vertical"
|
||||
tools:locale="zh">
|
||||
|
||||
<!-- Fragment content only. MainActivity owns system insets and the bottom TabBar. -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="38dp"
|
||||
android:layout_marginHorizontal="29dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_home_title"
|
||||
style="@style/DeviceHomeText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:fontFamily="sans-serif"
|
||||
android:gravity="center_vertical"
|
||||
android:letterSpacing="-0.018"
|
||||
android:maxLines="1"
|
||||
android:text="@string/device_home_title"
|
||||
android:textSize="25sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cv_notifications"
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="38dp"
|
||||
android:clickable="true"
|
||||
android:contentDescription="@string/device_home_notifications"
|
||||
android:focusable="true"
|
||||
android:foreground="?attr/selectableItemBackground"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="19dp"
|
||||
app:cardElevation="4dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_notifications"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_gravity="center"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<View
|
||||
android:id="@+id/view_notification_dot"
|
||||
android:layout_width="7dp"
|
||||
android:layout_height="7dp"
|
||||
android:layout_gravity="top|end"
|
||||
android:layout_marginTop="7dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:background="@drawable/device_home_notification_dot"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
</FrameLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cv_add_device"
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:clickable="true"
|
||||
android:contentDescription="@string/device_home_add_device"
|
||||
android:focusable="true"
|
||||
android:foreground="?attr/selectableItemBackground"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="19dp"
|
||||
app:cardElevation="4dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_add_device"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_gravity="center"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cv_home_statistics"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="133dp"
|
||||
android:layout_marginHorizontal="29dp"
|
||||
android:layout_marginTop="18dp"
|
||||
android:outlineAmbientShadowColor="@color/device_home_orange"
|
||||
android:outlineSpotShadowColor="@color/device_home_orange"
|
||||
app:cardBackgroundColor="@color/device_home_orange"
|
||||
app:cardCornerRadius="20dp"
|
||||
app:cardElevation="10dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_charcoal_saved"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="18dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_charcoal_saved"
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="38dp"
|
||||
android:background="@drawable/device_home_stat_icon_bg"
|
||||
android:contentDescription="@null"
|
||||
android:padding="9dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_charcoal_saved"
|
||||
style="@style/DeviceHomeStatValue"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="19dp"
|
||||
android:layout_marginTop="7dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/device_home_zero_charcoal"
|
||||
android:textSize="14sp"
|
||||
tools:text="128 kg" />
|
||||
|
||||
<TextView
|
||||
style="@style/DeviceHomeStatLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginTop="7dp"
|
||||
android:text="@string/device_home_charcoal_saved" />
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="91dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="#66FFFFFF" />
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_balance"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="14dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_balance"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="44dp"
|
||||
android:background="@drawable/device_home_stat_icon_bg"
|
||||
android:contentDescription="@null"
|
||||
android:padding="11dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_balance"
|
||||
style="@style/DeviceHomeStatValue"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="35dp"
|
||||
android:layout_marginTop="7dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/device_home_zero"
|
||||
android:textSize="26sp"
|
||||
tools:text="2,847" />
|
||||
|
||||
<TextView
|
||||
style="@style/DeviceHomeStatLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginTop="7dp"
|
||||
android:text="@string/device_home_balance" />
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="91dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="#66FFFFFF" />
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_saving_birr"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="18dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_saving_birr"
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="38dp"
|
||||
android:background="@drawable/device_home_stat_icon_bg"
|
||||
android:contentDescription="@null"
|
||||
android:padding="9dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_saving_birr"
|
||||
style="@style/DeviceHomeStatValue"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="19dp"
|
||||
android:layout_marginTop="7dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/device_home_zero"
|
||||
android:textSize="14sp"
|
||||
tools:text="9998" />
|
||||
|
||||
<TextView
|
||||
style="@style/DeviceHomeStatLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginTop="7dp"
|
||||
android:text="@string/device_home_saving_birr" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_my_devices"
|
||||
style="@style/DeviceHomeText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginHorizontal="29dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/device_home_my_devices"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<!-- Two columns. Item margins leave 12dp between cards and room for their shadows. -->
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_devices"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginHorizontal="23dp"
|
||||
android:layout_marginTop="6dp"
|
||||
android:layout_weight="1"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:paddingBottom="12dp"
|
||||
android:scrollbars="none"
|
||||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
||||
app:spanCount="2"
|
||||
tools:itemCount="4"
|
||||
tools:listitem="@layout/device_index_item" />
|
||||
</LinearLayout>
|
||||
132
app/src/main/res/layout/device_index_item.xml
Normal file
132
app/src/main/res/layout/device_index_item.xml
Normal file
@@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:paddingHorizontal="6dp"
|
||||
android:paddingTop="6dp"
|
||||
android:paddingBottom="6dp"
|
||||
tools:layout_width="174dp"
|
||||
tools:locale="zh">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cv_device"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="182dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:foreground="?attr/selectableItemBackground"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="2dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="12dp">
|
||||
|
||||
<!-- Set activated=true for the offline icon background and status dot. -->
|
||||
<ImageView
|
||||
android:id="@+id/iv_device"
|
||||
android:layout_width="54dp"
|
||||
android:layout_height="54dp"
|
||||
android:background="@drawable/device_home_icon_bg"
|
||||
android:contentDescription="@null"
|
||||
android:padding="14dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<View
|
||||
android:id="@+id/view_device_status"
|
||||
android:layout_width="8dp"
|
||||
android:layout_height="8dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:background="@drawable/device_home_status_dot"
|
||||
android:contentDescription="@string/device_home_online" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_device_name"
|
||||
style="@style/DeviceHomeText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="33dp"
|
||||
android:layout_below="@id/iv_device"
|
||||
android:layout_marginTop="10dp"
|
||||
android:ellipsize="end"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:gravity="top"
|
||||
android:maxLines="2"
|
||||
android:textSize="12.5sp"
|
||||
tools:text="@string/device_home_sample_name" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_device_online"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/tv_device_name"
|
||||
android:layout_marginTop="5dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="14dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/DeviceHomeDetail"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/device_home_current_power" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_device_power"
|
||||
style="@style/DeviceHomeDetail"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/device_home_value"
|
||||
tools:text="1200w" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
style="@style/DeviceHomeDetail"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/device_home_current_temperature" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_device_temperature"
|
||||
style="@style/DeviceHomeDetail"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginTop="6dp"
|
||||
android:gravity="center_vertical"
|
||||
android:textColor="@color/device_home_value"
|
||||
tools:text="180℃" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_device_offline"
|
||||
style="@style/DeviceHomeDetail"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="14dp"
|
||||
android:layout_below="@id/tv_device_name"
|
||||
android:layout_marginTop="5dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/device_home_offline"
|
||||
android:textColor="@color/device_home_offline_text"
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</FrameLayout>
|
||||
@@ -76,7 +76,7 @@
|
||||
android:paddingEnd="20dp"
|
||||
android:paddingBottom="20dp">
|
||||
|
||||
<com.kyzy.bazi.utils.ui.PickerView
|
||||
<com.ckkj.griddle.utils.ui.PickerView
|
||||
android:id="@+id/dpv_year"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_160"
|
||||
@@ -92,7 +92,7 @@
|
||||
android:textSize="@dimen/dp_16"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<com.kyzy.bazi.utils.ui.PickerView
|
||||
<com.ckkj.griddle.utils.ui.PickerView
|
||||
android:id="@+id/dpv_month"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_160"
|
||||
@@ -110,7 +110,7 @@
|
||||
android:textSize="@dimen/sp_16"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<com.kyzy.bazi.utils.ui.PickerView
|
||||
<com.ckkj.griddle.utils.ui.PickerView
|
||||
android:id="@+id/dpv_day"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_160"
|
||||
@@ -128,7 +128,7 @@
|
||||
android:textSize="@dimen/sp_16"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<com.kyzy.bazi.utils.ui.PickerView
|
||||
<com.ckkj.griddle.utils.ui.PickerView
|
||||
android:id="@+id/dpv_hour"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_160"
|
||||
@@ -146,7 +146,7 @@
|
||||
android:textSize="@dimen/sp_16"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.kyzy.bazi.utils.ui.PickerView
|
||||
<com.ckkj.griddle.utils.ui.PickerView
|
||||
android:id="@+id/dpv_minute"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_160"
|
||||
|
||||
@@ -1,214 +1,337 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white"
|
||||
android:background="@android:color/white"
|
||||
android:fillViewport="true"
|
||||
android:overScrollMode="never">
|
||||
android:fitsSystemWindows="true"
|
||||
android:overScrollMode="never"
|
||||
android:scrollbars="none"
|
||||
tools:locale="zh">
|
||||
|
||||
<!-- 393 x 835 design. Android supplies the system status and navigation bars. -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="640dp"
|
||||
android:focusableInTouchMode="true"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="@dimen/dp_30">
|
||||
android:paddingTop="76dp"
|
||||
android:paddingBottom="32dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_110"
|
||||
android:layout_height="@dimen/dp_110"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="@dimen/dp_60"
|
||||
android:contentDescription="@string/app_name"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<LinearLayout
|
||||
<TextView
|
||||
android:id="@+id/tv_login_title"
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_48"
|
||||
android:layout_marginHorizontal="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_50"
|
||||
android:background="@drawable/shape_login_input_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="@dimen/dp_15">
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginHorizontal="18dp"
|
||||
android:fontFamily="sans-serif-black"
|
||||
android:gravity="center"
|
||||
android:letterSpacing="-0.016666667"
|
||||
android:text="@string/login_design_welcome"
|
||||
android:textColor="#1F2329"
|
||||
android:textSize="24sp" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_18"
|
||||
android:layout_height="@dimen/dp_18"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_phone" />
|
||||
<TextView
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/login_design_points"
|
||||
android:textColor="#9AA0A6"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_phone_input"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@null"
|
||||
android:hint="请输入手机号"
|
||||
android:inputType="phone"
|
||||
android:maxLength="20"
|
||||
android:paddingLeft="@dimen/dp_12"
|
||||
android:textSize="15sp" />
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
style="@style/LoginDesignLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="22dp"
|
||||
android:labelFor="@id/ed_phone_input"
|
||||
android:text="@string/login_design_phone" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_phone_input"
|
||||
style="@style/LoginDesignInput"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:autofillHints="phone"
|
||||
android:background="@drawable/login_design_input_bg"
|
||||
android:hint="@string/login_design_phone_hint"
|
||||
android:imeOptions="actionNext"
|
||||
android:inputType="phone"
|
||||
android:maxLength="20"
|
||||
android:paddingStart="15dp"
|
||||
android:paddingEnd="15dp" />
|
||||
|
||||
<!-- Keep the label inside this container for the existing Java login-mode switch. -->
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_code_input"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_48"
|
||||
android:layout_marginHorizontal="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:background="@drawable/shape_login_input_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="@dimen/dp_15">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_18"
|
||||
android:layout_height="@dimen/dp_18"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_phone_code" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_code_input"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:background="@null"
|
||||
android:hint="请输入验证码"
|
||||
android:inputType="number"
|
||||
android:maxLength="6"
|
||||
android:paddingLeft="@dimen/dp_12"
|
||||
android:textSize="15sp" />
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_get_code"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1.5"
|
||||
android:gravity="right|center_vertical"
|
||||
android:text="获取验证码"
|
||||
android:textColor="@color/color_zhu"
|
||||
android:textSize="16sp" />
|
||||
style="@style/LoginDesignLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:labelFor="@id/ed_code_input"
|
||||
android:text="@string/login_design_code" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/login_design_input_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="15dp"
|
||||
android:paddingEnd="11dp">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_code_input"
|
||||
style="@style/LoginDesignInput"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:hint="@string/login_design_code_hint"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="number"
|
||||
android:maxLength="6" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_get_code"
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="95dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:background="@drawable/login_design_code_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:gravity="center"
|
||||
android:letterSpacing="-0.048181816"
|
||||
android:text="@string/login_design_get_code"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="11sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_password_input"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_48"
|
||||
android:layout_marginHorizontal="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:background="@drawable/shape_login_input_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="@dimen/dp_15"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_18"
|
||||
android:layout_height="@dimen/dp_18"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_phone_code" />
|
||||
<TextView
|
||||
style="@style/LoginDesignLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="34dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:labelFor="@id/ed_password_input"
|
||||
android:text="@string/login_design_password" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_password_input"
|
||||
style="@style/LoginDesignInput"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@null"
|
||||
android:hint="请输入密码"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:autofillHints="password"
|
||||
android:background="@drawable/login_design_input_bg"
|
||||
android:hint="@string/login_design_password_hint"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="textPassword"
|
||||
android:maxLength="20"
|
||||
android:paddingLeft="@dimen/dp_12"
|
||||
android:textSize="15sp" />
|
||||
android:paddingStart="15dp"
|
||||
android:paddingEnd="15dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_login_confirm"
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="18dp"
|
||||
android:background="@drawable/login_design_button_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:gravity="center"
|
||||
android:text="@string/login_design_log_in"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/realtive_read_finish"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_25"
|
||||
android:background="@drawable/shape_login_btn_bg"
|
||||
android:gravity="center"
|
||||
android:paddingVertical="@dimen/dp_15"
|
||||
android:text="登录"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
android:layout_marginStart="25dp"
|
||||
android:layout_marginTop="13dp"
|
||||
android:layout_marginEnd="25dp"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="18dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- Placeholder artwork; retain RadioButton for the existing checked-state binding. -->
|
||||
<RadioButton
|
||||
android:id="@+id/checkbox_read"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:background="@mipmap/ic_launcher"
|
||||
android:button="@null"
|
||||
android:checked="false"
|
||||
android:contentDescription="@string/login_design_agreement_description"
|
||||
android:minWidth="0dp"
|
||||
android:minHeight="0dp"
|
||||
android:padding="0dp" />
|
||||
|
||||
<!-- LoginActivity binds links to the localized agreement annotations. -->
|
||||
<TextView
|
||||
android:id="@+id/tv_agreement_full"
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="7dp"
|
||||
android:layout_weight="1"
|
||||
android:autoLink="none"
|
||||
android:lineSpacingExtra="2dp"
|
||||
android:text="@string/login_design_agreement"
|
||||
android:textColor="#6B7280"
|
||||
android:textSize="10sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="17dp"
|
||||
android:layout_marginStart="34dp"
|
||||
android:layout_marginTop="36dp"
|
||||
android:layout_marginEnd="21dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1"
|
||||
android:background="#EDEFF2" />
|
||||
|
||||
<TextView
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/login_design_other_methods"
|
||||
android:textColor="#6B7280"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1"
|
||||
android:background="#EDEFF2" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_email_login"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="15dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_email_login"
|
||||
android:layout_width="52dp"
|
||||
android:layout_height="52dp"
|
||||
android:background="@drawable/login_design_email_bg"
|
||||
android:contentDescription="@null"
|
||||
android:padding="15dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_email_login"
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="17dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/login_design_email"
|
||||
android:textColor="#9AA0A6"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_16"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="19dp"
|
||||
android:gravity="center"
|
||||
android:minHeight="16dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_login_mode_switch"
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingVertical="@dimen/dp_8"
|
||||
android:text="密码登录"
|
||||
android:textColor="@color/color_zhu"
|
||||
android:textSize="14sp" />
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1"/>
|
||||
android:text="@string/login_design_no_account"
|
||||
android:textColor="#9AA0A6"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_go_register"
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingVertical="@dimen/dp_8"
|
||||
android:text="注册账号"
|
||||
android:textColor="@color/color_zhu"
|
||||
android:textSize="14sp" />
|
||||
android:layout_marginStart="4dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:text="@string/login_design_sign_up"
|
||||
android:textColor="#FF6900"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Existing Java references retained; these controls are absent from this design. -->
|
||||
<TextView
|
||||
android:id="@+id/tv_login_mode_switch"
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:text="@string/login_design_password_login"
|
||||
android:textColor="#FF6900"
|
||||
android:textSize="12sp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="133" />
|
||||
android:text="@string/login_design_test_account_133"
|
||||
android:visibility="gone" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="151" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/realtive_read_finish"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginHorizontal="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/checkbox_read"
|
||||
android:layout_width="@dimen/dp_14"
|
||||
android:layout_height="@dimen/dp_14"
|
||||
android:background="@drawable/select_radio"
|
||||
android:button="@null"
|
||||
android:clickable="false"
|
||||
android:visibility="visible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_agreement_full"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_12"
|
||||
android:layout_marginRight="@dimen/dp_12"
|
||||
android:autoLink="none"
|
||||
android:lineSpacingExtra="4dp"
|
||||
android:textColor="@color/color_gray_tab"
|
||||
android:textSize="11sp" />
|
||||
</LinearLayout>
|
||||
android:text="@string/login_design_test_account_151"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
@@ -1,19 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical">
|
||||
android:background="@android:color/white"
|
||||
android:orientation="vertical"
|
||||
tools:locale="zh">
|
||||
|
||||
<!-- ImmersionBar supplies the native status-bar height. -->
|
||||
<View
|
||||
android:id="@+id/statusBarView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:background="@color/white" />
|
||||
android:background="@android:color/white"/>
|
||||
|
||||
<!-- Preserve the existing title binding; the design uses the centered heading below. -->
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_48"
|
||||
android:background="@color/white">
|
||||
android:layout_height="48dp"
|
||||
android:visibility="gone">
|
||||
|
||||
<include
|
||||
android:id="@+id/include_title"
|
||||
@@ -22,218 +28,308 @@
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:fillViewport="true"
|
||||
android:overScrollMode="never">
|
||||
android:overScrollMode="never"
|
||||
android:scrollbars="none">
|
||||
|
||||
<!-- 393 x 835 design; use natural scrolling on smaller screens and with the keyboard. -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:focusableInTouchMode="true"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="@dimen/dp_30">
|
||||
android:paddingTop="48dp"
|
||||
android:paddingBottom="20dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:text="创建账号"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold" />
|
||||
android:id="@+id/tv_register_title"
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:fontFamily="sans-serif-black"
|
||||
android:gravity="center"
|
||||
android:letterSpacing="-0.016666667"
|
||||
android:text="@string/register_design_title"
|
||||
android:textColor="#1F2329"
|
||||
android:textSize="24sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_8"
|
||||
android:text="使用手机号完成注册"
|
||||
android:textColor="@color/color_gray_tab"
|
||||
android:textSize="13sp" />
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/register_design_points"
|
||||
android:textColor="#9AA0A6"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<TextView
|
||||
style="@style/LoginDesignLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="22dp"
|
||||
android:labelFor="@id/ed_phone_input"
|
||||
android:text="@string/login_design_phone" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_phone_input"
|
||||
style="@style/LoginDesignInput"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/login_design_input_bg"
|
||||
android:hint="@string/login_design_phone_hint"
|
||||
android:imeOptions="actionNext"
|
||||
android:inputType="phone"
|
||||
android:maxLength="20"
|
||||
android:paddingStart="15dp"
|
||||
android:paddingEnd="15dp"
|
||||
android:autofillHints="phone" />
|
||||
|
||||
<TextView
|
||||
style="@style/LoginDesignLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:labelFor="@id/ed_code_input"
|
||||
android:text="@string/login_design_code" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_48"
|
||||
android:layout_marginHorizontal="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:background="@drawable/shape_login_input_bg"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/login_design_input_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="@dimen/dp_15">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_18"
|
||||
android:layout_height="@dimen/dp_18"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_phone" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_phone_input"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@null"
|
||||
android:hint="请输入手机号"
|
||||
android:inputType="phone"
|
||||
android:maxLength="20"
|
||||
android:paddingLeft="@dimen/dp_12"
|
||||
android:textSize="15sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_48"
|
||||
android:layout_marginHorizontal="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:background="@drawable/shape_login_input_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="@dimen/dp_15">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_18"
|
||||
android:layout_height="@dimen/dp_18"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_phone_code" />
|
||||
android:paddingStart="15dp"
|
||||
android:paddingEnd="11dp">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_code_input"
|
||||
style="@style/LoginDesignInput"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="2"
|
||||
android:background="@null"
|
||||
android:hint="请输入验证码"
|
||||
android:layout_weight="1"
|
||||
android:hint="@string/login_design_code_hint"
|
||||
android:imeOptions="actionNext"
|
||||
android:inputType="number"
|
||||
android:maxLength="6"
|
||||
android:paddingLeft="@dimen/dp_12"
|
||||
android:textSize="15sp" />
|
||||
android:maxLength="6" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_get_code"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1.5"
|
||||
android:gravity="right|center_vertical"
|
||||
android:text="获取验证码"
|
||||
android:textColor="@color/color_zhu"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_48"
|
||||
android:layout_marginHorizontal="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:background="@drawable/shape_login_input_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="@dimen/dp_15">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_password_input"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@null"
|
||||
android:hint="设置密码"
|
||||
android:inputType="textPassword"
|
||||
android:maxLength="20"
|
||||
android:paddingLeft="@dimen/dp_4"
|
||||
android:textSize="15sp" />
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="95dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:background="@drawable/login_design_code_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:gravity="center"
|
||||
android:letterSpacing="-0.048181816"
|
||||
android:text="@string/login_design_get_code"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="11sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
style="@style/LoginDesignLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_6"
|
||||
android:text="8-20 位,需同时包含大小写字母和数字"
|
||||
android:textColor="@color/color_gray_tab"
|
||||
android:textSize="12sp" />
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:labelFor="@id/ed_password_input"
|
||||
android:text="@string/register_design_set_password" />
|
||||
|
||||
<LinearLayout
|
||||
<EditText
|
||||
android:id="@+id/ed_password_input"
|
||||
style="@style/LoginDesignInput"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_48"
|
||||
android:layout_marginHorizontal="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:background="@drawable/shape_login_input_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="@dimen/dp_15">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_confirm_password_input"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@null"
|
||||
android:hint="请再次输入密码"
|
||||
android:inputType="textPassword"
|
||||
android:maxLength="20"
|
||||
android:paddingLeft="@dimen/dp_4"
|
||||
android:textSize="15sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_48"
|
||||
android:layout_marginHorizontal="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:background="@drawable/shape_login_input_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="@dimen/dp_15">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_invite_code_input"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@null"
|
||||
android:hint="邀请码(选填)"
|
||||
android:inputType="textVisiblePassword"
|
||||
android:maxLength="32"
|
||||
android:paddingLeft="@dimen/dp_4"
|
||||
android:textSize="15sp" />
|
||||
</LinearLayout>
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/login_design_input_bg"
|
||||
android:hint="@string/register_design_password_hint"
|
||||
android:imeOptions="actionNext"
|
||||
android:inputType="textPassword"
|
||||
android:maxLength="20"
|
||||
android:paddingStart="5dp"
|
||||
android:paddingEnd="5dp"
|
||||
android:autofillHints="newPassword"
|
||||
android:textColorHint="#1F2329" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_register_confirm"
|
||||
style="@style/LoginDesignLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_25"
|
||||
android:background="@drawable/shape_login_btn_bg"
|
||||
android:gravity="center"
|
||||
android:paddingVertical="@dimen/dp_15"
|
||||
android:text="注册"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:labelFor="@id/ed_confirm_password_input"
|
||||
android:text="@string/register_design_confirm_password" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_confirm_password_input"
|
||||
style="@style/LoginDesignInput"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/login_design_input_bg"
|
||||
android:hint="@string/register_design_confirm_password_hint"
|
||||
android:imeOptions="actionNext"
|
||||
android:inputType="textPassword"
|
||||
android:maxLength="20"
|
||||
android:paddingStart="5dp"
|
||||
android:paddingEnd="5dp"
|
||||
android:autofillHints="newPassword"
|
||||
android:textColorHint="#1F2329" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/realtive_read_finish"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginHorizontal="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_25"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginStart="26dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/LoginDesignLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:labelFor="@id/ed_invite_code_input"
|
||||
android:text="@string/register_design_invitation" />
|
||||
|
||||
<TextView
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="55dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:background="@drawable/register_design_optional_bg"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:gravity="center"
|
||||
android:text="@string/register_design_optional"
|
||||
android:textColor="#9AA0A6"
|
||||
android:textSize="10sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_invite_code_help"
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="15dp"
|
||||
android:layout_marginStart="26dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/register_design_invitation_help"
|
||||
android:textColor="#9AA0A6"
|
||||
android:textSize="11sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_invite_code_input"
|
||||
style="@style/LoginDesignInput"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="@drawable/login_design_input_bg"
|
||||
android:contentDescription="@string/register_design_invitation_help"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="textVisiblePassword"
|
||||
android:maxLength="32"
|
||||
android:paddingStart="15dp"
|
||||
android:paddingEnd="15dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_register_confirm"
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="18dp"
|
||||
android:background="@drawable/login_design_button_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:gravity="center"
|
||||
android:text="@string/register_design_submit"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/realtive_read_finish"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="25dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="18dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- Temporary artwork; retain the checked-state binding and require explicit consent. -->
|
||||
<RadioButton
|
||||
android:id="@+id/checkbox_read"
|
||||
android:layout_width="@dimen/dp_14"
|
||||
android:layout_height="@dimen/dp_14"
|
||||
android:background="@drawable/select_radio"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:background="@mipmap/ic_launcher"
|
||||
android:button="@null"
|
||||
android:clickable="false" />
|
||||
android:checked="false"
|
||||
android:contentDescription="@string/login_design_agreement_description"
|
||||
android:minWidth="0dp"
|
||||
android:minHeight="0dp"
|
||||
android:padding="0dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_agreement_full"
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="7dp"
|
||||
android:layout_weight="1"
|
||||
android:autoLink="none"
|
||||
android:lineSpacingExtra="2dp"
|
||||
android:text="@string/login_design_agreement"
|
||||
android:textColor="#6B7280"
|
||||
android:textSize="10sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="31dp"
|
||||
android:gravity="center"
|
||||
android:minHeight="16dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_12"
|
||||
android:autoLink="none"
|
||||
android:lineSpacingExtra="4dp"
|
||||
android:textColor="@color/color_gray_tab"
|
||||
android:textSize="11sp" />
|
||||
android:text="@string/register_design_has_account"
|
||||
android:textColor="#9AA0A6"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_go_login"
|
||||
style="@style/LoginDesignText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:text="@string/login_design_log_in"
|
||||
android:textColor="#FF6900"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- English translations for login_layout only. -->
|
||||
<!-- English translations for login and registration. -->
|
||||
<string name="login_design_welcome">Welcome back</string>
|
||||
<string name="login_design_points">Get 100 points on registration</string>
|
||||
<string name="login_design_phone">Phone Number</string>
|
||||
@@ -21,4 +21,28 @@
|
||||
<string name="login_design_sign_up">Sign up now</string>
|
||||
<string name="login_design_resend_countdown">Resend in %1$d s</string>
|
||||
<string name="login_design_resend">Resend code</string>
|
||||
<string name="register_design_title">Create account</string>
|
||||
<string name="register_design_points">100 Points Bonus</string>
|
||||
<string name="register_design_set_password">Set a password</string>
|
||||
<string name="register_design_password_hint">Enter a new password</string>
|
||||
<string name="register_design_confirm_password">Confirm password</string>
|
||||
<string name="register_design_confirm_password_hint">Confirm your new password</string>
|
||||
<string name="register_design_invitation">Invitation Code</string>
|
||||
<string name="register_design_optional">Optional</string>
|
||||
<string name="register_design_invitation_help">Enter invitation code, skip if none</string>
|
||||
<string name="register_design_submit">Sign up</string>
|
||||
<string name="register_design_has_account">Already have an account?</string>
|
||||
<!-- Device home. Values are supplied by the device/account data. -->
|
||||
<string name="device_home_title">Chaselight\'s Home</string>
|
||||
<string name="device_home_notifications">Notifications</string>
|
||||
<string name="device_home_add_device">Add device</string>
|
||||
<string name="device_home_charcoal_saved">Charcoal Saved</string>
|
||||
<string name="device_home_balance">Balance</string>
|
||||
<string name="device_home_saving_birr">Saving Birr</string>
|
||||
<string name="device_home_my_devices">My Devices</string>
|
||||
<string name="device_home_current_power">Current Power:</string>
|
||||
<string name="device_home_current_temperature">Current Temperature:</string>
|
||||
<string name="device_home_online">Online</string>
|
||||
<string name="device_home_offline">Offline</string>
|
||||
<string name="device_home_sample_name">Kitchen Electric Pancake Maker</string>
|
||||
</resources>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
<!--视频准备页面,背景半透明颜色-->
|
||||
<color name="color_1d76fe">#1D76FE</color>
|
||||
<color name="color_1a72ff">#1A72FF</color>
|
||||
<color name="color_zhu">#2A5CAA</color>
|
||||
<color name="color_zhu">#FF6900</color>
|
||||
<color name="color_c8c8c8">#C8C8C8</color>
|
||||
<color name="color_F6F6F6">#F6F6F6</color>
|
||||
<color name="color_2E2E2E">#2E2E2E</color>
|
||||
|
||||
11
app/src/main/res/values/device_home_colors.xml
Normal file
11
app/src/main/res/values/device_home_colors.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="device_home_background">#F8F8F8</color>
|
||||
<color name="device_home_text">#1A1F29</color>
|
||||
<color name="device_home_muted">#98A2B3</color>
|
||||
<color name="device_home_value">#5A6472</color>
|
||||
<color name="device_home_orange">#FF6900</color>
|
||||
<color name="device_home_online">#34C759</color>
|
||||
<color name="device_home_offline">#C9CED6</color>
|
||||
<color name="device_home_offline_text">#B4BAC4</color>
|
||||
</resources>
|
||||
@@ -252,4 +252,57 @@
|
||||
书法艺术体现了中华文化的深厚底蕴,学习书法有助于增强文化自信和民族认同感。
|
||||
</string>
|
||||
|
||||
</resources>
|
||||
<!-- 登录页:默认使用中文,英文翻译见 values-en/strings.xml。 -->
|
||||
<string name="login_design_welcome">欢迎回来</string>
|
||||
<string name="login_design_points">注册即送100积分</string>
|
||||
<string name="login_design_phone">手机号</string>
|
||||
<string name="login_design_phone_hint">请输入手机号</string>
|
||||
<string name="login_design_code">验证码</string>
|
||||
<string name="login_design_code_hint">请输入验证码</string>
|
||||
<string name="login_design_get_code">获取验证码</string>
|
||||
<string name="login_design_password">密码</string>
|
||||
<string name="login_design_password_hint">请输入密码</string>
|
||||
<string name="login_design_password_login">密码登录</string>
|
||||
<string name="login_design_sms_login">验证码登录</string>
|
||||
<string name="login_design_log_in">登录</string>
|
||||
<string name="login_design_agreement_description">同意用户协议和隐私政策</string>
|
||||
<string name="login_design_agreement">我已阅读并同意<annotation key="agreement" value="user"><font color="#FF6900">《用户协议》</font></annotation>和<annotation key="agreement" value="privacy"><font color="#FF6900">《隐私政策》</font></annotation></string>
|
||||
<string name="login_design_other_methods">其他登录方式</string>
|
||||
<string name="login_design_email">邮箱登录</string>
|
||||
<string name="login_design_no_account">还没有账号?</string>
|
||||
<string name="login_design_sign_up">立即注册</string>
|
||||
<string name="login_design_resend_countdown">%1$d秒后重发</string>
|
||||
<string name="login_design_resend">重新发送</string>
|
||||
<string name="login_design_test_account_133" translatable="false">133</string>
|
||||
<string name="login_design_test_account_151" translatable="false">151</string>
|
||||
|
||||
<!-- 注册页:共用的手机号、验证码、协议等文案复用 login_design_*。 -->
|
||||
<string name="register_design_title">创建账号</string>
|
||||
<string name="register_design_points">注册赠送100积分</string>
|
||||
<string name="register_design_set_password">设置密码</string>
|
||||
<string name="register_design_password_hint">请输入新密码</string>
|
||||
<string name="register_design_confirm_password">确认密码</string>
|
||||
<string name="register_design_confirm_password_hint">请再次输入新密码</string>
|
||||
<string name="register_design_invitation">邀请码</string>
|
||||
<string name="register_design_optional">选填</string>
|
||||
<string name="register_design_invitation_help">请输入邀请码,没有可跳过</string>
|
||||
<string name="register_design_submit">注册</string>
|
||||
<string name="register_design_has_account">已有账号?</string>
|
||||
|
||||
<!-- 设备首页:统计值和设备数据由后续业务代码绑定。 -->
|
||||
<string name="device_home_title">我的家</string>
|
||||
<string name="device_home_notifications">消息通知</string>
|
||||
<string name="device_home_add_device">添加设备</string>
|
||||
<string name="device_home_charcoal_saved">节省木炭</string>
|
||||
<string name="device_home_balance">余额</string>
|
||||
<string name="device_home_saving_birr">节省金额(比尔)</string>
|
||||
<string name="device_home_my_devices">我的设备</string>
|
||||
<string name="device_home_current_power">当前功率:</string>
|
||||
<string name="device_home_current_temperature">当前温度:</string>
|
||||
<string name="device_home_online">在线</string>
|
||||
<string name="device_home_offline">离线</string>
|
||||
<string name="device_home_sample_name">厨房电饼铛</string>
|
||||
<string name="device_home_zero" translatable="false">0</string>
|
||||
<string name="device_home_zero_charcoal" translatable="false">0 kg</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -137,4 +137,53 @@
|
||||
<item name="android:textSize">10sp</item>
|
||||
</style>
|
||||
|
||||
<!-- Android font fallback for the design's Segoe UI and PingFang fonts. -->
|
||||
<style name="LoginDesignText">
|
||||
<item name="android:fontFamily">sans-serif</item>
|
||||
<item name="android:includeFontPadding">false</item>
|
||||
</style>
|
||||
|
||||
<style name="LoginDesignLabel" parent="LoginDesignText">
|
||||
<item name="android:gravity">center_vertical</item>
|
||||
<item name="android:textColor">#252529</item>
|
||||
<item name="android:textSize">15sp</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
|
||||
<style name="LoginDesignInput" parent="LoginDesignText">
|
||||
<item name="android:background">@null</item>
|
||||
<item name="android:paddingLeft">0dp</item>
|
||||
<item name="android:paddingTop">0dp</item>
|
||||
<item name="android:paddingRight">0dp</item>
|
||||
<item name="android:paddingBottom">0dp</item>
|
||||
<item name="android:minWidth">0dp</item>
|
||||
<item name="android:minHeight">0dp</item>
|
||||
<item name="android:gravity">center_vertical</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:textColor">#252529</item>
|
||||
<item name="android:textColorHint">#999999</item>
|
||||
<item name="android:textSize">14sp</item>
|
||||
</style>
|
||||
|
||||
<style name="DeviceHomeText" parent="LoginDesignText">
|
||||
<item name="android:textColor">@color/device_home_text</item>
|
||||
<item name="android:fontFamily">sans-serif</item>
|
||||
</style>
|
||||
|
||||
<style name="DeviceHomeStatLabel" parent="DeviceHomeText">
|
||||
<item name="android:textColor">@android:color/white</item>
|
||||
<item name="android:textSize">10.5sp</item>
|
||||
<item name="android:gravity">center</item>
|
||||
</style>
|
||||
|
||||
<style name="DeviceHomeStatValue" parent="DeviceHomeStatLabel">
|
||||
<item name="android:fontFamily">sans-serif-black</item>
|
||||
<item name="android:textSize">14sp</item>
|
||||
</style>
|
||||
|
||||
<style name="DeviceHomeDetail" parent="DeviceHomeText">
|
||||
<item name="android:textColor">@color/device_home_muted</item>
|
||||
<item name="android:textSize">10.5sp</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user