admin
2021-02-18 7641351b4b4d59a35dad924079f13cfa1fb15e02
UI优化
33个文件已修改
18个文件已添加
1878 ■■■■■ 已修改文件
BuWanVideo/AndroidManifest.xml 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/libs/open_ad_sdk.aar 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable-xhdpi/ic_checked.png 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable-xhdpi/ic_default_msg.png 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable-xhdpi/ic_empty_collect.png 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable-xhdpi/ic_help_logo.png 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable-xhdpi/ic_off.png 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable-xhdpi/ic_on.png 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable-xhdpi/ic_share_qq.png 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable-xhdpi/ic_share_weibo.png 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable-xhdpi/ic_share_wx.png 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable-xhdpi/ic_unchecked.png 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable-xhdpi/icon_feedback.png 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable-xhdpi/icon_help_question.png 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable-xhdpi/icon_input_help.png 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable/shape_feedback_input_bg.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable/shape_help_item_bg.xml 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/drawable/shape_video_detail_follow_bg.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/layout/activity_feedback.xml 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/layout/activity_follow.xml 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/layout/activity_watch_history.xml 74 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/layout/dialog_share_app.xml 140 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/layout/fav_item.xml 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/layout/item_follow2.xml 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/layout/myfavourites_activity.xml 85 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/layout/settings_activity.xml 242 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/layout/system_message_activity.xml 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/layout/view_activity_top_navbar.xml 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/layout/watch_history_fragment.xml 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/layout/watch_history_item.xml 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/values/colors.xml 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/values/strings.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/res/values/styles.xml 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/BaseActivity.java 65 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/ad/PlayVideoPreADFragment.java 55 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/ad/StreamAdPlayer.java 226 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/dialog/ShareAPPDialog.java 144 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/login/PersonInfoActivity.java 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/login/PhoneLoginActivity.java 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/main/MineFragment.java 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/FeedBackActivity.java 99 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/HelpAndTicklingActivity.java 132 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/MyFavouriteActivity.java 150 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/SettingsActivity.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/SuggestionActivity.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/SystemMessageActivity.java 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/WatchHistoryActivity.java 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/ui/recent/WatchHistoryFragment.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/util/ad/CSJConstant.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/src/com/weikou/beibeivideo/util/ad/TTAdManagerHolder.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
library-common/src/com/lcjian/library/dialog/DialogUtil.java 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BuWanVideo/AndroidManifest.xml
@@ -95,6 +95,10 @@
        <activity
            android:name="com.weikou.beibeivideo.ui.mine.HelpAndTicklingActivity"
            android:label="@string/app_name"></activity>
        <activity
            android:name="com.weikou.beibeivideo.ui.mine.FeedBackActivity"
            android:label="@string/app_name"></activity>
        <activity
            android:name="com.weikou.beibeivideo.ui.common.FollowActivity"
            android:label="@string/app_name"></activity>
@@ -212,7 +216,6 @@
        <activity
            android:name="com.weikou.beibeivideo.ui.login.PhoneLoginActivity"
            android:label="@string/app_name"></activity>
        <activity
BuWanVideo/libs/open_ad_sdk.aar
Binary files differ
BuWanVideo/res/drawable-xhdpi/ic_checked.png

BuWanVideo/res/drawable-xhdpi/ic_default_msg.png
BuWanVideo/res/drawable-xhdpi/ic_empty_collect.png
BuWanVideo/res/drawable-xhdpi/ic_help_logo.png
BuWanVideo/res/drawable-xhdpi/ic_off.png

BuWanVideo/res/drawable-xhdpi/ic_on.png

BuWanVideo/res/drawable-xhdpi/ic_share_qq.png
BuWanVideo/res/drawable-xhdpi/ic_share_weibo.png
BuWanVideo/res/drawable-xhdpi/ic_share_wx.png
BuWanVideo/res/drawable-xhdpi/ic_unchecked.png

BuWanVideo/res/drawable-xhdpi/icon_feedback.png
BuWanVideo/res/drawable-xhdpi/icon_help_question.png
BuWanVideo/res/drawable-xhdpi/icon_input_help.png
BuWanVideo/res/drawable/shape_feedback_input_bg.xml
New file
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <corners android:radius="5dp" />
    <solid android:color="#ff6a6a6a" />
</shape>
BuWanVideo/res/drawable/shape_help_item_bg.xml
New file
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#ffffffff" />
    <corners
        android:bottomLeftRadius="10dp"
        android:bottomRightRadius="10dp"
        android:topLeftRadius="10dp"
        android:topRightRadius="10dp" />
</shape>
BuWanVideo/res/drawable/shape_video_detail_follow_bg.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#3b3b3b" />
    <solid android:color="#5C5C5C" />
    <corners
        android:bottomLeftRadius="5dp"
        android:bottomRightRadius="5dp"
BuWanVideo/res/layout/activity_feedback.xml
New file
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/content_bg_color"
    android:orientation="vertical">
    <include layout="@layout/view_activity_top_navbar"></include>
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:padding="20dp">
        <EditText
            android:id="@+id/et_content"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/shape_feedback_input_bg"
            android:gravity="start"
            android:hint="在此输入您遇见的问题,很抱歉给您带来不好的体验,我们将尽快和您联系…"
            android:lines="7"
            android:maxLength="500"
            android:padding="12dp"
            android:textColor="#CBCBCB"
            android:textColorHint="#CBCBCB"></EditText>
        <TextView
            android:id="@+id/tv_count"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="right"
            android:layout_marginTop="7.5dp"
            android:text="0/500"
            android:textColor="#ff9b9b9b"
            android:textSize="11sp" />
        <TextView
            android:id="@+id/tv_submit"
            android:layout_width="match_parent"
            android:layout_height="42dp"
            android:layout_marginTop="30dp"
            android:background="@drawable/shape_login_btn"
            android:gravity="center"
            android:text="提交"
            android:textColor="#fff4de4a"
            android:textSize="16sp" />
    </LinearLayout>
</LinearLayout>
BuWanVideo/res/layout/activity_follow.xml
@@ -2,6 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#3C3C3C"
    android:orientation="vertical">
    <View
@@ -22,8 +23,8 @@
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="5dp"
            android:layout_marginRight="5dp"
            android:layout_marginTop="5dp">
            android:layout_marginTop="5dp"
            android:layout_marginRight="5dp">
            <ListView
                android:id="@+id/lv_activity_follow"
@@ -38,39 +39,36 @@
            android:id="@+id/ll_no_login"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_margin="8dp"
            android:gravity="center_vertical"
            android:orientation="horizontal">
            android:gravity="center"
            android:orientation="vertical">
            <ImageView
                android:layout_width="0dp"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:src="@drawable/ic_no_login" />
            <LinearLayout
                android:layout_width="0dp"
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="2"
                android:orientation="vertical">
                android:layout_marginTop="12dp"
                android:gravity="center"
                android:text="登录后,系统将同步你关注的剧集,\n并为你呈现更新提示。"
                android:textColor="#ffffffff"
                android:textSize="15sp" />
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:padding="5dp"
                    android:text="登录后,你关注的剧集更新时会立即为你展示在这里。"
                    android:textColor="@color/gray" />
            <TextView
                android:id="@+id/tv_follow_login"
                android:layout_width="134dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center_horizontal"
                android:layout_marginTop="30dp"
                android:background="@drawable/shape_login_btn"
                android:gravity="center"
                android:padding="8dp"
                android:text="立即登录"
                android:textColor="#FFE84E" />
                <TextView
                    android:id="@+id/tv_follow_login"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
                    android:layout_marginTop="15dp"
                    android:background="@color/yellow"
                    android:padding="8dp"
                    android:text="立即登录" />
            </LinearLayout>
        </LinearLayout>
        <LinearLayout
@@ -87,10 +85,14 @@
                android:layout_height="wrap_content"
                android:src="@drawable/ic_empty" />
            <ImageView
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/empty_follow" />
                android:layout_marginTop="12dp"
                android:gravity="center"
                android:text="看视频时添加关注\n就能更快查看到最新的视频哦!"
                android:textColor="#ffffffff"
                android:textSize="15sp" />
        </LinearLayout>
    </FrameLayout>
BuWanVideo/res/layout/activity_watch_history.xml
@@ -2,6 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#3C3C3C"
    android:orientation="vertical">
    <View
@@ -10,59 +11,7 @@
        android:layout_height="15dp"
        android:background="@color/top_bar_color" />
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="48dp"
        android:background="@color/top_bar_color"
        android:gravity="center_vertical"
        android:orientation="horizontal">
        <TextView
            android:id="@+id/tv_top_bar_left"
            style="@style/TextBuleNormal"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_centerVertical="true"
            android:drawableLeft="@drawable/ic_back_two"
            android:drawablePadding="3dp"
            android:drawableStart="@drawable/ic_back_two"
            android:gravity="center_vertical"
            android:padding="8dp" />
        <TextView
            android:id="@+id/tv_top_bar_middle"
            style="@style/TextBuleLarge"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:ellipsize="end"
            android:maxLength="10"
            android:singleLine="true" />
        <FrameLayout
            android:id="@+id/fl_delete"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:layout_alignParentEnd="true"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true">
            <ToggleButton
                android:id="@+id/btn_delete"
                style="@style/TextBuleNormal"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:background="@drawable/selector_delete"
                android:minHeight="0dp"
                android:minWidth="0dp"
                android:padding="2dp"
                android:textOff=""
                android:textOn="取消" />
        </FrameLayout>
    </RelativeLayout>
    <include layout="@layout/navigation_top_bar"></include>
    <FrameLayout
        android:id="@+id/fl_watch_history"
@@ -73,9 +22,10 @@
    <LinearLayout
        android:id="@+id/ll_recent_bottom"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_height="43dp"
        android:background="#5C5C5C"
        android:gravity="center_vertical"
        android:orientation="horizontal"
        android:paddingTop="8dp"
        android:visibility="visible">
        <Button
@@ -83,24 +33,26 @@
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:background="@drawable/selector_btn_recent_color"
            android:background="@null"
            android:text="@string/select_all"
            android:textColor="@color/top_bar_color" />
            android:textColor="@color/white"
            android:textSize="14sp" />
        <View
            android:layout_width="1dp"
            android:layout_height="38dp"
            android:layout_height="22dp"
            android:layout_gravity="center"
            android:background="@color/top_bar_color" />
            android:background="#3C3C3C" />
        <Button
            android:id="@+id/btn_delete_item"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:background="@drawable/selector_btn_recent_color"
            android:background="@null"
            android:text="@string/delete"
            android:textColor="@color/top_bar_color" />
            android:textColor="@color/white"
            android:textSize="14sp" />
    </LinearLayout>
</LinearLayout>
BuWanVideo/res/layout/dialog_share_app.xml
New file
@@ -0,0 +1,140 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/transparent"
    android:orientation="vertical">
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#292932"
        android:orientation="vertical">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="26dp"
            android:gravity="center">
            <View
                android:layout_width="80dp"
                android:layout_height="1dp"
                android:background="#B3B8D3"></View>
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="30dp"
                android:layout_marginRight="30dp"
                android:text="分享APP到"
                android:textColor="#ffb3b8d3"
                android:textSize="13sp" />
            <View
                android:layout_width="80dp"
                android:layout_height="1dp"
                android:background="#B3B8D3"></View>
        </LinearLayout>
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="56dp"
            android:layout_marginBottom="42dp"
            android:gravity="center">
            <LinearLayout
                android:id="@+id/ll_qq"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:orientation="vertical">
                <ImageView
                    android:layout_width="53dp"
                    android:layout_height="53dp"
                    android:src="@drawable/ic_share_qq"></ImageView>
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="8.5dp"
                    android:text="QQ"
                    android:textColor="#ffc5c5c5"
                    android:textSize="11sp" />
            </LinearLayout>
            <LinearLayout
                android:id="@+id/ll_wx"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="50dp"
                android:layout_marginRight="50dp"
                android:gravity="center"
                android:orientation="vertical">
                <ImageView
                    android:layout_width="53dp"
                    android:layout_height="53dp"
                    android:src="@drawable/ic_share_wx"></ImageView>
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="8.5dp"
                    android:text="微信"
                    android:textColor="#ffc5c5c5"
                    android:textSize="11sp" />
            </LinearLayout>
            <LinearLayout
                android:id="@+id/ll_weibo"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:orientation="vertical">
                <ImageView
                    android:layout_width="53dp"
                    android:layout_height="53dp"
                    android:src="@drawable/ic_share_weibo"></ImageView>
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="8.5dp"
                    android:text="微博"
                    android:textColor="#ffc5c5c5"
                    android:textSize="11sp" />
            </LinearLayout>
        </LinearLayout>
    </LinearLayout>
    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="#000000"></View>
    <TextView
        android:id="@+id/tv_cancel"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#292932"
        android:gravity="center"
        android:padding="16dp"
        android:text="取消"
        android:textColor="#ffbababa"
        android:textSize="18sp" />
</LinearLayout>
BuWanVideo/res/layout/fav_item.xml
@@ -2,7 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/selector_color_item_bg"
    android:background="#5C5C5C"
    android:descendantFocusability="blocksDescendants"
    android:gravity="center_vertical"
    android:orientation="horizontal">
@@ -11,9 +11,9 @@
        android:id="@+id/fl_video_select"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginRight="8dp"
        android:layout_marginStart="8dp"
        android:visibility="gone">
        <CheckBox
@@ -23,8 +23,8 @@
            android:layout_gravity="center"
            android:background="@null"
            android:button="@null"
            android:drawableLeft="@drawable/selector_checkbox"
            android:drawableStart="@drawable/selector_checkbox" />
            android:drawableStart="@drawable/selector_checkbox"
            android:drawableLeft="@drawable/selector_checkbox" />
        <ImageButton
            android:id="@+id/btn_delete_download"
@@ -37,7 +37,6 @@
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/selector_color_item_bg"
        android:orientation="vertical"
        android:padding="8dp">
@@ -45,8 +44,8 @@
            android:id="@+id/iv_cover"
            android:layout_width="100dp"
            android:layout_height="75dp"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_alignParentLeft="true"
            android:scaleType="centerCrop" />
        <TextView
@@ -55,15 +54,15 @@
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignTop="@id/iv_cover"
            android:layout_marginEnd="32dp"
            android:layout_marginLeft="8dp"
            android:layout_marginRight="32dp"
            android:layout_marginStart="8dp"
            android:layout_marginLeft="8dp"
            android:layout_marginEnd="32dp"
            android:layout_marginRight="32dp"
            android:layout_toEndOf="@id/iv_cover"
            android:layout_toRightOf="@id/iv_cover"
            android:ellipsize="end"
            android:lines="2"
            android:textColor="#ff666666" />
            android:textColor="@color/white" />
        <TextView
            android:id="@+id/tv_watch_time"
@@ -71,12 +70,13 @@
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignBottom="@id/iv_cover"
            android:layout_marginLeft="8dp"
            android:layout_marginStart="8dp"
            android:layout_marginLeft="8dp"
            android:layout_toEndOf="@id/iv_cover"
            android:layout_toRightOf="@id/iv_cover"
            android:ellipsize="end"
            android:lines="1" />
            android:lines="1"
            android:textColor="@color/white" />
    </RelativeLayout>
</LinearLayout>
BuWanVideo/res/layout/item_follow2.xml
@@ -11,10 +11,10 @@
    <android.support.v7.widget.CardView
        android:layout_width="30dp"
        android:layout_height="30dp"
        android:layout_width="37dp"
        android:layout_height="37dp"
        android:layout_gravity="center_vertical"
        android:layout_marginRight="8dp"
        android:layout_marginRight="10dp"
        app:cardCornerRadius="30dp"
        app:cardElevation="0dp">
@@ -40,7 +40,7 @@
            android:layout_height="wrap_content"
            android:text="刘涛"
            android:textColor="#EFEFEF"
            android:textSize="12sp" />
            android:textSize="15sp" />
        <TextView
            android:id="@+id/tv_update_time"
@@ -50,7 +50,7 @@
            android:layout_marginTop="8.5dp"
            android:text="更新 4天前"
            android:textColor="#ffefefef"
            android:textSize="10sp" />
            android:textSize="12sp" />
    </LinearLayout>
    <TextView
BuWanVideo/res/layout/myfavourites_activity.xml
@@ -2,7 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/register_gray"
    android:background="#3C3C3C"
    android:orientation="vertical">
    <View
@@ -11,66 +11,13 @@
        android:layout_height="15dp"
        android:background="@color/top_bar_color" />
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="48dp"
        android:background="@color/top_bar_color"
        android:gravity="center_vertical"
        android:orientation="horizontal">
        <TextView
            android:id="@+id/tv_top_bar_left"
            style="@style/TextBuleNormal"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_centerVertical="true"
            android:layout_marginLeft="5dp"
            android:drawableLeft="@drawable/ic_back_two"
            android:drawablePadding="3dp"
            android:drawableStart="@drawable/ic_back_two"
            android:gravity="start|center_vertical"
            android:paddingLeft="10dp" />
        <TextView
            android:id="@+id/tv_top_bar_middle"
            style="@style/TextBuleLarge"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:ellipsize="end"
            android:maxLength="10"
            android:singleLine="true" />
        <FrameLayout
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:layout_alignParentRight="true">
            <ToggleButton
                android:id="@+id/iv_top_bar_right"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_marginEnd="8dp"
                android:layout_marginRight="8dp"
                android:background="@drawable/selector_delete"
                android:minHeight="0dp"
                android:minWidth="0dp"
                android:textColor="@color/white"
                android:textOff=""
                android:textOn="取消"
                android:visibility="gone" />
        </FrameLayout>
    </RelativeLayout>
    <include layout="@layout/navigation_top_bar"></include>
    <FrameLayout
        android:id="@+id/fl_advertisement"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"></FrameLayout>
    <include layout="@layout/item_top_favourite" />
    <FrameLayout
        android:layout_width="match_parent"
@@ -86,7 +33,6 @@
                android:id="@+id/gv_video"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@color/register_gray"
                android:divider="@null"
                android:dividerHeight="1px" />
@@ -109,13 +55,15 @@
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
                    android:src="@drawable/ic_empty" />
                    android:src="@drawable/ic_empty_collect" />
                <ImageView
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:src="@drawable/empty_favourite_bg" />
                    android:layout_marginTop="12dp"
                    android:text="您还没有收藏,快去逛逛吧~"
                    android:textColor="@color/white"
                    android:textSize="15sp" />
            </LinearLayout>
        </FrameLayout>
    </FrameLayout>
@@ -123,9 +71,10 @@
    <LinearLayout
        android:id="@+id/ll_recent_bottom"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_height="43dp"
        android:gravity="center_vertical"
        android:background="#5C5C5C"
        android:orientation="horizontal"
        android:paddingTop="8dp"
        android:visibility="gone">
        <Button
@@ -133,24 +82,24 @@
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:background="@drawable/selector_btn_recent_color"
            android:background="@null"
            android:text="@string/select_all"
            android:textColor="@color/gray" />
            android:textColor="@color/white" />
        <View
            android:layout_width="1dp"
            android:layout_height="38dp"
            android:layout_height="22dp"
            android:layout_gravity="center"
            android:background="@color/blue1" />
            android:background="#3C3C3C" />
        <Button
            android:id="@+id/btn_delete_item"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:background="@drawable/selector_btn_recent_color"
            android:background="@null"
            android:text="@string/delete"
            android:textColor="@color/top_bar_color" />
            android:textColor="@color/white" />
    </LinearLayout>
</LinearLayout>
BuWanVideo/res/layout/settings_activity.xml
@@ -2,6 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/content_bg_color"
    android:orientation="vertical">
    <View
@@ -21,27 +22,38 @@
            android:layout_height="match_parent"
            android:orientation="vertical">
            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/selector_color_item_bg"
                android:padding="8dp">
            <RelativeLayout style="@style/settingsItemStyle">
                <TextView
                    style="@style/TextBlackMedium"
                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentStart="true"
                    android:layout_alignParentLeft="true"
                    android:layout_centerVertical="true"
                    android:gravity="center_vertical"
                    android:text="@string/only_wifi_download" />
                    android:orientation="vertical"
                    android:paddingTop="9dp"
                    android:paddingBottom="9dp">
                    <TextView
                        style="@style/settingsItemTitleStyle"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="节流模式" />
                    <TextView
                        style="@style/settingsItemSubTitleStyle"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="9dp"
                        android:text="@string/only_wifi_download" />
                </LinearLayout>
                <CheckBox
                    android:id="@+id/chb_only_wifi_download"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:background="@drawable/selector_checked"
@@ -61,7 +73,7 @@
                    android:layout_height="wrap_content"
                    android:layout_alignParentStart="true"
                    android:layout_alignParentLeft="true"
                    android:layout_centerVertical="true"
                    android:gravity="center_vertical"
                    android:text="@string/system_alarm" />
@@ -71,7 +83,7 @@
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:drawableEnd="@drawable/arrow_right"
                    android:drawableRight="@drawable/arrow_right"
                    android:gravity="center_vertical" />
@@ -89,7 +101,8 @@
                android:layout_height="30dp"
                android:layout_alignParentStart="true"
                android:layout_alignParentLeft="true"
                android:layout_centerVertical="true"
                android:layout_marginLeft="10dp"
                android:layout_marginTop="10dp"
                android:gravity="center_vertical"
                android:padding="8dp"
