Commit d547ff71bd8a5c29c4c3e4f093927155311b18e6

Authored by 陈硕
1 parent 358185d5

创建 user

Showing 88 changed files with 437 additions and 573 deletions
app/build.gradle
@@ -36,4 +36,5 @@ dependencies { @@ -36,4 +36,5 @@ dependencies {
36 compile 'org.igniterealtime.smack:smack-tcp:4.1.4' 36 compile 'org.igniterealtime.smack:smack-tcp:4.1.4'
37 compile 'org.greenrobot:greendao-encryption:2.2.2' 37 compile 'org.greenrobot:greendao-encryption:2.2.2'
38 compile 'com.gyf.barlibrary:barlibrary:2.2.4' 38 compile 'com.gyf.barlibrary:barlibrary:2.2.4'
  39 + compile project(':user')
39 } 40 }
app/src/main/AndroidManifest.xml
@@ -73,13 +73,25 @@ @@ -73,13 +73,25 @@
73 </intent-filter> 73 </intent-filter>
74 </receiver> 74 </receiver>
75 75
76 - 76 + <activity
  77 + android:name=".user.activity.CommentActivity"
  78 + android:configChanges="orientation|keyboardHidden|screenSize"
  79 + android:launchMode="singleTop"
  80 + android:screenOrientation="portrait"
  81 + android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
77 <activity 82 <activity
78 android:name=".stream.ui.activity.StreamActivity" 83 android:name=".stream.ui.activity.StreamActivity"
79 android:configChanges="orientation|keyboardHidden|screenSize" 84 android:configChanges="orientation|keyboardHidden|screenSize"
80 android:launchMode="singleTop" 85 android:launchMode="singleTop"
81 android:screenOrientation="portrait" 86 android:screenOrientation="portrait"
82 android:theme="@style/Theme.AppCompat.Light.NoActionBar" /> 87 android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
  88 +
  89 + <activity
  90 + android:name=".user.activity.UserPersonalActivity"
  91 + android:configChanges="orientation|keyboardHidden|screenSize"
  92 + android:launchMode="singleTop"
  93 + android:screenOrientation="portrait"
  94 + android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
83 </application> 95 </application>
84 96
85 </manifest> 97 </manifest>
86 \ No newline at end of file 98 \ No newline at end of file
app/src/main/java/com/cnlive/gundam/main/application/CNLiveApplication.java
@@ -13,6 +13,6 @@ public class CNLiveApplication extends Application { @@ -13,6 +13,6 @@ public class CNLiveApplication extends Application {
13 @Override 13 @Override
14 public void onCreate() { 14 public void onCreate() {
15 super.onCreate(); 15 super.onCreate();
16 - Config.init(getApplicationContext(), "60_j4fc7dsm83", "4c8658abc5d66f270f9bf5dcd1ef11e3597fab4c4e0af9"); 16 + Config.init(getApplicationContext(), "60_j4fc7dsm83", "4c8658abc5d66f270f9bf5dcd1ef11e3597fab4c4e0af9",true);
17 } 17 }
18 } 18 }
app/src/main/java/com/cnlive/gundam/main/ui/fragment/ConfigFragment.java
@@ -5,16 +5,18 @@ import android.databinding.DataBindingUtil; @@ -5,16 +5,18 @@ import android.databinding.DataBindingUtil;
5 import android.os.Bundle; 5 import android.os.Bundle;
6 import android.support.annotation.Nullable; 6 import android.support.annotation.Nullable;
7 import android.support.v4.app.Fragment; 7 import android.support.v4.app.Fragment;
8 -import android.util.Log;  
9 import android.view.LayoutInflater; 8 import android.view.LayoutInflater;
10 import android.view.View; 9 import android.view.View;
11 import android.view.ViewGroup; 10 import android.view.ViewGroup;
12 11
13 import com.cnlive.gundam.R; 12 import com.cnlive.gundam.R;
14 import com.cnlive.gundam.databinding.UserFragmentBinding; 13 import com.cnlive.gundam.databinding.UserFragmentBinding;
  14 +import com.cnlive.gundam.user.activity.CommentActivity;
15 import com.cnlive.gundam.user.activity.LoginActivity; 15 import com.cnlive.gundam.user.activity.LoginActivity;
16 import com.cnlive.gundam.user.auth.UserService; 16 import com.cnlive.gundam.user.auth.UserService;
17 17
  18 +
  19 +
18 /** 20 /**
19 * Created by xiansong on 2017/6/27. 21 * Created by xiansong on 2017/6/27.
20 */ 22 */
@@ -79,6 +81,7 @@ public class ConfigFragment extends Fragment implements View.OnClickListener { @@ -79,6 +81,7 @@ public class ConfigFragment extends Fragment implements View.OnClickListener {
79 81
80 break; 82 break;
81 case R.id.message: 83 case R.id.message:
  84 + startActivity(new Intent(getActivity(), CommentActivity.class));
82 85
83 break; 86 break;
84 87
app/src/main/java/com/cnlive/gundam/user/activity/CommentActivity.java 0 → 100644
  1 +package com.cnlive.gundam.user.activity;
  2 +
  3 +import android.databinding.DataBindingUtil;
  4 +import android.os.Bundle;
  5 +import android.support.annotation.Nullable;
  6 +import android.support.v7.app.AppCompatActivity;
  7 +
  8 +import com.cnlive.gundam.R;
  9 +import com.cnlive.gundam.user.fragment.FeedbackFragment;
  10 +
  11 +/**
  12 + * @author 陈硕
  13 + * @time 2017/6/28 11:42
  14 + * @desc ${TODD}
  15 + */
  16 +public class CommentActivity extends AppCompatActivity {
  17 + @Override
  18 + protected void onCreate(@Nullable Bundle savedInstanceState) {
  19 + super.onCreate(savedInstanceState);
  20 + DataBindingUtil.setContentView(this, R.layout.activity_setting);
  21 + getSupportFragmentManager().beginTransaction().replace(R.id.setting_fragment, FeedbackFragment.newInstance()).commit();
  22 + }
  23 +}
app/src/main/java/com/cnlive/gundam/user/activity/UserPersonalActivity.java 0 → 100644
  1 +package com.cnlive.gundam.user.activity;
  2 +
  3 +import android.databinding.DataBindingUtil;
  4 +import android.os.Bundle;
  5 +import android.support.annotation.Nullable;
  6 +import android.support.v7.app.AppCompatActivity;
  7 +
  8 +import com.cnlive.gundam.R;
  9 +import com.cnlive.gundam.user.fragment.UserPersonalFragment;
  10 +
  11 +/**
  12 + * @author 陈硕
  13 + * @time 2017/6/28 12:56
  14 + * @desc ${TODD}
  15 + */
  16 +public class UserPersonalActivity extends AppCompatActivity {
  17 + @Override
  18 + protected void onCreate(@Nullable Bundle savedInstanceState) {
  19 + super.onCreate(savedInstanceState);
  20 + DataBindingUtil.setContentView(this, R.layout.activity_setting);
  21 + getSupportFragmentManager().beginTransaction().replace(R.id.setting_fragment, UserPersonalFragment.newInstance()).commit();
  22 + }
  23 +}
app/src/main/java/com/cnlive/gundam/user/fragment/FeedbackFragment.java 0 → 100644
  1 +package com.cnlive.gundam.user.fragment;
  2 +
  3 +import android.app.ProgressDialog;
  4 +import android.databinding.DataBindingUtil;
  5 +import android.os.Bundle;
  6 +import android.support.annotation.Nullable;
  7 +import android.support.v4.app.Fragment;
  8 +import android.view.LayoutInflater;
  9 +import android.view.View;
  10 +import android.view.ViewGroup;
  11 +
  12 +import com.cnlive.gundam.R;
  13 +import com.cnlive.gundam.databinding.UserFeedbackBinding;
  14 +import com.cnlive.gundam.user.util.ToastUtil;
  15 +import com.cnlive.libs.user.IUserService;
  16 +import com.cnlive.libs.user.UserUtil;
  17 +import com.cnlive.libs.util.data.network.Callback;
  18 +
  19 +
  20 +
  21 +/**
  22 + * Created by luxiaoman on 2017/6/1.
  23 + */
  24 +
  25 +public class FeedbackFragment extends Fragment implements View.OnClickListener {
  26 + private UserFeedbackBinding binding;
  27 +
  28 + //跳转页面的对话框
  29 + private ProgressDialog dialog;
  30 +
  31 + @Nullable
  32 + @Override
  33 + public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  34 + binding = DataBindingUtil.inflate(inflater, R.layout.user_feedback, container, false);
  35 + return binding.getRoot();
  36 + }
  37 +
  38 + public static Fragment newInstance() {
  39 + FeedbackFragment fragment = new FeedbackFragment();
  40 + return fragment;
  41 + }
  42 +
  43 + @Override
  44 + public void onActivityCreated(Bundle savedInstanceState) {
  45 + super.onActivityCreated(savedInstanceState);
  46 + try {
  47 + initToolBar();
  48 + } catch (Exception e) {
  49 + e.printStackTrace();
  50 + }
  51 + initView();
  52 + }
  53 +
  54 + private void initToolBar(){
  55 + //整个页面的大标题
  56 + binding.feedbackIncludeLayout.toolbarTitle.setText("反馈意见");
  57 + }
  58 +
  59 + private void initView() {
  60 + //返回键
  61 + binding.backSelector.setOnClickListener(this);
  62 + //反馈按钮
  63 + binding.feedback.setOnClickListener(this);
  64 + }
  65 +
  66 + @Override
  67 + public void onClick(View v) {
  68 + int i = v.getId();
  69 + if (i == R.id.back_selector) {//返回上一页面
  70 + getFragmentManager().popBackStack();
  71 +
  72 + } else if (i == R.id.feedback) {
  73 + /**
  74 + * 用户反馈
  75 + *
  76 + * @param id 举报内容ID
  77 + * @param msg 举报内容(app自己组织-不能带特殊字符&号等)
  78 + * @param callback 回调
  79 + */
  80 + //显示对话框
  81 + showDialog();
  82 + //调用sdk的用户反馈方法
  83 + UserUtil.feedback("id", binding.feedbackTextView.getText().toString(), feedbackcall);
  84 + }
  85 + }
  86 +
  87 + /**
  88 + * 用户反馈的回调
  89 + */
  90 + protected FeedbackCall feedbackcall = new FeedbackCall();
  91 + private class FeedbackCall implements Callback {
  92 + @Override
  93 + public void onState(int what, String extra, Object obj) {
  94 + switch (what) {
  95 + case IUserService.SUCCESS:
  96 + ToastUtil.show(getActivity(), "反馈成功");
  97 + getFragmentManager().popBackStack();
  98 + break;
  99 + case IUserService.ERROR_PARAM:
  100 + ToastUtil.show(getActivity(), IUserService.message_error_param);
  101 + break;
  102 + case IUserService.ERROR_FEEDBACK_INSERT_FAILED:
  103 + ToastUtil.show(getActivity(), IUserService.message_feedback_insert_failed);
  104 + break;
  105 + case IUserService.ERROR_FEEDBACK_LENGTH:
  106 + ToastUtil.show(getActivity(), IUserService.message_feedback_length);
  107 + break;
  108 + case IUserService.ERROR_OTHER:
  109 + ToastUtil.show(getActivity(), IUserService.message_error_other);
  110 + break;
  111 + }
  112 + closeDialog();
  113 + }
  114 + }
  115 +
  116 + /**
  117 + * 显示对话框
  118 + */
  119 + public void showDialog() {
  120 + if (dialog == null) {
  121 + dialog = new ProgressDialog(getActivity());
  122 + dialog.setMessage("正在提交,请稍等...");
  123 + }
  124 + if (!dialog.isShowing()) {
  125 + dialog.show();
  126 + }
  127 + }
  128 +
  129 + /**
  130 + * 关闭对话框
  131 + */
  132 + public void closeDialog() {
  133 + if (dialog != null && dialog.isShowing()) {
  134 + dialog.dismiss();
  135 + }
  136 + }
  137 +}
app/src/main/java/com/cnlive/gundam/user/fragment/UserPersonalFragment.java 0 → 100644
  1 +package com.cnlive.gundam.user.fragment;
  2 +
  3 +import android.databinding.DataBindingUtil;
  4 +import android.os.Bundle;
  5 +import android.support.annotation.Nullable;
  6 +import android.support.v4.app.Fragment;
  7 +import android.view.LayoutInflater;
  8 +import android.view.View;
  9 +import android.view.ViewGroup;
  10 +
  11 +import com.cnlive.gundam.R;
  12 +import com.cnlive.gundam.databinding.FragmentUserPersonalBinding;
  13 +
  14 +
  15 +
  16 +/**
  17 + * @author 陈硕
  18 + * @time 2017/6/28 13:06
  19 + * @desc ${TODD}
  20 + */
  21 +public class UserPersonalFragment extends Fragment{
  22 +
  23 + private FragmentUserPersonalBinding binding;
  24 +
  25 +
  26 + @Nullable
  27 + @Override
  28 + public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  29 + binding = DataBindingUtil.inflate(inflater, R.layout.fragment_user_personal, container, false);
  30 + return binding.getRoot();
  31 + }
  32 +
  33 + public static UserPersonalFragment newInstance() {
  34 + UserPersonalFragment fragment = new UserPersonalFragment();
  35 + return fragment;
  36 + }
  37 +
  38 + @Override
  39 + public void onActivityCreated(Bundle savedInstanceState) {
  40 + super.onActivityCreated(savedInstanceState);
  41 + initToolBar();
  42 + /*init();
  43 + PersonalHeadItem.getContent(getActivity());
  44 + PersonalItem.getContent(getActivity());*/
  45 + }
  46 + private void initToolBar() {
  47 + binding.personalIncludeLayout.toolbarTitle.setText("个人资料");
  48 + }
  49 +
  50 +
  51 +
  52 +}
