修改了主题,增加了背景图片,提交到笔记按钮增加了一个图标
This commit is contained in:
@@ -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"
|
||||
|
||||
BIN
app/src/main/res/drawable/appbackground.jpeg
Normal file
BIN
app/src/main/res/drawable/appbackground.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
BIN
app/src/main/res/drawable/background.png
Normal file
BIN
app/src/main/res/drawable/background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
BIN
app/src/main/res/drawable/flomo.png
Normal file
BIN
app/src/main/res/drawable/flomo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
7
app/src/main/res/drawable/icon_with_size.xml
Normal file
7
app/src/main/res/drawable/icon_with_size.xml
Normal 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>
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
8
app/src/main/res/values/styles.xml
Normal file
8
app/src/main/res/values/styles.xml
Normal 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>
|
||||
Reference in New Issue
Block a user