Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mmm-rain
AndroidUtilCode
提交
66869a93
A
AndroidUtilCode
项目概览
mmm-rain
/
AndroidUtilCode
与 Fork 源项目一致
从无法访问的项目Fork
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
AndroidUtilCode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
66869a93
编写于
7月 21, 2017
作者:
B
Blankj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
see 07/21 log
上级
a43d9884
变更
63
隐藏空白更改
内联
并排
Showing
63 changed file
with
515 addition
and
334 deletion
+515
-334
app/src/main/AndroidManifest.xml
app/src/main/AndroidManifest.xml
+47
-49
app/src/main/res/anim/slide_in_left.xml
app/src/main/res/anim/slide_in_left.xml
+1
-1
app/src/main/res/anim/slide_in_right.xml
app/src/main/res/anim/slide_in_right.xml
+1
-1
app/src/main/res/anim/slide_out_left.xml
app/src/main/res/anim/slide_out_left.xml
+1
-1
app/src/main/res/anim/slide_out_right.xml
app/src/main/res/anim/slide_out_right.xml
+1
-1
app/src/main/res/animator/fragment_slide_left_enter.xml
app/src/main/res/animator/fragment_slide_left_enter.xml
+8
-6
app/src/main/res/animator/fragment_slide_left_exit.xml
app/src/main/res/animator/fragment_slide_left_exit.xml
+8
-6
app/src/main/res/animator/fragment_slide_right_enter.xml
app/src/main/res/animator/fragment_slide_right_enter.xml
+8
-6
app/src/main/res/animator/fragment_slide_right_exit.xml
app/src/main/res/animator/fragment_slide_right_exit.xml
+8
-6
app/src/main/res/drawable/ic_alpha.xml
app/src/main/res/drawable/ic_alpha.xml
+70
-0
app/src/main/res/drawable/ic_color.xml
app/src/main/res/drawable/ic_color.xml
+76
-0
app/src/main/res/drawable/ic_dashboard_black_24dp.xml
app/src/main/res/drawable/ic_dashboard_black_24dp.xml
+0
-9
app/src/main/res/drawable/ic_home_black_24dp.xml
app/src/main/res/drawable/ic_home_black_24dp.xml
+0
-9
app/src/main/res/drawable/ic_image.xml
app/src/main/res/drawable/ic_image.xml
+34
-0
app/src/main/res/drawable/ic_menu_blog.xml
app/src/main/res/drawable/ic_menu_blog.xml
+3
-3
app/src/main/res/drawable/ic_menu_github.xml
app/src/main/res/drawable/ic_menu_github.xml
+1
-1
app/src/main/res/drawable/ic_notifications_black_24dp.xml
app/src/main/res/drawable/ic_notifications_black_24dp.xml
+0
-9
app/src/main/res/drawable/shape_round_rect.xml
app/src/main/res/drawable/shape_round_rect.xml
+2
-2
app/src/main/res/drawable/shape_spannable_block_high.xml
app/src/main/res/drawable/shape_spannable_block_high.xml
+3
-3
app/src/main/res/drawable/shape_spannable_block_low.xml
app/src/main/res/drawable/shape_spannable_block_low.xml
+3
-3
app/src/main/res/drawable/shape_top_round_rect.xml
app/src/main/res/drawable/shape_top_round_rect.xml
+2
-2
app/src/main/res/layout/activity_activity.xml
app/src/main/res/layout/activity_activity.xml
+2
-2
app/src/main/res/layout/activity_app.xml
app/src/main/res/layout/activity_app.xml
+7
-7
app/src/main/res/layout/activity_back.xml
app/src/main/res/layout/activity_back.xml
+2
-2
app/src/main/res/layout/activity_bar.xml
app/src/main/res/layout/activity_bar.xml
+4
-4
app/src/main/res/layout/activity_clean.xml
app/src/main/res/layout/activity_clean.xml
+5
-5
app/src/main/res/layout/activity_device.xml
app/src/main/res/layout/activity_device.xml
+5
-5
app/src/main/res/layout/activity_drawer.xml
app/src/main/res/layout/activity_drawer.xml
+3
-3
app/src/main/res/layout/activity_flashlight.xml
app/src/main/res/layout/activity_flashlight.xml
+3
-3
app/src/main/res/layout/activity_fragment.xml
app/src/main/res/layout/activity_fragment.xml
+1
-1
app/src/main/res/layout/activity_image.xml
app/src/main/res/layout/activity_image.xml
+12
-12
app/src/main/res/layout/activity_keyboard.xml
app/src/main/res/layout/activity_keyboard.xml
+6
-6
app/src/main/res/layout/activity_log.xml
app/src/main/res/layout/activity_log.xml
+19
-19
app/src/main/res/layout/activity_main.xml
app/src/main/res/layout/activity_main.xml
+2
-2
app/src/main/res/layout/activity_network.xml
app/src/main/res/layout/activity_network.xml
+7
-5
app/src/main/res/layout/activity_permission.xml
app/src/main/res/layout/activity_permission.xml
+4
-2
app/src/main/res/layout/activity_phone.xml
app/src/main/res/layout/activity_phone.xml
+8
-6
app/src/main/res/layout/activity_pinyin.xml
app/src/main/res/layout/activity_pinyin.xml
+4
-2
app/src/main/res/layout/activity_process.xml
app/src/main/res/layout/activity_process.xml
+5
-3
app/src/main/res/layout/activity_sdcard.xml
app/src/main/res/layout/activity_sdcard.xml
+4
-2
app/src/main/res/layout/activity_snackbar.xml
app/src/main/res/layout/activity_snackbar.xml
+12
-12
app/src/main/res/layout/activity_span.xml
app/src/main/res/layout/activity_span.xml
+5
-3
app/src/main/res/layout/activity_status_bar_color.xml
app/src/main/res/layout/activity_status_bar_color.xml
+4
-4
app/src/main/res/layout/activity_status_bar_image_view.xml
app/src/main/res/layout/activity_status_bar_image_view.xml
+4
-4
app/src/main/res/layout/activity_toast.xml
app/src/main/res/layout/activity_toast.xml
+13
-11
app/src/main/res/layout/app_bar_main.xml
app/src/main/res/layout/app_bar_main.xml
+20
-20
app/src/main/res/layout/dialog_keyboard.xml
app/src/main/res/layout/dialog_keyboard.xml
+5
-5
app/src/main/res/layout/fragment_demo0.xml
app/src/main/res/layout/fragment_demo0.xml
+11
-11
app/src/main/res/layout/fragment_demo1.xml
app/src/main/res/layout/fragment_demo1.xml
+3
-3
app/src/main/res/layout/fragment_demo2.xml
app/src/main/res/layout/fragment_demo2.xml
+4
-4
app/src/main/res/layout/fragment_demo3.xml
app/src/main/res/layout/fragment_demo3.xml
+11
-11
app/src/main/res/layout/fragment_status_bar_alpha.xml
app/src/main/res/layout/fragment_status_bar_alpha.xml
+3
-3
app/src/main/res/layout/fragment_status_bar_color.xml
app/src/main/res/layout/fragment_status_bar_color.xml
+4
-4
app/src/main/res/layout/fragment_status_bar_image_view.xml
app/src/main/res/layout/fragment_status_bar_image_view.xml
+4
-4
app/src/main/res/layout/nav_header.xml
app/src/main/res/layout/nav_header.xml
+3
-3
app/src/main/res/layout/snackbar_custom.xml
app/src/main/res/layout/snackbar_custom.xml
+2
-2
app/src/main/res/layout/toast_custom.xml
app/src/main/res/layout/toast_custom.xml
+1
-1
app/src/main/res/menu/activity_main_drawer.xml
app/src/main/res/menu/activity_main_drawer.xml
+2
-2
app/src/main/res/menu/navigation.xml
app/src/main/res/menu/navigation.xml
+6
-6
subutil/build.gradle
subutil/build.gradle
+6
-3
update_log.md
update_log.md
+1
-0
utilcode/build.gradle
utilcode/build.gradle
+5
-3
utilcode/src/main/java/com/blankj/utilcode/util/SPUtils.java
utilcode/src/main/java/com/blankj/utilcode/util/SPUtils.java
+6
-6
未找到文件。
app/src/main/AndroidManifest.xml
浏览文件 @
66869a93
...
...
@@ -3,85 +3,83 @@
package=
"com.blankj.androidutilcode"
>
<!--读写内存-->
<uses-permission
android:name=
"android.permission.READ_EXTERNAL_STORAGE"
/>
<uses-permission
android:name=
"android.permission.WRITE_EXTERNAL_STORAGE"
/>
<uses-permission
android:name=
"android.permission.READ_EXTERNAL_STORAGE"
/>
<uses-permission
android:name=
"android.permission.WRITE_EXTERNAL_STORAGE"
/>
<!--flashlight-->
<uses-permission
android:name=
"android.permission.CAMERA"
/>
<uses-permission
android:name=
"android.permission.CAMERA"
/>
<uses-feature
android:name=
"android.hardware.camera"
/>
<uses-feature
android:name=
"android.hardware.camera.autofocus"
/>
<uses-feature
android:name=
"android.hardware.camera.flash"
/>
<uses-feature
android:name=
"android.hardware.camera"
/>
<uses-feature
android:name=
"android.hardware.camera.autofocus"
/>
<uses-feature
android:name=
"android.hardware.camera.flash"
/>
<uses-permission
android:name=
"android.permission.FLASHLIGHT"
/>
<uses-permission
android:name=
"android.permission.FLASHLIGHT"
/>
<!--location-->
<
uses-permission
android:name=
"android.permission.ACCESS_COARSE_LOCATION"
/
>
<
uses-permission
android:name=
"android.permission.ACCESS_FINE_LOCATION"
/
>
<
!--<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />--
>
<
!--<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />--
>
<!--network-->
<uses-permission
android:name=
"android.permission.ACCESS_WIFI_STATE"
/>
<uses-permission
android:name=
"android.permission.CHANGE_WIFI_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<uses-permission
android:name=
"android.permission.MODIFY_PHONE_STATE"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.ACCESS_WIFI_STATE"
/>
<uses-permission
android:name=
"android.permission.CHANGE_WIFI_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<uses-permission
android:name=
"android.permission.MODIFY_PHONE_STATE"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<!--phone-->
<uses-permission
android:name=
"android.permission.READ_PHONE_STATE"
/>
<uses-permission
android:name=
"android.permission.CALL_PHONE"
/>
<uses-permission
android:name=
"android.permission.SEND_SMS"
/>
<uses-permission
android:name=
"android.permission.READ_PHONE_STATE"
/>
<uses-permission
android:name=
"android.permission.CALL_PHONE"
/>
<uses-permission
android:name=
"android.permission.SEND_SMS"
/>
<!--拨打电话-->
<uses-permission
android:name=
"android.permission.CALL_PHONE"
/>
<uses-permission
android:name=
"android.permission.CALL_PHONE"
/>
<!--发送短信-->
<uses-permission
android:name=
"android.permission.SEND_SMS"
/>
<uses-permission
android:name=
"android.permission.SEND_SMS"
/>
<!--获取手机联系人-->
<!--<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>-->
<uses-permission
android:name=
"android.permission.READ_CONTACTS"
/>
<uses-permission
android:name=
"android.permission.READ_CONTACTS"
/>
<!--获取短信-->
<!--<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>-->
<uses-permission
android:name=
"android.permission.READ_SMS"
/>
<uses-permission
android:name=
"android.permission.READ_SMS"
/>
<!--process-->
<uses-permission
android:name=
"android.permission.KILL_BACKGROUND_PROCESSES"
/>
<uses-permission
android:name=
"android.permission.KILL_BACKGROUND_PROCESSES"
/>
<application
android:name=
".UtilsApp"
android:allowBackup=
"
tru
e"
android:allowBackup=
"
fals
e"
android:icon=
"@mipmap/ic_launcher"
android:label=
"@string/my_app_name"
android:theme=
"@style/AppTheme"
>
<activity
android:name=
".activity.ActivityActivity"
/>
<activity
android:name=
".activity.AppActivity"
/>
<activity
android:name=
".activity.BarActivity"
/>
<activity
android:name=
".activity.CleanActivity"
/>
<activity
android:name=
".activity.DeviceActivity"
/>
<activity
android:name=
".activity.FragmentActivity"
/>
<activity
android:name=
".activity.ActivityActivity"
/>
<activity
android:name=
".activity.AppActivity"
/>
<activity
android:name=
".activity.BarActivity"
/>
<activity
android:name=
".activity.CleanActivity"
/>
<activity
android:name=
".activity.DeviceActivity"
/>
<activity
android:name=
".activity.FragmentActivity"
/>
<!--<activity android:name=".activities.FlashlightActivity"/>-->
<activity
android:name=
".activity.ImageActivity"
/>
<activity
android:name=
".activity.ImageActivity"
/>
<activity
android:name=
".activity.KeyboardActivity"
android:windowSoftInputMode=
"stateHidden|adjustPan"
/>
<activity
android:name=
".activity.LogActivity"
/>
android:windowSoftInputMode=
"stateHidden|adjustPan"
/>
<activity
android:name=
".activity.LogActivity"
/>
<activity
android:name=
".activity.MainActivity"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
<activity
android:name=
".activity.NetworkActivity"
/>
<activity
android:name=
".activity.NetworkActivity"
/>
<!--<activity android:name=".activities.PermissionActivity"/>-->
<activity
android:name=
".activity.PhoneActivity"
/>
<activity
android:name=
".activity.PinyinActivity"
/>
<activity
android:name=
".activity.ProcessActivity"
/>
<activity
android:name=
".activity.SDCardActivity"
/>
<activity
android:name=
".activity.SnackbarActivity"
/>
<activity
android:name=
".activity.SpanActivity"
/>
<activity
android:name=
".activity.StatusBarAlphaActivity"
/>
<activity
android:name=
".activity.StatusBarColorActivity"
/>
<activity
android:name=
".activity.StatusBarFragmentActivity"
/>
<activity
android:name=
".activity.StatusBarImageViewActivity"
/>
<activity
android:name=
".activity.ToastActivity"
/>
<service
android:name=
".service.LocationService"
/>
<activity
android:name=
".activity.PhoneActivity"
/>
<activity
android:name=
".activity.PinyinActivity"
/>
<activity
android:name=
".activity.ProcessActivity"
/>
<activity
android:name=
".activity.SDCardActivity"
/>
<activity
android:name=
".activity.SnackbarActivity"
/>
<activity
android:name=
".activity.SpanActivity"
/>
<activity
android:name=
".activity.StatusBarAlphaActivity"
/>
<activity
android:name=
".activity.StatusBarColorActivity"
/>
<activity
android:name=
".activity.StatusBarFragmentActivity"
/>
<activity
android:name=
".activity.StatusBarImageViewActivity"
/>
<activity
android:name=
".activity.ToastActivity"
/>
<provider
android:name=
"android.support.v4.content.FileProvider"
...
...
@@ -90,7 +88,7 @@
android:grantUriPermissions=
"true"
>
<meta-data
android:name=
"android.support.FILE_PROVIDER_PATHS"
android:resource=
"@xml/provider_paths"
/>
android:resource=
"@xml/provider_paths"
/>
</provider>
</application>
...
...
app/src/main/res/anim/slide_in_left.xml
浏览文件 @
66869a93
...
...
@@ -3,5 +3,5 @@
<translate
android:duration=
"300"
android:fromXDelta=
"100%"
android:toXDelta=
"0"
/>
android:toXDelta=
"0"
/>
</set>
\ No newline at end of file
app/src/main/res/anim/slide_in_right.xml
浏览文件 @
66869a93
...
...
@@ -3,5 +3,5 @@
<translate
android:duration=
"300"
android:fromXDelta=
"-100%"
android:toXDelta=
"0"
/>
android:toXDelta=
"0"
/>
</set>
\ No newline at end of file
app/src/main/res/anim/slide_out_left.xml
浏览文件 @
66869a93
...
...
@@ -3,5 +3,5 @@
<translate
android:duration=
"300"
android:fromXDelta=
"0"
android:toXDelta=
"-100%"
/>
android:toXDelta=
"-100%"
/>
</set>
\ No newline at end of file
app/src/main/res/anim/slide_out_right.xml
浏览文件 @
66869a93
...
...
@@ -3,5 +3,5 @@
<translate
android:duration=
"300"
android:fromXDelta=
"0"
android:toXDelta=
"100%"
/>
android:toXDelta=
"100%"
/>
</set>
\ No newline at end of file
app/src/main/res/animator/fragment_slide_left_enter.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<objectAnimator
android:duration=
"@android:integer/config_mediumAnimTime"
android:interpolator=
"@android:interpolator/decelerate_quint"
android:valueFrom=
"100dp"
android:valueTo=
"0dp"
android:valueType=
"floatType"
android:propertyName=
"translationX"
android:duration=
"@android:integer/config_mediumAnimTime"
/>
android:valueFrom=
"100dp"
android:valueTo=
"0dp"
android:valueType=
"floatType"
/>
<objectAnimator
android:duration=
"@android:integer/config_mediumAnimTime"
android:interpolator=
"@android:interpolator/decelerate_quint"
android:valueFrom=
"0.0"
android:valueTo=
"1.0"
android:valueType=
"floatType"
android:propertyName=
"alpha"
android:duration=
"@android:integer/config_mediumAnimTime"
/>
android:valueFrom=
"0.0"
android:valueTo=
"1.0"
android:valueType=
"floatType"
/>
</set>
\ No newline at end of file
app/src/main/res/animator/fragment_slide_left_exit.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<objectAnimator
android:duration=
"@android:integer/config_mediumAnimTime"
android:interpolator=
"@android:interpolator/decelerate_quint"
android:valueFrom=
"0dp"
android:valueTo=
"-100dp"
android:valueType=
"floatType"
android:propertyName=
"translationX"
android:duration=
"@android:integer/config_mediumAnimTime"
/>
android:valueFrom=
"0dp"
android:valueTo=
"-100dp"
android:valueType=
"floatType"
/>
<objectAnimator
android:duration=
"@android:integer/config_mediumAnimTime"
android:interpolator=
"@android:interpolator/decelerate_quint"
android:valueFrom=
"1.0"
android:valueTo=
"0.0"
android:valueType=
"floatType"
android:propertyName=
"alpha"
android:duration=
"@android:integer/config_mediumAnimTime"
/>
android:valueFrom=
"1.0"
android:valueTo=
"0.0"
android:valueType=
"floatType"
/>
</set>
\ No newline at end of file
app/src/main/res/animator/fragment_slide_right_enter.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<objectAnimator
android:duration=
"@android:integer/config_mediumAnimTime"
android:interpolator=
"@android:interpolator/decelerate_quint"
android:valueFrom=
"-100dp"
android:valueTo=
"0dp"
android:valueType=
"floatType"
android:propertyName=
"translationX"
android:duration=
"@android:integer/config_mediumAnimTime"
/>
android:valueFrom=
"-100dp"
android:valueTo=
"0dp"
android:valueType=
"floatType"
/>
<objectAnimator
android:duration=
"@android:integer/config_mediumAnimTime"
android:interpolator=
"@android:interpolator/decelerate_quint"
android:valueFrom=
"0.0"
android:valueTo=
"1.0"
android:valueType=
"floatType"
android:propertyName=
"alpha"
android:duration=
"@android:integer/config_mediumAnimTime"
/>
android:valueFrom=
"0.0"
android:valueTo=
"1.0"
android:valueType=
"floatType"
/>
</set>
\ No newline at end of file
app/src/main/res/animator/fragment_slide_right_exit.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<set
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<objectAnimator
android:duration=
"@android:integer/config_mediumAnimTime"
android:interpolator=
"@android:interpolator/decelerate_quint"
android:valueFrom=
"0dp"
android:valueTo=
"100dp"
android:valueType=
"floatType"
android:propertyName=
"translationX"
android:duration=
"@android:integer/config_mediumAnimTime"
/>
android:valueFrom=
"0dp"
android:valueTo=
"100dp"
android:valueType=
"floatType"
/>
<objectAnimator
android:duration=
"@android:integer/config_mediumAnimTime"
android:interpolator=
"@android:interpolator/decelerate_quint"
android:valueFrom=
"1.0"
android:valueTo=
"0.0"
android:valueType=
"floatType"
android:propertyName=
"alpha"
android:duration=
"@android:integer/config_mediumAnimTime"
/>
android:valueFrom=
"1.0"
android:valueTo=
"0.0"
android:valueType=
"floatType"
/>
</set>
\ No newline at end of file
app/src/main/res/drawable/ic_alpha.xml
0 → 100644
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"35dp"
android:height=
"24dp"
android:viewportHeight=
"1024"
android:viewportWidth=
"1502"
>
<path
android:fillColor=
"#FFFFFFFF"
android:pathData=
"M233.943037 703.44792C234.266942 737.923809 237.735488 769.333798 249.261858
799.333221 260.328071 828.131582 276.43307 853.749948 303.161054 871.496116
338.387972 894.888692 377.260237 905.731381 419.439129 897.396596 445.204137
892.30611 471.237619 885.558213 495.136198 875.167736 530.919182 859.610024
564.300969 839.24394 594.177963 814.046664 620.816455 791.581329 649.144577
770.736064 673.742025 746.324979 706.137354 714.174446 735.807718 679.401915
766.253542 645.419719 778.651349 631.581652 790.733852 617.363978 801.678558
602.428573 823.199491 573.068059 844.047083 543.234589 864.734942 513.309845
877.938108 494.211195 888.184013 474.42386 880.931548 449.848898 869.228311
410.189172 859.067666 370.097981 847.208859 330.485971 832.04984 279.85702
814.125377 230.339933 783.798807 185.840721 765.716659 159.307558 744.104118
137.470755 714.74701 122.375623 688.366277 108.81137 660.261919 107.129065
632.600652 110.750901 580.755334 117.536137 538.227007 144.623154 499.763838
177.487267 465.742842 206.557373 434.091095 238.131233 408.534903 274.704305
383.195989 310.9683 357.627031 347.232294 335.025916 385.118434 305.756115
434.185386 282.117411 485.982204 264.408112 540.305588 246.788304 594.353084
235.023289 649.236547 233.943037 703.44792M977.186504 747.826812C972.373531
753.539606 968.998709 758.171656 964.988979 762.20422 940.683421 786.65887
917.624265 812.515785 891.460878 834.933412 861.502857 860.601569 829.699841
884.51481 796.889067 906.648253 773.286543 922.566902 746.703412 934.287048
721.479588 947.932199 662.588504 979.788173 598.780006 998.233396 533.456698
1011.907592 510.793804 1016.649579 487.351082 1018.051851 464.193901 1020.298386
445.257381 1022.136267 426.182425 1024.380726 407.228839 1023.94511 365.616661
1022.98468 324.24736 1019.460343 283.702531 1008.941252 233.178226 995.83336
185.843274 976.120704 142.820659 947.08793 87.447134 909.716229 45.508934
861.783954 21.897945 799.660969 10.441886 769.520489 4.295135 738.521228
1.310227 706.374845-3.321646 656.496814 4.906629 608.421406 16.888991 560.497426
30.000481 508.053413 50.626562 458.165012 75.501019 410.261776 101.323503
360.533103 131.360299 312.990804 168.83496 270.443568 181.854842 255.659589
197.045807 242.518508 208.800173 226.884042 229.404957 199.477578 257.238723
179.862414 283.372346 158.639618 329.34369 121.305256 380.28774 91.309984
434.108093 65.477957 495.643319 35.943189 559.750055 14.996288 627.534153
5.566234 654.67765 1.788822 682.387861-0.445262 709.755053 0.164601 755.04036
1.17274 798.84062 9.845648 840.90879 28.008756 868.906591 40.09814 894.637535
54.821959 918.54683 73.047302 953.984611 100.059639 981.179237 133.875883
1001.867027 172.394712 1015.191632 197.204074 1026.061796 223.264281 1038.670533
250.129343 1044.949372 241.126612 1051.701132 231.798207 1058.080043 222.231254
1085.327913 181.366323 1112.420282 140.401831 1139.661735 99.532749 1153.035352
79.469525 1166.890492 59.705003 1179.94662 39.450938 1184.478353 32.420927
1190.799719 32.904252 1197.408742 32.902176 1270.195514 32.868987 1342.982217
32.881432 1415.76892 32.879356 1422.870115 32.879356 1430.018138 32.383587
1437.05544 33.034933 1441.574407 33.453955 1445.929271 35.551138 1451.879973
37.357905 1438.864324 56.966851 1426.928858 74.704718 1415.244802 92.598162
1394.41209 124.501845 1373.866968 156.583925 1352.951113 188.435748 1325.933355
229.576568 1298.60241 270.518247 1271.533456 311.625871 1244.068307 353.330913
1216.875797 395.206059 1189.342454 436.869612 1171.162281 464.3798 1152.935211
491.875463 1133.990158 518.885732 1128.408073 526.845053 1127.355605 533.856401
1130.376759 542.759558 1152.460105 607.821913 1174.219615 672.987992 1196.145343
738.100131 1207.269033 771.130197 1219.598646 803.602252 1239.860411 832.686878
1262.589314 865.314517 1292.592047 888.333712 1330.906131 901.6034 1356.820291
910.581243 1383.4652 914.406364 1410.623578 914.155363 1438.137808 913.902294
1465.634903 911.910904 1493.142716 910.767933 1494.819513 910.69948 1496.530372
911.392315 1501.771554 912.437794 1488.063452 925.122514 1476.364515 936.552252
1464.007188 947.262177 1436.047683 971.496947 1403.748195 988.983821 1368.747224
1001.176916 1344.252033 1009.710842 1318.989846 1015.714044 1292.500439
1016.624691 1244.068307 1018.292476 1197.383212 1011.26039 1152.926678 992.40444
1116.830575 977.095654 1085.743426 954.821153 1060.583496 925.164004 1033.248251
892.945018 1014.119981 856.295191 1000.627042 816.822163 993.96689 797.339756
988.25695 777.552421 982.001593 757.939332 981.174936 755.350524 979.664359
752.967082 977.186504 747.826812"
/>
</vector>
\ No newline at end of file
app/src/main/res/drawable/ic_color.xml
0 → 100644
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportHeight=
"1024"
android:viewportWidth=
"1024"
>
<path
android:fillColor=
"#FFFFFFFF"
android:pathData=
"M981.1 215.4c-10.2 0-19.3 5.7-26.6 12.3-8.6 7.7-15.6 17.2-22.1 26.7-5.9 8.5-11.2
17.4-17.3 25.8-10.3 14.2-20.8 28.2-31.3 42.3-10.6 14.3-21.2 28.7-31.8 43-10.6
14.3-21.2 28.7-31.8 43-10.3 14-20.7 27.9-31.1 41.8-10.4 13.8-20.9 27.6-31.3
41.3-10.4 13.7-20.9 27.4-31.2 41.2-10.4 13.8-20.7 27.6-30.8 41.5-10.2 13.9-20.2
27.8-30 41.9-5.9 8.4-11.6 16.9-17.5 25.3-4.2 6-8.4 12.1-12.5 18.1-5.3 7.8-10.5
15.7-15.6 23.6-5.5 8.6-10.9 17.3-16 26.2-4.9 8.4-9.5 17-13.6 25.9-3.4 7.3-6.5
14.8-8.4 22.6-1.3 5.2-2.4 11.2-0.5 16.4 1.5 4 4.8 6.4 9 6.5 5.4 0.2 10.8-2.3
15.4-4.8 6.9-3.7 13.3-8.3 19.4-13.1 7.3-5.7 14.3-11.8 21.1-18.1 7-6.5 13.8-13.1
20.5-19.9 5.9-6 11.8-12.1 17.5-18.3 4.1-4.4 8.2-8.9 12.3-13.5 8.1-9.1 16-18.4
23.8-27.9 10.5-12.8 20.7-25.8 30.6-39 10-13.2 19.8-26.6 29.5-40.1s19.3-27
28.9-40.6c9.6-13.5 19.1-27 28.8-40.4 10-13.9 20.3-27.7 30.5-41.4 10.6-14.4
21.2-28.7 31.9-43.1 10.7-14.4 21.3-28.8 32-43.2 10.6-14.4 21.2-28.7 31.9-43.1
4.4-5.9 8.9-11.8 13.3-17.7 4.7-6.1 9.2-12.3 13.6-18.6 4.9-7.1 9.6-14.4 13.9-22
4-7.1 7.6-14.6 10-22.4 1.9-6.3 3.2-13.1
1.8-19.6-1.3-6-5.1-10.8-10.4-13.8-8.1-4-17.4-4.8-25.9-4.8-29.1 0 80.8 0 0
0zM691.1 283.8c-53.5 0-53.5 83 0 83s53.5-83 0-83zM504.6 229.8c-68 0-68 106.3 0
107 67.6 0.7 68.7-107 0-107zM311.6 346.8c-68 0-68 106.3 0 107 67.6 0.7 68.7-107
0-107zM230.1 530.8c-58.7 0-58.7 91 0 91s58.7-91 0-91z"
/>
<path
android:fillColor=
"#FFFFFFFF"
android:pathData=
"M521.9 985.8c-17
0-34-0.7-50.8-2.6-16.9-1.8-33.6-4.8-50-9.4-15.6-4.4-30.9-10.3-45-18.4-13.8-7.9-26.4-17.9-36.7-30-10.9-12.9-19-27.9-24.2-43.9-2.4-7.4-4.1-14.8-5-22.5-0.9-8-1.4-16.1-2.2-24.2-0.8-8.5-1.7-17.1-3.6-25.4-1.6-7.3-4-14.8-8.3-21-9.5-13.6-27.7-15-42.8-13.9-18.1
1.4-35.6 6.5-53.5 9.2-7.2 1.1-14.5 1.3-21.8
1.2-6.8-0.1-13.7-0.6-20.4-1.5-12.1-1.6-24-4.7-35.2-9.6-10.3-4.5-20-10.4-28.6-17.6-8.4-7-15.8-15.3-22.2-24.2-6.6-9.3-12.1-19.5-16.6-30-4.8-11.1-8.5-22.7-11.4-34.4-3.1-12.3-5.2-24.9-6.7-37.5-1.6-13.2-2.4-26.5-2.7-39.8-0.3-13.5
0-27.1 0.8-40.6 0.8-13.6 2-27.1 3.7-40.6 1.6-13.1 3.6-26.2 6-39.2 2.3-12.2
4.9-24.4 7.8-36.5 2.7-11.1 5.7-22.1 9.1-33 3.3-10.6 6.9-21.1 11-31.4 6.1-15.5
13.1-30.6 20.9-45.4 7.8-14.8 16.4-29.3 25.7-43.2 9.3-13.9 19.2-27.4 29.8-40.4
10.7-13.1 22-25.6 33.8-37.7 11.9-12 24.3-23.5 37.2-34.5 12.9-10.9 26.2-21.2
40-30.8 13.8-9.7 28.1-18.8 42.7-27.2 14.5-8.4 29.4-16.1 44.6-23.1 15.2-7
30.8-13.3 46.6-18.9 15.7-5.5 31.7-10.3 47.8-14.3 16-3.9 32.1-7.1 48.4-9.4
16.3-2.3 32.7-3.7 49.1-4.3 16.3-0.5 32.6-0.2 48.8 1.2 16.3 1.3 32.6 3.6 48.6 6.9
16.2 3.3 32.1 7.6 47.7 12.9 15.8 5.3 31.2 11.7 46.2 19 15.4 7.6 30.4 16.2 44.7
25.7 14.3 9.5 27.9 19.9 40.9 31.1-12.2 14.2-24.5 28.3-36.7 42.5-3.4 4-6.9 8-10.3
12.1-10.9-9.3-22.3-18-34.2-25.9-11.3-7.6-23.1-14.4-35.3-20.5-11.7-5.9-23.7-11-36-15.4-12-4.3-24.3-7.8-36.8-10.6-12.2-2.7-24.6-4.7-37.1-6-12.4-1.3-25-1.8-37.5-1.7-12.5
0.1-25 0.9-37.5 2.4s-24.8 3.5-37.1 6.2c-12.4 2.7-24.7 6-36.8 9.8-12.2 3.9-24.2
8.2-36 13.1-12 4.9-23.8 10.4-35.3 16.3-11.6 5.9-23 12.3-34.2 19.1-11.2 6.8-22.1
14-32.8 21.6-10.7 7.6-21.2 15.7-31.4 24-10.1 8.3-20 17-29.5 26s-18.8 18.4-27.7
28c-9.3 10.1-18.4 20.4-26.7 31.3-9.2 12-17.5 24.6-25 37.7-7.5 13.1-14.2
26.7-20.1 40.7-5.9 13.9-11.1 28.2-15.6 42.6-4.6 14.5-8.5 29.3-11.9 44.1-3.5
15.2-6.5 30.6-8.7 46.1-2.2 15.9-3.5 31.9-3.6 47.9-0.1 15.9 1.1 31.8 3.9 47.4 2.8
15.6 7.3 30.8 13.5 45.4 4.5 10.5 10.1 20.8 17.7 29.4 5.7 6.4 12.6 11.5 20.6 14.7
7.7 3 16.1 4.2 24.3 4.4 9.6 0.2 19.1-0.6 28.7-1.5 11.4-1.1 22.7-2.4 34.2-3
12.5-0.7 25.1-0.5 37.6 1.3 11.7 1.7 23.2 4.7 33.9 9.8 10.7 5.1 20.3 12.2 28.2 21
8.3 9.2 14.9 20.1 19.1 31.8 4.1 11.2 6.3 22.9 8 34.6 1.8 11.8 3.2 23.7 5.5 35.4
2.2 11.1 5.3 22.2 10.8 32.2 2.7 4.9 6 9.5 9.9 13.5 3.9 4 8.3 7.4 13 10.4 8.9 5.7
18.6 10 28.5 13.4 10.9 3.6 22.1 6 33.5 7.7 12.1 1.7 24.2 2.6 36.4 2.7 12.6 0.2
25.2-0.3 37.8-1.4 12.5-1 25-2.6 37.3-4.7 11.7-1.9 23.4-4.3 34.9-7.1 10.4-2.6
20.8-5.5 31-8.9 12.4-4.1 24.5-9 36.3-14.5 13.7-6.4 27.1-13.7 40-21.7 13-8.1
25.5-16.9 37.4-26.3 11.8-9.4 23.2-19.4 33.9-30 10.8-10.7 21-21.9 30.5-33.8
9.6-12.1 18.5-24.8 26.5-38.1s15.2-27.1 21.4-41.3c4.3-9.7 8.3-19.5 10.6-29.9 2-9
3.3-18.1 4.6-27.2 1.5-10.4 2.8-20.8 4.5-31.2 1.6-10.3 3.5-20.5 6.1-30.5 2.3-8.9
5.2-17.7 9.7-25.8 3.6-6.6 8.4-12.8 15-16.6 3.3-1.9 7.1-3.1 10.8-4.1 3.4-0.9
6.8-1.5 10.3-1.5 5.4-0.1 10.9 1.3 15.3 4.6 4.3 3.2 7.2 7.9 9.2 12.8 2.4 6 3.6
12.5 4.2 18.9 0.7 7.6 0.7 15.2 0.3 22.7-0.5 8.2-1.4 16.3-2.5 24.4-1.2 7.9-2.6
15.8-4.2 23.7-1.5 7-3.1 14-4.8 20.9-1.3 5.4-2.8 10.7-4.3 16-2.6 9.1-5.7 18.2-9
27.1-5.3 14.3-11.3 28.3-18.1 41.9-6.7 13.6-14.2 26.8-22.3 39.6-8.2 12.9-17
25.3-26.5 37.2-9.3 11.7-19.1 22.9-29.5 33.6-9.9 10.2-20.2 19.9-30.9 29.1-10.5
9.1-21.4 17.7-32.7 25.7-11.1 7.9-22.6 15.3-34.4 22.2-11.7 6.8-23.8 13.1-36.1
18.9-12.3 5.7-24.8 10.8-37.5 15.4-12.8 4.6-25.9 8.6-39 12-13.3 3.4-26.8 6.3-40.3
8.6-13.7 2.3-27.5 4-41.3 5.1-14.2 1.1-28.4 1.7-42.6 1.7h-19.5
20.4c0-0.3-0.1-0.3-0.2-0.3-86.9 0 5.1 0 0 0z"
/>
<path
android:fillColor=
"#FFFFFFFF"
android:pathData=
"M826 161c0 15.4-9.9 29.5-24.4 34.8-14.6 5.3-31.3
0.7-41.1-11.2-9.9-12-11.2-29.4-3.1-42.7 8-13.2 23.9-20.2 39.1-17.1 14.9 3 26.7
15.4 29.1 30.4 0.2 1.9 0.4 3.9 0.4 5.8z"
/>
</vector>
\ No newline at end of file
app/src/main/res/drawable/ic_dashboard_black_24dp.xml
已删除
100644 → 0
浏览文件 @
a43d9884
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportHeight=
"24.0"
android:viewportWidth=
"24.0"
>
<path
android:fillColor=
"#FFFFFFFF"
android:pathData=
"M3,13h8L11,3L3,3v10zM3,21h8v-6L3,15v6zM13,21h8L21,11h-8v10zM13,3v6h8L21,3h-8z"
/>
</vector>
app/src/main/res/drawable/ic_home_black_24dp.xml
已删除
100644 → 0
浏览文件 @
a43d9884
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportHeight=
"24.0"
android:viewportWidth=
"24.0"
>
<path
android:fillColor=
"#FFFFFFFF"
android:pathData=
"M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z"
/>
</vector>
app/src/main/res/drawable/ic_image.xml
0 → 100644
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportHeight=
"1024"
android:viewportWidth=
"1024"
>
<path
android:fillColor=
"#FFFFFFFF"
android:pathData=
"M876.98432 86.18496 147.01568 86.18496C66.38592 86.18496 1.024 151.54688 1.024
232.17664l0 559.6416c0 80.62976 65.36192 145.99168 145.99168 145.99168l729.96864
0c80.62976 0 145.99168-65.36192 145.99168-145.99168L1022.976 232.17664C1022.976
151.54688 957.61408 86.18496 876.98432 86.18496zM949.98016 791.81824c0
40.24832-32.74752 72.99584-72.99584 72.99584L147.01568 864.81408c-40.24832
0-72.99584-32.74752-72.99584-72.99584L74.01984 232.17664c0-40.24832
32.74752-72.99584 72.99584-72.99584l729.96864 0c40.24832 0 72.99584 32.74752
72.99584 72.99584L949.98016 791.81824zM259.55328 463.3344c60.37504 0
109.49632-49.11616 109.49632-109.49632
0-60.37504-49.11616-109.4912-109.49632-109.4912-60.38016 0-109.49632
49.11616-109.49632 109.4912C150.05696 414.21824 199.17312 463.3344 259.55328
463.3344zM259.55328 317.34272c20.12672 0 36.49536 16.37376 36.49536 36.49536 0
20.12672-16.37376 36.49536-36.49536 36.49536-20.12672
0-36.50048-16.36864-36.50048-36.49536C223.0528 333.71648 239.42656 317.34272
259.55328 317.34272zM689.03936
409.51296c-6.70208-8.00768-16.512-12.78464-26.97216-13.07136-10.42944-0.92672-20.52096
3.89632-27.65824 11.49952l-157.58848
168.09472-64.61952-60.30848c-14.208-13.28128-36.31616-13.09184-50.29376
0.48128L170.2912 701.74208c-14.48448 14.01856-14.848 37.11488-0.82944 51.584
7.16288 7.41376 16.68096 11.12576 26.21952 11.12576 9.14944 0 18.29888-3.42016
25.39008-10.28608l166.68672-161.39264 65.88416 61.49632c14.73024 13.73184
37.79072 12.9536 51.52768-1.71008l154.29632-164.60288 143.89248 172.15488c12.928
15.47264 35.92704 17.536 51.40992 4.61312 15.47264-12.928 17.52576-35.95264
4.59776-51.42016L689.03936 409.51296z"
/>
</vector>
\ No newline at end of file
app/src/main/res/drawable/ic_menu_blog.xml
浏览文件 @
66869a93
...
...
@@ -12,13 +12,13 @@ s254.26-113.845,254.26-254.26C508.52,113.813,394.675,0,254.26,0z
M412.727,310.451c0,56.509-45.989,102.308-102.943,102.308
H198.831c-56.891,0-103.102-45.735-103.102-102.308V198.132c0.032-56.541,46.18-102.371,103.102-102.371h51.964
c56.954,0,102.53,42.525,102.53,99.066c0.731,10.584,10.298,19.8,21.167,19.8h17.766c11.378,0,20.5,11.95,20.5,23.233
L412.727,310.451L412.727,310.451z"
/>
L412.727,310.451L412.727,310.451z"
/>
<path
android:fillColor=
"#010002"
android:pathData=
"M313.693,293.893H194.827c-10.901,0-19.8,8.899-19.8,19.801c0,10.87,8.931,19.8,19.8,19.8
h118.866c10.901,0,19.8-8.931,19.8-19.8C333.494,302.792,324.594,293.893,313.693,293.893z"
/>
h118.866c10.901,0,19.8-8.931,19.8-19.8C333.494,302.792,324.594,293.893,313.693,293.893z"
/>
<path
android:fillColor=
"#010002"
android:pathData=
"M194.827,214.627h59.433c10.901,0,19.8-8.931,19.8-19.8c0-10.901-8.931-19.8-19.8-19.8h-59.433
c-10.901,0-19.8,8.931-19.8,19.8C174.994,205.728,183.925,214.627,194.827,214.627z"
/>
c-10.901,0-19.8,8.931-19.8,19.8C174.994,205.728,183.925,214.627,194.827,214.627z"
/>
</vector>
\ No newline at end of file
app/src/main/res/drawable/ic_menu_github.xml
浏览文件 @
66869a93
...
...
@@ -15,5 +15,5 @@
-2.12 0 0 .67-.21 2.2 .82 .64-.18 1.32-.27 2-.27 .68 0 1.36 .09 2 .27 1.53-1.04
2.2-.82 2.2-.82 .44 1.1 .16 1.92 .08 2.12 .51 .56 .82 1.27 .82 2.15 0 3.07-1.87
3.75-3.65 3.95 .29 .25 .54 .73 .54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21 .15 .46
.55 .38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"
/>
.55 .38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"
/>
</vector>
\ No newline at end of file
app/src/main/res/drawable/ic_notifications_black_24dp.xml
已删除
100644 → 0
浏览文件 @
a43d9884
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"24dp"
android:height=
"24dp"
android:viewportHeight=
"24.0"
android:viewportWidth=
"24.0"
>
<path
android:fillColor=
"#FFFFFFFF"
android:pathData=
"M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.89,2 2,2zM18,16v-5c0,-3.07 -1.64,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.63,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2z"
/>
</vector>
app/src/main/res/drawable/shape_round_rect.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"@color/colorAccent"
/>
<corners
android:radius=
"@dimen/radius_16"
/>
<solid
android:color=
"@color/colorAccent"
/>
<corners
android:radius=
"@dimen/radius_16"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/shape_spannable_block_high.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"@color/colorAccent"
/>
<solid
android:color=
"@color/colorAccent"
/>
<size
android:width=
"@dimen/block_high_width"
android:height=
"@dimen/block_high_height"
/>
android:height=
"@dimen/block_high_height"
/>
<stroke
android:width=
"1dp"
android:color=
"@color/colorPrimary"
/>
android:color=
"@color/colorPrimary"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/shape_spannable_block_low.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"@color/colorAccent"
/>
<solid
android:color=
"@color/colorAccent"
/>
<size
android:width=
"@dimen/block_low_width"
android:height=
"@dimen/block_low_height"
/>
android:height=
"@dimen/block_low_height"
/>
<stroke
android:width=
"1dp"
android:color=
"@color/colorPrimary"
/>
android:color=
"@color/colorPrimary"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/shape_top_round_rect.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"@color/colorAccent"
/>
<solid
android:color=
"@color/colorAccent"
/>
<corners
android:topLeftRadius=
"@dimen/radius_16"
android:topRightRadius=
"@dimen/radius_16"
/>
android:topRightRadius=
"@dimen/radius_16"
/>
</shape>
\ No newline at end of file
app/src/main/res/layout/activity_activity.xml
浏览文件 @
66869a93
...
...
@@ -15,14 +15,14 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
<Button
android:id=
"@+id/btn_launch_image_activity"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/activity_start_imageActivity"
/>
android:text=
"@string/activity_start_imageActivity"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_app.xml
浏览文件 @
66869a93
...
...
@@ -16,49 +16,49 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:paddingTop=
"16dp"
/>
android:paddingTop=
"16dp"
/>
<Button
android:id=
"@+id/btn_install_app"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/app_install"
/>
android:text=
"@string/app_install"
/>
<Button
android:id=
"@+id/btn_install_app_silent"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/app_install_silent"
/>
android:text=
"@string/app_install_silent"
/>
<Button
android:id=
"@+id/btn_uninstall_app"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/app_uninstall"
/>
android:text=
"@string/app_uninstall"
/>
<Button
android:id=
"@+id/btn_uninstall_app_silent"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/app_uninstall_silent"
/>
android:text=
"@string/app_uninstall_silent"
/>
<Button
android:id=
"@+id/btn_launch_app"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/app_launch"
/>
android:text=
"@string/app_launch"
/>
<Button
android:id=
"@+id/btn_get_app_details_settings"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/app_get_details_settings"
/>
android:text=
"@string/app_get_details_settings"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_back.xml
浏览文件 @
66869a93
...
...
@@ -16,7 +16,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:background=
"@color/colorPrimary"
app:layout_scrollFlags=
"scroll|enterAlways"
/>
app:layout_scrollFlags=
"scroll|enterAlways"
/>
</android.support.design.widget.AppBarLayout>
<android.support.v4.widget.NestedScrollView
...
...
@@ -27,6 +27,6 @@
<FrameLayout
android:id=
"@+id/content_view"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
/>
</android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
app/src/main/res/layout/activity_bar.xml
浏览文件 @
66869a93
...
...
@@ -15,28 +15,28 @@
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/status_bar_set_color"
/>
android:text=
"@string/status_bar_set_color"
/>
<Button
android:id=
"@+id/btn_status_bar_alpha"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/status_bar_set_alpha"
/>
android:text=
"@string/status_bar_set_alpha"
/>
<Button
android:id=
"@+id/btn_status_bar_image_view"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/status_bar_set_image_view"
/>
android:text=
"@string/status_bar_set_image_view"
/>
<Button
android:id=
"@+id/btn_status_bar_fragment"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/status_bar_set_fragment"
/>
android:text=
"@string/status_bar_set_fragment"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_clean.xml
浏览文件 @
66869a93
...
...
@@ -14,31 +14,31 @@
android:id=
"@+id/btn_clean_internal_cache"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<Button
android:id=
"@+id/btn_clean_internal_files"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<Button
android:id=
"@+id/btn_clean_internal_databases"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<Button
android:id=
"@+id/btn_clean_internal_sp"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<Button
android:id=
"@+id/btn_clean_external_cache"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_device.xml
浏览文件 @
66869a93
...
...
@@ -15,35 +15,35 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
<Button
android:id=
"@+id/btn_shutdown"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/device_shutdown"
/>
android:text=
"@string/device_shutdown"
/>
<Button
android:id=
"@+id/btn_reboot"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/device_reboot"
/>
android:text=
"@string/device_reboot"
/>
<Button
android:id=
"@+id/btn_reboot_to_recovery"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/device_reboot_to_recovery"
/>
android:text=
"@string/device_reboot_to_recovery"
/>
<Button
android:id=
"@+id/btn_reboot_to_bootloader"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/device_reboot_to_bootloader"
/>
android:text=
"@string/device_reboot_to_bootloader"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_drawer.xml
浏览文件 @
66869a93
...
...
@@ -23,7 +23,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
android:background=
"@color/colorPrimary"
app:layout_scrollFlags=
"scroll|enterAlways"
/>
app:layout_scrollFlags=
"scroll|enterAlways"
/>
</android.support.design.widget.AppBarLayout>
<android.support.v4.widget.NestedScrollView
...
...
@@ -34,7 +34,7 @@
<FrameLayout
android:id=
"@+id/content_view"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
/>
</android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
...
...
@@ -45,6 +45,6 @@
android:layout_height=
"match_parent"
android:layout_gravity=
"start"
app:headerLayout=
"@layout/nav_header"
app:menu=
"@menu/activity_main_drawer"
/>
app:menu=
"@menu/activity_main_drawer"
/>
</android.support.v4.widget.DrawerLayout>
app/src/main/res/layout/activity_flashlight.xml
浏览文件 @
66869a93
...
...
@@ -15,21 +15,21 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
<Button
android:id=
"@+id/btn_open_flashlight"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/flashlight_open"
/>
android:text=
"@string/flashlight_open"
/>
<Button
android:id=
"@+id/btn_close_flashlight"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/flashlight_close"
/>
android:text=
"@string/flashlight_close"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_fragment.xml
浏览文件 @
66869a93
...
...
@@ -3,4 +3,4 @@
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/fragment_container"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
/>
app/src/main/res/layout/activity_image.xml
浏览文件 @
66869a93
...
...
@@ -15,62 +15,62 @@
android:id=
"@+id/iv_src"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/lena"
/>
android:src=
"@drawable/lena"
/>
<ImageView
android:id=
"@+id/iv_view2Bitmap"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/iv_round"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/iv_round_corner"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/iv_fast_blur"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/iv_render_script_blur"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/iv_stack_blur"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/iv_add_frame"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/iv_add_reflection"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/iv_add_text_watermark"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/iv_add_image_watermark"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<ImageView
android:id=
"@+id/iv_gray"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
</LinearLayout>
</ScrollView>
\ No newline at end of file
app/src/main/res/layout/activity_keyboard.xml
浏览文件 @
66869a93
...
...
@@ -16,41 +16,41 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
<EditText
android:id=
"@+id/et_input"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:inputType=
"text"
/>
android:inputType=
"text"
/>
<Button
android:id=
"@+id/btn_hide_soft_input"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/keyboard_hide_soft_input"
/>
android:text=
"@string/keyboard_hide_soft_input"
/>
<Button
android:id=
"@+id/btn_show_soft_input"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/keyboard_show_soft_input"
/>
android:text=
"@string/keyboard_show_soft_input"
/>
<Button
android:id=
"@+id/btn_toggle_soft_input"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/keyboard_toggle_soft_input"
/>
android:text=
"@string/keyboard_toggle_soft_input"
/>
<Button
android:id=
"@+id/btn_keyboard_in_fragment"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/keyboard_in_dialog"
/>
android:text=
"@string/keyboard_in_dialog"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_log.xml
浏览文件 @
66869a93
...
...
@@ -15,133 +15,133 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
<Button
android:id=
"@+id/btn_toggle_log"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_toggle_log"
/>
android:text=
"@string/log_toggle_log"
/>
<Button
android:id=
"@+id/btn_toggle_console"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_toggle_console"
/>
android:text=
"@string/log_toggle_console"
/>
<Button
android:id=
"@+id/btn_toggle_tag"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_toggle_tag"
/>
android:text=
"@string/log_toggle_tag"
/>
<Button
android:id=
"@+id/btn_toggle_head"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_toggle_head"
/>
android:text=
"@string/log_toggle_head"
/>
<Button
android:id=
"@+id/btn_toggle_file"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_toggle_file"
/>
android:text=
"@string/log_toggle_file"
/>
<Button
android:id=
"@+id/btn_toggle_dir"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_toggle_dir"
/>
android:text=
"@string/log_toggle_dir"
/>
<Button
android:id=
"@+id/btn_toggle_border"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_toggle_border"
/>
android:text=
"@string/log_toggle_border"
/>
<Button
android:id=
"@+id/btn_toggle_conole_filter"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_toggle_console_filter"
/>
android:text=
"@string/log_toggle_console_filter"
/>
<Button
android:id=
"@+id/btn_toggle_file_filter"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_toggle_file_filter"
/>
android:text=
"@string/log_toggle_file_filter"
/>
<Button
android:id=
"@+id/btn_log_no_tag"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_with_no_tag"
/>
android:text=
"@string/log_with_no_tag"
/>
<Button
android:id=
"@+id/btn_log_with_tag"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_with_tag"
/>
android:text=
"@string/log_with_tag"
/>
<Button
android:id=
"@+id/btn_log_in_new_thread"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_in_new_thread"
/>
android:text=
"@string/log_in_new_thread"
/>
<Button
android:id=
"@+id/btn_log_null"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_null"
/>
android:text=
"@string/log_null"
/>
<Button
android:id=
"@+id/btn_log_many_params"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_many_params"
/>
android:text=
"@string/log_many_params"
/>
<Button
android:id=
"@+id/btn_log_long"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_long_string"
/>
android:text=
"@string/log_long_string"
/>
<Button
android:id=
"@+id/btn_log_file"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_to_file"
/>
android:text=
"@string/log_to_file"
/>
<Button
android:id=
"@+id/btn_log_json"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_json"
/>
android:text=
"@string/log_json"
/>
<Button
android:id=
"@+id/btn_log_xml"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/log_xml"
/>
android:text=
"@string/log_xml"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_main.xml
浏览文件 @
66869a93
...
...
@@ -12,7 +12,7 @@
<include
layout=
"@layout/app_bar_main"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
/>
<android.support.design.widget.NavigationView
android:id=
"@+id/nav_view"
...
...
@@ -21,6 +21,6 @@
android:layout_gravity=
"start"
android:background=
"@color/white"
app:headerLayout=
"@layout/nav_header"
app:menu=
"@menu/activity_main_drawer"
/>
app:menu=
"@menu/activity_main_drawer"
/>
</android.support.v4.widget.DrawerLayout>
app/src/main/res/layout/activity_network.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -13,28 +15,28 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
<Button
android:id=
"@+id/btn_open_wireless_settings"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/network_open_wireless_settings"
/>
android:text=
"@string/network_open_wireless_settings"
/>
<Button
android:id=
"@+id/btn_set_data_enabled"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/network_set_data_enabled"
/>
android:text=
"@string/network_set_data_enabled"
/>
<Button
android:id=
"@+id/btn_set_wifi_enabled"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/network_set_wifi_enabled"
/>
android:text=
"@string/network_set_wifi_enabled"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_permission.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -13,7 +15,7 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_phone.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -13,35 +15,35 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
<Button
android:id=
"@+id/btn_dial"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/phone_dial"
/>
android:text=
"@string/phone_dial"
/>
<Button
android:id=
"@+id/btn_call"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/phone_call"
/>
android:text=
"@string/phone_call"
/>
<Button
android:id=
"@+id/btn_send_sms"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/phone_send_sms"
/>
android:text=
"@string/phone_send_sms"
/>
<Button
android:id=
"@+id/btn_send_sms_silent"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/phone_send_sms_silent"
/>
android:text=
"@string/phone_send_sms_silent"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_pinyin.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -13,7 +15,7 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_process.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -13,14 +15,14 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
<Button
android:id=
"@+id/btn_kill_all_background_processes"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/process_kill_all_background"
/>
android:text=
"@string/process_kill_all_background"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_sdcard.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -13,7 +15,7 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_snackbar.xml
浏览文件 @
66869a93
...
...
@@ -18,77 +18,77 @@
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/snackbar_show_short"
/>
android:text=
"@string/snackbar_show_short"
/>
<Button
android:id=
"@+id/btn_short_snackbar_with_action"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/snackbar_show_short_with_action"
/>
android:text=
"@string/snackbar_show_short_with_action"
/>
<Button
android:id=
"@+id/btn_long_snackbar"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/snackbar_show_long"
/>
android:text=
"@string/snackbar_show_long"
/>
<Button
android:id=
"@+id/btn_long_snackbar_with_action"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/snackbar_show_long_with_action"
/>
android:text=
"@string/snackbar_show_long_with_action"
/>
<Button
android:id=
"@+id/btn_indefinite_snackbar"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/snackbar_show_indefinite"
/>
android:text=
"@string/snackbar_show_indefinite"
/>
<Button
android:id=
"@+id/btn_indefinite_snackbar_with_action"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/snackbar_show_indefinite_with_action"
/>
android:text=
"@string/snackbar_show_indefinite_with_action"
/>
<Button
android:id=
"@+id/btn_add_view"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/snackbar_add_view"
/>
android:text=
"@string/snackbar_add_view"
/>
<Button
android:id=
"@+id/btn_add_view_with_action"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/snackbar_add_view_with_action"
/>
android:text=
"@string/snackbar_add_view_with_action"
/>
<Button
android:id=
"@+id/btn_show_success"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/snackbar_show_success"
/>
android:text=
"@string/snackbar_show_success"
/>
<Button
android:id=
"@+id/btn_show_warning"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/snackbar_show_warning"
/>
android:text=
"@string/snackbar_show_warning"
/>
<Button
android:id=
"@+id/btn_show_error"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/snackbar_show_error"
/>
android:text=
"@string/snackbar_show_error"
/>
<Button
...
...
@@ -96,7 +96,7 @@
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/snackbar_dismiss"
/>
android:text=
"@string/snackbar_dismiss"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_span.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -13,14 +15,14 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layerType=
"software"
/>
android:layerType=
"software"
/>
<TextView
android:id=
"@+id/tv_about_span"
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:clickable=
"true"
/>
android:clickable=
"true"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_status_bar_color.xml
浏览文件 @
66869a93
...
...
@@ -15,28 +15,28 @@
style=
"@style/TextStyle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
/>
android:layout_gravity=
"center_horizontal"
/>
<SeekBar
android:id=
"@+id/sb_change_alpha"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:max=
"255"
android:padding=
"@dimen/spacing_8"
/>
android:padding=
"@dimen/spacing_8"
/>
<Button
android:id=
"@+id/btn_random_color"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/status_bar_random_color"
/>
android:text=
"@string/status_bar_random_color"
/>
<Button
android:id=
"@+id/btn_set_transparent"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/status_bar_set_transparent"
/>
android:text=
"@string/status_bar_set_transparent"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/activity_status_bar_image_view.xml
浏览文件 @
66869a93
...
...
@@ -9,7 +9,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:scaleType=
"centerCrop"
android:src=
"@drawable/lena"
/>
android:src=
"@drawable/lena"
/>
<ScrollView
android:layout_width=
"match_parent"
...
...
@@ -29,21 +29,21 @@
style=
"@style/TextStyle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
/>
android:layout_gravity=
"center_horizontal"
/>
<SeekBar
android:id=
"@+id/sb_change_alpha"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:max=
"255"
android:padding=
"@dimen/spacing_8"
/>
android:padding=
"@dimen/spacing_8"
/>
<Button
android:id=
"@+id/btn_set_transparent"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/status_bar_set_transparent"
/>
android:text=
"@string/status_bar_set_transparent"
/>
</LinearLayout>
</ScrollView>
...
...
app/src/main/res/layout/activity_toast.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ScrollView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:layout_width=
"match_parent"
...
...
@@ -13,70 +15,70 @@
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/toast_show_short_safe"
/>
android:text=
"@string/toast_show_short_safe"
/>
<Button
android:id=
"@+id/btn_show_short_toast"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/toast_show_short"
/>
android:text=
"@string/toast_show_short"
/>
<Button
android:id=
"@+id/btn_show_long_toast_safe"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/toast_show_long_safe"
/>
android:text=
"@string/toast_show_long_safe"
/>
<Button
android:id=
"@+id/btn_show_long_toast"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/toast_show_long"
/>
android:text=
"@string/toast_show_long"
/>
<Button
android:id=
"@+id/btn_show_green_font"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/toast_show_green_font"
/>
android:text=
"@string/toast_show_green_font"
/>
<Button
android:id=
"@+id/btn_show_custom_bg"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/toast_show_custom_bg"
/>
android:text=
"@string/toast_show_custom_bg"
/>
<Button
android:id=
"@+id/btn_show_span"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/toast_show_span"
/>
android:text=
"@string/toast_show_span"
/>
<Button
android:id=
"@+id/btn_show_custom_view"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/toast_show_custom_view"
/>
android:text=
"@string/toast_show_custom_view"
/>
<Button
android:id=
"@+id/btn_show_middle"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/toast_show_middle"
/>
android:text=
"@string/toast_show_middle"
/>
<Button
android:id=
"@+id/btn_cancel_toast"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/toast_cancel"
/>
android:text=
"@string/toast_cancel"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/app_bar_main.xml
浏览文件 @
66869a93
...
...
@@ -23,13 +23,13 @@
android:layout_height=
"match_parent"
android:padding=
"@dimen/spacing_16"
android:src=
"@mipmap/ic_launcher"
app:layout_collapseMode=
"parallax"
/>
app:layout_collapseMode=
"parallax"
/>
<android.support.v7.widget.Toolbar
android:id=
"@+id/toolbar"
android:layout_width=
"match_parent"
android:layout_height=
"?attr/actionBarSize"
app:layout_collapseMode=
"pin"
/>
app:layout_collapseMode=
"pin"
/>
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
...
...
@@ -52,49 +52,49 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"activityClick"
android:text=
"@string/demo_activity"
/>
android:text=
"@string/demo_activity"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"appClick"
android:text=
"@string/demo_app"
/>
android:text=
"@string/demo_app"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"barClick"
android:text=
"@string/demo_bar"
/>
android:text=
"@string/demo_bar"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"cleanClick"
android:text=
"@string/demo_clean"
/>
android:text=
"@string/demo_clean"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"crashClick"
android:text=
"@string/demo_crash"
/>
android:text=
"@string/demo_crash"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"deviceClick"
android:text=
"@string/demo_device"
/>
android:text=
"@string/demo_device"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"fragmentClick"
android:text=
"@string/demo_fragment"
/>
android:text=
"@string/demo_fragment"
/>
<!--<Button-->
<!--style="@style/BtnFont"-->
...
...
@@ -109,28 +109,28 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"imageClick"
android:text=
"@string/demo_image"
/>
android:text=
"@string/demo_image"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"keyboardClick"
android:text=
"@string/demo_keyboard"
/>
android:text=
"@string/demo_keyboard"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"logClick"
android:text=
"@string/demo_log"
/>
android:text=
"@string/demo_log"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"networkClick"
android:text=
"@string/demo_network"
/>
android:text=
"@string/demo_network"
/>
<!--<Button-->
<!--style="@style/WideBtnStyle"-->
...
...
@@ -144,49 +144,49 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"phoneClick"
android:text=
"@string/demo_phone"
/>
android:text=
"@string/demo_phone"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"pinyinClick"
android:text=
"@string/demo_pinyin"
/>
android:text=
"@string/demo_pinyin"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"processClick"
android:text=
"@string/demo_process"
/>
android:text=
"@string/demo_process"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"sdcardClick"
android:text=
"@string/demo_sdcard"
/>
android:text=
"@string/demo_sdcard"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"snackbarClick"
android:text=
"@string/demo_snackbar"
/>
android:text=
"@string/demo_snackbar"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"spannableClick"
android:text=
"@string/demo_span"
/>
android:text=
"@string/demo_span"
/>
<Button
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:onClick=
"toastClick"
android:text=
"@string/demo_toast"
/>
android:text=
"@string/demo_toast"
/>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
...
...
app/src/main/res/layout/dialog_keyboard.xml
浏览文件 @
66869a93
...
...
@@ -14,35 +14,35 @@
android:id=
"@+id/et_input"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:inputType=
"text"
/>
android:inputType=
"text"
/>
<Button
android:id=
"@+id/btn_hide_soft_input"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/keyboard_hide_soft_input"
/>
android:text=
"@string/keyboard_hide_soft_input"
/>
<Button
android:id=
"@+id/btn_show_soft_input"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/keyboard_show_soft_input"
/>
android:text=
"@string/keyboard_show_soft_input"
/>
<Button
android:id=
"@+id/btn_toggle_soft_input"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/keyboard_toggle_soft_input"
/>
android:text=
"@string/keyboard_toggle_soft_input"
/>
<Button
android:id=
"@+id/btn_close_dialog"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/keyboard_close_dialog"
/>
android:text=
"@string/keyboard_close_dialog"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/fragment_demo0.xml
浏览文件 @
66869a93
...
...
@@ -17,68 +17,68 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
<FrameLayout
android:id=
"@+id/child_fragment_container"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<Button
android:id=
"@+id/btn_show_about_fragment"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_show_stack"
/>
android:text=
"@string/fragment_show_stack"
/>
<Button
android:id=
"@+id/btn_add_hide"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_add_demo1_hide"
/>
android:text=
"@string/fragment_add_demo1_hide"
/>
<Button
android:id=
"@+id/btn_add_show"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_add_demo1_show"
/>
android:text=
"@string/fragment_add_demo1_show"
/>
<Button
android:id=
"@+id/btn_add_child"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_add_child"
/>
android:text=
"@string/fragment_add_child"
/>
<Button
android:id=
"@+id/btn_pop_to_root"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_pop_to_root"
/>
android:text=
"@string/fragment_pop_to_root"
/>
<Button
android:id=
"@+id/btn_pop_add"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_pop_add"
/>
android:text=
"@string/fragment_pop_add"
/>
<Button
android:id=
"@+id/btn_hide_show"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_hide_demo0_show_demo1"
/>
android:text=
"@string/fragment_hide_demo0_show_demo1"
/>
<Button
android:id=
"@+id/btn_replace"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_replace"
/>
android:text=
"@string/fragment_replace"
/>
<ImageView
android:id=
"@+id/iv_shared_element"
...
...
@@ -86,7 +86,7 @@
android:layout_height=
"wrap_content"
android:src=
"@drawable/lena"
android:transitionName=
"@string/fragment_transition"
tools:targetApi=
"lollipop"
/>
tools:targetApi=
"lollipop"
/>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_demo1.xml
浏览文件 @
66869a93
...
...
@@ -17,14 +17,14 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
<Button
android:id=
"@+id/btn_show_about_fragment"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_show_stack"
/>
android:text=
"@string/fragment_show_stack"
/>
<Button
android:id=
"@+id/btn_hide_show"
...
...
@@ -39,7 +39,7 @@
android:layout_height=
"wrap_content"
android:src=
"@drawable/lena"
android:transitionName=
"@string/fragment_transition"
tools:targetApi=
"lollipop"
/>
tools:targetApi=
"lollipop"
/>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_demo2.xml
浏览文件 @
66869a93
...
...
@@ -17,28 +17,28 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
<Button
android:id=
"@+id/btn_show_about_fragment"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_show_stack"
/>
android:text=
"@string/fragment_show_stack"
/>
<Button
android:id=
"@+id/btn_pop"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_pop"
/>
android:text=
"@string/fragment_pop"
/>
<ImageView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/lena"
android:transitionName=
"@string/fragment_transition"
tools:targetApi=
"lollipop"
/>
tools:targetApi=
"lollipop"
/>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_demo3.xml
浏览文件 @
66869a93
...
...
@@ -17,68 +17,68 @@
style=
"@style/TextStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
/>
android:gravity=
"center"
/>
<FrameLayout
android:id=
"@+id/child_fragment_container"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
/>
android:layout_height=
"wrap_content"
/>
<Button
android:id=
"@+id/btn_show_about_fragment"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_show_stack"
/>
android:text=
"@string/fragment_show_stack"
/>
<Button
android:id=
"@+id/btn_add_hide"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_add_demo1_hide"
/>
android:text=
"@string/fragment_add_demo1_hide"
/>
<Button
android:id=
"@+id/btn_add_show"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_add_demo1_show"
/>
android:text=
"@string/fragment_add_demo1_show"
/>
<Button
android:id=
"@+id/btn_add_child"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_add_child"
/>
android:text=
"@string/fragment_add_child"
/>
<Button
android:id=
"@+id/btn_pop_to_root"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_pop_to_root"
/>
android:text=
"@string/fragment_pop_to_root"
/>
<Button
android:id=
"@+id/btn_pop_add"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_pop_add"
/>
android:text=
"@string/fragment_pop_add"
/>
<Button
android:id=
"@+id/btn_hide_show"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_hide_demo0_show_demo1"
/>
android:text=
"@string/fragment_hide_demo0_show_demo1"
/>
<Button
android:id=
"@+id/btn_replace"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/fragment_replace"
/>
android:text=
"@string/fragment_replace"
/>
<ImageView
android:id=
"@+id/iv_shared_element"
...
...
@@ -86,7 +86,7 @@
android:layout_height=
"100dp"
android:src=
"@drawable/lena"
android:transitionName=
"@string/fragment_transition"
tools:targetApi=
"lollipop"
/>
tools:targetApi=
"lollipop"
/>
</LinearLayout>
...
...
app/src/main/res/layout/fragment_status_bar_alpha.xml
浏览文件 @
66869a93
...
...
@@ -16,21 +16,21 @@
style=
"@style/TextStyle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
/>
android:layout_gravity=
"center_horizontal"
/>
<SeekBar
android:id=
"@+id/sb_change_alpha"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:max=
"255"
android:padding=
"@dimen/spacing_8"
/>
android:padding=
"@dimen/spacing_8"
/>
<Button
android:id=
"@+id/btn_set_transparent"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/status_bar_set_transparent"
/>
android:text=
"@string/status_bar_set_transparent"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/fragment_status_bar_color.xml
浏览文件 @
66869a93
...
...
@@ -15,28 +15,28 @@
style=
"@style/TextStyle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
/>
android:layout_gravity=
"center_horizontal"
/>
<SeekBar
android:id=
"@+id/sb_change_alpha"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:max=
"255"
android:padding=
"@dimen/spacing_8"
/>
android:padding=
"@dimen/spacing_8"
/>
<Button
android:id=
"@+id/btn_random_color"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/status_bar_random_color"
/>
android:text=
"@string/status_bar_random_color"
/>
<Button
android:id=
"@+id/btn_set_transparent"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/status_bar_set_transparent"
/>
android:text=
"@string/status_bar_set_transparent"
/>
</LinearLayout>
</ScrollView>
app/src/main/res/layout/fragment_status_bar_image_view.xml
浏览文件 @
66869a93
...
...
@@ -9,7 +9,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:scaleType=
"centerCrop"
android:src=
"@drawable/lena"
/>
android:src=
"@drawable/lena"
/>
<ScrollView
android:layout_width=
"match_parent"
...
...
@@ -28,21 +28,21 @@
style=
"@style/TextStyle"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
/>
android:layout_gravity=
"center_horizontal"
/>
<SeekBar
android:id=
"@+id/sb_change_alpha"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:max=
"255"
android:padding=
"@dimen/spacing_8"
/>
android:padding=
"@dimen/spacing_8"
/>
<Button
android:id=
"@+id/btn_set_transparent"
style=
"@style/WideBtnStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/status_bar_set_transparent"
/>
android:text=
"@string/status_bar_set_transparent"
/>
</LinearLayout>
</ScrollView>
...
...
app/src/main/res/layout/nav_header.xml
浏览文件 @
66869a93
...
...
@@ -12,7 +12,7 @@
android:layout_width=
"80dp"
android:layout_height=
"80dp"
android:layout_above=
"@+id/tv_desc"
android:src=
"@drawable/avatar_round"
/>
android:src=
"@drawable/avatar_round"
/>
<TextView
android:layout_width=
"match_parent"
...
...
@@ -24,7 +24,7 @@
android:text=
"@string/author"
android:textColor=
"@android:color/white"
android:textSize=
"@dimen/font_40"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/tv_desc"
...
...
@@ -34,5 +34,5 @@
android:layout_marginTop=
"@dimen/spacing_8"
android:text=
"@string/demo_of_android_util_code"
android:textColor=
"@android:color/white"
android:textSize=
"@dimen/font_16"
/>
android:textSize=
"@dimen/font_16"
/>
</RelativeLayout>
app/src/main/res/layout/snackbar_custom.xml
浏览文件 @
66869a93
<?xml version="1.0" encoding="utf-8"?>
<TextView
android:id=
"@+id/tv_snackbar_custom"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/tv_snackbar_custom"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
...
...
@@ -12,4 +12,4 @@
android:padding=
"@dimen/spacing_16"
android:text=
"@string/snackbar_custom_view"
android:textColor=
"@color/white"
android:textSize=
"@dimen/font_26"
/>
\ No newline at end of file
android:textSize=
"@dimen/font_26"
/>
\ No newline at end of file
app/src/main/res/layout/toast_custom.xml
浏览文件 @
66869a93
...
...
@@ -11,4 +11,4 @@
android:padding=
"@dimen/spacing_16"
android:text=
"@string/toast_custom_view"
android:textColor=
"@color/white"
android:textSize=
"@dimen/font_26"
/>
\ No newline at end of file
android:textSize=
"@dimen/font_26"
/>
\ No newline at end of file
app/src/main/res/menu/activity_main_drawer.xml
浏览文件 @
66869a93
...
...
@@ -3,10 +3,10 @@
<item
android:id=
"@+id/action_git_hub"
android:icon=
"@drawable/ic_menu_github"
android:title=
"@string/git_hub"
/>
android:title=
"@string/git_hub"
/>
<item
android:id=
"@+id/action_blog"
android:icon=
"@drawable/ic_menu_blog"
android:title=
"@string/blog"
/>
android:title=
"@string/blog"
/>
</menu>
app/src/main/res/menu/navigation.xml
浏览文件 @
66869a93
...
...
@@ -3,17 +3,17 @@
<item
android:id=
"@+id/navigation_color"
android:icon=
"@drawable/ic_
home_black_24dp
"
android:title=
"@string/bar_title_color"
/>
android:icon=
"@drawable/ic_
color
"
android:title=
"@string/bar_title_color"
/>
<item
android:id=
"@+id/navigation_alpha"
android:icon=
"@drawable/ic_
dashboard_black_24dp
"
android:title=
"@string/bar_title_alpha"
/>
android:icon=
"@drawable/ic_
alpha
"
android:title=
"@string/bar_title_alpha"
/>
<item
android:id=
"@+id/navigation_image_view"
android:icon=
"@drawable/ic_
notifications_black_24dp
"
android:title=
"@string/bar_title_image_view"
/>
android:icon=
"@drawable/ic_
image
"
android:title=
"@string/bar_title_image_view"
/>
</menu>
subutil/build.gradle
浏览文件 @
66869a93
...
...
@@ -44,10 +44,13 @@ android {
lintOptions
{
abortOnError
false
}
}
tasks
.
matching
{
it
instanceof
Test
}.
all
{
testLogging
.
events
=
[
"failed"
,
"passed"
,
"skipped"
]
testOptions
.
unitTests
.
all
{
testLogging
{
events
'passed'
,
'skipped'
,
'failed'
,
'standardOut'
,
'standardError'
}
}
}
dependencies
{
...
...
update_log.md
浏览文件 @
66869a93
*
17/07/21 格式化xml文件
*
17/07/17 将NetworkUtils的isAvailableByPing函数新增ip参数
*
17/07/14 将FragmentUtils的FragmentNode置为public
*
17/07/11 将不常用的工具类放在subutil中
...
...
utilcode/build.gradle
浏览文件 @
66869a93
...
...
@@ -44,10 +44,12 @@ android {
lintOptions
{
abortOnError
false
}
}
tasks
.
matching
{
it
instanceof
Test
}.
all
{
testLogging
.
events
=
[
"failed"
,
"passed"
,
"skipped"
]
testOptions
.
unitTests
.
all
{
testLogging
{
events
'passed'
,
'skipped'
,
'failed'
,
'standardOut'
,
'standardError'
}
}
}
dependencies
{
...
...
utilcode/src/main/java/com/blankj/utilcode/util/SPUtils.java
浏览文件 @
66869a93
...
...
@@ -19,7 +19,7 @@ import java.util.Set;
*/
public
final
class
SPUtils
{
private
static
final
Map
<
String
,
SPUtils
>
SP
_MAP
=
new
HashMap
<>();
private
static
Map
<
String
,
SPUtils
>
SP_UTILS
_MAP
=
new
HashMap
<>();
private
SharedPreferences
sp
;
/**
...
...
@@ -39,12 +39,12 @@ public final class SPUtils {
*/
public
static
SPUtils
getInstance
(
String
spName
)
{
if
(
isSpace
(
spName
))
spName
=
"spUtils"
;
SPUtils
sp
=
SP
_MAP
.
get
(
spName
);
if
(
sp
==
null
)
{
sp
=
new
SPUtils
(
spName
);
SP_
MAP
.
put
(
spName
,
sp
);
SPUtils
sp
Utils
=
SP_UTILS
_MAP
.
get
(
spName
);
if
(
sp
Utils
==
null
)
{
sp
Utils
=
new
SPUtils
(
spName
);
SP_
UTILS_MAP
.
put
(
spName
,
spUtils
);
}
return
sp
;
return
sp
Utils
;
}
private
SPUtils
(
final
String
spName
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录