@@ -98,29 +111,35 @@
                android:textSize="12sp" />
            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/selector_color_item_bg"
                android:gravity="center_vertical"
                style="@style/settingsItemStyle"
                android:orientation="horizontal"
                android:padding="8dp">
                android:paddingTop="8dp"
                android:paddingBottom="8dp">
                <TextView
                    android:id="@+id/tv_storage_mobile"
                    style="@style/TextBlackMedium"
                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentStart="true"
                    android:layout_alignParentLeft="true"
                    android:layout_centerVertical="true"
                    android:gravity="center_vertical"
                    android:text="手机存储" />
                    android:orientation="vertical">
                    <TextView
                        style="@style/settingsItemTitleStyle"
                        android:gravity="center_vertical"
                        android:text="手机存储" />
                    <TextView
                        android:id="@+id/tv_storage_mobile"
                        style="@style/settingsItemSubTitleStyle"
                        android:layout_marginTop="9dp"
                        android:text="总量51.49G    可用:1.91G" />
                </LinearLayout>
                <CheckBox
                    android:id="@+id/cb_storage_mobile"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:button="@drawable/selector_checkbox"
@@ -133,52 +152,81 @@
            <RelativeLayout
                android:id="@+id/rl_storage_sdcard"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/selector_color_item_bg"
                android:gravity="center_vertical"
                style="@style/settingsItemStyle"
                android:orientation="horizontal"
                android:padding="8dp">
                android:paddingTop="8dp"
                android:paddingBottom="8dp">
                <TextView
                    android:id="@+id/tv_storage_sdcard"
                    style="@style/TextBlackMedium"
                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentStart="true"
                    android:layout_alignParentLeft="true"
                    android:layout_centerVertical="true"
                    android:gravity="center_vertical"
                    android:text="SD卡存储" />
                    android:orientation="vertical">
                    <TextView
                        style="@style/settingsItemTitleStyle"
                        android:layout_alignParentStart="true"
                        android:layout_alignParentLeft="true"
                        android:text="SD卡存储" />
                    <TextView
                        android:id="@+id/tv_storage_sdcard"
                        style="@style/settingsItemSubTitleStyle"
                        android:layout_marginTop="9dp"
                        android:text="总量51.49G    可用:1.91G" />
                </LinearLayout>
                <CheckBox
                    android:id="@+id/cb_storage_sdcard"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:button="@drawable/selector_checkbox"
                    android:checked="true" />
            </RelativeLayout>
            <RelativeLayout
                android:id="@+id/rl_check_update"
            <View
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:layout_marginTop="36dp"
                android:background="@drawable/selector_color_item_bg"
                android:padding="8dp">
                android:layout_height="13dp"></View>
            <RelativeLayout
                android:id="@+id/rl_clear_cache"
                style="@style/settingsItemStyle">
                <TextView
                    style="@style/TextBlackMedium"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    style="@style/settingsItemTitleStyle"
                    android:layout_alignParentStart="true"
                    android:layout_alignParentLeft="true"
                    android:layout_centerVertical="true"
                    android:drawablePadding="8dp"
                    android:gravity="center_vertical"
                    android:text="@string/clear_cache" />
                <TextView
                    style="@style/TextGrayNormal"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:drawableEnd="@drawable/arrow_right"
                    android:drawableRight="@drawable/arrow_right"
                    android:gravity="center_vertical" />
            </RelativeLayout>
            <View
                android:layout_width="match_parent"
                android:layout_height="1px" />
            <RelativeLayout
                android:id="@+id/rl_check_update"
                style="@style/settingsItemStyle">
                <TextView
                    style="@style/settingsItemTitleStyle"
                    android:layout_alignParentStart="true"
                    android:layout_alignParentLeft="true"
                    android:text="@string/check_update" />
                <TextView
@@ -188,33 +236,28 @@
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:drawableEnd="@drawable/arrow_right"
                    android:drawableRight="@drawable/arrow_right"
                    android:drawablePadding="8dp"
                    android:gravity="center_vertical" />
            </RelativeLayout>
            <View
                android:layout_width="match_parent"
                android:layout_height="1px" />
            <RelativeLayout
                android:id="@+id/rl_clear_cache"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/selector_color_item_bg"
                android:padding="8dp">
                android:id="@+id/rl_disclaimer"
                style="@style/settingsItemStyle">
                <TextView
                    style="@style/TextBlackMedium"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    style="@style/settingsItemTitleStyle"
                    android:layout_alignParentStart="true"
                    android:layout_alignParentLeft="true"
                    android:layout_centerVertical="true"
                    android:gravity="center_vertical"
                    android:text="@string/clear_cache" />
                    android:text="@string/disclaimer" />
                <TextView
                    style="@style/TextGrayNormal"
@@ -222,7 +265,7 @@
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:drawableEnd="@drawable/arrow_right"
                    android:drawableRight="@drawable/arrow_right"
                    android:gravity="center_vertical" />
@@ -234,19 +277,13 @@
            <RelativeLayout
                android:id="@+id/rl_about_us"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/selector_color_item_bg"
                android:padding="8dp">
                style="@style/settingsItemStyle">
                <TextView
                    style="@style/TextBlackMedium"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    style="@style/settingsItemTitleStyle"
                    android:layout_alignParentStart="true"
                    android:layout_alignParentLeft="true"
                    android:layout_centerVertical="true"
                    android:gravity="center_vertical"
                    android:text="@string/about_us" />
                <TextView
@@ -255,7 +292,7 @@
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:drawableEnd="@drawable/arrow_right"
                    android:drawableRight="@drawable/arrow_right"
                    android:gravity="center_vertical" />
@@ -265,42 +302,11 @@
                android:layout_width="match_parent"
                android:layout_height="1px" />
            <RelativeLayout
                android:id="@+id/rl_disclaimer"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/selector_color_item_bg"
                android:padding="8dp">
                <TextView
                    style="@style/TextBlackMedium"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentStart="true"
                    android:layout_alignParentLeft="true"
                    android:layout_centerVertical="true"
                    android:gravity="center_vertical"
                    android:text="@string/disclaimer" />
                <TextView
                    style="@style/TextGrayNormal"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:drawableEnd="@drawable/arrow_right"
                    android:drawableRight="@drawable/arrow_right"
                    android:gravity="center_vertical" />
            </RelativeLayout>
            <RelativeLayout
                android:visibility="gone"
                android:id="@+id/rl_user_agreement"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/selector_color_item_bg"
                android:padding="8dp">
                style="@style/settingsItemStyle"
                android:visibility="gone">
                <TextView
                    style="@style/TextBlackMedium"
@@ -308,7 +314,7 @@
                    android:layout_height="wrap_content"
                    android:layout_alignParentStart="true"
                    android:layout_alignParentLeft="true"
                    android:layout_centerVertical="true"
                    android:gravity="center_vertical"
                    android:text="用户使用协议" />
@@ -318,19 +324,16 @@
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:drawableEnd="@drawable/arrow_right"
                    android:drawableRight="@drawable/arrow_right"
                    android:gravity="center_vertical" />
            </RelativeLayout>
            <RelativeLayout
                android:visibility="gone"
                android:id="@+id/rl_privacy_policy"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/selector_color_item_bg"
                android:padding="8dp">
                style="@style/settingsItemStyle"
                android:visibility="gone">
                <TextView
                    style="@style/TextBlackMedium"
@@ -338,7 +341,7 @@
                    android:layout_height="wrap_content"
                    android:layout_alignParentStart="true"
                    android:layout_alignParentLeft="true"
                    android:layout_centerVertical="true"
                    android:gravity="center_vertical"
                    android:text="隐私政策" />
@@ -348,7 +351,7 @@
                    android:layout_height="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:layout_centerVertical="true"
                    android:drawableEnd="@drawable/arrow_right"
                    android:drawableRight="@drawable/arrow_right"
                    android:gravity="center_vertical" />
@@ -357,14 +360,15 @@
            <Button
                android:id="@+id/setting_btn_exit"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:layout_height="wrap_content"
                android:layout_marginLeft="48dp"
                android:layout_marginTop="50dp"
                android:layout_marginRight="48dp"
                android:background="@drawable/selector_bg_setting_exit"
                android:background="@drawable/shape_login_btn"
                android:gravity="center"
                android:text="退出登录"
                android:textColor="@color/white"
                android:textSize="18sp" />
                android:textSize="16sp" />
        </LinearLayout>
    </ScrollView>
BuWanVideo/res/layout/system_message_activity.xml
@@ -2,6 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/content_bg_color"
    android:orientation="vertical">
    <View
@@ -27,13 +28,29 @@
            layout="@layout/message_item"
            android:visibility="gone" />
        <TextView
            android:id="@+id/tv_empty"
            style="@style/TextGrayMedium"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:text="@string/msg_empty"
            android:visibility="gone" />
        <LinearLayout
            android:id="@+id/ll_empty"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center"
            android:orientation="vertical">
            <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/ic_default_msg">
            </ImageView>
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="22dp"
                android:text="暂无站内消息"
                android:textColor="#ffffffff"
                android:textSize="15sp" />
        </LinearLayout>
    </FrameLayout>
</LinearLayout>
BuWanVideo/res/layout/view_activity_top_navbar.xml
New file
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">
    <View
        android:id="@+id/v_status_bar"
        android:layout_width="match_parent"
        android:layout_height="15dp"
        android:background="@color/top_bar_color" />
    <include layout="@layout/navigation_top_bar"></include>
</LinearLayout>
BuWanVideo/res/layout/watch_history_fragment.xml
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    android:layout_height="match_parent"
    android:background="#3C3C3C">
    <com.lcjian.library.util.RefreshLayout
@@ -13,7 +14,6 @@
            android:id="@+id/list"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/register_gray"
            android:divider="@null"
            android:dividerHeight="1px" />
@@ -36,11 +36,15 @@
                android:layout_gravity="center_horizontal"
                android:src="@drawable/ic_empty" />
            <ImageView
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="5dp"
                android:src="@drawable/empty_history_bg" />
                android:layout_marginTop="12dp"
                android:gravity="center"
                android:text="您目前没有观看记录\n马上去看看吧"
                android:textColor="#ffffffff"
                android:textSize="15sp" />
        </LinearLayout>
    </FrameLayout>
BuWanVideo/res/layout/watch_history_item.xml
@@ -2,7 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/selector_color_item_bg"
    android:background="#5C5C5C"
    android:descendantFocusability="blocksDescendants"
    android:gravity="center_vertical"
    android:orientation="horizontal">
@@ -11,9 +11,9 @@
        android:id="@+id/fl_video_select"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="8dp"
        android:layout_marginLeft="8dp"
        android:layout_marginRight="8dp"
        android:layout_marginStart="8dp"
        android:visibility="gone">
        <CheckBox
