version:4.8
fix: update:更换图标
@@ -45,8 +45,8 @@ android {
|
||||
productFlavors {
|
||||
official {
|
||||
flavorDimensions "default"
|
||||
versionCode 37
|
||||
versionName "4.6"
|
||||
versionCode 39
|
||||
versionName "4.8"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
BIN
app/src/main/res/drawable-xxxhdpi/ratingbar_off.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ratingbar_on.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
12
app/src/main/res/drawable/my_ratingbar.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!--未选中的图片-->
|
||||
<item android:id="@android:id/background"
|
||||
android:drawable="@drawable/ratingbar_off" />
|
||||
<!--未选中的图片-->
|
||||
<item android:id="@android:id/secondaryProgress"
|
||||
android:drawable="@drawable/ratingbar_off" />
|
||||
<!--选中的图片-->
|
||||
<item android:id="@android:id/progress"
|
||||
android:drawable="@drawable/ratingbar_on" />
|
||||
</layer-list>
|
||||
@@ -10,22 +10,21 @@
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/app_iv_icon"
|
||||
android:layout_width="55dp"
|
||||
android:layout_height="55dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginRight="10dp"
|
||||
/>
|
||||
android:adjustViewBounds="true"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
@@ -33,6 +32,7 @@
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_tv_name"
|
||||
android:layout_width="match_parent"
|
||||
@@ -40,10 +40,11 @@
|
||||
android:layout_weight="1.5"
|
||||
android:gravity="bottom"
|
||||
android:singleLine="true"
|
||||
android:textStyle="bold"
|
||||
android:text="今日头条"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="16sp" />
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_tv_company"
|
||||
android:layout_width="match_parent"
|
||||
@@ -52,8 +53,8 @@
|
||||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:text="北京字节跳动网络技术有限公司"
|
||||
android:visibility="gone"
|
||||
android:textSize="12sp" />
|
||||
android:textSize="12sp"
|
||||
android:visibility="gone" />
|
||||
|
||||
|
||||
<TextView
|
||||
@@ -68,26 +69,23 @@
|
||||
|
||||
<RatingBar
|
||||
android:id="@+id/app_rating_bar"
|
||||
style="@style/Base.Widget.AppCompat.RatingBar.Small"
|
||||
style="@style/myRatingBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<Button
|
||||
android:id="@+id/app_btn_download"
|
||||
android:layout_width="@dimen/dp_60"
|
||||
android:layout_height="@dimen/dp_30"
|
||||
android:textColor="#000000"
|
||||
android:stateListAnimator="@null"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginRight="10dp"
|
||||
android:background="@drawable/btn_shap_download"
|
||||
android:text="下载中"
|
||||
android:textSize="@dimen/sp_16"
|
||||
android:visibility="visible" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/app_btn_download"
|
||||
android:layout_width="@dimen/dp_60"
|
||||
android:layout_height="@dimen/dp_30"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginRight="10dp"
|
||||
android:background="@drawable/btn_shap_download"
|
||||
android:stateListAnimator="@null"
|
||||
android:text="下载中"
|
||||
android:textColor="#000000"
|
||||
android:textSize="@dimen/sp_16"
|
||||
android:visibility="visible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_tv_installed"
|
||||
@@ -97,10 +95,8 @@
|
||||
android:layout_marginRight="20dp"
|
||||
android:text="已安装"
|
||||
android:visibility="gone" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- <include layout="@layout/include_line_horizontal" />-->
|
||||
<!-- <include layout="@layout/include_line_horizontal" />-->
|
||||
|
||||
</LinearLayout>
|
||||
@@ -68,7 +68,7 @@
|
||||
|
||||
<RatingBar
|
||||
android:id="@+id/app_rating_bar"
|
||||
style="@style/Base.Widget.AppCompat.RatingBar.Small"
|
||||
style="@style/myRatingBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
|
||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 6.9 KiB |
@@ -40,4 +40,12 @@
|
||||
<!--背景是否模糊显示-->
|
||||
<item name="android:backgroundDimEnabled">true</item>
|
||||
</style>
|
||||
|
||||
<style name="myRatingBar"
|
||||
parent="@android:style/Widget.RatingBar">
|
||||
<item name="android:progressDrawable">@drawable/my_ratingbar</item>
|
||||
<item name="android:maxHeight">30dp</item>
|
||||
<item name="android:minHeight">30dp</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
||||