update:2019.12.03
fix: add:更新在fragment中接收广播消息更新界面
This commit is contained in:
36
app/src/main/res/drawable/btn_style_none.xml
Normal file
36
app/src/main/res/drawable/btn_style_none.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- 连框颜色值 -->
|
||||
<item>
|
||||
<shape>
|
||||
<solid android:color="#55b68a" />
|
||||
<corners android:radius="@dimen/dp_25" />
|
||||
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 主体背景颜色值 -->
|
||||
<item
|
||||
android:bottom="1dp"
|
||||
android:left="1dp"
|
||||
android:right="1dp"
|
||||
android:top="1dp">
|
||||
<shape>
|
||||
<gradient
|
||||
android:angle="90"
|
||||
android:centerColor="#FFFFFF"
|
||||
android:centerX="0.5"
|
||||
android:centerY="0.5"
|
||||
android:endColor="#FFFFFF"
|
||||
android:startColor="#FFFFFF"
|
||||
android:type="linear" />
|
||||
|
||||
<padding
|
||||
android:bottom="2dp"
|
||||
android:left="2dp"
|
||||
android:right="2dp"
|
||||
android:top="2dp" />
|
||||
<!-- 应该是圆角 -->
|
||||
<corners android:radius="@dimen/dp_25" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
36
app/src/main/res/drawable/btn_style_open.xml
Normal file
36
app/src/main/res/drawable/btn_style_open.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- 连框颜色值 -->
|
||||
<item>
|
||||
<shape>
|
||||
<solid android:color="#000000" />
|
||||
<corners android:radius="@dimen/dp_25" />
|
||||
|
||||
</shape>
|
||||
</item>
|
||||
<!-- 主体背景颜色值 -->
|
||||
<item
|
||||
android:bottom="1dp"
|
||||
android:left="1dp"
|
||||
android:right="1dp"
|
||||
android:top="1dp">
|
||||
<shape>
|
||||
<gradient
|
||||
android:angle="90"
|
||||
android:centerColor="#FFFFFF"
|
||||
android:centerX="0.5"
|
||||
android:centerY="0.5"
|
||||
android:endColor="#FFFFFF"
|
||||
android:startColor="#FFFFFF"
|
||||
android:type="linear" />
|
||||
|
||||
<padding
|
||||
android:bottom="2dp"
|
||||
android:left="2dp"
|
||||
android:right="2dp"
|
||||
android:top="2dp" />
|
||||
<!-- 应该是圆角 -->
|
||||
<corners android:radius="@dimen/dp_25" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 1.8 KiB |
@@ -28,34 +28,36 @@
|
||||
android:background="@drawable/ic_kind_detail" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<include layout="@layout/include_line_horizontal" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_margin="10dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
|
||||
android:text="可升级应用"
|
||||
android:textSize="10sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/manage_tv_updateNum"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="@dimen/dp_40"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:text="0个应用可以升级"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="16sp" />
|
||||
android:text="0"
|
||||
android:textSize="10sp"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<include layout="@layout/include_line_horizontal" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:text="可升级应用"
|
||||
android:textSize="10sp" />
|
||||
|
||||
<include layout="@layout/include_line_horizontal" />
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
@@ -52,6 +52,15 @@
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_tv_size"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:text="1.00M"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<RatingBar
|
||||
android:id="@+id/app_rating_bar"
|
||||
@@ -60,23 +69,20 @@
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/app_card_view"
|
||||
android:layout_width="55dp"
|
||||
android:layout_height="35dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginRight="10dp"
|
||||
app:cardCornerRadius="5dp">
|
||||
|
||||
|
||||
<Button
|
||||
android:id="@+id/app_btn_download"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_width="@dimen/dp_40"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:textColor="#55b68a"
|
||||
android:stateListAnimator="@null"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@drawable/btn_selector"
|
||||
android:text="下载"
|
||||
android:layout_marginRight="10dp"
|
||||
android:background="@drawable/btn_style_none"
|
||||
android:text="下载中"
|
||||
android:textSize="@dimen/sp_10"
|
||||
android:visibility="visible" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@mipmap/ic_launcher_round" />
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/kind_tv_name"
|
||||
|
||||
@@ -60,23 +60,16 @@
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/local_app_card_view"
|
||||
android:layout_width="55dp"
|
||||
android:layout_height="35dp"
|
||||
<Button
|
||||
android:id="@+id/local_app_btn_download"
|
||||
android:layout_width="@dimen/dp_40"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@drawable/btn_style_open"
|
||||
android:layout_marginRight="10dp"
|
||||
app:cardCornerRadius="5dp">
|
||||
|
||||
<Button
|
||||
android:id="@+id/local_app_btn_download"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@drawable/btn_selector"
|
||||
android:text="删除"
|
||||
android:visibility="visible" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
android:stateListAnimator="@null"
|
||||
android:text="删除"
|
||||
android:visibility="visible" />
|
||||
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -9,5 +9,5 @@
|
||||
<color name="gray">#c1bcbc</color>
|
||||
<color name="download">#d9d9d9</color>
|
||||
<color name="backgroundcolor">#d4d0d0</color>
|
||||
|
||||
<color name="green">#55b68a</color>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user