@@ -23,8 +23,8 @@
            android:layout_gravity="center"
            android:background="@null"
            android:button="@null"
            android:drawableLeft="@drawable/selector_checkbox"
            android:drawableStart="@drawable/selector_checkbox" />
            android:drawableStart="@drawable/selector_checkbox"
            android:drawableLeft="@drawable/selector_checkbox" />
        <ImageButton
            android:id="@+id/btn_delete_download"
@@ -38,7 +38,6 @@
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:background="@drawable/selector_color_item_bg"
        android:orientation="vertical"
        android:padding="8dp"
        android:tag="front">
@@ -47,8 +46,8 @@
            android:id="@+id/iv_cover"
            android:layout_width="100dp"
            android:layout_height="63dp"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_alignParentLeft="true"
            android:scaleType="centerCrop" />
        <TextView
@@ -57,15 +56,15 @@
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignTop="@id/iv_cover"
            android:layout_marginEnd="8dp"
            android:layout_marginLeft="8dp"
            android:layout_marginRight="8dp"
            android:layout_marginStart="8dp"
            android:layout_marginLeft="8dp"
            android:layout_marginEnd="8dp"
            android:layout_marginRight="8dp"
            android:layout_toEndOf="@id/iv_cover"
            android:layout_toRightOf="@id/iv_cover"
            android:ellipsize="end"
            android:maxLines="1"
            android:textColor="#ff666666" />
            android:textColor="@color/white" />
        <TextView
            android:id="@+id/tv_watch_time"
@@ -73,12 +72,13 @@
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignBottom="@id/iv_cover"
            android:layout_marginLeft="8dp"
            android:maxLines="1"
            android:ellipsize="end"
            android:layout_marginStart="8dp"
            android:layout_marginLeft="8dp"
            android:layout_toEndOf="@id/iv_cover"
            android:layout_toRightOf="@id/iv_cover" />
            android:layout_toRightOf="@id/iv_cover"
            android:ellipsize="end"
            android:maxLines="1"
            android:textColor="@color/white" />
        <!--        <FrameLayout
                   android:layout_width="wrap_content"
BuWanVideo/res/values/colors.xml
@@ -48,9 +48,11 @@
    <color name="colorLoading">#0052f6</color>
    <color name="videoTitle">#DCDCDC</color>
    <color name="videoTag">#c0c0c0</color>
    <color name="theme">#000000</color>
    <color name="content_bg_color">#3C3C3C</color>
</resources>
BuWanVideo/res/values/strings.xml
@@ -24,7 +24,7 @@
    <string name="offline_cache">缓存</string>
    <string name="system_alarm">系统公告</string>
    <string name="faq">常见问题</string>
    <string name="clear_cache">清空图片缓存</string>
    <string name="clear_cache">清理缓存</string>
    <string name="check_update">检查更新</string>
    <string name="about_us">关于我们</string>
    <string name="disclaimer">免责声明</string>
BuWanVideo/res/values/styles.xml
@@ -289,7 +289,6 @@
    </style>
    <style name="personInfoItemStyle">
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_width">match_parent</item>
@@ -337,4 +336,39 @@
    </style>
    <!-- 设置界面的ITEM样式 -->
    <style name="settingsItemStyle">
        <item name="android:layout_height">wrap_content</item>
        <item name="android:minHeight">47dp</item>
        <item name="android:layout_width">match_parent</item>
        <item name="android:background">#5C5C5C</item>
        <item name="android:gravity">center_vertical</item>
        <item name="android:paddingLeft">17dp</item>
        <item name="android:paddingRight">16dp</item>
    </style>
    <style name="settingsItemTitleStyle">
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_width">wrap_content</item>
        <item name="android:textSize">16sp</item>
        <item name="android:textColor">@color/white</item>
    </style>
    <style name="settingsItemSubTitleStyle">
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_width">wrap_content</item>
        <item name="android:textSize">11sp</item>
        <item name="android:textColor">@color/white</item>
    </style>
    <style name="settingsItemContentStyle">
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_width">wrap_content</item>
        <item name="android:textSize">16sp</item>
        <item name="android:textColor">#959595</item>
    </style>
</resources>
BuWanVideo/src/com/weikou/beibeivideo/ui/BaseActivity.java
@@ -1,5 +1,6 @@
package com.weikou.beibeivideo.ui;
import android.app.Dialog;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.Build;
@@ -9,46 +10,50 @@
import android.view.WindowManager;
import com.umeng.analytics.MobclickAgent;
import com.weikou.beibeivideo.ui.dialog.LoadingDialogUtil;
//import com.umeng.message.PushAgent;
public class BaseActivity extends FragmentActivity {
    @Override
    protected void onCreate(Bundle arg0) {
        super.onCreate(arg0);
    protected Dialog loadingDialog;
    @Override
    protected void onCreate(Bundle arg0) {
        super.onCreate(arg0);
        loadingDialog = LoadingDialogUtil.getLoadingDialog(this, "");
//        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);// 锁定竖屏
//        PushAgent.getInstance(this).onAppStart();
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            Window window = getWindow();
            window.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
                    WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
        }
    }
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            Window window = getWindow();
            window.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
                    WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
        }
    }
    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        if (newConfig.fontScale != 1)//非默认值
            getResources();
        super.onConfigurationChanged(newConfig);
    }
    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        if (newConfig.fontScale != 1)//非默认值
            getResources();
        super.onConfigurationChanged(newConfig);
    }
    @Override
    public Resources getResources() {
        Resources res = super.getResources();
    @Override
    public Resources getResources() {
        Resources res = super.getResources();
//        if (res.getConfiguration().fontScale != 1) {//非默认值
        Configuration newConfig = new Configuration();
        newConfig.setToDefaults();//设置默认
        newConfig.fontScale=1.0f;
        res.updateConfiguration(newConfig, res.getDisplayMetrics());
        Configuration newConfig = new Configuration();
        newConfig.setToDefaults();//设置默认
        newConfig.fontScale = 1.0f;
        res.updateConfiguration(newConfig, res.getDisplayMetrics());
//        }
        return res;
    }
        return res;
    }
    public void onResume() {
        super.onResume();
    }
    public void onResume() {
        super.onResume();
    }
    public void onPause() {
        super.onPause();
    }
    public void onPause() {
        super.onPause();
    }
}
BuWanVideo/src/com/weikou/beibeivideo/ui/ad/PlayVideoPreADFragment.java
@@ -19,6 +19,8 @@
import com.bytedance.sdk.openadsdk.AdSlot;
import com.bytedance.sdk.openadsdk.TTAdManager;
import com.bytedance.sdk.openadsdk.TTAdNative;
import com.bytedance.sdk.openadsdk.TTAdSdk;
import com.bytedance.sdk.openadsdk.TTFeedAd;
import com.bytedance.sdk.openadsdk.TTSplashAd;
import com.qq.e.ads.cfg.VideoOption;
import com.qq.e.ads.nativ.MediaView;
@@ -171,6 +173,8 @@
    }
    private StreamAdPlayer mStreamAdPlayer;
    /**
     * 加载穿山甲广告
     *
@@ -182,8 +186,7 @@
        fl_ad.setVisibility(View.VISIBLE);
        mContainer.setVisibility(View.GONE);
        TTAdManager ttAdManager = TTAdManagerHolder.get();
        TTAdNative mTTAdNative = ttAdManager.createAdNative(getContext());
        TTAdNative mTTAdNative = TTAdSdk.getAdManager().createAdNative(getContext());
        int width = DimenUtils.getScreenWidth(getContext());
        int height = width * 9 / 16;
@@ -191,46 +194,28 @@
                .setCodeId(code)
                .setSupportDeepLink(true)
                .setImageAcceptedSize(width, height)
                .setAdCount(1)
                .build();
        mTTAdNative.loadSplashAd(adSlot, new TTAdNative.SplashAdListener() {
        mTTAdNative.loadStream(adSlot, new TTAdNative.FeedAdListener() {
            @Override
            public void onError(int i, String s) {
                videoAdListener.noAd();
                Log.e(TAG, s);
            }
            @Override
            public void onTimeout() {
                videoAdListener.noAd();
            }
            @Override
            public void onSplashAdLoad(TTSplashAd ad) {
                fl_ad.removeAllViews();
                fl_ad.addView(ad.getSplashView());
                ad.setSplashInteractionListener(new TTSplashAd.AdInteractionListener() {
                    @Override
                    public void onAdClicked(View view, int i) {
                    }
                    @Override
                    public void onAdShow(View view, int i) {
                        Log.i(TAG, "onAdShow");
                    }
                    @Override
                    public void onAdSkip() {
                        videoAdListener.finishPlay();
                    }
                    @Override
                    public void onAdTimeOver() {
                        videoAdListener.finishPlay();
                    }
                });
            public void onFeedAdLoad(List<TTFeedAd> ads) {
                if (ads == null || ads.isEmpty()) {
                    return;
                }
                if (mStreamAdPlayer != null) {
                    mStreamAdPlayer.clear();
                }
                // 使用自定义播放器需要考虑为视频Url预加载
                // 各家开发者的视频播放器个有不同
                // 需要预加载请在通过ttFeedAd.getCustomVideo().getVideoUrl()拿到视频url之后自行预加载
                mStreamAdPlayer = new StreamAdPlayer(ads, fl_ad);
                mStreamAdPlayer.play();
            }
        });
    }
BuWanVideo/src/com/weikou/beibeivideo/ui/ad/StreamAdPlayer.java
New file
@@ -0,0 +1,226 @@
package com.weikou.beibeivideo.ui.ad;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.Toast;
import com.bumptech.glide.Glide;
import com.bytedance.sdk.openadsdk.TTAdConstant;
import com.bytedance.sdk.openadsdk.TTFeedAd;
import com.bytedance.sdk.openadsdk.TTImage;
import com.bytedance.sdk.openadsdk.TTNativeAd;
import java.util.LinkedList;
import java.util.List;
public class StreamAdPlayer {
    private final static String TAG = StreamAdPlayer.class.getSimpleName();
    private TTHandler mHandler = new TTHandler(Looper.getMainLooper());
    private ViewGroup mAdLayout;
    private List<TTFeedAd> mAdList;
    private int mNowPlay = 0;
    private Context mContext;
    private Runnable mPlayNext = new Runnable() {
        @Override
        public void run() {
            mAdLayout.removeAllViews();
            if (mAdList.size() <= mNowPlay) {
                return;
            }
            TTFeedAd ttFeedAd = mAdList.get(mNowPlay++);
            OneAd oneAd = getAdView(ttFeedAd);
            Log.d(TAG, "开始播放 " + ttFeedAd.getDescription() + mNowPlay);
            mAdLayout.addView(oneAd.adView);
            mHandler.sendPostDelayed(mPlayNext, (long) (oneAd.duration * 1000));
        }
    };
    public OneAd getAdView(TTFeedAd ttFeedAd) {
        OneAd oneAd = null;
        switch (ttFeedAd.getImageMode()) {
            case TTAdConstant.IMAGE_MODE_LARGE_IMG:
            case TTAdConstant.IMAGE_MODE_SMALL_IMG:
            case TTAdConstant.IMAGE_MODE_GROUP_IMG:
            case TTAdConstant.IMAGE_MODE_VERTICAL_IMG:
                oneAd = getImageTypeView(ttFeedAd);
                break;
            case TTAdConstant.IMAGE_MODE_VIDEO:
            case TTAdConstant.IMAGE_MODE_VIDEO_VERTICAL:
                oneAd = getVideoTypeView(ttFeedAd);
                break;
        }
        return oneAd;
    }
    public StreamAdPlayer(List<TTFeedAd> adList, ViewGroup mAdLayout) {
        this.mAdList = adList;
        this.mAdLayout = mAdLayout;
        mContext = this.mAdLayout.getContext().getApplicationContext();
    }
    public OneAd getImageTypeView(TTFeedAd ttFeedAd) {
        List<TTImage> ttImages = ttFeedAd.getImageList();
        if (ttImages.size() == 0) {
            return null;
        }
        TTImage ttImage = ttImages.get(0);
        if (!ttImage.isValid()) {
            return null;
        }
        ImageView imageView = new ImageView(mContext);
        ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 1000);
        imageView.setLayoutParams(layoutParams);
        Glide.with(mContext).load(ttImage.getImageUrl()).into(imageView);
        List<View> clickViews = new LinkedList<>();
        clickViews.add(imageView);
        List<View> creativeClickViews = new LinkedList<>();
        creativeClickViews.add(imageView);
        ttFeedAd.registerViewForInteraction(mAdLayout, clickViews, creativeClickViews, new TTNativeAd.AdInteractionListener() {
            @Override
            public void onAdClicked(View view, TTNativeAd ad) {
                if (ad != null) {
                    TToast.show(mContext, "广告" + ad.getTitle() + "被点击");
                }
            }
            @Override
            public void onAdCreativeClick(View view, TTNativeAd ad) {
                if (ad != null) {
                    TToast.show(mContext, "广告" + ad.getTitle() + "被创意按钮被点击");
                }
            }
            @Override
            public void onAdShow(TTNativeAd ad) {
                if (ad != null) {
                    TToast.show(mContext, "广告" + ad.getTitle() + "展示");
                }
            }
        });
        return new OneAd(imageView, ttImage.getDuration());
    }
    public OneAd getVideoTypeView(TTFeedAd ttFeedAd) {
        View videoView = ttFeedAd.getAdView();
        List<View> clickViews = new LinkedList<>();
        clickViews.add(ttFeedAd.getAdView());
        List<View> creativeClickViews = new LinkedList<>();
        creativeClickViews.add(videoView);
        ttFeedAd.registerViewForInteraction(mAdLayout, clickViews, creativeClickViews, new TTNativeAd.AdInteractionListener() {
            @Override
            public void onAdClicked(View view, TTNativeAd ad) {
                if (ad != null) {
                    TToast.show(mContext, "广告" + ad.getTitle() + "被点击");
                }
            }
            @Override
            public void onAdCreativeClick(View view, TTNativeAd ad) {
                if (ad != null) {
                    TToast.show(mContext, "广告" + ad.getTitle() + "被创意按钮被点击");
                }
            }
            @Override
            public void onAdShow(TTNativeAd ad) {
                if (ad != null) {
                    TToast.show(mContext, "广告" + ad.getTitle() + "展示");
                }
            }
        });
        return new OneAd(videoView, ttFeedAd.getVideoDuration());
    }
    public void play() {
        if (mAdLayout == null) {
            return;
        }
        mAdLayout.removeAllViews();
        mPlayNext.run();
    }
    public void clear() {
        mHandler.clearCallback();
    }
    public void pauseHandler() {
        mHandler.postDelayedPause();
    }
    public void resumeHandler() {
        mHandler.postDelayedResume();
    }
    class OneAd {
        View adView;
        double duration;
        public OneAd(View adView, double duration) {
            this.adView = adView;
            this.duration = duration;
        }
    }
    static class TTHandler extends Handler {
        private Runnable mRunnable;
        private long mOldAtTime;
        private long mRemainTime;
        TTHandler(Looper looper) {
            super(looper);
        }
        void postDelayedPause() {
            mRemainTime = mOldAtTime - System.currentTimeMillis();
            Log.d(TAG, "TTHandler pause remainTime: " + mRemainTime);
            removeCallbacks(mRunnable);
        }
        void postDelayedResume() {
            if (mRemainTime > 0) {
                Log.d(TAG, "TTHandler resume remainTime: " + mRemainTime);
                sendPostDelayed(mRunnable, mRemainTime);
            }
        }
        void sendPostDelayed(Runnable r, long delayMillis) {
            mRemainTime = 0;
            mRunnable = r;
            mOldAtTime = System.currentTimeMillis() + delayMillis;
            postDelayed(mRunnable, delayMillis);
        }
        void clearCallback() {
            mOldAtTime = 0;
            mRemainTime = 0;
            removeCallbacks(mRunnable);
        }
    }
    static class TToast {
        public static void show(Context context, String content) {
            Toast.makeText(context, content, Toast.LENGTH_SHORT).show();
        }
    }
}
BuWanVideo/src/com/weikou/beibeivideo/ui/dialog/ShareAPPDialog.java
New file
@@ -0,0 +1,144 @@
package com.weikou.beibeivideo.ui.dialog;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.TextView;
import com.androidquery.AQuery;
import com.umeng.socialize.ShareAction;
import com.umeng.socialize.bean.SHARE_MEDIA;
import com.umeng.socialize.media.UMWeb;
import com.weikou.beibeivideo.R;
/**
 * 用户协议弹框
 */