app/src/main/java/com/cnlive/gundam/user/model/PersonalDate.java 0 → 100644
  1 +package com.cnlive.gundam.user.model;
  2 +
  3 +/**
  4 + * @author 陈硕
  5 + * @time 2017/6/28 13:55
  6 + * @desc ${TODD}
  7 + */
  8 +public class PersonalDate {
  9 + public String getItemName() {
  10 + return itemName;
  11 + }
  12 +
  13 + public void setItemName(String itemName) {
  14 + this.itemName = itemName;
  15 + }
  16 +
  17 + private String itemName;
  18 +
  19 + public String getItemMessage() {
  20 + return itemMessage;
  21 + }
  22 +
  23 + public void setItemMessage(String itemMessage) {
  24 + this.itemMessage = itemMessage;
  25 + }
  26 +
  27 + private String itemMessage;
  28 +
  29 +
  30 +
  31 + public PersonalDate(String itemName, String itemMessage) {
  32 + this.itemName = itemName;
  33 + this.itemMessage = itemMessage;
  34 + }
  35 +
  36 +
  37 +
  38 +
  39 +
  40 +
  41 +}
app/src/main/java/com/cnlive/gundam/user/model/Title.java deleted 100644 → 0
1 -package com.cnlive.gundam.user.model;  
2 -  
3 -/**  
4 - * Created by luxiaoman on 2017/5/27.  
5 - */  
6 -  
7 -public class Title {  
8 - private String title;  
9 -  
10 - public Title() {  
11 - }  
12 -  
13 - public Title(String title) {  
14 - this.title = title;  
15 - }  
16 -  
17 - public String getTitle() {  
18 - return title;  
19 - }  
20 -  
21 - public void setTitle(String title) {  
22 - this.title = title;  
23 - }  
24 -  
25 - @Override  
26 - public String toString() {  
27 - return "Title{" +  
28 - "title='" + title + '\'' +  
29 - '}';  
30 - }  
31 -}  
app/src/main/java/com/cnlive/gundam/user/model/UserContent.java deleted 100644 → 0
1 -package com.cnlive.gundam.user.model;  
2 -  
3 -/**  
4 - * Created by luxiaoman on 2017/2/24.  
5 - */  
6 -public class UserContent {  
7 -  
8 - public final static int HEADER = 0; //header类型的条目  
9 - public final static int ITEM = 1; //item类型的条目  
10 - public final static int ITEM_NOTIFICATION = 2; //item类型中通知列表的条目  
11 - public final static int ITEM_CACHE = 3; //item类型中清除缓存的条目  
12 - public final static int ITEM_PERSONAL_HEADER = 4; //item类型中个人资料中头像类型的条目  
13 - public final static int ITEM_PERSONAL = 5; //item类型中个人资料中除编辑类型的条目  
14 - public final static int BOTTOM = 6; //item类型中个人资料中注销类型的条目  
15 -  
16 -  
17 - private String itemLetter;  
18 - private int itemType;  
19 - private String itemName;  
20 - private String itemContent;  
21 - private int itemIcon;  
22 -  
23 - public String getItemLetter() {  
24 - return itemLetter;  
25 - }  
26 -  
27 - public void setItemLetter(String itemLetter) {  
28 - this.itemLetter = itemLetter;  
29 - }  
30 -  
31 - public int getItemType() {  
32 - return itemType;  
33 - }  
34 -  
35 - public void setItemType(int itemType) {  
36 - this.itemType = itemType;  
37 - }  
38 -  
39 - public String getItemName() {  
40 - return itemName;  
41 - }  
42 -  
43 - public void setItemName(String itemName) {  
44 - this.itemName = itemName;  
45 - }  
46 -  
47 - public String getItemContent() {  
48 - return itemContent;  
49 - }  
50 -  
51 - public void setItemContent(String itemContent) {  
52 - this.itemContent = itemContent;  
53 - }  
54 -  
55 - public int getItemIcon() {  
56 - return itemIcon;  
57 - }  
58 -  
59 - public void setItemIcon(int itemIcon) {  
60 - this.itemIcon = itemIcon;  
61 - }  
62 -  
63 -  
64 - public UserContent(String itemLetter, int itemType, String itemName, String itemContent, int itemIcon) {  
65 - this.itemLetter = itemLetter;  
66 - this.itemType = itemType;  
67 - this.itemName = itemName;  
68 - this.itemContent = itemContent;  
69 - this.itemIcon = itemIcon;  
70 - }  
71 -}  
app/src/main/res/anim/pop_enter_anim.xml deleted 100644 → 0
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>  
12 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/anim/pop_exit_anim.xml deleted 100644 → 0
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>  
12 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/color/keycode_text_color.xml deleted 100644 → 0
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>  
8 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable-hdpi/btn_cancel_nor.png deleted 100644 → 0

