parent
09972ded00
commit
9a426841c9
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:duration="200"> |
||||
<translate |
||||
android:fromXDelta="0" |
||||
android:toXDelta="0" |
||||
android:fromYDelta="100%" |
||||
android:toYDelta="0%" /> |
||||
</set> |
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:duration="200"> |
||||
<translate |
||||
android:fromXDelta="0" |
||||
android:toXDelta="0" |
||||
android:fromYDelta="0%" |
||||
android:toYDelta="100%" /> |
||||
</set> |
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:duration="200"> |
||||
<translate |
||||
android:fromXDelta="-100%" |
||||
android:toXDelta="0%" |
||||
android:fromYDelta="0" |
||||
android:toYDelta="0" /> |
||||
</set> |
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:duration="200"> |
||||
<translate |
||||
android:fromXDelta="0%" |
||||
android:toXDelta="-100%" |
||||
android:fromYDelta="0" |
||||
android:toYDelta="0" /> |
||||
</set> |
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:duration="200"> |
||||
<translate |
||||
android:fromXDelta="100%" |
||||
android:toXDelta="0%" |
||||
android:fromYDelta="0" |
||||
android:toYDelta="0" /> |
||||
</set> |
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:duration="200"> |
||||
<translate |
||||
android:fromXDelta="0%" |
||||
android:toXDelta="100%" |
||||
android:fromYDelta="0" |
||||
android:toYDelta="0" /> |
||||
</set> |
@ -1,6 +1,7 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<scale android:duration="200" |
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:duration="200"> |
||||
<scale |
||||
android:pivotX="50%" |
||||
android:pivotY="50%" |
||||
android:fromXScale="0.0" |
@ -1,6 +1,7 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<scale android:duration="200" |
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:duration="200"> |
||||
<scale |
||||
android:pivotX="50%" |
||||
android:pivotY="50%" |
||||
android:fromXScale="1.0" |
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:duration="200"> |
||||
<translate |
||||
android:fromXDelta="0" |
||||
android:toXDelta="0" |
||||
android:fromYDelta="-100%" |
||||
android:toYDelta="0%" /> |
||||
</set> |
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:duration="200"> |
||||
<translate |
||||
android:fromXDelta="0" |
||||
android:toXDelta="0" |
||||
android:fromYDelta="0%" |
||||
android:toYDelta="-100%" /> |
||||
</set> |
@ -1,13 +1,13 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<resources> |
||||
|
||||
<color name="colorAccent">#FF4081</color> |
||||
<color name="colorAccent">#5588FF</color> |
||||
|
||||
<color name="app_dialog_title_color">#333333</color> |
||||
<color name="app_dialog_content_color">#333333</color> |
||||
<color name="app_dialog_button_normal_color">#333333</color> |
||||
<color name="app_dialog_button_pressed_color">@color/colorAccent</color> |
||||
|
||||
<color name="app_dialog_line_color">#f2f2f2</color> |
||||
<color name="app_dialog_line_color">#F2F2F2</color> |
||||
|
||||
</resources> |
||||
|
Binary file not shown.
@ -0,0 +1,5 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<item android:state_pressed="true" android:color="@color/text_666"/> |
||||
<item android:state_pressed="false" android:color="@color/text_999"/> |
||||
</selector> |
@ -0,0 +1,18 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
|
||||
<item android:state_pressed="false"> |
||||
<shape> |
||||
<solid android:color="@color/colorAccent"/> |
||||
<corners android:radius="20dp"/> |
||||
</shape> |
||||
</item> |
||||
|
||||
<item android:state_pressed="true"> |
||||
<shape> |
||||
<solid android:color="@color/colorPrimaryDark"/> |
||||
<corners android:radius="20dp"/> |
||||
</shape> |
||||
</item> |
||||
|
||||
</selector> |
@ -0,0 +1,25 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:tools="http://schemas.android.com/tools" |
||||
android:orientation="horizontal" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:padding="16dp" |
||||
android:gravity="center_vertical" |
||||
android:background="@drawable/app_dialog_bg"> |
||||
<ImageView |
||||
android:id="@+id/ivIcon" |
||||
android:layout_width="30dp" |
||||
android:layout_height="30dp" |
||||
android:src="@mipmap/ic_launcher" |
||||
android:layout_marginRight="4dp"/> |
||||
<TextView |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_centerVertical="true" |
||||
android:layout_toRightOf="@+id/ivIcon" |
||||
android:textSize="14sp" |
||||
android:textColor="@color/app_dialog_title_color" |
||||
android:text="@string/app_updater_start_notification_content"/> |
||||
|
||||
</RelativeLayout> |
@ -0,0 +1,43 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:tools="http://schemas.android.com/tools" |
||||
android:orientation="horizontal" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:padding="16dp" |
||||
android:gravity="center_vertical" |
||||
android:background="@drawable/app_dialog_bg"> |
||||
<ImageView |
||||
android:id="@+id/ivIcon" |
||||
android:layout_width="20dp" |
||||
android:layout_height="20dp" |
||||
android:src="@mipmap/ic_launcher" |
||||
android:layout_marginRight="4dp"/> |
||||
<TextView |
||||
android:id="@+id/tvDialogTitle" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_toRightOf="@+id/ivIcon" |
||||
android:textSize="14sp" |
||||
android:textColor="@color/app_dialog_title_color" |
||||
android:text="@string/app_updater_progress_notification_title"/> |
||||
<TextView |
||||
android:id="@+id/tvProgress" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_below="@+id/tvDialogTitle" |
||||
android:layout_marginTop="10dp" |
||||
android:text="@string/app_updater_start_notification_content" |
||||
android:textSize="14sp" |
||||
android:textColor="@color/app_dialog_content_color" |
||||
android:lineSpacingMultiplier="1.2" /> |
||||
<ProgressBar |
||||
android:id="@+id/progressBar" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="6dp" |
||||
android:layout_marginTop="10dp" |
||||
android:layout_marginBottom="10dp" |
||||
android:max="100" |
||||
android:layout_below="@+id/tvProgress" |
||||
style="@style/Widget.AppCompat.ProgressBar.Horizontal"/> |
||||
</RelativeLayout> |
@ -1,10 +1,15 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<resources> |
||||
<color name="colorPrimary">#3F51B5</color> |
||||
<color name="colorPrimaryDark">#303F9F</color> |
||||
<color name="colorAccent">#FF4081</color> |
||||
<color name="colorPrimary">#5588FF</color> |
||||
<color name="colorPrimaryDark">#4B7CFD</color> |
||||
<color name="colorAccent">#5588FF</color> |
||||
|
||||
<color name="ic_launcher_background">#FFFFFF</color> |
||||
|
||||
<color name="white">#FFFFFF</color> |
||||
|
||||
<color name="text_666">#666666</color> |
||||
<color name="text_999">#999999</color> |
||||
|
||||
|
||||
</resources> |
||||
|
@ -1,4 +1,6 @@ |
||||
<resources> |
||||
<string name="app_name">AppUpdater</string> |
||||
|
||||
<string name="ignore">忽略</string> |
||||
|
||||
</resources> |
||||
|
Loading…
Reference in new issue