public class ShareAPPDialog extends Dialog {
    private static String TAG = ShareAPPDialog.class.getName();
    public ShareAPPDialog(Context context) {
        super(context);
        this.setCancelable(false);
    }
    public ShareAPPDialog(Context context, int theme) {
        super(context, theme);
        this.setCancelable(false);
    }
    public static class Builder {
        private Activity context;
        public Builder(Activity context) {
            this.context = context;
        }
        private View.OnClickListener closeListener;
        private View.OnClickListener upgradeListener;
        public Builder setCloseListener(View.OnClickListener listener) {
            this.closeListener = listener;
            return this;
        }
        public Builder setUpgradeListener(View.OnClickListener listener) {
            this.upgradeListener = listener;
            return this;
        }
        private String getShareUrl() {
            SharedPreferences preferences = context.getSharedPreferences("user",
                    Context.MODE_PRIVATE);
            return preferences.getString("share_url", "http://yy.umgotv.com");
        }
        private String getShareContent() {
            SharedPreferences preferences = context.getSharedPreferences(
                    "user", Context.MODE_PRIVATE);
            String shareContent = preferences.getString(
                    "share_content",
                    "牛逼的APP,什么样的新片,大片,电视剧都有---"
                            + context.getResources().getString(
                            R.string.app_name))
                    + getShareUrl();
            return shareContent;
        }
        private void share(SHARE_MEDIA media) {
            String shareContent = getShareContent();
            UMWeb web = new UMWeb(getShareUrl());
            String shareTitle = context.getResources().getString(R.string.app_name);
            web.setTitle(shareTitle);
            web.setDescription(shareContent);
            new ShareAction(context).withText(shareContent).setPlatform(media).withMedia(web).share();
        }
        public ShareAPPDialog create() {
            LayoutInflater inflater = (LayoutInflater) context
                    .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
            final ShareAPPDialog dialog = new ShareAPPDialog(context, R.style.Dialog);
            dialog.setCanceledOnTouchOutside(true);
            final View layout = inflater.inflate(R.layout.dialog_share_app, null);
            AQuery aQuery = new AQuery(layout);
            aQuery.id(R.id.ll_qq).clicked(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    share(SHARE_MEDIA.QQ);
                }
            });
            aQuery.id(R.id.ll_wx).clicked(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    share(SHARE_MEDIA.WEIXIN);
                }
            });
            aQuery.id(R.id.ll_weibo).clicked(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    share(SHARE_MEDIA.SINA);
                }
            });
            aQuery.id(R.id.tv_cancel).clicked(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    if (dialog.isShowing()) {
                        dialog.dismiss();
                    }
                }
            });
            dialog.setContentView(layout);
            WindowManager.LayoutParams params = dialog.getWindow()
                    .getAttributes();
            params.width = WindowManager.LayoutParams.MATCH_PARENT;
            params.height = WindowManager.LayoutParams.WRAP_CONTENT;
            params.gravity = Gravity.BOTTOM;
            dialog.getWindow().setAttributes(params);
            return dialog;
        }
    }
    public interface MeasureCallBack {
        public void onMeasure(int height);
    }
}
BuWanVideo/src/com/weikou/beibeivideo/ui/login/PersonInfoActivity.java
@@ -26,6 +26,7 @@
import com.bumptech.glide.Glide;
import com.google.gson.Gson;
import com.lcjian.library.dialog.DialogUtil;
import com.lcjian.library.util.Environment;
import com.lcjian.library.util.SingleToast;
import com.lcjian.library.util.common.StringUtils;
@@ -85,9 +86,6 @@
    private TextView tv_bind_wx;
    private TextView tv_bind_phone;
    private Dialog loadingDialog;
    @Override
    protected void onCreate(Bundle arg0) {
        super.onCreate(arg0);
@@ -137,7 +135,6 @@
        tv_bind_qq.setOnClickListener(this);
        tv_bind_wx.setOnClickListener(this);
        tv_bind_phone.setOnClickListener(this);
        loadingDialog = LoadingDialogUtil.getLoadingDialog(this, "");
    }
