6.7.0 - Alpha19 - 主页抽屉添加开关分隔线以增强视觉体验
This commit is contained in:
@@ -5,8 +5,10 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="43dp"
|
||||
android:background="?selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:minHeight="43dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<FrameLayout
|
||||
@@ -32,7 +34,6 @@
|
||||
android:layout_height="15dp"
|
||||
android:backgroundTint="@color/drawer_menu_group_text_color"
|
||||
android:visibility="gone" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
@@ -41,7 +42,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:minHeight="43dp"
|
||||
android:layout_toEndOf="@+id/icon_container"
|
||||
android:layout_toStartOf="@id/sw"
|
||||
android:layout_toStartOf="@id/switch_divider"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:gravity="center_vertical"
|
||||
@@ -66,9 +67,20 @@
|
||||
android:visibility="gone"
|
||||
tools:visibility="gone"
|
||||
tools:text="@string/text_sample_string" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/switch_divider"
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_toStartOf="@id/sw"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@color/day_night_alpha_20"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<org.autojs.autojs.ui.widget.PrefSwitch
|
||||
android:id="@+id/sw"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -79,5 +91,4 @@
|
||||
android:visibility="gone"
|
||||
tools:checked="true"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -18,7 +18,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:paddingBottom="4dp"/>
|
||||
android:paddingBottom="4dp" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
@@ -29,16 +29,16 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginVertical="2dp"
|
||||
android:paddingVertical="2dp"
|
||||
android:baselineAligned="false">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/settings"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="?selectableItemBackground"
|
||||
android:layout_gravity="center|bottom"
|
||||
android:gravity="center|bottom"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
@@ -65,10 +65,10 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/plugin_center"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="?selectableItemBackground"
|
||||
android:layout_gravity="center|bottom"
|
||||
android:gravity="center|bottom"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
@@ -95,10 +95,10 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/restart"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="?selectableItemBackground"
|
||||
android:layout_gravity="center|bottom"
|
||||
android:gravity="center|bottom"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
@@ -125,10 +125,10 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/exit"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="?selectableItemBackground"
|
||||
android:layout_gravity="center|bottom"
|
||||
android:gravity="center|bottom"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
|
||||
Reference in New Issue
Block a user