mirror of
https://github.com/fumiama/simple-dict-android.git
synced 2026-06-09 20:40:49 +08:00
1. 增加小部件
2. 调整间距 3. 增加设置 4. 界面美化
This commit is contained in:
10
app/src/main/res/drawable-anydpi/bg_dere.xml
Normal file
10
app/src/main/res/drawable-anydpi/bg_dere.xml
Normal file
File diff suppressed because one or more lines are too long
33
app/src/main/res/drawable-anydpi/bg_rnd.xml
Normal file
33
app/src/main/res/drawable-anydpi/bg_rnd.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:state_pressed="true">
|
||||
<shape android:shape="rectangle" >
|
||||
<!-- 填充的颜色 -->
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<!-- 设置按钮的四个角为弧形 -->
|
||||
<!-- android:radius 弧形的半径 -->
|
||||
<corners android:radius="16dip" />
|
||||
<!-- padding:Button里面的文字与Button边界的间隔 -->
|
||||
<padding android:bottom="1dp" android:left="1dp" android:right="1dp" android:top="1dp" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item android:state_pressed="false">
|
||||
<shape android:shape="rectangle" >
|
||||
<!-- 填充的颜色 -->
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<!-- 设置按钮的四个角为弧形 -->
|
||||
<!-- android:radius 弧形的半径 -->
|
||||
<corners android:radius="16dip" />
|
||||
<!-- stroke 设置边框显示 -->
|
||||
<stroke
|
||||
android:dashGap="0dp"
|
||||
android:width="1dp"
|
||||
android:color="?attr/colorOnSurface" />
|
||||
<!-- padding:Button里面的文字与Button边界的间隔 -->
|
||||
<padding android:bottom="1dp" android:left="1dp" android:right="1dp" android:top="1dp" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</selector>
|
||||
10
app/src/main/res/drawable-anydpi/ic_setting.xml
Normal file
10
app/src/main/res/drawable-anydpi/ic_setting.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="1024"
|
||||
android:viewportHeight="1024">
|
||||
<path
|
||||
android:fillColor="?android:textColorSecondary"
|
||||
android:pathData="M944 552l-182 331a74 74 0 0 1-65 38h-362a74 74 0 0 1-65-38l-182-331a75 75 0 0 1 0-73l182-331a74 74 0 0 1 65-38h362a74 74 0 0 1 65 38l182 331a75 75 0 0 1 0 73z m-56-31a11 11 0 0 0 0-10l-182-331a11 11 0 0 0-9-5H336a11 11 0 0 0-9 5l-182 331a11 11 0 0 0 0 10l182 331a11 11 0 0 0 9 5h362a11 11 0 0 0 9-5l182-331zM514 683c-94 0-171-76-171-171s76-171 171-171c94 0 171 76 171 171s-76 171-171 171z m0-64c59 0 107-48 107-107s-48-107-107-107-107 48-107 107 48 107 107 107z"/>
|
||||
</vector>
|
||||
Reference in New Issue
Block a user