1.63 KB

app/src/main/res/drawable-hdpi/btn_cancel_sel.png deleted 100644 → 0

1.63 KB

app/src/main/res/drawable-hdpi/btn_list_arrows_nor.png deleted 100644 → 0

1.32 KB

app/src/main/res/drawable-hdpi/btn_list_arrows_sel.png deleted 100644 → 0

1.32 KB

app/src/main/res/drawable-hdpi/btn_return.png deleted 100644 → 0

2.38 KB

app/src/main/res/drawable-hdpi/cnlive_user_header.png deleted 100644 → 0

6.29 KB

app/src/main/res/drawable-hdpi/ic_header.png deleted 100644 → 0

6.29 KB

app/src/main/res/drawable-hdpi/user_micro_blog.png deleted 100644 → 0

4.43 KB

app/src/main/res/drawable-hdpi/user_micro_blog_click.png deleted 100644 → 0

4.51 KB

app/src/main/res/drawable-hdpi/user_qq.png deleted 100644 → 0

3.35 KB

app/src/main/res/drawable-hdpi/user_qq_click.png deleted 100644 → 0

3.4 KB

app/src/main/res/drawable-hdpi/user_wechat.png deleted 100644 → 0

3.85 KB

app/src/main/res/drawable-hdpi/user_wechat_click.png deleted 100644 → 0

3.88 KB

app/src/main/res/drawable-xhdpi/btn_agree_nor.png deleted 100644 → 0

2.17 KB

app/src/main/res/drawable-xhdpi/btn_agree_sel.png deleted 100644 → 0

2.41 KB

app/src/main/res/drawable-xhdpi/ic_web_forward.png deleted 100644 → 0

831 Bytes

app/src/main/res/drawable-xhdpi/ic_web_forward_pressed.png deleted 100644 → 0

831 Bytes

app/src/main/res/drawable-xhdpi/list_item_image_load_fail.png deleted 100644 → 0

1.68 KB

app/src/main/res/drawable-xxhdpi/about_us.9.png deleted 100644 → 0

2.04 KB

app/src/main/res/drawable-xxhdpi/about_us_icon.png deleted 100644 → 0

10.3 KB

app/src/main/res/drawable-xxhdpi/btn_share_pengyouquan_nor.png deleted 100644 → 0

5.37 KB

app/src/main/res/drawable-xxhdpi/btn_share_pengyouquan_sel.png deleted 100644 → 0

5.45 KB

app/src/main/res/drawable-xxhdpi/btn_share_sina_nor.png deleted 100644 → 0

5.04 KB

