修改了主题,增加了背景图片,提交到笔记按钮增加了一个图标

This commit is contained in:
2024-09-22 21:40:46 +08:00
parent 74adb11175
commit abc78b2bf7
8 changed files with 25 additions and 5 deletions

View File

@@ -11,7 +11,7 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Flomoai"
android:theme="@style/TransparentTheme"
tools:targetApi="31">
<activity
android:name=".MainActivity"

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@drawable/flomo"
android:width="18dp"
android:height="18dp" />
</layer-list>

View File

@@ -3,8 +3,10 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp">
android:padding="14dp"
android:background="@drawable/appbackground"
android:backgroundTint="@color/semi_transparent_background"
android:backgroundTintMode="src_over">
<RelativeLayout
android:layout_width="match_parent"
@@ -38,7 +40,7 @@
android:layout_height="0dp"
android:layout_weight="40"
android:gravity="center_vertical"
android:text="内容提到 AI选择合适的标签"
android:text="内容提到 AI选择合适的标签,记录"
android:textSize="9sp" />
</LinearLayout>
@@ -107,7 +109,9 @@
android:layout_height="wrap_content"
android:layout_weight="2"
android:textSize="12sp"
android:text="提交到笔记服务器" />
android:text="提交到笔记服务器"
android:drawableRight="@drawable/icon_with_size"
android:drawablePadding="5dp" />
</LinearLayout>
<TextView

View File

@@ -10,4 +10,5 @@
<color name="foreground_color">#eFeFeF</color> <!-- 示例前景色(白色) -->
<color name="background_color">#333333</color> <!-- 示例背景色(深灰色) -->
<color name="gray_light">#CCCCCC</color>
<color name="semi_transparent_background">#19000000</color>
</resources>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- 定义一个主题 -->
<style name="TransparentTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
</style>
</resources>