@@ -367,15 +364,13 @@
                        @Override
                        public void onStart(SHARE_MEDIA share_media) {
                            if (loadingDialog != null && !loadingDialog.isShowing())
                                loadingDialog.show();
                            DialogUtil.show(loadingDialog);
                        }
                        @Override
                        public void onComplete(SHARE_MEDIA share_media, int i, Map<String, String> map) {
                            Log.d(TAG, "onComplete");
                            if (loadingDialog != null && loadingDialog.isShowing())
                                loadingDialog.dismiss();
                            DialogUtil.dismiss(loadingDialog);
                            String nickName = map.get("name");
                            String openid = map.get("openid");
                            String portrait = map.get("iconurl");
@@ -403,8 +398,7 @@
                        public void onError(SHARE_MEDIA share_media, int i, Throwable throwable) {
                            throwable.printStackTrace();
                            Log.d(TAG, "onError");
                            if (loadingDialog != null && loadingDialog.isShowing())
                                loadingDialog.dismiss();
                            DialogUtil.dismiss(loadingDialog);
                            Toast.makeText(PersonInfoActivity.this, "QQ授权出错,请稍后再试", Toast.LENGTH_SHORT).show();
                        }
@@ -412,8 +406,7 @@
                        @Override
                        public void onCancel(SHARE_MEDIA share_media, int i) {
                            Log.d(TAG, "onCancel");
                            if (loadingDialog != null && loadingDialog.isShowing())
                                loadingDialog.dismiss();
                            DialogUtil.dismiss(loadingDialog);
                        }
                    });
                } else {
BuWanVideo/src/com/weikou/beibeivideo/ui/login/PhoneLoginActivity.java
@@ -27,6 +27,7 @@
import android.widget.Toast;
import com.cmic.sso.sdk.AuthRegisterViewConfig;
import com.lcjian.library.dialog.DialogUtil;
import com.lcjian.library.util.SingleToast;
import com.lcjian.library.util.common.StringUtils;
import com.mobile.auth.gatewayauth.AuthUIConfig;
@@ -79,11 +80,8 @@
    private boolean login;
    private Dialog loadingDialog;
    private void initView() {
        loadingDialog = LoadingDialogUtil.getLoadingDialog(this, "");
        tv_login_onekey = findViewById(R.id.tv_login_onekey);
        tv_obtain_verfication_code = findViewById(R.id.tv_obtain_verfication_code);
        et_phone = findViewById(R.id.et_phone);
@@ -103,9 +101,7 @@
    }
    private void initOneKeyLogin() {
        if (!loadingDialog.isShowing()) {
            loadingDialog.show();
        }
        DialogUtil.show(loadingDialog);
        sdkInit(BeibeiConstant.ALIYUN_ONE_KEY_LOGIN_SECRETINFO);
        initUI();
    }
@@ -145,9 +141,7 @@
            @Override
            public void onStart() {
                if (loadingDialog != null && !loadingDialog.isShowing()) {
                    loadingDialog.show();
                }
                DialogUtil.show(loadingDialog);
            }
            @Override
@@ -165,9 +159,7 @@
            @Override
            public void onFinish() {
                if (loadingDialog != null && loadingDialog.isShowing()) {
                    loadingDialog.dismiss();
                }
                DialogUtil.dismiss(loadingDialog);
            }
        });
@@ -303,9 +295,7 @@
                case ResultCode.CODE_START_AUTHPAGE_SUCCESS:
                    Log.i(TAG, "唤起授权页成功:" + s);
                    if (loadingDialog.isShowing()) {
                        loadingDialog.dismiss();
                    }
                    DialogUtil.dismiss(loadingDialog);
                    break;
                case ResultCode.CODE_SUCCESS:
@@ -323,9 +313,7 @@
    @Override
    public void onTokenFailed(String s) {
        if (loadingDialog.isShowing()) {
            loadingDialog.dismiss();
        }
        DialogUtil.dismiss(loadingDialog);
        Log.i(TAG, "onTokenFailed:" + s);
        TokenRet tokenRet = null;
        try {
@@ -411,8 +399,7 @@
            @Override
            public void onStart() {
                super.onStart();
                if (loadingDialog != null && !loadingDialog.isShowing())
                    loadingDialog.show();
                DialogUtil.show(loadingDialog);
            }
            @Override
@@ -430,8 +417,7 @@
            @Override
            public void onFinish() {
                super.onFinish();
                if (loadingDialog != null && loadingDialog.isShowing())
                    loadingDialog.dismiss();
                DialogUtil.dismiss(loadingDialog);
            }
        });
BuWanVideo/src/com/weikou/beibeivideo/ui/main/MineFragment.java
@@ -37,6 +37,7 @@
import com.weikou.beibeivideo.entity.vo.UserInfoVO;
import com.weikou.beibeivideo.ui.MyRetainViewFragment;
import com.weikou.beibeivideo.ui.common.FollowActivity;
import com.weikou.beibeivideo.ui.dialog.ShareAPPDialog;
import com.weikou.beibeivideo.ui.login.LoginActivity;
import com.weikou.beibeivideo.ui.login.PersonInfoActivity;
import com.weikou.beibeivideo.ui.mine.BrowserActivity;
@@ -263,15 +264,7 @@
                openMsg();
                break;
            case R.id.rl_mine_share:
                String shareContent = getShareContent();
                UMWeb web = new UMWeb(getShareUrl());
                String shareTitle = getResources().getString(R.string.app_name);
                web.setTitle(shareTitle);
                web.setDescription(shareContent);
                new ShareAction(getActivity()).withText(shareContent).withMedia(web)
                        .setDisplayList(SHARE_MEDIA.SINA, SHARE_MEDIA.QQ, SHARE_MEDIA.WEIXIN)
                        .setCallback(shareListener).open();
                new ShareAPPDialog.Builder(getActivity()).create().show();
                break;
            case R.id.rl_mine_help:
                startActivity(new Intent(tv_no_network.getContext(),
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/FeedBackActivity.java
New file
@@ -0,0 +1,99 @@
package com.weikou.beibeivideo.ui.mine;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout.LayoutParams;
import android.widget.Toast;
import com.androidquery.AQuery;
import com.lcjian.library.util.common.ClipboardUtil;
import com.umeng.analytics.MobclickAgent;
import com.weikou.beibeivideo.R;
import com.weikou.beibeivideo.ui.BaseActivity;
import com.weikou.beibeivideo.util.BeibeiConstant;
public class FeedBackActivity extends BaseActivity implements
        OnClickListener {
    private AQuery aQuery;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_feedback);
        aQuery = new AQuery(this);
        /*
         * 计算状态栏高度并设置
         */
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            int result = 0;
            int resourceId = getResources().getIdentifier("status_bar_height",
                    "dimen", "android");
            if (resourceId > 0) {
                result = getResources().getDimensionPixelSize(resourceId);
            }
            LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT,
                    result);
            findViewById(R.id.v_status_bar).setLayoutParams(params);
        } else {
            findViewById(R.id.v_status_bar).setVisibility(View.GONE);
        }
        aQuery.id(R.id.tv_submit).clicked(this);
        aQuery.id(R.id.tv_top_bar_left).clicked(this);
        aQuery.id(R.id.tv_top_bar_middle).getTextView().setText("意见反馈");
        aQuery.id(R.id.et_content).getEditText().addTextChangedListener(new TextWatcher() {
            @Override
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {
            }
            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) {
            }
            @Override
            public void afterTextChanged(Editable s) {
                if (s != null) {
                    aQuery.id(R.id.tv_count).text(s.toString().length() + "/500");
                } else {
                    aQuery.id(R.id.tv_count).text("0/500");
                }
            }
        });
    }
    @Override
    public void onResume() {
        super.onResume();
        MobclickAgent.onPageStart("帮助中心");
    }
    @Override
    public void onPause() {
        super.onPause();
        MobclickAgent.onPageEnd("帮助中心");
    }
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.tv_top_bar_left:// 返回按钮
                finish();
                break;
            case R.id.tv_submit:// 复制QQ号
                Toast.makeText(this, "提交成功", Toast.LENGTH_SHORT).show();
                finish();
                break;
        }
    }
}
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/HelpAndTicklingActivity.java
@@ -8,74 +8,88 @@
import android.view.View.OnClickListener;
import android.widget.LinearLayout.LayoutParams;
import android.widget.TextView;
import android.widget.Toast;
import com.androidquery.AQuery;
import com.lcjian.library.util.common.ClipboardUtil;
import com.umeng.analytics.MobclickAgent;
import com.weikou.beibeivideo.R;
import com.weikou.beibeivideo.ui.BaseActivity;
import com.weikou.beibeivideo.util.BeibeiConstant;
public class HelpAndTicklingActivity extends BaseActivity implements
        OnClickListener {
    private TextView tv_num;
    private TextView tv_commonquestion;
    private TextView tv_back;
        OnClickListener {
    private AQuery aQuery;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_help);
        /*
         * 计算状态栏高度并设置
         */
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            int result = 0;
            int resourceId = getResources().getIdentifier("status_bar_height",
                    "dimen", "android");
            if (resourceId > 0) {
                result = getResources().getDimensionPixelSize(resourceId);
            }
            LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT,
                    result);
            findViewById(R.id.v_status_bar).setLayoutParams(params);
        } else {
            findViewById(R.id.v_status_bar).setVisibility(View.GONE);
        }
        tv_num = (TextView) findViewById(R.id.help_tv_num);
        tv_back = (TextView) findViewById(R.id.help_tv_cancel);
        tv_commonquestion = (TextView) findViewById(R.id.help_tv_commonquestion);
        // 这种方式会把下划线一起复制,影响美观
        // tv_num.setText(Html.fromHtml("<u>" + "2736748657" + "</u>"));
        tv_num.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG); // 下划线
        tv_num.getPaint().setAntiAlias(true);// 抗锯齿
        tv_num.setTextIsSelectable(true);// 是否支持点按选择,也就是复制粘贴
        tv_commonquestion.setOnClickListener(this);
        tv_back.setOnClickListener(this);
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_help);
        aQuery = new AQuery(this);
        /*
         * 计算状态栏高度并设置
         */
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            int result = 0;
            int resourceId = getResources().getIdentifier("status_bar_height",
                    "dimen", "android");
            if (resourceId > 0) {
                result = getResources().getDimensionPixelSize(resourceId);
            }
            LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT,
                    result);
            findViewById(R.id.v_status_bar).setLayoutParams(params);
        } else {
            findViewById(R.id.v_status_bar).setVisibility(View.GONE);
        }
        aQuery.id(R.id.tv_copy_qq).clicked(this);
        aQuery.id(R.id.ll_common_question).clicked(this);
        aQuery.id(R.id.ll_common_advice).clicked(this);
        aQuery.id(R.id.tv_top_bar_left).clicked(this);
    @Override
    public void onResume() {
        super.onResume();
        MobclickAgent.onPageStart("帮助与反馈");
    }
        aQuery.id(R.id.tv_top_bar_middle).getTextView().setText("帮助中心");
    @Override
    public void onPause() {
        super.onPause();
        MobclickAgent.onPageEnd("帮助与反馈");
    }
    }
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
        case R.id.help_tv_cancel:// 返回按钮
            finish();
            break;
        case R.id.help_tv_commonquestion:// 常见问题
            Intent intent = new Intent(this, BrowserActivity.class);
            intent.putExtra("url", BeibeiConstant.HOST + "/BuWan/"
                    + "api_question.jsp?package=" + getPackageName());
            startActivity(intent);
            break;
        }
    }
    @Override
    public void onResume() {
        super.onResume();
        MobclickAgent.onPageStart("帮助中心");
    }
    @Override
    public void onPause() {
        super.onPause();
        MobclickAgent.onPageEnd("帮助中心");
    }
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.tv_top_bar_left:// 返回按钮
                finish();
                break;
            case R.id.ll_common_question:// 常见问题
            {
                Intent intent = new Intent(this, BrowserActivity.class);
                intent.putExtra("url", BeibeiConstant.HOST + "/BuWan/"
                        + "api_question.jsp?package=" + getPackageName());
                startActivity(intent);
            }
            break;
            case R.id.ll_common_advice:// 意见反馈
            {
                Intent intent = new Intent(this, FeedBackActivity.class);
                startActivity(intent);
            }
            break;
            case R.id.tv_copy_qq:// 复制QQ号
                ClipboardUtil.copy(getApplicationContext(), "2100723373");
                Toast.makeText(this, "复制成功", Toast.LENGTH_SHORT).show();
                break;
        }
    }
}
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/MyFavouriteActivity.java
@@ -25,6 +25,7 @@
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import com.lcjian.library.dialog.DialogUtil;
import com.lcjian.library.util.RefreshLayout;
import com.lcjian.library.util.SingleToast;
import com.lcjian.library.util.common.StringUtils;
@@ -47,44 +48,26 @@
import java.util.List;
public class MyFavouriteActivity extends BaseActivity implements
        OnClickListener, RadioGroup.OnCheckedChangeListener,
        OnClickListener,
        com.weikou.beibeivideo.ui.common.ListVideoAdapter.IGetDeleteCallback,
        GoodsFavouriteAdapter.IGetDeleteGoodSCallback {
    private TextView tv_top_bar_left;
    private TextView tv_top_bar_middle;
    private ToggleButton iv_top_bar_recover;
    private ListView gv_video;
    private ListVideoAdapter mGridVideoAdapter;
    private GoodsFavouriteAdapter mAdapter;
    private List<VideoInfo> mVideoInfos;
    private LinearLayout ll_recent_bottom;
    private Button btn_select_all;
    private Button btn_delete_item;
    private ListVideoAdapter.IGetDeleteCallback getdeleteNumber = null;
    private GoodsFavouriteAdapter.IGetDeleteGoodSCallback getDeleteGoods = null;
    private View empty;
    private RefreshLayout srl_favourite;
    private RadioGroup rg_msg;
    private TextView tv_top_bar_right;
    private View v1;
    private View v2;
    private RadioButton rb_video;
    private RadioButton rb_goods;
    public void setDeleteCallback(
            ListVideoAdapter.IGetDeleteCallback getdeleteNumber) {
@@ -118,7 +101,7 @@
        setContentView(R.layout.myfavourites_activity);
        /*
         * 计算状态栏高度并设置
         */
         */
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            int result = 0;
            int resourceId = getResources().getIdentifier("status_bar_height",
@@ -132,33 +115,29 @@
        } else {
            findViewById(R.id.v_status_bar).setVisibility(View.GONE);
        }
        tv_top_bar_left = (TextView) findViewById(R.id.tv_top_bar_left);
        tv_top_bar_middle = (TextView) findViewById(R.id.tv_top_bar_middle);
        iv_top_bar_recover = (ToggleButton) findViewById(R.id.iv_top_bar_right);
        tv_top_bar_left = findViewById(R.id.tv_top_bar_left);
        tv_top_bar_middle = findViewById(R.id.tv_top_bar_middle);
        tv_top_bar_right = findViewById(R.id.tv_top_bar_right);
        empty = findViewById(R.id.favourite_empty);
        iv_top_bar_recover.setVisibility(View.VISIBLE);
        iv_top_bar_recover.setOnClickListener(this);
        tv_top_bar_left.setText("返回");
        tv_top_bar_right.setText("编辑");
        tv_top_bar_right.setVisibility(View.VISIBLE);
        tv_top_bar_right.setOnClickListener(this);
        tv_top_bar_middle.setText("我的收藏");
        tv_top_bar_left.setOnClickListener(this);
        ll_recent_bottom = (LinearLayout) findViewById(R.id.ll_recent_bottom);
        btn_select_all = (Button) findViewById(R.id.btn_select_all);
        btn_delete_item = (Button) findViewById(R.id.btn_delete_item);
        ll_recent_bottom = findViewById(R.id.ll_recent_bottom);
        btn_select_all = findViewById(R.id.btn_select_all);
        btn_delete_item = findViewById(R.id.btn_delete_item);
        btn_select_all.setOnClickListener(this);
        btn_delete_item.setOnClickListener(this);
        gv_video = (ListView) findViewById(R.id.gv_video);
        gv_video = findViewById(R.id.gv_video);
        v1 = findViewById(R.id.v_1);
        v2 = findViewById(R.id.v_2);
        rg_msg = (RadioGroup) findViewById(R.id.rg_msg);
        rb_video = (RadioButton) findViewById(R.id.rb_comment_msg);
        rb_goods = (RadioButton) findViewById(R.id.rb_system_msg);
        rg_msg.setOnCheckedChangeListener(this);
        gv_video.addHeaderView(new View(this));
        mVideoInfos = new ArrayList<VideoInfo>();
@@ -178,59 +157,21 @@
        srl_favourite.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
            @Override
            public void onRefresh() {
                if (rb_video.isChecked()) {
                    vPage = 1;
                    mVideoInfos.clear();
                    getCollectedVideo();
                } else if (rb_goods.isChecked()) {
                    gPage = 1;
                    mList.clear();
                    getCollectGoods();
                }
                vPage = 1;
                mVideoInfos.clear();
                getCollectedVideo();
            }
        });
        srl_favourite.setOnLoadListener(new RefreshLayout.OnLoadListener() {
            @Override
            public void onLoad() {
                if (rb_video.isChecked()) {
                    vPage++;
                    getCollectedVideo();
                } else if (rb_goods.isChecked()) {
                    gPage++;
                    getCollectGoods();
                }
                vPage++;
                getCollectedVideo();
            }
        });
        srl_favourite.setRefreshing(true);
        getCollectedVideo();
    }
    @Override
    public void onCheckedChanged(RadioGroup group, int checkedId) {
        switch (checkedId) {
            case R.id.rb_comment_msg:
                vPage = 1;
                mList.clear();
                iv_top_bar_recover.setChecked(false);
                findViewById(R.id.v_1).setVisibility(View.VISIBLE);
                findViewById(R.id.v_2).setVisibility(View.GONE);
                gv_video.setAdapter(mGridVideoAdapter);
                getCollectedVideo();
                break;
            case R.id.rb_system_msg:
                gPage = 1;
                mVideoInfos.clear();
                iv_top_bar_recover.setChecked(false);
                findViewById(R.id.v_1).setVisibility(View.GONE);
                findViewById(R.id.v_2).setVisibility(View.VISIBLE);
                gv_video.setAdapter(mAdapter);
                getCollectGoods();
                break;
            default:
                break;
        }
    }
    @Override