app/src/main/res/drawable-xxhdpi/btn_share_sina_sel.png deleted 100644 → 0

5.21 KB

app/src/main/res/drawable-xxhdpi/btn_share_tengxun_nor.png deleted 100644 → 0

4.84 KB

app/src/main/res/drawable-xxhdpi/btn_share_tengxun_sel.png deleted 100644 → 0

5.22 KB

app/src/main/res/drawable-xxhdpi/btn_share_weixin_nor.png deleted 100644 → 0

4.54 KB

app/src/main/res/drawable-xxhdpi/btn_share_weixin_sel.png deleted 100644 → 0

4.6 KB

app/src/main/res/drawable-xxhdpi/ic_config_download.png deleted 100644 → 0

1.15 KB

app/src/main/res/drawable-xxhdpi/ic_config_favorite.png deleted 100644 → 0

1.99 KB

app/src/main/res/drawable-xxhdpi/ic_config_history.png deleted 100644 → 0

1.89 KB

app/src/main/res/drawable-xxhdpi/ic_config_setting.png deleted 100644 → 0

2.21 KB

app/src/main/res/drawable-xxhdpi/ic_setting_about.png deleted 100644 → 0

1.88 KB

app/src/main/res/drawable-xxhdpi/ic_setting_clear.png deleted 100644 → 0

1.35 KB

app/src/main/res/drawable-xxhdpi/ic_setting_help.png deleted 100644 → 0

2.21 KB

app/src/main/res/drawable-xxhdpi/ic_setting_opinion.png deleted 100644 → 0

2.16 KB

app/src/main/res/drawable-xxhdpi/share_btn_qq_nor.png deleted 100644 → 0

3.72 KB

app/src/main/res/drawable-xxhdpi/share_btn_qq_sel.png deleted 100644 → 0

4.57 KB

app/src/main/res/drawable-xxhdpi/switch_close.png deleted 100644 → 0

2.77 KB

app/src/main/res/drawable-xxhdpi/switch_open.png deleted 100644 → 0

2.49 KB

app/src/main/res/drawable-xxhdpi/test_layout_tost_bg.9.png deleted 100644 → 0

362 Bytes

app/src/main/res/drawable/agree_selector.xml deleted 100644 → 0
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>  
app/src/main/res/drawable/btn_cancel.xml deleted 100644 → 0
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>  
7 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/btn_channel_more.xml deleted 100644 → 0
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>  
8 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/downloading_progress_bar.xml deleted 100644 → 0
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>  
app/src/main/res/drawable/list_item_selector.xml deleted 100644 → 0
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>  
9 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/share_btn_qq.xml deleted 100644 → 0
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>  
7 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/share_btn_sina.xml deleted 100644 → 0
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>  
7 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/share_btn_tencent.xml deleted 100644 → 0
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>  
7 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/share_btn_weixin.xml deleted 100644 → 0
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>  
7 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/toolbar_bg.9.png deleted 100644 → 0

94 Bytes

app/src/main/res/drawable/user_btn_keycode_nor.xml deleted 100644 → 0
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>  
21 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/user_btn_keycode_sel.xml deleted 100644 → 0
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>  
18 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/user_btn_login.xml deleted 100644 → 0
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>  
10 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/user_btn_login_nor.xml deleted 100644 → 0
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>  
18 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/user_btn_login_sel.xml deleted 100644 → 0
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>  
18 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/user_btn_logout.xml deleted 100644 → 0
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>  
10 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/user_btn_logout_nor.xml deleted 100644 → 0
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>  
18 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/user_btn_logout_sel.xml deleted 100644 → 0
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>  
18 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/user_btn_verification.xml deleted 100644 → 0
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>  
8 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/user_micro_blog_selector.xml deleted 100644 → 0
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>  
9 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/user_qq_selector.xml deleted 100644 → 0
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>  
9 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/drawable/user_wechat_selector.xml deleted 100644 → 0
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>  
9 \ No newline at end of file 0 \ No newline at end of file
app/src/main/res/layout/activity_setting.xml 0 → 100644
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<layout>
  3 +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4 + xmlns:tools="http://schemas.android.com/tools"
  5 + android:id="@+id/setting_fragment"
  6 + android:layout_width="match_parent"
  7 + android:layout_height="match_parent"
  8 + tools:context=".ui.activity.UserActivity">
  9 +
  10 +</RelativeLayout>
  11 +</layout>
0 \ No newline at end of file 12 \ No newline at end of file
app/src/main/res/layout/fragment_user_personal.xml 0 → 100644
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<layout xmlns:android="http://schemas.android.com/apk/res/android"
  3 + xmlns:app="http://schemas.android.com/apk/res-auto">
  4 +
  5 + <!--<data>
  6 +
  7 + <variable
  8 + name="liLayoutManager"
  9 + type="android.support.v7.widget.LinearLayoutManager" />
  10 + </data>
  11 +-->
  12 + <RelativeLayout
  13 + android:id="@+id/main_view"
  14 + android:layout_width="match_parent"
  15 + android:layout_height="match_parent">
  16 +
  17 + <LinearLayout
  18 + android:id="@+id/persion_layout"
  19 + android:layout_width="match_parent"
  20 + android:layout_height="match_parent"
  21 + android:orientation="vertical">
  22 +
  23 + <include
  24 + android:id="@+id/personalIncludeLayout"
  25 + layout="@layout/user_toolbar_title" />
  26 +
  27 +
  28 + <android.support.v7.widget.RecyclerView
  29 + android:id="@+id/lv_personal"
  30 + android:layout_width="match_parent"
  31 + android:layout_height="match_parent"
  32 + android:divider="@null"
  33 + android:fastScrollEnabled="true"
  34 + android:scrollbars="none"
  35 + />
  36 +
  37 + </LinearLayout>
  38 +
  39 + <ImageView
  40 + android:id="@+id/back_selector"
  41 + android:layout_width="30dp"
  42 + android:layout_height="30dp"
  43 + android:layout_marginLeft="@dimen/_20px"
  44 + android:layout_marginTop="@dimen/_28px"
  45 + android:src="@drawable/btn_return" />
  46 +
  47 + </RelativeLayout>
  48 +</layout>
0 \ No newline at end of file 49 \ No newline at end of file
app/src/main/res/layout/user_divider_head_line.xml 0 → 100644
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3 + android:id="@+id/catalog"
  4 + android:layout_width="match_parent"
  5 + android:layout_height="wrap_content"
  6 + android:orientation="vertical">
  7 +
  8 + <ImageView
  9 + android:id="@+id/bottom_line"
  10 + android:layout_width="match_parent"
  11 + android:layout_height="1px"
  12 + android:background="@color/color_list_bg"
  13 + android:contentDescription="@null" />
  14 +</LinearLayout>
0 \ No newline at end of file 15 \ No newline at end of file
app/src/main/res/layout/user_feedback.xml 0 → 100644
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<layout xmlns:android="http://schemas.android.com/apk/res/android"
  3 + >
  4 +
  5 +
  6 +
  7 +<RelativeLayout
  8 + android:layout_width="match_parent"
  9 + android:layout_height="match_parent">
  10 +
  11 +<LinearLayout
  12 + android:orientation="vertical" android:layout_width="match_parent"
  13 + android:layout_height="wrap_content">
  14 +
  15 + <include layout="@layout/user_toolbar_title"
  16 + android:id="@+id/feedbackIncludeLayout"/>
  17 +
  18 + <include layout="@layout/user_divider_head_line" />
  19 +
  20 + <View
  21 + android:layout_width="match_parent"
  22 + android:layout_height="@dimen/_20px" />
  23 +
  24 + <EditText
  25 + android:id="@+id/feedback_textView"
  26 + android:layout_width="match_parent"
  27 + android:layout_height="wrap_content"
  28 + android:layout_centerVertical="true"
  29 + android:layout_marginLeft="@dimen/_30px"
  30 + android:background="@null"
  31 + android:hint="有什么好的建议嘛"
  32 + android:textColor="#000000"
  33 + android:textColorHint="@color/color_list_bg"
  34 + android:textSize="@dimen/text_size_15"
  35 + android:imeOptions="flagNoExtractUi" />
  36 +
  37 + <View
  38 + android:layout_width="match_parent"
  39 + android:layout_height="@dimen/_100px" />
  40 +
  41 + <Button
  42 + android:id="@+id/feedback"
  43 + style="@style/LoginButtonStyle"
  44 + android:layout_width="match_parent"
  45 + android:layout_height="35dp"
  46 + android:layout_gravity="center"
  47 + android:layout_centerHorizontal="true"
  48 + android:layout_marginBottom="15dp"
  49 + android:layout_alignParentBottom="true"
  50 + android:background="@drawable/user_btn_login"
  51 + android:gravity="center"
  52 + android:onClick="onClick"
  53 + android:text="提交" />
  54 +
  55 +</LinearLayout>
  56 +
  57 + <ImageView
  58 + android:id="@+id/back_selector"
  59 + android:layout_width="30dp"
  60 + android:layout_height="30dp"
  61 + android:layout_marginLeft="@dimen/_10px"
  62 + android:layout_marginTop="@dimen/_20px"
  63 + android:onClick="onClick"
  64 + android:src="@drawable/btn_return" />
  65 +
  66 + </RelativeLayout>
  67 +
  68 + </layout>
0 \ No newline at end of file 69 \ No newline at end of file
app/src/main/res/values/colors.xml
@@ -8,23 +8,4 @@ @@ -8,23 +8,4 @@
8 8
9 <color name="rate_sel">#ff0000</color> 9 <color name="rate_sel">#ff0000</color>
10 <color name="rate_nor">#ffffff</color> 10 <color name="rate_nor">#ffffff</color>
11 -  
12 - <color name="gray_line_color">#dcdcdc</color>  
13 - <color name="config_black_color">#323333</color>  
14 - <color name="config_gray_color">#969797</color>  
15 - <color name="color_list_bg">#88615F5D</color>  
16 - <color name="text_input_color">#323333</color>  
17 - <color name="text_hint_color">#969797</color>  
18 -  
19 - //登录页面  
20 - <color name="ff4e51">#ff4e51</color>  
21 - <color name="black">#000000</color>  
22 -  
23 - //注册页面  
24 - <color name="text_white_color">#FFFFFF</color>  
25 -  
26 - //关于我们页面  
27 - <color name="star_name_color">#323333</color>  
28 - <color name="about_us_btn_text_color">#177bdf</color>  
29 - <color name="about_us_company_name_color">#969797</color>  
30 </resources> 11 </resources>
app/src/main/res/values/dimens.xml
@@ -2,34 +2,4 @@ @@ -2,34 +2,4 @@
2 <resources> 2 <resources>
3 <dimen name="volumeWidthDefault">0px</dimen> 3 <dimen name="volumeWidthDefault">0px</dimen>
4 <dimen name="videoPortraitHeight" format="integer">200dp</dimen> 4 <dimen name="videoPortraitHeight" format="integer">200dp</dimen>
5 -  
6 -  
7 - <dimen name="divider_height">6dip</dimen>  
8 - <dimen name="config_image_height">28dip</dimen>  
9 - <dimen name="config_image_width">29dip</dimen>  
10 - <dimen name="config_item_height">54dip</dimen>  
11 -  
12 - <dimen name="next_image_width">13dp</dimen>  
13 - <dimen name="next_image_height">21dp</dimen>  
14 - <dimen name="next_image_margin_right">9dp</dimen>  
15 -  
16 - <dimen name="_20px">10dp</dimen>  
17 - <dimen name="_28px">14dp</dimen>  
18 -  
19 - //个人中心  
20 - <dimen name="personal_item_height">44dp</dimen>  
21 - <dimen name="personal_text_size">17sp</dimen>  
22 - <dimen name="personal_text_size_14">14sp</dimen>  
23 - <dimen name="personal_text_size_18">18sp</dimen>  
24 -  
25 - //关于我们  
26 - <dimen name="about_us_text_size">17sp</dimen>  
27 - <dimen name="about_us_btn_size">13sp</dimen>  
28 - <dimen name="about_us_company_name_size">12sp</dimen>  
29 -  
30 - //反馈意见  
31 - <dimen name="text_size_15">15sp</dimen>  
32 - <dimen name="_10px">5dp</dimen>  
33 - <dimen name="_30px">15dp</dimen>  
34 - <dimen name="_100px">50dp</dimen>  
35 </resources> 5 </resources>
36 \ No newline at end of file 6 \ No newline at end of file
app/src/main/res/values/strings.xml
@@ -31,71 +31,4 @@ @@ -31,71 +31,4 @@
31 <string name="loaded_rate_last">""</string> 31 <string name="loaded_rate_last">""</string>
32 <string name="loaded_rate_error_pre">提醒您切换</string> 32 <string name="loaded_rate_error_pre">提醒您切换</string>
33 <string name="loaded_rate_error_last">失败,请重试</string> 33 <string name="loaded_rate_error_last">失败,请重试</string>
34 -  
35 -  
36 - <string name="net_connect_toast">"你好像掉线了"</string>  
37 -  
38 - //我的  
39 - <string name="main_tab_config">我的</string>  
40 - <string name="click_login">点击登录</string>  
41 - <string name="login_china_coin">登录就送中国币哟</string>  
42 - <string name="my_config_money_desc">中国币、兑换码、金额</string>  
43 - <string name="logout">注销</string>  
44 -  
45 - //登录页面  
46 - <string name="user_login_account">账号:</string>  
47 - <string name="user_login_account_hint">Email/手机号码</string>  
48 - <string name="user_login_code">密码:</string>  
49 - <string name="user_login_code_hint">6&#8211;20位字母或数字</string>  
50 - <string name="user_login_recall_code">忘记密码?</string>  
51 - <string name="string_fast_access">短信验证登录</string>  
52 - <string name="user_login">登录</string>  
53 - <string name="user_login_third_part_login">第三方账号登录</string>  
54 - <string name="third_login_sina">微博</string>  
55 - <string name="third_login_qq">QQ</string>  
56 - <string name="third_login_weixin">微信</string>  
57 -  
58 - //注册页面  
59 - <string name="register_mobile_hint">请输入您的手机号</string>  
60 - <string name="getmobile_identify_code">获取验证码</string>  
61 - <string name="register_mobile_keycode_hint">请输入您收到的验证码</string>  
62 - <string name="register_password_hint">请设置密码:6&#8211;20位字母或数字</string>  
63 - <string name="register_show_password">显示密码</string>  
64 - <string name="register_and_agree">我已阅读并同意</string>  
65 - <string name="register_btn">注册</string>  
66 -  
67 - //找回密码页面  
68 - <string name="find_password_btn">找回密码</string>  
69 - <string name="find_password_hint">请确认密码:6&#8211;20位字母或数字</string>  
70 - <string name="save_btn">保存</string>  
71 -  
72 - //昵称修改页面  
73 - <string name="user_input_nickname">请输入昵称</string>  
74 -  
75 - //手机号修改页面  
76 - <string name="register_mobile">手机号:</string>  
77 - <string name="user_personal_telephone_hint">手机号码</string>  
78 - <string name="register_mobile_keycode">验证码:</string>  
79 - <string name="hint_6_numbers_code">6位数字验证码</string>  
80 -  
81 - //邮箱修改页面  
82 - <string name="email_notify">修改后,您输入的邮箱将会收到确认邮件,请按邮件中的说明去完成验证,谢谢!</string>  
83 -  
84 - //关于我们页面  
85 - <string name="about_us_visit">访问视讯中国官网</string>  
86 - <string name="about_us_call_phone">拨打客服电话</string>  
87 - <string name="about_us_disclaimer">免责声明</string>  
88 - <string name="about_us_company_name">北京中投视讯文化传媒股份有限公司</string>  
89 -  
90 - //分享  
91 - <string name="toast_msg_share_success">分享成功!</string>  
92 - <string name="toast_msg_share_fail">分享失败,请再试一次</string>  
93 - <string name="toast_msg_share_cancel">取消分享</string>  
94 - <string name="share_program_download_targetUrl"> http://www.cnlive.com/web/guide.jsp</string>  
95 -  
96 - //AccountManager用户管理  
97 - <string name="ACCOUNT_TYPE">com.cnlive.libs.AccountType</string>  
98 - <string name="ACCOUNT_LABEL">@string/app_name</string>  
99 -  
100 - <string name="verified_url" formatted="false">https://mobile.cnlive.com/CnliveMobile/web/review/review.jsp?sid=%s&amp;plat=a&amp;appId=%s </string>  
101 </resources> 34 </resources>
app/src/main/res/values/styles.xml
@@ -11,85 +11,4 @@ @@ -11,85 +11,4 @@
11 <declare-styleable name="FragmentTabHost"> 11 <declare-styleable name="FragmentTabHost">
12 <attr name="dividerDrawable" format="reference" /> 12 <attr name="dividerDrawable" format="reference" />
13 </declare-styleable> 13 </declare-styleable>
14 -  
15 - <style name="ActionbarTitleStyle">  
16 - <item name="android:textSize">22sp</item>  
17 - <item name="android:textColor">#000000</item>  
18 - </style>  
19 -  
20 - <style name="list_item_style">  
21 - <item name="android:background">@drawable/list_item_selector</item>  
22 - </style>  
23 -  
24 - <style name="ConfigItemImageStyle">  
25 - <item name="android:layout_marginLeft">18dp</item>  
26 - <item name="android:layout_marginRight">10dp</item>  
27 - </style>  
28 -  
29 - <style name="ConfigItemTitleStyle">  
30 - <item name="android:textColor">@color/config_black_color</item>  
31 - <item name="android:textSize">15sp</item>  
32 - <item name="android:layout_marginLeft">8dp</item>  
33 - </style>  
34 -  
35 - <style name="ConfigItemDescStyle">  
36 - <item name="android:textColor">@color/config_gray_color</item>  
37 - <item name="android:textSize">12sp</item>  
38 - <item name="android:layout_marginRight">5dp</item>  
39 - </style>  
40 -  
41 - <style name="ToolbarTitleStyle">  
42 - <item name="android:textSize">20sp</item>  
43 - <item name="android:textColor">#000000</item>  
44 - </style>  
45 -  
46 - <style name="LoginButtonStyle">  
47 - <item name="android:textColor">@android:color/white</item>  
48 - <item name="android:textSize">17sp</item>  
49 - <item name="android:layout_marginRight">10dp</item>  
50 - <item name="android:layout_marginLeft">10dp</item>  
51 - </style>  
52 -  
53 - <style name="LoginNameStyle">  
54 - <item name="android:textColor">@color/text_input_color</item>  
55 - <item name="android:textSize">17sp</item>  
56 - <item name="android:layout_marginRight">17dp</item>  
57 - <item name="android:layout_marginLeft">18dp</item>  
58 - <item name="android:layout_marginTop">20dp</item>  
59 - <item name="android:layout_marginBottom">20dp</item>  
60 - </style>  
61 -  
62 - <style name="LoginContentStyle">  
63 - <item name="android:textColor">@color/text_input_color</item>  
64 - <item name="android:textColorHint">@color/text_hint_color</item>  
65 - <item name="android:textSize">17sp</item>  
66 - <item name="android:singleLine">true</item>  
67 - <item name="android:textCursorDrawable">@null</item>  
68 - <item name="android:background">@null</item>  
69 - </style>  
70 -  
71 - <style name="take_photo_anim" parent="android:Animation">  
72 - <item name="android:windowEnterAnimation">@anim/pop_enter_anim</item>  
73 - <item name="android:windowExitAnimation">@anim/pop_exit_anim</item>  
74 - </style>  
75 -  
76 - <style name="CustomDialogStyle" parent="@android:style/Theme.Dialog">  
77 - <item name="android:windowFrame">@null</item>  
78 - <item name="android:windowIsFloating">true</item>  
79 - <item name="android:windowIsTranslucent">true</item>  
80 - <item name="android:windowNoTitle">true</item>  
81 - <item name="android:background">@android:color/transparent</item>  
82 - <item name="android:windowBackground">@android:color/transparent</item>  
83 - <item name="android:backgroundDimEnabled">true</item>  
84 - <item name="android:backgroundDimAmount">0.6</item>  
85 - <item name="android:windowCloseOnTouchOutside">true</item>  
86 - </style>  
87 -  
88 - <style name="ActionBar" parent="Theme.AppCompat.Light.DarkActionBar">  
89 - <!-- Customize your theme here. -->  
90 - <item name="colorPrimary">@color/colorPrimary</item>  
91 - <item name="colorPrimaryDark">@color/colorPrimaryDark</item>  
92 - <item name="colorAccent">@color/colorAccent</item>  
93 - <item name="android:windowContentOverlay">@null</item>  
94 - </style>  
95 </resources> 14 </resources>
app/src/main/res/xml/account_preferences.xml deleted 100644 → 0
1 -<?xml version="1.0" encoding="utf-8"?>  
2 -<PreferenceScreen></PreferenceScreen>  
app/src/main/res/xml/authenticator.xml deleted 100644 → 0
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" />  
8 \ No newline at end of file 0 \ No newline at end of file
settings.gradle
1 -include ':app' 1 +include ':app', ':user'