BOX_TIME_URL = BASE_URL+"box_time";
+
+ SET_VERSION = BASE_URL+"set_version";
}
@@ -71,4 +71,9 @@ public class UrlContainer {
|
||
| 71 | 71 |
|
| 72 | 72 |
public static final String SERVER_TIME_URL=HOST_URL+"s/server_time"; |
| 73 | 73 |
|
| 74 |
+ /** |
|
| 75 |
+ * 盒子程序版本信息 |
|
| 76 |
+ */ |
|
| 77 |
+ public static final String BOX_VERSION_URL = HOST_URL+"op/bpversion"; |
|
| 78 |
+ |
|
| 74 | 79 |
} |
@@ -0,0 +1,12 @@ |
||
| 1 |
+<?xml version="1.0" encoding="utf-8"?> |
|
| 2 |
+<shape xmlns:android="http://schemas.android.com/apk/res/android" |
|
| 3 |
+ android:shape="rectangle" > |
|
| 4 |
+ |
|
| 5 |
+ <solid android:color="@color/half_transparent" /> |
|
| 6 |
+ |
|
| 7 |
+ <corners |
|
| 8 |
+ android:radius="4dp"/> |
|
| 9 |
+ |
|
| 10 |
+ <stroke android:width="1dp" android:color="@color/white"/> |
|
| 11 |
+ |
|
| 12 |
+</shape> |
@@ -0,0 +1,49 @@ |
||
| 1 |
+<?xml version="1.0" encoding="utf-8"?> |
|
| 2 |
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
| 3 |
+ android:layout_width="match_parent" |
|
| 4 |
+ android:layout_height="match_parent" |
|
| 5 |
+ android:background="@color/half_transparent"> |
|
| 6 |
+ |
|
| 7 |
+<RelativeLayout |
|
| 8 |
+ android:id="@+id/layout_choose_update" |
|
| 9 |
+ android:layout_width="match_parent" |
|
| 10 |
+ android:layout_height="wrap_content" |
|
| 11 |
+ android:layout_centerInParent="true"> |
|
| 12 |
+ |
|
| 13 |
+ <TextView |
|
| 14 |
+ android:layout_width="wrap_content" |
|
| 15 |
+ android:layout_height="wrap_content" |
|
| 16 |
+ android:text="@string/box_upgrade_found" |
|
| 17 |
+ android:layout_centerInParent="true" |
|
| 18 |
+ android:textSize="18sp" |
|
| 19 |
+ android:textColor="@color/white" |
|
| 20 |
+ android:id="@+id/tv_box_upgrade_info"/> |
|
| 21 |
+ |
|
| 22 |
+ <Button |
|
| 23 |
+ android:id="@+id/btn_update_now" |
|
| 24 |
+ android:layout_width="match_parent" |
|
| 25 |
+ android:layout_height="40dp" |
|
| 26 |
+ android:layout_margin="12dp" |
|
| 27 |
+ android:text="@string/upgrade_now" |
|
| 28 |
+ android:gravity="center" |
|
| 29 |
+ android:textSize="18sp" |
|
| 30 |
+ android:textColor="@color/white" |
|
| 31 |
+ android:background="@drawable/print_rounded_rect_bg" |
|
| 32 |
+ android:layout_below="@+id/tv_box_upgrade_info" |
|
| 33 |
+ /> |
|
| 34 |
+ |
|
| 35 |
+ <Button |
|
| 36 |
+ android:id="@+id/btn_update_later" |
|
| 37 |
+ android:layout_width="match_parent" |
|
| 38 |
+ android:layout_height="40dp" |
|
| 39 |
+ android:text="@string/upgrade_later" |
|
| 40 |
+ android:layout_marginLeft="12dp" |
|
| 41 |
+ android:layout_marginRight="12dp" |
|
| 42 |
+ android:gravity="center" |
|
| 43 |
+ android:textSize="18sp" |
|
| 44 |
+ android:textColor="@color/white" |
|
| 45 |
+ android:background="@drawable/update_btn_rounded_rect_bg" |
|
| 46 |
+ android:layout_below="@+id/btn_update_now" |
|
| 47 |
+ /> |
|
| 48 |
+</RelativeLayout> |
|
| 49 |
+</RelativeLayout> |
@@ -181,4 +181,9 @@ |
||
| 181 | 181 |
|
| 182 | 182 |
<string name="time_sync_retry">重新同步</string> |
| 183 | 183 |
|
| 184 |
+ <string name="box_upgrade_found">发现可用的box软件更新</string> |
|
| 185 |
+ |
|
| 186 |
+ <string name="upgrade_now">立即更新</string> |
|
| 187 |
+ |
|
| 188 |
+ <string name="upgrade_later">下次再说</string> |
|
| 184 | 189 |
</resources> |