暗黑模式
This commit is contained in:
BIN
app/src/main/res/drawable-night/keyboard_icon_voice.png
Normal file
BIN
app/src/main/res/drawable-night/keyboard_icon_voice.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
5
app/src/main/res/drawable/keyboard_button_bg5.xml
Normal file
5
app/src/main/res/drawable/keyboard_button_bg5.xml
Normal file
@@ -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="@color/keyboard_button_bg"/>
|
||||
<corners android:radius="8dp"/>
|
||||
</shape>
|
||||
BIN
app/src/main/res/drawable/keyboard_icon_voice_darkness.png
Normal file
BIN
app/src/main/res/drawable/keyboard_icon_voice_darkness.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -165,7 +165,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Clear"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textColor="@color/ai_keyboard_button_text_color"
|
||||
android:textSize="13sp" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -198,7 +198,7 @@
|
||||
<HorizontalScrollView
|
||||
android:id="@+id/tagScroll"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_height="30dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:layout_marginTop="18dp"
|
||||
@@ -221,7 +221,7 @@
|
||||
android:id="@+id/viewPager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="40dp"
|
||||
android:layout_marginBottom="30dp"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
android:id="@+id/recyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="16dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:clipToPadding="false"/>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:background="@drawable/ai_caard_bg"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
android:gravity="center"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/keyboard_button_bg3">
|
||||
android:background="@drawable/keyboard_button_bg5">
|
||||
|
||||
<de.hdodenhof.circleimageview.CircleImageView
|
||||
android:id="@+id/avatar"
|
||||
@@ -26,7 +26,7 @@
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginStart="5dp"
|
||||
android:text="Humor"
|
||||
android:textColor="#1B1F1A"
|
||||
android:textColor="@color/ai_keyboard_button_text_color"
|
||||
android:textSize="13sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#F8F8F8"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
|
||||
@@ -13,6 +13,10 @@
|
||||
android:src="@drawable/my_keyboard_bg"
|
||||
android:scaleType="fitXY"
|
||||
android:adjustViewBounds="true" />
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
android:id="@+id/swipeRefresh"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@@ -75,6 +79,7 @@
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_keyboard"
|
||||
@@ -89,4 +94,4 @@
|
||||
android:background="@drawable/my_keyboard_delete"
|
||||
android:clickable="true"
|
||||
android:focusable="true"/>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
@@ -8,17 +8,21 @@
|
||||
android:background="#F6F7FB"
|
||||
tools:context=".ui.home.myotherpages.PersonalSettings">
|
||||
<!-- 内容 -->
|
||||
<androidx.core.widget.NestedScrollView
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
android:id="@+id/swipeRefresh"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true"
|
||||
android:overScrollMode="never">
|
||||
<LinearLayout
|
||||
android:layout_height="match_parent">
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp"
|
||||
android:background="#F8F8F8"
|
||||
android:orientation="vertical">
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true"
|
||||
android:overScrollMode="never">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp"
|
||||
android:background="#F8F8F8"
|
||||
android:orientation="vertical">
|
||||
<!-- 标题和返回 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -239,6 +243,7 @@
|
||||
android:textStyle="bold"
|
||||
android:background="@drawable/settings"/>
|
||||
<!-- ````````` -->
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
5
app/src/main/res/values-night/colors.xml
Normal file
5
app/src/main/res/values-night/colors.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="keyboard_button_bg">#707070</color>
|
||||
<color name="ai_keyboard_button_text_color">#FFFFFF</color>
|
||||
</resources>
|
||||
@@ -11,4 +11,6 @@
|
||||
<color name="light_black">#801B1F1A</color>
|
||||
<color name="main_text_color">#FF1B1F1A</color>
|
||||
<color name="gray_9F">#FF9F9F9F</color>
|
||||
<color name="keyboard_button_bg">#FFFFFFFF</color>
|
||||
<color name="ai_keyboard_button_text_color">#1B1F1A</color>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user