完善 市场界面按钮显示

This commit is contained in:
hyb1996
2019-01-28 10:57:19 +08:00
parent f2c636d599
commit 402a78c354
11 changed files with 223 additions and 33 deletions

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:tint="#939393"/>
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</merge>

View File

@@ -93,37 +93,44 @@
android:paddingTop="3dp"
android:paddingBottom="3dp">
<ImageView
<org.autojs.autojs.ui.main.market.ImageText
android:id="@+id/download"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/download"
android:tint="#939393"/>
android:background="?selectableItemBackgroundBorderless"
android:tint="#939393"
app:image_width="30dp"
app:src="@drawable/download"
app:text="@string/text_download"/>
<ImageView
<org.autojs.autojs.ui.main.market.ImageText
android:id="@+id/upvote"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/upvote"
android:tint="#939393"/>
android:background="?selectableItemBackgroundBorderless"
app:image_width="30dp"
app:src="@drawable/upvote"/>
<ImageView
<org.autojs.autojs.ui.main.market.ImageText
android:id="@+id/downvote"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/downvote"
android:tint="#939393"/>
android:background="?selectableItemBackgroundBorderless"
app:image_width="30dp"
app:src="@drawable/downvote"/>
<ImageView
<org.autojs.autojs.ui.main.market.ImageText
android:id="@+id/star"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:src="@drawable/star"
android:tint="#939393"/>
android:background="?selectableItemBackgroundBorderless"
app:image_width="30dp"
app:src="@drawable/star"
app:text="@string/text_star"/>
</LinearLayout>

View File

@@ -35,4 +35,10 @@
<attr name="cam_angle" format="integer"/>
</declare-styleable>
<declare-styleable name="ImageText">
<attr name="text"/>
<attr name="src"/>
<attr name="image_width" format="dimension|reference"/>
</declare-styleable>
</resources>

View File

@@ -26,7 +26,8 @@
<color name="toolbar_disabled">#77e0e0e0</color>
<color name="console_debug">#cc000000</color>
<color name="console_verbose">#dfc0c0c0</color>
<color name="market_button_selected">#e14123</color>
<color name="market_button_unselected">#939393</color>
</resources>

View File

@@ -400,6 +400,11 @@
<string name="text_usage_stats_permission">查看使用统计权限</string>
<string name="description_usage_stats_permission">通过\"查看使用统计\"权限可以获取本设备过去使用应用的情况,从而使获取当前应用(currentPackage)时更准确。</string>
<string name="text_open_with">打开方式</string>
<string name="text_root">Root</string>
<string name="text_no_root">免Root</string>
<string name="text_star">收藏</string>
<string name="text_upvote"></string>
<string name="text_downvote"></string>
<plurals name="air_error_short_description" key="air_error_short_description">
<item quantity="one">描述至少要 %d 个字.</item>
<item quantity="other">描述至少要 %d 个字.</item>