优化demo代码,demo添加代码使用示例
This commit is contained in:
@@ -1,15 +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>
|
||||
<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>
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/pb"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
|
||||
@@ -1,6 +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>
|
||||
<color name="background_color">#E5E5E5</color>
|
||||
<color name="white">#fff</color>
|
||||
<color name="bg_line">#757575</color>
|
||||
</resources>
|
||||
@@ -1,3 +1,3 @@
|
||||
<resources>
|
||||
<string name="app_name">Frame</string>
|
||||
<string name="app_name">Frame</string>
|
||||
</resources>
|
||||
|
||||
@@ -1,15 +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>
|
||||
<!-- 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>
|
||||
<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