@@ -240,21 +181,13 @@
                finish();
            }
            break;
            case R.id.iv_top_bar_right:
                if (rb_video.isChecked()) {
                    this.setSelectedMode(!isSelectedMode());
                    updateView();
                } else if (rb_goods.isChecked()) {
                    this.setSelectedGoodsMode(!isSelectedGoodsMode());
                    updateView2();
                }
            case R.id.tv_top_bar_right:
                this.setSelectedMode(!isSelectedMode());
                updateView();
                break;
            case R.id.btn_select_all:
                if (rb_goods.isChecked()) {
                    this.selectGoodsAll();
                } else if (rb_video.isChecked()) {
                    this.selectAll();
                }
                this.selectAll();
                break;
            case R.id.btn_delete_item:
@@ -265,12 +198,7 @@
                    startActivity(new Intent(MyFavouriteActivity.this, LoginActivity.class));
                    return;
                }
                if (rb_goods.isChecked()) {
                    deleteCollectGoods(loginUid);
                } else if (rb_video.isChecked()) {
                    deleteCollect(loginUid);
                }
                deleteCollect(loginUid);
                break;
            default:
                break;
@@ -279,11 +207,7 @@
            @Override
            public void run() {
                if (rb_goods.isChecked()) {
                    updateView2();
                } else if (rb_video.isChecked()) {
                    updateView();
                }
                updateView();
            }
        });
    }
@@ -323,10 +247,10 @@
                    mAdapter.notifyDataSetChanged();
                    if (mAdapter.getCount() == 0) {
                        empty.setVisibility(View.VISIBLE);
                        iv_top_bar_recover.setClickable(false);
                        tv_top_bar_right.setClickable(false);
                    } else {
                        empty.setVisibility(View.INVISIBLE);
                        iv_top_bar_recover.setClickable(true);
                        tv_top_bar_right.setClickable(true);
                    }
                }
            }
