https://github.com/AriaLyy/Aria/issues/367
This commit is contained in:
15
AppFrame/src/main/res/drawable/selector_green_bt.xml
Normal file
15
AppFrame/src/main/res/drawable/selector_green_bt.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#005bab"/>
|
||||
<corners android:radius="30dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
<item android:state_pressed="false">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#095389"/>
|
||||
<corners android:radius="30dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
62
AppFrame/src/main/res/layout/layout_error_temp.xml
Normal file
62
AppFrame/src/main/res/layout/layout_error_temp.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/background_color"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/temp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/pb"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/error"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/hint"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="网络错误"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="20sp"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/bt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:layout_below="@+id/hint"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_marginTop="16dp"
|
||||
android:background="@drawable/selector_green_bt"
|
||||
android:text="刷新"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
6
AppFrame/src/main/res/values/color.xml
Normal file
6
AppFrame/src/main/res/values/color.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="background_color">#E5E5E5</color>
|
||||
<color name="white">#fff</color>
|
||||
<color name="text_gray_color">#A5A5A5</color>
|
||||
</resources>
|
||||
3
AppFrame/src/main/res/values/strings.xml
Normal file
3
AppFrame/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<resources>
|
||||
<string name="app_name">Frame</string>
|
||||
</resources>
|
||||
15
AppFrame/src/main/res/values/style.xml
Normal file
15
AppFrame/src/main/res/values/style.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.Dialog.Alert">
|
||||
<!-- Customize your theme here. -->
|
||||
</style>
|
||||
<!-- <item name="android:windowBackground">@drawable/white_pop_normal_background</item>
|
||||
-->
|
||||
<style name="MyDialog" parent="AppTheme">
|
||||
<item name="android:windowFrame">@null</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="android:windowIsFloating">true</item>
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user