| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#01000000"
- android:gravity="center">
- <LinearLayout
- android:layout_width="300dp"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="160dp"
- android:scaleType="fitXY"
- android:src="@mipmap/update_app_top_bg" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@drawable/bg_dialog_update_bottom"
- android:orientation="vertical">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="20dp"
- android:orientation="horizontal">
- <TextView
- android:id="@+id/tv_dialog_update_name"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:textColor="#333333"
- android:textSize="14sp"
- tools:text="版本号" />
- <TextView
- android:id="@+id/tv_dialog_update_size"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="#666666"
- android:textSize="13sp"
- tools:text="大小" />
- </LinearLayout>
- <!--这个地方需要设置可以滚动-->
- <android.support.v4.widget.NestedScrollView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:overScrollMode="never"
- android:paddingTop="5dp"
- android:paddingBottom="5dp"
- android:scrollbars="none">
- <TextView
- android:id="@+id/tv_dialog_update_content"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="20dp"
- android:layout_marginTop="@dimen/space_20"
- android:layout_marginRight="20dp"
- android:lineSpacingExtra="5dp"
- android:maxHeight="100dp"
- android:minHeight="100dp"
- android:textColor="#666666"
- android:textSize="13sp"
- tools:text="更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n" />
- </android.support.v4.widget.NestedScrollView>
- <com.hjq.widget.NumberProgressBar
- android:id="@+id/pb_dialog_update_progress"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="20dp"
- android:layout_marginTop="15dp"
- android:layout_marginRight="20dp"
- android:visibility="gone"
- app:pb_reachedColor="#e94339"
- app:pb_reachedHeight="4dp"
- app:pb_textColor="#e94339"
- app:pb_textSize="@dimen/font_size_24px"
- app:pb_unreachedColor="#CCCCCC"
- app:pb_unreachedHeight="3dp" />
- <TextView
- android:id="@+id/tv_dialog_update_update"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="15dp"
- android:layout_marginTop="15dp"
- android:layout_marginRight="15dp"
- android:layout_marginBottom="15dp"
- android:background="@drawable/bg_dialog_update_button"
- android:focusable="true"
- android:gravity="center"
- android:paddingTop="10dp"
- android:paddingBottom="10dp"
- android:text="@string/dialog_update_button"
- android:textColor="@color/white"
- android:textSize="14sp" />
- </LinearLayout>
- <LinearLayout
- android:id="@+id/ll_dialog_update_cancel"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:gravity="center_horizontal"
- android:orientation="vertical">
- <View
- android:layout_width="2dp"
- android:layout_height="50dp"
- android:background="#d8d8d8" />
- <ImageView
- android:id="@+id/iv_dialog_update_close"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:src="@mipmap/update_app_close" />
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
|