Commit d7ab95006f4c67ffe1c69a2476d168578bd1860f
1 parent
95d458e1
提交资源文件
Showing
79 changed files
with
602 additions
and
0 deletions
user/.gitignore
0 → 100644
| 1 | +/build | ... | ... |
user/build.gradle
0 → 100644
| 1 | +apply plugin: 'com.android.library' | |
| 2 | + | |
| 3 | +android { | |
| 4 | + compileSdkVersion 26 | |
| 5 | + buildToolsVersion "26.0.0" | |
| 6 | + | |
| 7 | + defaultConfig { | |
| 8 | + minSdkVersion 16 | |
| 9 | + targetSdkVersion 26 | |
| 10 | + versionCode 1 | |
| 11 | + versionName "1.0" | |
| 12 | + | |
| 13 | + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
| 14 | + | |
| 15 | + } | |
| 16 | + buildTypes { | |
| 17 | + release { | |
| 18 | + minifyEnabled false | |
| 19 | + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
| 20 | + } | |
| 21 | + } | |
| 22 | +} | |
| 23 | + | |
| 24 | +dependencies { | |
| 25 | + compile fileTree(dir: 'libs', include: ['*.jar']) | |
| 26 | + androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { | |
| 27 | + exclude group: 'com.android.support', module: 'support-annotations' | |
| 28 | + }) | |
| 29 | + compile 'com.android.support:appcompat-v7:26.+' | |
| 30 | + testCompile 'junit:junit:4.12' | |
| 31 | + | |
| 32 | +} | ... | ... |
user/proguard-rules.pro
0 → 100644
| 1 | +# Add project specific ProGuard rules here. | |
| 2 | +# By default, the flags in this file are appended to flags specified | |
| 3 | +# in D:\AndroidSDK/tools/proguard/proguard-android.txt | |
| 4 | +# You can edit the include path and order by changing the proguardFiles | |
| 5 | +# directive in build.gradle. | |
| 6 | +# | |
| 7 | +# For more details, see | |
| 8 | +# http://developer.android.com/guide/developing/tools/proguard.html | |
| 9 | + | |
| 10 | +# Add any project specific keep options here: | |
| 11 | + | |
| 12 | +# If your project uses WebView with JS, uncomment the following | |
| 13 | +# and specify the fully qualified class name to the JavaScript interface | |
| 14 | +# class: | |
| 15 | +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | |
| 16 | +# public *; | |
| 17 | +#} | |
| 18 | + | |
| 19 | +# Uncomment this to preserve the line number information for | |
| 20 | +# debugging stack traces. | |
| 21 | +#-keepattributes SourceFile,LineNumberTable | |
| 22 | + | |
| 23 | +# If you keep the line number information, uncomment this to | |
| 24 | +# hide the original source file name. | |
| 25 | +#-renamesourcefileattribute SourceFile | ... | ... |
user/src/androidTest/java/cnlive/com/myuser/ExampleInstrumentedTest.java
0 → 100644
| 1 | +package cnlive.com.myuser; | |
| 2 | + | |
| 3 | +import android.content.Context; | |
| 4 | +import android.support.test.InstrumentationRegistry; | |
| 5 | +import android.support.test.runner.AndroidJUnit4; | |
| 6 | + | |
| 7 | +import org.junit.Test; | |
| 8 | +import org.junit.runner.RunWith; | |
| 9 | + | |
| 10 | +import static org.junit.Assert.*; | |
| 11 | + | |
| 12 | +/** | |
| 13 | + * Instrumentation test, which will execute on an Android device. | |
| 14 | + * | |
| 15 | + * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | |
| 16 | + */ | |
| 17 | +@RunWith(AndroidJUnit4.class) | |
| 18 | +public class ExampleInstrumentedTest { | |
| 19 | + @Test | |
| 20 | + public void useAppContext() throws Exception { | |
| 21 | + // Context of the app under test. | |
| 22 | + Context appContext = InstrumentationRegistry.getTargetContext(); | |
| 23 | + | |
| 24 | + assertEquals("cnlive.com.myuser.test", appContext.getPackageName()); | |
| 25 | + } | |
| 26 | +} | ... | ... |
user/src/main/AndroidManifest.xml
0 → 100644
user/src/main/res/anim/pop_enter_anim.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<set xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + <translate | |
| 4 | + android:duration="200" | |
| 5 | + android:fromYDelta="100%p" | |
| 6 | + android:toYDelta="0" /> | |
| 7 | + <alpha | |
| 8 | + android:duration="200" | |
| 9 | + android:fromAlpha="0.0" | |
| 10 | + android:toAlpha="1.0" /> | |
| 11 | +</set> | |
| 0 | 12 | \ No newline at end of file | ... | ... |
user/src/main/res/anim/pop_exit_anim.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<set xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + <translate | |
| 4 | + android:duration="200" | |
| 5 | + android:fromYDelta="0" | |
| 6 | + android:toYDelta="50%p" /> | |
| 7 | + <alpha | |
| 8 | + android:duration="200" | |
| 9 | + android:fromAlpha="1.0" | |
| 10 | + android:toAlpha="0.0" /> | |
| 11 | +</set> | |
| 0 | 12 | \ No newline at end of file | ... | ... |
user/src/main/res/color/keycode_text_color.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + <item android:state_selected="true" android:color="@color/text_white_color" /> | |
| 4 | + <item android:state_pressed="true" android:color="@color/text_white_color" /> | |
| 5 | + <item android:state_focused="true" android:color="@color/text_white_color" /> | |
| 6 | + <item android:color="@color/ff4e51" /> | |
| 7 | +</selector> | |
| 0 | 8 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable-hdpi/btn_cancel_nor.png
0 → 100644
1.63 KB
user/src/main/res/drawable-hdpi/btn_cancel_sel.png
0 → 100644
1.63 KB
user/src/main/res/drawable-hdpi/btn_list_arrows_nor.png
0 → 100644
1.32 KB
user/src/main/res/drawable-hdpi/btn_list_arrows_sel.png
0 → 100644
1.32 KB
user/src/main/res/drawable-hdpi/btn_return.png
0 → 100644
2.38 KB
user/src/main/res/drawable-hdpi/cnlive_user_header.png
0 → 100644
6.29 KB
user/src/main/res/drawable-hdpi/ic_header.png
0 → 100644
6.29 KB
user/src/main/res/drawable-hdpi/user_micro_blog.png
0 → 100644
4.43 KB
user/src/main/res/drawable-hdpi/user_micro_blog_click.png
0 → 100644
4.51 KB
user/src/main/res/drawable-hdpi/user_qq.png
0 → 100644
3.35 KB
user/src/main/res/drawable-hdpi/user_qq_click.png
0 → 100644
3.4 KB
user/src/main/res/drawable-hdpi/user_wechat.png
0 → 100644
3.85 KB
user/src/main/res/drawable-hdpi/user_wechat_click.png
0 → 100644
3.88 KB
user/src/main/res/drawable-xhdpi/btn_agree_nor.png
0 → 100644
2.17 KB
user/src/main/res/drawable-xhdpi/btn_agree_sel.png
0 → 100644
2.41 KB
user/src/main/res/drawable-xhdpi/ic_web_forward.png
0 → 100644
831 Bytes
user/src/main/res/drawable-xhdpi/ic_web_forward_pressed.png
0 → 100644
831 Bytes
user/src/main/res/drawable-xhdpi/list_item_image_load_fail.png
0 → 100644
1.68 KB
user/src/main/res/drawable-xxhdpi/about_us.9.png
0 → 100644
2.04 KB
user/src/main/res/drawable-xxhdpi/about_us_icon.png
0 → 100644
10.3 KB
user/src/main/res/drawable-xxhdpi/btn_share_pengyouquan_nor.png
0 → 100644
5.37 KB
user/src/main/res/drawable-xxhdpi/btn_share_pengyouquan_sel.png
0 → 100644
5.45 KB
user/src/main/res/drawable-xxhdpi/btn_share_sina_nor.png
0 → 100644
5.04 KB
user/src/main/res/drawable-xxhdpi/btn_share_sina_sel.png
0 → 100644
5.21 KB
user/src/main/res/drawable-xxhdpi/btn_share_tengxun_nor.png
0 → 100644
4.84 KB
user/src/main/res/drawable-xxhdpi/btn_share_tengxun_sel.png
0 → 100644
5.22 KB
user/src/main/res/drawable-xxhdpi/btn_share_weixin_nor.png
0 → 100644
4.54 KB
user/src/main/res/drawable-xxhdpi/btn_share_weixin_sel.png
0 → 100644
4.6 KB
user/src/main/res/drawable-xxhdpi/ic_config_download.png
0 → 100644
1.15 KB
user/src/main/res/drawable-xxhdpi/ic_config_favorite.png
0 → 100644
1.99 KB
user/src/main/res/drawable-xxhdpi/ic_config_history.png
0 → 100644
1.89 KB
user/src/main/res/drawable-xxhdpi/ic_config_setting.png
0 → 100644
2.21 KB
user/src/main/res/drawable-xxhdpi/ic_setting_about.png
0 → 100644
1.88 KB
user/src/main/res/drawable-xxhdpi/ic_setting_clear.png
0 → 100644
1.35 KB
user/src/main/res/drawable-xxhdpi/ic_setting_help.png
0 → 100644
2.21 KB
user/src/main/res/drawable-xxhdpi/ic_setting_opinion.png
0 → 100644
2.16 KB
user/src/main/res/drawable-xxhdpi/share_btn_qq_nor.png
0 → 100644
3.72 KB
user/src/main/res/drawable-xxhdpi/share_btn_qq_sel.png
0 → 100644
4.57 KB
user/src/main/res/drawable-xxhdpi/switch_close.png
0 → 100644
2.77 KB
user/src/main/res/drawable-xxhdpi/switch_open.png
0 → 100644
2.49 KB
user/src/main/res/drawable-xxhdpi/test_layout_tost_bg.9.png
0 → 100644
362 Bytes
user/src/main/res/drawable/agree_selector.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + <item android:state_checked="true" android:drawable="@drawable/btn_agree_sel" /> | |
| 4 | + <item android:state_checked="false" android:drawable="@drawable/btn_agree_nor" /> | |
| 5 | +</selector> | ... | ... |
user/src/main/res/drawable/btn_cancel.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | + | |
| 3 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 4 | + <item android:drawable="@drawable/btn_cancel_sel" android:state_pressed="true" /> | |
| 5 | + <item android:drawable="@drawable/btn_cancel_nor" android:state_pressed="false" /> | |
| 6 | +</selector> | |
| 0 | 7 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/btn_channel_more.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | + | |
| 3 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 4 | + <item android:state_pressed="true" android:drawable="@drawable/btn_list_arrows_sel" /> | |
| 5 | + <item android:state_pressed="false" android:drawable="@drawable/btn_list_arrows_nor" /> | |
| 6 | + | |
| 7 | +</selector> | |
| 0 | 8 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/downloading_progress_bar.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | + | |
| 3 | + | |
| 4 | +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 5 | + | |
| 6 | + <item android:id="@android:id/background"> | |
| 7 | + <shape> | |
| 8 | + <corners android:radius="5dip" /> | |
| 9 | + <gradient | |
| 10 | + android:startColor="#D5D5D5" | |
| 11 | + android:centerColor="#D5D5D5" | |
| 12 | + android:endColor="#D5D5D5" /> | |
| 13 | + </shape> | |
| 14 | + </item> | |
| 15 | + | |
| 16 | + <item android:id="@android:id/progress"> | |
| 17 | + <clip> | |
| 18 | + <shape> | |
| 19 | + <corners android:radius="5dip" /> | |
| 20 | + <gradient | |
| 21 | + android:startColor="@color/ff4e51" | |
| 22 | + android:centerColor="@color/ff4e51" | |
| 23 | + android:endColor="@color/ff4e51" /> | |
| 24 | + </shape> | |
| 25 | + </clip> | |
| 26 | + </item> | |
| 27 | + | |
| 28 | +</layer-list> | ... | ... |
user/src/main/res/drawable/list_item_selector.xml
0 → 100644
| 1 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 2 | + | |
| 3 | + <item android:drawable="@color/gray_line_color" android:state_enabled="false" android:state_focused="true" /> | |
| 4 | + <item android:drawable="@color/gray_line_color" android:state_pressed="true" /> | |
| 5 | + <item android:drawable="@color/gray_line_color" android:state_focused="true" /> | |
| 6 | + <item android:drawable="@android:color/white" /> | |
| 7 | + | |
| 8 | +</selector> | |
| 0 | 9 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/share_btn_qq.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | + | |
| 3 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 4 | + <item android:state_pressed="true" android:drawable="@drawable/btn_share_tengxun_sel" /> | |
| 5 | + <item android:state_pressed="false" android:drawable="@drawable/btn_share_tengxun_nor" /> | |
| 6 | +</selector> | |
| 0 | 7 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/share_btn_sina.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | + | |
| 3 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 4 | + <item android:state_pressed="true" android:drawable="@drawable/btn_share_sina_sel" /> | |
| 5 | + <item android:state_pressed="false" android:drawable="@drawable/btn_share_sina_nor" /> | |
| 6 | +</selector> | |
| 0 | 7 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/share_btn_tencent.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | + | |
| 3 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 4 | + <item android:drawable="@drawable/share_btn_qq_sel" android:state_pressed="true" /> | |
| 5 | + <item android:drawable="@drawable/share_btn_qq_nor" android:state_pressed="false" /> | |
| 6 | +</selector> | |
| 0 | 7 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/share_btn_weixin.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | + | |
| 3 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 4 | + <item android:state_pressed="true" android:drawable="@drawable/btn_share_weixin_sel" /> | |
| 5 | + <item android:state_pressed="false" android:drawable="@drawable/btn_share_weixin_nor" /> | |
| 6 | +</selector> | |
| 0 | 7 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/toolbar_bg.9.png
0 → 100644
94 Bytes
user/src/main/res/drawable/user_btn_keycode_nor.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<shape | |
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | |
| 4 | + android:shape="rectangle" | |
| 5 | + android:useLevel="false"> | |
| 6 | + | |
| 7 | + <size | |
| 8 | + android:height="30dp" /> | |
| 9 | + | |
| 10 | + <corners | |
| 11 | + android:bottomLeftRadius="15dp" | |
| 12 | + android:bottomRightRadius="15dp" | |
| 13 | + android:topLeftRadius="15dp" | |
| 14 | + android:topRightRadius="15dp" /> <!-- 设置四个角的半径 --> | |
| 15 | + | |
| 16 | + <stroke | |
| 17 | + android:width="2dp" | |
| 18 | + android:color="@color/ff4e51" /> <!-- 定义描边的宽度和描边的颜色值 --> | |
| 19 | + | |
| 20 | +</shape> | |
| 0 | 21 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/user_btn_keycode_sel.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<shape | |
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | |
| 4 | + android:shape="rectangle" | |
| 5 | + android:useLevel="false"> | |
| 6 | + <solid android:color="#ea002a" /> | |
| 7 | + | |
| 8 | + <size | |
| 9 | + android:height="30dp" /> | |
| 10 | + | |
| 11 | + <corners | |
| 12 | + android:bottomLeftRadius="15dp" | |
| 13 | + android:bottomRightRadius="15dp" | |
| 14 | + android:topLeftRadius="15dp" | |
| 15 | + android:topRightRadius="15dp" /> <!-- 设置四个角的半径 --> | |
| 16 | + | |
| 17 | +</shape> | |
| 0 | 18 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/user_btn_login.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + | |
| 4 | + <item android:state_selected="true" android:drawable="@drawable/user_btn_login_sel" /> | |
| 5 | + <item android:state_pressed="true" android:drawable="@drawable/user_btn_login_sel" /> | |
| 6 | + <item android:state_focused="true" android:drawable="@drawable/user_btn_login_sel" /> | |
| 7 | + <item android:state_checked="false" android:drawable="@drawable/user_btn_login_nor" /> | |
| 8 | + | |
| 9 | +</selector> | |
| 0 | 10 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/user_btn_login_nor.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<shape | |
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | |
| 4 | + android:shape="rectangle" | |
| 5 | + android:useLevel="false"> | |
| 6 | + <solid android:color="@color/ff4e51" /> | |
| 7 | + | |
| 8 | + <size | |
| 9 | + android:height="40dp" /> | |
| 10 | + | |
| 11 | + <corners | |
| 12 | + android:bottomLeftRadius="20dp" | |
| 13 | + android:bottomRightRadius="20dp" | |
| 14 | + android:topLeftRadius="20dp" | |
| 15 | + android:topRightRadius="20dp" /> <!-- 设置四个角的半径 --> | |
| 16 | + | |
| 17 | +</shape> | |
| 0 | 18 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/user_btn_login_sel.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<shape | |
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | |
| 4 | + android:shape="rectangle" | |
| 5 | + android:useLevel="false"> | |
| 6 | + <solid android:color="#ea002a" /> | |
| 7 | + | |
| 8 | + <size | |
| 9 | + android:height="40dp" /> | |
| 10 | + | |
| 11 | + <corners | |
| 12 | + android:bottomLeftRadius="20dp" | |
| 13 | + android:bottomRightRadius="20dp" | |
| 14 | + android:topLeftRadius="20dp" | |
| 15 | + android:topRightRadius="20dp" /> <!-- 设置四个角的半径 --> | |
| 16 | + | |
| 17 | +</shape> | |
| 0 | 18 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/user_btn_logout.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + | |
| 4 | + <item android:state_selected="true" android:drawable="@drawable/user_btn_logout_sel" /> | |
| 5 | + <item android:state_pressed="true" android:drawable="@drawable/user_btn_logout_sel" /> | |
| 6 | + <item android:state_focused="true" android:drawable="@drawable/user_btn_logout_sel" /> | |
| 7 | + <item android:state_checked="false" android:drawable="@drawable/user_btn_logout_nor" /> | |
| 8 | + | |
| 9 | +</selector> | |
| 0 | 10 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/user_btn_logout_nor.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<shape | |
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | |
| 4 | + android:shape="rectangle" | |
| 5 | + android:useLevel="false"> | |
| 6 | + <solid android:color="@color/text_hint_color" /> | |
| 7 | + | |
| 8 | + <size | |
| 9 | + android:height="40dp" /> | |
| 10 | + | |
| 11 | + <corners | |
| 12 | + android:bottomLeftRadius="20dp" | |
| 13 | + android:bottomRightRadius="20dp" | |
| 14 | + android:topLeftRadius="20dp" | |
| 15 | + android:topRightRadius="20dp" /> <!-- 设置四个角的半径 --> | |
| 16 | + | |
| 17 | +</shape> | |
| 0 | 18 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/user_btn_logout_sel.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<shape | |
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | |
| 4 | + android:shape="rectangle" | |
| 5 | + android:useLevel="false"> | |
| 6 | + <solid android:color="#6e6e6e" /> | |
| 7 | + | |
| 8 | + <size | |
| 9 | + android:height="40dp" /> | |
| 10 | + | |
| 11 | + <corners | |
| 12 | + android:bottomLeftRadius="20dp" | |
| 13 | + android:bottomRightRadius="20dp" | |
| 14 | + android:topLeftRadius="20dp" | |
| 15 | + android:topRightRadius="20dp" /> <!-- 设置四个角的半径 --> | |
| 16 | + | |
| 17 | +</shape> | |
| 0 | 18 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/user_btn_verification.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + <item android:state_selected="true" android:drawable="@drawable/user_btn_keycode_sel" /> | |
| 4 | + <item android:state_pressed="true" android:drawable="@drawable/user_btn_keycode_sel" /> | |
| 5 | + <item android:state_focused="true" android:drawable="@drawable/user_btn_keycode_sel" /> | |
| 6 | + <item android:drawable="@drawable/user_btn_keycode_nor" /> | |
| 7 | +</selector> | |
| 0 | 8 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/user_micro_blog_selector.xml
0 → 100644
| 1 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 2 | + | |
| 3 | + <item android:drawable="@drawable/user_micro_blog" android:state_enabled="false" android:state_focused="true" /> | |
| 4 | + <item android:drawable="@drawable/user_micro_blog" android:state_pressed="true" /> | |
| 5 | + <item android:drawable="@drawable/user_micro_blog" android:state_focused="true" /> | |
| 6 | + <item android:drawable="@drawable/user_micro_blog_click" /> | |
| 7 | + | |
| 8 | +</selector> | |
| 0 | 9 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/user_qq_selector.xml
0 → 100644
| 1 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 2 | + | |
| 3 | + <item android:drawable="@drawable/user_qq" android:state_enabled="false" android:state_focused="true" /> | |
| 4 | + <item android:drawable="@drawable/user_qq" android:state_pressed="true" /> | |
| 5 | + <item android:drawable="@drawable/user_qq" android:state_focused="true" /> | |
| 6 | + <item android:drawable="@drawable/user_qq_click" /> | |
| 7 | + | |
| 8 | +</selector> | |
| 0 | 9 | \ No newline at end of file | ... | ... |
user/src/main/res/drawable/user_wechat_selector.xml
0 → 100644
| 1 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 2 | + | |
| 3 | + <item android:drawable="@drawable/user_wechat" android:state_enabled="false" android:state_focused="true" /> | |
| 4 | + <item android:drawable="@drawable/user_wechat" android:state_pressed="true" /> | |
| 5 | + <item android:drawable="@drawable/user_wechat" android:state_focused="true" /> | |
| 6 | + <item android:drawable="@drawable/user_wechat_click" /> | |
| 7 | + | |
| 8 | +</selector> | |
| 0 | 9 | \ No newline at end of file | ... | ... |
user/src/main/res/mipmap-hdpi/ic_launcher.png
0 → 100644
6.52 KB
user/src/main/res/values/colors.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<resources> | |
| 3 | + <color name="colorPrimary">#3F51B5</color> | |
| 4 | + <color name="colorPrimaryDark">#303F9F</color> | |
| 5 | + <color name="colorAccent">#FF4081</color> | |
| 6 | + | |
| 7 | + <color name="gray_line_color">#dcdcdc</color> | |
| 8 | + <color name="config_black_color">#323333</color> | |
| 9 | + <color name="config_gray_color">#969797</color> | |
| 10 | + <color name="color_list_bg">#88615F5D</color> | |
| 11 | + <color name="text_input_color">#323333</color> | |
| 12 | + <color name="text_hint_color">#969797</color> | |
| 13 | + | |
| 14 | + //登录页面 | |
| 15 | + <color name="ff4e51">#ff4e51</color> | |
| 16 | + <color name="black">#000000</color> | |
| 17 | + | |
| 18 | + //注册页面 | |
| 19 | + <color name="text_white_color">#FFFFFF</color> | |
| 20 | + | |
| 21 | + //关于我们页面 | |
| 22 | + <color name="star_name_color">#323333</color> | |
| 23 | + <color name="about_us_btn_text_color">#177bdf</color> | |
| 24 | + <color name="about_us_company_name_color">#969797</color> | |
| 25 | +</resources> | ... | ... |
user/src/main/res/values/dimens.xml
0 → 100644
| 1 | +<resources> | |
| 2 | + <!-- Default screen margins, per the Android Design guidelines. --> | |
| 3 | + <dimen name="activity_horizontal_margin">16dp</dimen> | |
| 4 | + <dimen name="activity_vertical_margin">16dp</dimen> | |
| 5 | + | |
| 6 | + <dimen name="divider_height">6dip</dimen> | |
| 7 | + <dimen name="config_image_height">28dip</dimen> | |
| 8 | + <dimen name="config_image_width">29dip</dimen> | |
| 9 | + <dimen name="config_item_height">54dip</dimen> | |
| 10 | + | |
| 11 | + <dimen name="next_image_width">13dp</dimen> | |
| 12 | + <dimen name="next_image_height">21dp</dimen> | |
| 13 | + <dimen name="next_image_margin_right">9dp</dimen> | |
| 14 | + | |
| 15 | + <dimen name="_20px">10dp</dimen> | |
| 16 | + <dimen name="_28px">14dp</dimen> | |
| 17 | + | |
| 18 | + //个人中心 | |
| 19 | + <dimen name="personal_item_height">44dp</dimen> | |
| 20 | + <dimen name="personal_text_size">17sp</dimen> | |
| 21 | + <dimen name="personal_text_size_14">14sp</dimen> | |
| 22 | + <dimen name="personal_text_size_18">18sp</dimen> | |
| 23 | + | |
| 24 | + //关于我们 | |
| 25 | + <dimen name="about_us_text_size">17sp</dimen> | |
| 26 | + <dimen name="about_us_btn_size">13sp</dimen> | |
| 27 | + <dimen name="about_us_company_name_size">12sp</dimen> | |
| 28 | + | |
| 29 | + //反馈意见 | |
| 30 | + <dimen name="text_size_15">15sp</dimen> | |
| 31 | + <dimen name="_10px">5dp</dimen> | |
| 32 | + <dimen name="_30px">15dp</dimen> | |
| 33 | + <dimen name="_100px">50dp</dimen> | |
| 34 | +</resources> | ... | ... |
user/src/main/res/values/strings.xml
0 → 100644
| 1 | +<resources> | |
| 2 | + <string name="app_name">视讯云直播</string> | |
| 3 | + | |
| 4 | + | |
| 5 | + <string name="net_connect_toast">"你好像掉线了"</string> | |
| 6 | + | |
| 7 | + //我的 | |
| 8 | + <string name="main_tab_config">我的</string> | |
| 9 | + <string name="click_login">点击登录</string> | |
| 10 | + <string name="login_china_coin">登录就送中国币哟</string> | |
| 11 | + <string name="my_config_money_desc">中国币、兑换码、金额</string> | |
| 12 | + <string name="logout">注销</string> | |
| 13 | + | |
| 14 | + //登录页面 | |
| 15 | + <string name="user_login_account">账号:</string> | |
| 16 | + <string name="user_login_account_hint">Email/手机号码</string> | |
| 17 | + <string name="user_login_code">密码:</string> | |
| 18 | + <string name="user_login_code_hint">6–20位字母或数字</string> | |
| 19 | + <string name="user_login_recall_code">忘记密码?</string> | |
| 20 | + <string name="string_fast_access">短信验证登录</string> | |
| 21 | + <string name="user_login">登录</string> | |
| 22 | + <string name="user_login_third_part_login">第三方账号登录</string> | |
| 23 | + <string name="third_login_sina">微博</string> | |
| 24 | + <string name="third_login_qq">QQ</string> | |
| 25 | + <string name="third_login_weixin">微信</string> | |
| 26 | + | |
| 27 | + //注册页面 | |
| 28 | + <string name="register_mobile_hint">请输入您的手机号</string> | |
| 29 | + <string name="getmobile_identify_code">获取验证码</string> | |
| 30 | + <string name="register_mobile_keycode_hint">请输入您收到的验证码</string> | |
| 31 | + <string name="register_password_hint">请设置密码:6–20位字母或数字</string> | |
| 32 | + <string name="register_show_password">显示密码</string> | |
| 33 | + <string name="register_and_agree">我已阅读并同意</string> | |
| 34 | + <string name="register_btn">注册</string> | |
| 35 | + | |
| 36 | + //找回密码页面 | |
| 37 | + <string name="find_password_btn">找回密码</string> | |
| 38 | + <string name="find_password_hint">请确认密码:6–20位字母或数字</string> | |
| 39 | + <string name="save_btn">保存</string> | |
| 40 | + | |
| 41 | + //昵称修改页面 | |
| 42 | + <string name="user_input_nickname">请输入昵称</string> | |
| 43 | + | |
| 44 | + //手机号修改页面 | |
| 45 | + <string name="register_mobile">手机号:</string> | |
| 46 | + <string name="user_personal_telephone_hint">手机号码</string> | |
| 47 | + <string name="register_mobile_keycode">验证码:</string> | |
| 48 | + <string name="hint_6_numbers_code">6位数字验证码</string> | |
| 49 | + | |
| 50 | + //邮箱修改页面 | |
| 51 | + <string name="email_notify">修改后,您输入的邮箱将会收到确认邮件,请按邮件中的说明去完成验证,谢谢!</string> | |
| 52 | + | |
| 53 | + //关于我们页面 | |
| 54 | + <string name="about_us_visit">访问视讯中国官网</string> | |
| 55 | + <string name="about_us_call_phone">拨打客服电话</string> | |
| 56 | + <string name="about_us_disclaimer">免责声明</string> | |
| 57 | + <string name="about_us_company_name">北京中投视讯文化传媒股份有限公司</string> | |
| 58 | + | |
| 59 | + //分享 | |
| 60 | + <string name="toast_msg_share_success">分享成功!</string> | |
| 61 | + <string name="toast_msg_share_fail">分享失败,请再试一次</string> | |
| 62 | + <string name="toast_msg_share_cancel">取消分享</string> | |
| 63 | + <string name="share_program_download_targetUrl"> http://www.cnlive.com/web/guide.jsp</string> | |
| 64 | + | |
| 65 | + //AccountManager用户管理 | |
| 66 | + <string name="ACCOUNT_TYPE">com.cnlive.libs.AccountType</string> | |
| 67 | + <string name="ACCOUNT_LABEL">@string/app_name</string> | |
| 68 | + | |
| 69 | + <string name="verified_url" formatted="false">https://mobile.cnlive.com/CnliveMobile/web/review/review.jsp?sid=%s&plat=a&appId=%s </string> | |
| 70 | + | |
| 71 | +</resources> | ... | ... |
user/src/main/res/values/styles.xml
0 → 100644
| 1 | +<resources> | |
| 2 | + | |
| 3 | + <!-- Base application theme. --> | |
| 4 | + <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> | |
| 5 | + <!-- Customize your theme here. --> | |
| 6 | + <item name="colorPrimary">@color/colorPrimary</item> | |
| 7 | + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> | |
| 8 | + <item name="colorAccent">@color/colorAccent</item> | |
| 9 | + </style> | |
| 10 | + | |
| 11 | + <style name="ActionbarTitleStyle"> | |
| 12 | + <item name="android:textSize">22sp</item> | |
| 13 | + <item name="android:textColor">#000000</item> | |
| 14 | + </style> | |
| 15 | + | |
| 16 | + <style name="list_item_style"> | |
| 17 | + <item name="android:background">@drawable/list_item_selector</item> | |
| 18 | + </style> | |
| 19 | + | |
| 20 | + <style name="ConfigItemImageStyle"> | |
| 21 | + <item name="android:layout_marginLeft">18dp</item> | |
| 22 | + <item name="android:layout_marginRight">10dp</item> | |
| 23 | + </style> | |
| 24 | + | |
| 25 | + <style name="ConfigItemTitleStyle"> | |
| 26 | + <item name="android:textColor">@color/config_black_color</item> | |
| 27 | + <item name="android:textSize">15sp</item> | |
| 28 | + <item name="android:layout_marginLeft">8dp</item> | |
| 29 | + </style> | |
| 30 | + | |
| 31 | + <style name="ConfigItemDescStyle"> | |
| 32 | + <item name="android:textColor">@color/config_gray_color</item> | |
| 33 | + <item name="android:textSize">12sp</item> | |
| 34 | + <item name="android:layout_marginRight">5dp</item> | |
| 35 | + </style> | |
| 36 | + | |
| 37 | + <style name="ToolbarTitleStyle"> | |
| 38 | + <item name="android:textSize">20sp</item> | |
| 39 | + <item name="android:textColor">#000000</item> | |
| 40 | + </style> | |
| 41 | + | |
| 42 | + <style name="LoginButtonStyle"> | |
| 43 | + <item name="android:textColor">@android:color/white</item> | |
| 44 | + <item name="android:textSize">17sp</item> | |
| 45 | + <item name="android:layout_marginRight">10dp</item> | |
| 46 | + <item name="android:layout_marginLeft">10dp</item> | |
| 47 | + </style> | |
| 48 | + | |
| 49 | + <style name="LoginNameStyle"> | |
| 50 | + <item name="android:textColor">@color/text_input_color</item> | |
| 51 | + <item name="android:textSize">17sp</item> | |
| 52 | + <item name="android:layout_marginRight">17dp</item> | |
| 53 | + <item name="android:layout_marginLeft">18dp</item> | |
| 54 | + <item name="android:layout_marginTop">20dp</item> | |
| 55 | + <item name="android:layout_marginBottom">20dp</item> | |
| 56 | + </style> | |
| 57 | + | |
| 58 | + <style name="LoginContentStyle"> | |
| 59 | + <item name="android:textColor">@color/text_input_color</item> | |
| 60 | + <item name="android:textColorHint">@color/text_hint_color</item> | |
| 61 | + <item name="android:textSize">17sp</item> | |
| 62 | + <item name="android:singleLine">true</item> | |
| 63 | + <item name="android:textCursorDrawable">@null</item> | |
| 64 | + <item name="android:background">@null</item> | |
| 65 | + </style> | |
| 66 | + | |
| 67 | + <style name="take_photo_anim" parent="android:Animation"> | |
| 68 | + <item name="android:windowEnterAnimation">@anim/pop_enter_anim</item> | |
| 69 | + <item name="android:windowExitAnimation">@anim/pop_exit_anim</item> | |
| 70 | + </style> | |
| 71 | + | |
| 72 | + <style name="CustomDialogStyle" parent="@android:style/Theme.Dialog"> | |
| 73 | + <item name="android:windowFrame">@null</item> | |
| 74 | + <item name="android:windowIsFloating">true</item> | |
| 75 | + <item name="android:windowIsTranslucent">true</item> | |
| 76 | + <item name="android:windowNoTitle">true</item> | |
| 77 | + <item name="android:background">@android:color/transparent</item> | |
| 78 | + <item name="android:windowBackground">@android:color/transparent</item> | |
| 79 | + <item name="android:backgroundDimEnabled">true</item> | |
| 80 | + <item name="android:backgroundDimAmount">0.6</item> | |
| 81 | + <item name="android:windowCloseOnTouchOutside">true</item> | |
| 82 | + </style> | |
| 83 | + | |
| 84 | + <style name="ActionBar" parent="Theme.AppCompat.Light.DarkActionBar"> | |
| 85 | + <!-- Customize your theme here. --> | |
| 86 | + <item name="colorPrimary">@color/colorPrimary</item> | |
| 87 | + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> | |
| 88 | + <item name="colorAccent">@color/colorAccent</item> | |
| 89 | + <item name="android:windowContentOverlay">@null</item> | |
| 90 | + </style> | |
| 91 | +</resources> | ... | ... |
user/src/main/res/xml/account_preferences.xml
0 → 100644
user/src/main/res/xml/authenticator.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + android:accountType="@string/ACCOUNT_TYPE" | |
| 4 | + android:icon="@mipmap/ic_launcher" | |
| 5 | + android:smallIcon="@mipmap/ic_launcher" | |
| 6 | + android:label="@string/ACCOUNT_LABEL" | |
| 7 | + android:accountPreferences="@xml/account_preferences" /> | |
| 0 | 8 | \ No newline at end of file | ... | ... |
user/src/test/java/cnlive/com/myuser/ExampleUnitTest.java
0 → 100644
| 1 | +package cnlive.com.myuser; | |
| 2 | + | |
| 3 | +import org.junit.Test; | |
| 4 | + | |
| 5 | +import static org.junit.Assert.*; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * Example local unit test, which will execute on the development machine (host). | |
| 9 | + * | |
| 10 | + * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | |
| 11 | + */ | |
| 12 | +public class ExampleUnitTest { | |
| 13 | + @Test | |
| 14 | + public void addition_isCorrect() throws Exception { | |
| 15 | + assertEquals(4, 2 + 2); | |
| 16 | + } | |
| 17 | +} | |
| 0 | 18 | \ No newline at end of file | ... | ... |