@@ -375,10 +299,10 @@
                            mGridVideoAdapter.notifyDataSetChanged();
                            if (mGridVideoAdapter.getCount() == 0) {
                                empty.setVisibility(View.VISIBLE);
                                iv_top_bar_recover.setClickable(false);
                                tv_top_bar_right.setClickable(false);
                            } else {
                                empty.setVisibility(View.INVISIBLE);
                                iv_top_bar_recover.setClickable(true);
                                tv_top_bar_right.setClickable(true);
                            }
                        } else {
                            Toast.makeText(MyFavouriteActivity.this, "数据请求失败!",
@@ -480,6 +404,18 @@
                    new BasicTextHttpResponseHandler() {
                        @Override
                        public void onStart() {
                            super.onStart();
                            DialogUtil.show(loadingDialog);
                        }
                        @Override
                        public void onFinish() {
                            super.onFinish();
                            DialogUtil.dismiss(loadingDialog);
                        }
                        @Override
                        public void onSuccessPerfect(int statusCode,
                                                     Header[] headers, JSONObject jsonObject)
                                throws Exception {
@@ -543,7 +479,6 @@
        }
        selectedMode = this.isSelectedMode();
        ll_recent_bottom.setVisibility(selectedMode ? View.VISIBLE : View.GONE);
        iv_top_bar_recover.setChecked(selectedMode);
    }
    private void updateView2() {
@@ -557,7 +492,6 @@
        }
        selectedMode = this.isSelectedGoodsMode();
        ll_recent_bottom.setVisibility(selectedMode ? View.VISIBLE : View.GONE);
        iv_top_bar_recover.setChecked(selectedMode);
    }
    public void selectAll() {
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/SettingsActivity.java
@@ -80,25 +80,23 @@
     * 初始化内存显示
     */
    private void initStorageView() {
        tv_mobile.setText("手机存储: 总量:"
        tv_mobile.setText("总量:"
                + SDCardUtil.getSotrageSize(SDCardUtil
                .getTotalExternalMemorySize() / (1024 * 1024))
                + "   可用:"
                + SDCardUtil.getSotrageSize(SDCardUtil
                .getAvailableExternalMemorySize() / (1024 * 1024)));
        chageSize(tv_mobile, 5, tv_mobile.getText().length());
        SDCardEntity entity = SDCardUtil.getSDCardPath(this);
        if (entity == null) {// 没有外部存储卡
            view_sdcard.setVisibility(View.GONE);
            cb_mobile.setVisibility(View.GONE);
        } else {
            tv_sdcard.setText("SD卡存储: 总量:"
            tv_sdcard.setText("总量:"
                    + SDCardUtil.getSotrageSize(entity.getTotalSize()
                    / (1024 * 1024))
                    + "   可用:"
                    + SDCardUtil.getSotrageSize(entity.getAvailableSize()
                    / (1024 * 1024)));
            chageSize(tv_sdcard, 6, tv_sdcard.getText().length());
            view_sdcard.setVisibility(View.VISIBLE);
            cb_mobile.setVisibility(View.VISIBLE);
            if (SDCardUtil.getDeaultStorage(this) == SDCardUtil.STORAGE_SDCARD) {
@@ -126,7 +124,6 @@
        tv_top_bar_left = findViewById(R.id.tv_top_bar_left);
        tv_top_bar_middle = findViewById(R.id.tv_top_bar_middle);
        tv_top_bar_left.setText("返回");
        tv_top_bar_middle.setText("设置");
        tv_top_bar_left.setOnClickListener(this);
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/SuggestionActivity.java
@@ -54,7 +54,6 @@
        }
        tv_top_bar_left = (TextView) findViewById(R.id.tv_top_bar_left);
        tv_top_bar_middle = (TextView) findViewById(R.id.tv_top_bar_middle);
        tv_top_bar_left.setText("返回");
        tv_top_bar_middle.setText(R.string.suggestion);
        et_suggestion = (EditText) findViewById(R.id.et_suggestion);
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/SystemMessageActivity.java
@@ -12,6 +12,7 @@
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.ListView;
import android.widget.TextView;
@@ -34,7 +35,7 @@
    private View v_message_detail;
    private TextView tv_empty;
    private LinearLayout ll_empty;
    private MessageAdapter mSysAdapter;
@@ -60,16 +61,15 @@
        } else {
            findViewById(R.id.v_status_bar).setVisibility(View.GONE);
        }
        tv_top_bar_left = (TextView) findViewById(R.id.tv_top_bar_left);
        tv_top_bar_middle = (TextView) findViewById(R.id.tv_top_bar_middle);
        tv_top_bar_left.setText("返回");
        tv_top_bar_left = findViewById(R.id.tv_top_bar_left);
        tv_top_bar_middle = findViewById(R.id.tv_top_bar_middle);
        tv_top_bar_left.setOnClickListener(this);
        tv_top_bar_middle.setText(R.string.mine_message);
        lv_message_list = (ListView) findViewById(R.id.lv_message_list);
        lv_message_list = findViewById(R.id.lv_message_list);
        v_message_detail = findViewById(R.id.v_message_detail);
        tv_empty = (TextView) findViewById(R.id.tv_empty);
        ll_empty = findViewById(R.id.ll_empty);
        mSysAdapter = new MessageAdapter(getApplicationContext(), null, true);//
        getSupportLoaderManager().initLoader(0, null, this);
@@ -88,10 +88,10 @@
        // old cursor once we return.)
        mSysAdapter.swapCursor(data);
        if (data == null || data.getCount() == 0) {
            tv_empty.setVisibility(View.VISIBLE);
            ll_empty.setVisibility(View.VISIBLE);
            lv_message_list.setVisibility(View.GONE);
        } else {
            tv_empty.setVisibility(View.GONE);
            ll_empty.setVisibility(View.GONE);
            lv_message_list.setVisibility(View.VISIBLE);
        }
    }
@@ -102,7 +102,7 @@
        // above is about to be closed. We need to make sure we are no
        // longer using it.
        mSysAdapter.swapCursor(null);
        tv_empty.setVisibility(View.VISIBLE);
        ll_empty.setVisibility(View.VISIBLE);
    }
    @Override
@@ -152,13 +152,13 @@
                ((TextView) v_message_detail.findViewById(R.id.tv_date)).setText(DateUtils
                        .convertDateToStr(new Date(cursor.getLong(cursor
                                .getColumnIndex(MessageTable.CREATE_TIME)))));
                ((TextView) v_message_detail.findViewById(R.id.tv_time)).setText(DateUtils.convertDateToStr(
                ((TextView)v_message_detail.findViewById(R.id.tv_time)).setText(DateUtils.convertDateToStr(
                        new Date(cursor.getLong(cursor
                                .getColumnIndex(MessageTable.CREATE_TIME))),
                        "HH:mm"));
                ((TextView) v_message_detail.findViewById(R.id.tv_text))
                ((TextView)v_message_detail.findViewById(R.id.tv_text))
                        .setSingleLine(false);
                ((TextView) v_message_detail.findViewById(R.id.tv_text))
                ((TextView)v_message_detail.findViewById(R.id.tv_text))
                        .setText(cursor.getString(cursor
                                .getColumnIndex(MessageTable.MESSAGE_CONTENT)));
                lv_message_list.setVisibility(View.GONE);
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/WatchHistoryActivity.java
@@ -30,15 +30,14 @@
    private FragmentSwitchHelper mFragmentSwitchHelper;
    private ToggleButton btn_delete;
    private LinearLayout ll_recent_bottom;
    private Button btn_select_all;
    private FrameLayout fl_delete;
    private Button btn_delete_item;
    private TextView tv_top_bar_right;
    @Override
    protected void onCreate(Bundle arg0) {
@@ -47,7 +46,7 @@
        setContentView(R.layout.activity_watch_history);
        /*
         * 计算状态栏高度并设置
         */
         */
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            Window window = getWindow();
            window.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
@@ -64,6 +63,11 @@
        } else {
            findViewById(R.id.v_status_bar).setVisibility(View.GONE);
        }
        tv_top_bar_right = findViewById(R.id.tv_top_bar_right);
        tv_top_bar_right.setText("编辑");
        tv_top_bar_right.setOnClickListener(this);
        WatchHistoryFragment historyFragment = new WatchHistoryFragment();
        historyFragment.setDeleteCallback(this);
        mFragmentSwitchHelper = FragmentSwitchHelper.create(
@@ -71,7 +75,6 @@
                historyFragment);
        mFragmentSwitchHelper.changeFragment(WatchHistoryFragment.class);
        ((TextView) findViewById(R.id.tv_top_bar_left)).setText("返回");
        ((TextView) findViewById(R.id.tv_top_bar_middle)).setText("观看记录");
        findViewById(R.id.tv_top_bar_left).setOnClickListener(
                new OnClickListener() {
@@ -81,10 +84,6 @@
                        finish();
                    }
                });
        btn_delete = (ToggleButton) findViewById(R.id.btn_delete);
        btn_delete.setOnClickListener(this);
        fl_delete = (FrameLayout) findViewById(R.id.fl_delete);
//        fl_delete.setOnClickListener(this);
        ll_recent_bottom = (LinearLayout) findViewById(R.id.ll_recent_bottom);
        btn_select_all = (Button) findViewById(R.id.btn_select_all);
@@ -106,7 +105,7 @@
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_delete: {
            case R.id.tv_top_bar_right: {
                Fragment fragment = getSupportFragmentManager().findFragmentByTag(
                        OfflineCacheFragment2.class.getName());
                if (fragment != null && fragment.isResumed()) {
@@ -125,26 +124,6 @@
                updateView();
            }
            break;
//            case R.id.fl_delete: {
//                btn_delete.performClick();
//                Fragment fragment = getSupportFragmentManager().findFragmentByTag(
//                        OfflineCacheFragment2.class.getName());
//                if (fragment != null && fragment.isResumed()) {
//                    ((OfflineCacheFragment2) fragment)
//                            .setSelectedMode(!((OfflineCacheFragment2) fragment)
//                                    .isSelectedMode());
//                } else {
//                    fragment = getSupportFragmentManager().findFragmentByTag(
//                            WatchHistoryFragment.class.getName());
//                    if (fragment != null && fragment.isResumed()) {
//                        ((WatchHistoryFragment) fragment)
//                                .setSelectedMode(!((WatchHistoryFragment) fragment)
//                                        .isSelectedMode());
//                    }
//                }
//                updateView();
//            }
//            break;
            case R.id.btn_select_all: {
                isSelected = !isSelected;
                if (isSelected) {
BuWanVideo/src/com/weikou/beibeivideo/ui/recent/WatchHistoryFragment.java
@@ -15,6 +15,7 @@
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import com.lcjian.library.dialog.DialogUtil;
import com.lcjian.library.util.RefreshLayout;
import com.umeng.analytics.MobclickAgent;
import com.weikou.beibeivideo.BasicTextHttpResponseHandler;
@@ -192,15 +193,13 @@
            @Override
            public void onStart() {
                super.onStart();
                if (loadingDialog != null && !loadingDialog.isShowing())
                    loadingDialog.show();
                DialogUtil.show(loadingDialog);
            }
            @Override
            public void onFinish() {
                super.onFinish();
                if (loadingDialog != null && loadingDialog.isShowing())
                    loadingDialog.dismiss();
                DialogUtil.dismiss(loadingDialog);
            }
            @Override
BuWanVideo/src/com/weikou/beibeivideo/util/ad/CSJConstant.java
@@ -15,7 +15,7 @@
    public static String APP_EXIT = "945469133";
    //视频前贴
    public static String PLAY_VIDEO_PRE = "887389927";
    public static String PLAY_VIDEO_PRE = "945379614";
    //视频详情页视频播放器底部
    public static String VIDEO_DETAIL_PLAYER_BOTTOM = "945548900";
BuWanVideo/src/com/weikou/beibeivideo/util/ad/TTAdManagerHolder.java
@@ -43,8 +43,9 @@
                .allowShowNotify(true) //是否允许sdk展示通知栏提示
                .allowShowPageWhenScreenLock(true) //是否在锁屏场景支持展示广告落地页
                .debug(true) //测试阶段打开,可以通过日志排查问题,上线时去除该调用
                .directDownloadNetworkType(TTAdConstant.NETWORK_STATE_WIFI, TTAdConstant.NETWORK_STATE_3G) //允许直接下载的网络状态集合
                .directDownloadNetworkType(TTAdConstant.NETWORK_STATE_WIFI)
                .supportMultiProcess(true)//是否支持多进程
                .asyncInit(true)
                .needClearTaskReset()
                //.httpStack(new MyOkStack3())//自定义网络库,demo中给出了okhttp3版本的样例,其余请自行开发或者咨询工作人员。
                .build();
library-common/src/com/lcjian/library/dialog/DialogUtil.java
New file
@@ -0,0 +1,21 @@
package com.lcjian.library.dialog;
import android.app.Dialog;
public class DialogUtil {
    public static void show(Dialog dialog) {
        if (dialog != null && !dialog.isShowing()) {
            dialog.show();
        }
    }
    public static void dismiss(Dialog dialog) {
        if (dialog != null && dialog.isShowing()) {
            dialog.dismiss();
        }
    }
}