Commit b3f52012 authored by liusheng's avatar liusheng

bugly应用更新sdk基本接入完成

parent 22bdc9a4
......@@ -135,7 +135,7 @@ class App : Application(), androidx.work.Configuration.Provider by Core {
//Bugly.init(this, com.qq.bugly.beta.demo.DemoApplication.APP_ID, true, strategy)
//Beta.upgradeDialogLayoutId = R.layout.dialog_app_upgrade
Beta.upgradeDialogLayoutId = R.layout.dialog_app_upgrade
Bugly.init(this, "e030f74df5", true)
}
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners
android:bottomLeftRadius="18dp"
android:bottomRightRadius="18dp"
android:topLeftRadius="30dp"
android:topRightRadius="30dp" />
<solid android:color="#FFFFFF"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="26dp"/>
<solid android:color="#868BFB"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="28dp"
android:layout_marginRight="28dp"
android:background="@drawable/bg_app_upgrade"
android:orientation="vertical">
<ImageView
android:tag="beta_upgrade_banner"
android:layout_width="wrap_content"
android:src="@mipmap/banner"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/image_find_new_version"
android:tag="beta_upgrade_banner" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="15dp"
android:layout_marginRight="10dp"
android:tag="beta_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="#000000"
android:textSize="15sp"
tools:text="BuglyBetaDemo1.0.2" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:layout_marginRight="10dp"
android:lineSpacingExtra="2dp"
android:tag="beta_upgrade_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="#9A9A9A"
android:textSize="12sp"
tools:text="版本:1.0.2\n包大小:25.4M\n更新时间:2016-06-03 17:55" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:layout_marginRight="10dp"
android:lineSpacingExtra="2dp"
android:minHeight="100dp"
android:tag="beta_upgrade_feature"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="#000000"
android:textSize="15sp"
tools:text="功能说明:\n2028添加自定义feature" />
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_marginTop="5dp"
android:background="#F0F0F0" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="59dp"
android:orientation="horizontal">
<Button
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@null"
android:tag="beta_cancel_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="#A8A8A8"
android:textSize="15sp"
tools:text="下次再说" />
<FrameLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<Button
android:layout_width="105dp"
android:layout_height="34dp"
android:layout_gravity="center"
android:background="@drawable/btn_app_upgrade"
android:tag="beta_confirm_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
android:textColor="#FFFFFF"
android:textSize="15sp"
tools:text="立即升级" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment