Commit dfae0dfa56eaab09b5b9a5e38f38ccfdbff8b4e7

Authored by 朱显松
2 parents e9ea17b5 01c7920a

Merge branch 'master' of bj.gitlab.cnlive.com:cnlive-team/CNLiveApp

Conflicts:
	app/src/main/res/values/colors.xml
	app/src/main/res/values/dimens.xml
	app/src/main/res/values/styles.xml
Showing 106 changed files with 727 additions and 174 deletions
.idea/modules.xml
... ... @@ -3,7 +3,9 @@
3 3 <component name="ProjectModuleManager">
4 4 <modules>
5 5 <module fileurl="file://$PROJECT_DIR$/CNLiveApp.iml" filepath="$PROJECT_DIR$/CNLiveApp.iml" />
  6 + <module fileurl="file://$PROJECT_DIR$/CNLiveApp5.iml" filepath="$PROJECT_DIR$/CNLiveApp5.iml" />
6 7 <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
  8 + <module fileurl="file://$PROJECT_DIR$/user/user.iml" filepath="$PROJECT_DIR$/user/user.iml" />
7 9 </modules>
8 10 </component>
9 11 </project>
10 12 \ No newline at end of file
... ...
app/build.gradle
... ... @@ -33,5 +33,6 @@ dependencies {
33 33  
34 34 compile 'com.squareup.retrofit2:retrofit:2.3.0'
35 35 compile 'com.squareup.retrofit2:converter-gson:2.3.0'
  36 + compile project(':user')
36 37  
37 38 }
... ...
app/src/main/AndroidManifest.xml
... ... @@ -63,13 +63,25 @@
63 63 </intent-filter>
64 64 </receiver>
65 65  
66   -
  66 + <activity
  67 + android:name=".user.activity.CommentActivity"
  68 + android:configChanges="orientation|keyboardHidden|screenSize"
  69 + android:launchMode="singleTop"
  70 + android:screenOrientation="portrait"
  71 + android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
67 72 <activity
68 73 android:name=".stream.ui.activity.StreamActivity"
69 74 android:configChanges="orientation|keyboardHidden|screenSize"
70 75 android:launchMode="singleTop"
71 76 android:screenOrientation="portrait"
72 77 android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
  78 +
  79 + <activity
  80 + android:name=".user.activity.UserPersonalActivity"
  81 + android:configChanges="orientation|keyboardHidden|screenSize"
  82 + android:launchMode="singleTop"
  83 + android:screenOrientation="portrait"
  84 + android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
73 85 </application>
74 86  
75 87 </manifest>
76 88 \ No newline at end of file
... ...
app/src/main/java/com/cnlive/gundam/main/ui/fragment/ConfigFragment.java
... ... @@ -5,16 +5,18 @@ import android.databinding.DataBindingUtil;
5 5 import android.os.Bundle;
6 6 import android.support.annotation.Nullable;
7 7 import android.support.v4.app.Fragment;
8   -import android.util.Log;
9 8 import android.view.LayoutInflater;
10 9 import android.view.View;
11 10 import android.view.ViewGroup;
12 11  
13 12 import com.cnlive.gundam.R;
14 13 import com.cnlive.gundam.databinding.UserFragmentBinding;
  14 +import com.cnlive.gundam.user.activity.CommentActivity;
15 15 import com.cnlive.gundam.user.activity.LoginActivity;
16 16 import com.cnlive.gundam.user.auth.UserService;
17 17  
  18 +
  19 +
18 20 /**
19 21 * Created by xiansong on 2017/6/27.
20 22 */
... ... @@ -79,6 +81,7 @@ public class ConfigFragment extends Fragment implements View.OnClickListener {
79 81  
80 82 break;
81 83 case R.id.message:
  84 + startActivity(new Intent(getActivity(), CommentActivity.class));
82 85  
83 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/drawable-hdpi/ic_bubble.png deleted 100644 → 0

4.46 KB

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

4.12 KB

app/src/main/res/drawable-mdpi/ic_bubble.png deleted 100644 → 0

2.49 KB

app/src/main/res/drawable-mdpi/ic_bubble_sel.png deleted 100644 → 0

2.29 KB

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

5.84 KB

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

5.52 KB

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

10.5 KB

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

9.94 KB

app/src/main/res/drawable-xxxhdpi/ic_bubble.png deleted 100644 → 0

14.3 KB

app/src/main/res/drawable-xxxhdpi/ic_bubble_sel.png deleted 100644 → 0

13.8 KB

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 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 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 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 69 \ No newline at end of file
... ...
app/src/main/res/values/colors.xml
... ... @@ -8,17 +8,4 @@
8 8  
9 9 <color name="rate_sel">#ff0000</color>
10 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="text_input_color">#323333</color>
16   - <color name="text_hint_color">#969797</color>
17   -
18   - //登录页面
19   - <color name="ff4e51">#ff4e51</color>
20   -
21   - //注册页面
22   - <color name="text_white_color">#FFFFFF</color>
23   -
24 11 </resources>
... ...
app/src/main/res/values/dimens.xml
... ... @@ -2,25 +2,4 @@
2 2 <resources>
3 3 <dimen name="volumeWidthDefault">0px</dimen>
4 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   -
21   - //反馈意见
22   - <dimen name="text_size_15">15sp</dimen>
23   - <dimen name="_10px">5dp</dimen>
24   - <dimen name="_30px">15dp</dimen>
25   - <dimen name="_100px">50dp</dimen>
26 5 </resources>
27 6 \ No newline at end of file
... ...
app/src/main/res/values/styles.xml
... ... @@ -11,39 +11,4 @@
11 11 <declare-styleable name="FragmentTabHost">
12 12 <attr name="dividerDrawable" format="reference" />
13 13 </declare-styleable>
14   -
15   - <style name="list_item_style">
16   - <item name="android:background">@drawable/list_item_selector</item>
17   - </style>
18   -
19   - <style name="ToolbarTitleStyle">
20   - <item name="android:textSize">20sp</item>
21   - <item name="android:textColor">#000000</item>
22   - </style>
23   -
24   - <style name="LoginButtonStyle">
25   - <item name="android:textColor">@android:color/white</item>
26   - <item name="android:textSize">17sp</item>
27   - <item name="android:layout_marginRight">10dp</item>
28   - <item name="android:layout_marginLeft">10dp</item>
29   - </style>
30   -
31   - <style name="LoginNameStyle">
32   - <item name="android:textColor">@color/text_input_color</item>
33   - <item name="android:textSize">17sp</item>
34   - <item name="android:layout_marginRight">17dp</item>
35   - <item name="android:layout_marginLeft">18dp</item>
36   - <item name="android:layout_marginTop">20dp</item>
37   - <item name="android:layout_marginBottom">20dp</item>
38   - </style>
39   -
40   - <style name="LoginContentStyle">
41   - <item name="android:textColor">@color/text_input_color</item>
42   - <item name="android:textColorHint">@color/text_hint_color</item>
43   - <item name="android:textSize">17sp</item>
44   - <item name="android:singleLine">true</item>
45   - <item name="android:textCursorDrawable">@null</item>
46   - <item name="android:background">@null</item>
47   - </style>
48   -
49 14 </resources>
... ...
settings.gradle
1   -include ':app'
  1 +include ':app', ':user'
... ...
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/main/AndroidManifest.xml 0 → 100644
  1 +<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2 +
  3 + package="cnlive.com.myuser">
  4 +
  5 + <application android:allowBackup="true" android:label="@string/app_name"
  6 + android:supportsRtl="true">
  7 +
  8 + </application>
  9 +
  10 +</manifest>
... ...
app/src/main/res/anim/pop_enter_anim.xml renamed to user/src/main/res/anim/pop_enter_anim.xml
app/src/main/res/anim/pop_exit_anim.xml renamed to user/src/main/res/anim/pop_exit_anim.xml
app/src/main/res/color/keycode_text_color.xml renamed to user/src/main/res/color/keycode_text_color.xml
app/src/main/res/drawable-hdpi/btn_cancel_nor.png renamed to user/src/main/res/drawable-hdpi/btn_cancel_nor.png

1.63 KB

app/src/main/res/drawable-hdpi/btn_cancel_sel.png renamed to user/src/main/res/drawable-hdpi/btn_cancel_sel.png

1.63 KB

app/src/main/res/drawable-hdpi/btn_list_arrows_nor.png renamed to user/src/main/res/drawable-hdpi/btn_list_arrows_nor.png

1.32 KB

app/src/main/res/drawable-hdpi/btn_list_arrows_sel.png renamed to user/src/main/res/drawable-hdpi/btn_list_arrows_sel.png

1.32 KB

app/src/main/res/drawable-hdpi/btn_return.png renamed to user/src/main/res/drawable-hdpi/btn_return.png

2.38 KB

app/src/main/res/drawable-hdpi/cnlive_user_header.png renamed to user/src/main/res/drawable-hdpi/cnlive_user_header.png

6.29 KB

app/src/main/res/drawable-hdpi/ic_header.png renamed to user/src/main/res/drawable-hdpi/ic_header.png

6.29 KB

app/src/main/res/drawable-hdpi/user_micro_blog.png renamed to user/src/main/res/drawable-hdpi/user_micro_blog.png

4.43 KB

app/src/main/res/drawable-hdpi/user_micro_blog_click.png renamed to user/src/main/res/drawable-hdpi/user_micro_blog_click.png

4.51 KB

app/src/main/res/drawable-hdpi/user_qq.png renamed to user/src/main/res/drawable-hdpi/user_qq.png

3.35 KB

app/src/main/res/drawable-hdpi/user_qq_click.png renamed to user/src/main/res/drawable-hdpi/user_qq_click.png

3.4 KB

app/src/main/res/drawable-hdpi/user_wechat.png renamed to user/src/main/res/drawable-hdpi/user_wechat.png

3.85 KB

app/src/main/res/drawable-hdpi/user_wechat_click.png renamed to user/src/main/res/drawable-hdpi/user_wechat_click.png

3.88 KB

app/src/main/res/drawable-xhdpi/btn_agree_nor.png renamed to user/src/main/res/drawable-xhdpi/btn_agree_nor.png

2.17 KB

app/src/main/res/drawable-xhdpi/btn_agree_sel.png renamed to user/src/main/res/drawable-xhdpi/btn_agree_sel.png

2.41 KB

app/src/main/res/drawable-xhdpi/ic_web_forward.png renamed to user/src/main/res/drawable-xhdpi/ic_web_forward.png

831 Bytes

app/src/main/res/drawable-xhdpi/ic_web_forward_pressed.png renamed to user/src/main/res/drawable-xhdpi/ic_web_forward_pressed.png

831 Bytes

app/src/main/res/drawable-xhdpi/list_item_image_load_fail.png renamed to user/src/main/res/drawable-xhdpi/list_item_image_load_fail.png

1.68 KB

app/src/main/res/drawable-xxhdpi/about_us.9.png renamed to user/src/main/res/drawable-xxhdpi/about_us.9.png

2.04 KB

app/src/main/res/drawable-xxhdpi/about_us_icon.png renamed to user/src/main/res/drawable-xxhdpi/about_us_icon.png

10.3 KB

app/src/main/res/drawable-xxhdpi/btn_share_pengyouquan_nor.png renamed to user/src/main/res/drawable-xxhdpi/btn_share_pengyouquan_nor.png

5.37 KB

app/src/main/res/drawable-xxhdpi/btn_share_pengyouquan_sel.png renamed to user/src/main/res/drawable-xxhdpi/btn_share_pengyouquan_sel.png

5.45 KB

app/src/main/res/drawable-xxhdpi/btn_share_sina_nor.png renamed to user/src/main/res/drawable-xxhdpi/btn_share_sina_nor.png

5.04 KB

app/src/main/res/drawable-xxhdpi/btn_share_sina_sel.png renamed to user/src/main/res/drawable-xxhdpi/btn_share_sina_sel.png

5.21 KB

app/src/main/res/drawable-xxhdpi/btn_share_tengxun_nor.png renamed to user/src/main/res/drawable-xxhdpi/btn_share_tengxun_nor.png

4.84 KB

app/src/main/res/drawable-xxhdpi/btn_share_tengxun_sel.png renamed to user/src/main/res/drawable-xxhdpi/btn_share_tengxun_sel.png

5.22 KB

app/src/main/res/drawable-xxhdpi/btn_share_weixin_nor.png renamed to user/src/main/res/drawable-xxhdpi/btn_share_weixin_nor.png

4.54 KB

app/src/main/res/drawable-xxhdpi/btn_share_weixin_sel.png renamed to user/src/main/res/drawable-xxhdpi/btn_share_weixin_sel.png

4.6 KB

app/src/main/res/drawable-xxhdpi/ic_config_download.png renamed to user/src/main/res/drawable-xxhdpi/ic_config_download.png

1.15 KB

app/src/main/res/drawable-xxhdpi/ic_config_favorite.png renamed to user/src/main/res/drawable-xxhdpi/ic_config_favorite.png

1.99 KB

app/src/main/res/drawable-xxhdpi/ic_config_history.png renamed to user/src/main/res/drawable-xxhdpi/ic_config_history.png

1.89 KB

app/src/main/res/drawable-xxhdpi/ic_config_setting.png renamed to user/src/main/res/drawable-xxhdpi/ic_config_setting.png

2.21 KB

app/src/main/res/drawable-xxhdpi/ic_setting_about.png renamed to user/src/main/res/drawable-xxhdpi/ic_setting_about.png

1.88 KB

app/src/main/res/drawable-xxhdpi/ic_setting_clear.png renamed to user/src/main/res/drawable-xxhdpi/ic_setting_clear.png

1.35 KB

app/src/main/res/drawable-xxhdpi/ic_setting_help.png renamed to user/src/main/res/drawable-xxhdpi/ic_setting_help.png

2.21 KB

app/src/main/res/drawable-xxhdpi/ic_setting_opinion.png renamed to user/src/main/res/drawable-xxhdpi/ic_setting_opinion.png

2.16 KB

app/src/main/res/drawable-xxhdpi/share_btn_qq_nor.png renamed to user/src/main/res/drawable-xxhdpi/share_btn_qq_nor.png

3.72 KB

app/src/main/res/drawable-xxhdpi/share_btn_qq_sel.png renamed to user/src/main/res/drawable-xxhdpi/share_btn_qq_sel.png

4.57 KB

app/src/main/res/drawable-xxhdpi/switch_close.png renamed to user/src/main/res/drawable-xxhdpi/switch_close.png

2.77 KB

app/src/main/res/drawable-xxhdpi/switch_open.png renamed to user/src/main/res/drawable-xxhdpi/switch_open.png

2.49 KB

app/src/main/res/drawable-xxhdpi/test_layout_tost_bg.9.png renamed to user/src/main/res/drawable-xxhdpi/test_layout_tost_bg.9.png

362 Bytes

app/src/main/res/drawable/agree_selector.xml renamed to user/src/main/res/drawable/agree_selector.xml
app/src/main/res/drawable/btn_cancel.xml renamed to user/src/main/res/drawable/btn_cancel.xml
app/src/main/res/drawable/btn_channel_more.xml renamed to user/src/main/res/drawable/btn_channel_more.xml
app/src/main/res/drawable/downloading_progress_bar.xml renamed to user/src/main/res/drawable/downloading_progress_bar.xml
app/src/main/res/drawable/list_item_selector.xml renamed to user/src/main/res/drawable/list_item_selector.xml
app/src/main/res/drawable/share_btn_qq.xml renamed to user/src/main/res/drawable/share_btn_qq.xml
app/src/main/res/drawable/share_btn_sina.xml renamed to user/src/main/res/drawable/share_btn_sina.xml
app/src/main/res/drawable/share_btn_tencent.xml renamed to user/src/main/res/drawable/share_btn_tencent.xml
app/src/main/res/drawable/share_btn_weixin.xml renamed to user/src/main/res/drawable/share_btn_weixin.xml
app/src/main/res/drawable/toolbar_bg.9.png renamed to user/src/main/res/drawable/toolbar_bg.9.png

94 Bytes

app/src/main/res/drawable/user_btn_keycode_nor.xml renamed to user/src/main/res/drawable/user_btn_keycode_nor.xml
app/src/main/res/drawable/user_btn_keycode_sel.xml renamed to user/src/main/res/drawable/user_btn_keycode_sel.xml
app/src/main/res/drawable/user_btn_login.xml renamed to user/src/main/res/drawable/user_btn_login.xml
app/src/main/res/drawable/user_btn_login_nor.xml renamed to user/src/main/res/drawable/user_btn_login_nor.xml
app/src/main/res/drawable/user_btn_login_sel.xml renamed to user/src/main/res/drawable/user_btn_login_sel.xml
app/src/main/res/drawable/user_btn_logout.xml renamed to user/src/main/res/drawable/user_btn_logout.xml
app/src/main/res/drawable/user_btn_logout_nor.xml renamed to user/src/main/res/drawable/user_btn_logout_nor.xml
app/src/main/res/drawable/user_btn_logout_sel.xml renamed to user/src/main/res/drawable/user_btn_logout_sel.xml
app/src/main/res/drawable/user_btn_verification.xml renamed to user/src/main/res/drawable/user_btn_verification.xml
app/src/main/res/drawable/user_micro_blog_selector.xml renamed to user/src/main/res/drawable/user_micro_blog_selector.xml
app/src/main/res/drawable/user_qq_selector.xml renamed to user/src/main/res/drawable/user_qq_selector.xml
app/src/main/res/drawable/user_wechat_selector.xml renamed to user/src/main/res/drawable/user_wechat_selector.xml
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&#8211;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&#8211;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&#8211;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&amp;plat=a&amp;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>
... ...
app/src/main/res/xml/account_preferences.xml renamed to user/src/main/res/xml/account_preferences.xml
app/src/main/res/xml/authenticator.xml renamed to user/src/main/res/xml/authenticator.xml