完善 市场界面按钮显示

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>