BuWanVideo/AndroidManifest.xml
@@ -288,7 +288,7 @@ android:value="570f28a578d6e12cba6f7f200b8d1c83"></meta-data> <meta-data android:name="UMENG_CHANNEL" android:value="qq"></meta-data> android:value="huawei"></meta-data> <provider BuWanVideo/build.gradle
@@ -93,7 +93,7 @@ } defaultConfig { applicationId "com.doudou.ysvideo" versionCode 107 versionCode 109 versionName "3.8.9" multiDexEnabled = true minSdkVersion 17 BuWanVideo/res/drawable-xhdpi/ic_back_two.pngBuWanVideo/res/drawable-xhdpi/ic_clear.pngBuWanVideo/res/drawable-xhdpi/ic_login_bg_w.png
BuWanVideo/res/drawable-xhdpi/ic_search_result_nav_in.png
BuWanVideo/res/drawable-xhdpi/ic_splash_bg.png
BuWanVideo/res/drawable-xhdpi/ic_unchecked.pngBuWanVideo/res/drawable/shape_app_exit_bg.xml
New file @@ -0,0 +1,9 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <corners android:radius="12dp" /> <solid android:color="@android:color/white" /> </shape> BuWanVideo/res/drawable/shape_login_input_bg.xml
@@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#ff444444" /> <solid android:color="@color/login_input_bg_color" /> <corners android:bottomLeftRadius="7dp" android:bottomRightRadius="7dp" BuWanVideo/res/drawable/shape_login_input_cursor.xml
@@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#C5C5C5" /> <solid android:color="@color/login_input_text_color" /> <size android:width="1dp" /> </shape> BuWanVideo/res/drawable/shape_login_onkey_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="#ff30354f" /> <solid android:color="@color/page_content_bg_color" /> <corners android:bottomLeftRadius="16dp" android:bottomRightRadius="16dp" BuWanVideo/res/drawable/shape_splash_ad.xml
@@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <corners android:radius="20dp" /> <corners android:radius="6dp" /> <solid android:color="@color/transparent_gray" /> <solid android:color="#80999999" /> </shape> BuWanVideo/res/drawable/shape_video_detail_episode_resource.xml
@@ -2,7 +2,7 @@ <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="#ff7d7d7d" /> <solid android:color="@color/video_detail_resource_bg_color" /> <corners android:radius="40dp" /> BuWanVideo/res/drawable/shape_video_detail_episode_unselected.xml
@@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="#666666" /> <solid android:color="@color/video_episode_bg_color" /> <corners android:radius="5dp" /> 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="#5C5C5C" /> <solid android:color="@color/page_content_bg_color" /> <corners android:bottomLeftRadius="5dp" android:bottomRightRadius="5dp" BuWanVideo/res/drawable/shape_video_detail_follow_btn.xml
@@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#ff666666" /> <solid android:color="@color/follow_btn_bg_color" /> <corners android:radius="20dp" /> </shape> BuWanVideo/res/layout/act_help.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/content_bg_color" android:background="@color/page_bg_color" android:orientation="vertical"> <include layout="@layout/view_activity_top_navbar"></include> BuWanVideo/res/layout/act_login.xml
@@ -1,346 +1,336 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#F1F1F1" android:background="@color/page_content_bg_color" android:orientation="vertical"> <include layout="@layout/view_status_bar" /> <FrameLayout <LinearLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1"> android:layout_height="match_parent" android:orientation="vertical"> <ImageView <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="centerCrop" android:src="@drawable/ic_login_bg"></ImageView> android:layout_height="48dp" android:background="@color/page_content_bg_color"> <TextView android:id="@+id/login_tv_cancel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:drawableLeft="@drawable/ic_back_two" android:drawablePadding="3dp" android:gravity="center_vertical" android:padding="8dp" android:text="返回" android:textColor="@color/page_title_text_color" android:textSize="16sp" /> <LinearLayout <TextView android:id="@+id/tv_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:paddingTop="6dp" android:paddingBottom="6dp" android:text="帐号登录" android:textColor="@color/page_title_text_color" android:textSize="20sp" /> </FrameLayout> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> android:layout_height="0dp" android:layout_weight="1"> <FrameLayout <LinearLayout android:layout_width="match_parent" android:layout_height="48dp" android:background="@color/top_bar_color"> android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/login_tv_cancel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:drawableLeft="@drawable/ic_back_two" android:drawablePadding="3dp" android:gravity="center_vertical" android:padding="8dp" android:text="返回" android:textColor="@color/white" android:textSize="16sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:paddingTop="6dp" android:paddingBottom="6dp" android:text="帐号登录" android:textColor="@color/white" android:textSize="20sp" /> </FrameLayout> <ScrollView android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1"> <LinearLayout android:id="@+id/ll_third_login" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> android:gravity="center_horizontal" android:orientation="vertical" android:paddingBottom="20dp" android:visibility="gone"> <LinearLayout android:id="@+id/ll_login_content" android:layout_width="match_parent" <com.lcjian.library.widget.RatioLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginLeft="50dp" android:layout_marginTop="120dp" android:layout_marginRight="50dp" android:focusable="true" android:focusableInTouchMode="true" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="15dp" android:background="@drawable/shape_login_input_bg" android:gravity="center_vertical" android:orientation="horizontal" android:paddingLeft="20dp" android:paddingTop="12dp" android:paddingRight="20dp" android:paddingBottom="12dp"> <ImageView android:layout_width="wrap_content" android:layout_height="18dp" android:src="@drawable/icon_login_account"></ImageView> <EditText android:id="@+id/et_name" style="@style/loginInputStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="18dp" android:background="@null" android:digits="@string/rule_email" android:hint="请输入账户邮箱" android:inputType="textEmailAddress" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="15dp" android:background="@drawable/shape_login_input_bg" android:gravity="center_vertical" android:orientation="horizontal" android:paddingLeft="20dp" android:paddingTop="12dp" android:paddingRight="20dp" android:paddingBottom="12dp"> <ImageView android:layout_width="wrap_content" android:layout_height="18dp" android:src="@drawable/icon_login_password"></ImageView> <EditText android:id="@+id/et_pwd" style="@style/loginInputStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="18dp" android:background="@null" android:digits="@string/rule_password" android:hint="请输入您的密码" android:inputType="textPassword" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="32dp" android:orientation="horizontal"> <TextView android:id="@+id/tv_login" android:layout_width="match_parent" android:layout_height="44dp" android:background="@drawable/shape_login_btn" android:gravity="center" android:paddingLeft="14dp" android:paddingRight="14dp" android:text="登录" android:textColor="#F4DE4A" android:textSize="17sp" /> </LinearLayout> android:background="@drawable/ic_login_bg_w" app:ratio="1.024"> <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="28dp"> android:layout_height="match_parent"> <TextView android:id="@+id/tv_register" <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="注册帐号" android:textColor="#FFE84D" android:textSize="11sp" /> android:layout_gravity="center_horizontal|bottom" android:layout_marginBottom="80dp"> <LinearLayout android:id="@+id/ll_login_qq" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:orientation="vertical"> <TextView android:id="@+id/tv_forget_pwd" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:text="忘记密码" android:textColor="#FFE84D" android:textSize="11sp" /> <ImageView android:layout_width="55dp" android:layout_height="55dp" android:src="@drawable/img_qq"></ImageView> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.5dp" android:drawablePadding="6dp" android:gravity="center_horizontal" android:padding="4dp" android:text="QQ登录" android:textColor="@color/login_login_name_text_color" android:textSize="12sp" /> </LinearLayout> <LinearLayout android:id="@+id/ll_login_wx" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="58dp" android:gravity="center_horizontal" android:orientation="vertical"> <ImageView android:layout_width="55dp" android:layout_height="55dp" android:src="@drawable/img_wx"></ImageView> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.5dp" android:drawablePadding="6dp" android:gravity="center_horizontal" android:padding="4dp" android:text="微信登录" android:textColor="@color/login_login_name_text_color" android:textSize="12sp" /> </LinearLayout> </LinearLayout> </FrameLayout> </com.lcjian.library.widget.RatioLayout> </LinearLayout> </LinearLayout> <LinearLayout android:id="@+id/ll_login_content" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginLeft="50dp" android:layout_marginTop="120dp" android:layout_marginRight="50dp" android:focusable="true" android:focusableInTouchMode="true" android:orientation="vertical" android:visibility="visible"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="50dp" android:layout_marginRight="50dp" android:orientation="vertical" android:paddingBottom="20dp"> android:layout_marginTop="15dp" android:background="@drawable/shape_login_input_bg" android:gravity="center_vertical" android:orientation="horizontal" android:paddingLeft="20dp" android:paddingTop="12dp" android:paddingRight="20dp" android:paddingBottom="12dp"> <LinearLayout <ImageView android:layout_width="wrap_content" android:layout_height="18dp" android:src="@drawable/icon_login_account"></ImageView> <EditText android:id="@+id/et_name" style="@style/loginInputStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:paddingLeft="18dp" android:paddingRight="18dp"> <View android:layout_width="0dp" android:layout_height="1dp" android:layout_weight="1" android:background="#B3B8D3"></View> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:text="第三方账号登录" android:textColor="#ffb3b8d3" android:textSize="11sp" /> <View android:layout_width="0dp" android:layout_height="1dp" android:layout_weight="1" android:background="#B3B8D3"></View> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginTop="32dp"> <LinearLayout android:id="@+id/ll_login_qq" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_horizontal" android:orientation="vertical"> <ImageView android:layout_width="45dp" android:layout_height="45dp" android:src="@drawable/img_qq"></ImageView> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.5dp" android:drawablePadding="6dp" android:gravity="center_horizontal" android:padding="4dp" android:text="QQ登录" android:textColor="#C5C5C5" android:textSize="9sp" /> </LinearLayout> <LinearLayout android:id="@+id/ll_login_wx" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="48dp" android:gravity="center_horizontal" android:orientation="vertical"> <ImageView android:layout_width="45dp" android:layout_height="45dp" android:src="@drawable/img_wx"></ImageView> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="7.5dp" android:drawablePadding="6dp" android:gravity="center_horizontal" android:padding="4dp" android:text="微信登录" android:textColor="#C5C5C5" android:textSize="9sp" /> </LinearLayout> </LinearLayout> android:layout_marginLeft="18dp" android:background="@null" android:digits="@string/rule_email" android:hint="请输入账户邮箱" android:inputType="textEmailAddress" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginTop="10dp" android:gravity="center_horizontal" android:layout_marginTop="15dp" android:background="@drawable/shape_login_input_bg" android:gravity="center_vertical" android:orientation="horizontal" android:paddingLeft="20dp" android:paddingTop="12dp" android:paddingRight="20dp" android:paddingBottom="12dp"> <ImageView android:layout_width="wrap_content" android:layout_height="18dp" android:src="@drawable/icon_login_password"></ImageView> <EditText android:id="@+id/et_pwd" style="@style/loginInputStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="18dp" android:background="@null" android:digits="@string/rule_password" android:hint="请输入您的密码" android:inputType="textPassword" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="32dp" android:orientation="horizontal"> <CheckBox android:visibility="gone" android:id="@+id/cb_user_agreement" android:layout_width="15dp" android:layout_height="15dp" android:layout_gravity="center_vertical" android:background="@drawable/selector_user_agreement_checkbox" android:button="@null" android:checked="true" android:gravity="center" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="6.5dp" android:text="登录即表示同意" android:textColor="#B3B8D3" android:textSize="11sp" /> android:id="@+id/tv_login" android:layout_width="match_parent" <TextView android:id="@+id/tv_user_agreement" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/user_agreement" android:textColor="#51B3FF" android:textSize="11sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="、" android:textColor="#B3B8D3" android:textSize="11sp" /> <TextView android:id="@+id/tv_privacy_policy" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/privacy_policy" android:textColor="#51B3FF" android:textSize="11sp" /> android:layout_height="44dp" android:background="@drawable/shape_login_btn" android:gravity="center" android:paddingLeft="14dp" android:paddingRight="14dp" android:text="登录" android:textColor="#F4DE4A" android:textSize="17sp" /> </LinearLayout> <FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="28dp"> <TextView android:id="@+id/tv_register" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="注册帐号" android:textColor="@color/login_other_login_text_color" android:textSize="11sp" /> <TextView android:id="@+id/tv_forget_pwd" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:text="忘记密码" android:textColor="@color/login_other_login_text_color" android:textSize="11sp" /> </FrameLayout> </LinearLayout> </ScrollView> </LinearLayout> </ScrollView> <TextView android:padding="10dp" android:id="@+id/tv_other_login" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginBottom="53dp" android:text="其他登录方式" android:textColor="@color/login_other_login_text_color" android:textSize="12sp" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_marginBottom="18dp" android:gravity="center_horizontal" android:orientation="horizontal"> <CheckBox android:id="@+id/cb_user_agreement" android:layout_width="15dp" android:layout_height="15dp" android:layout_gravity="center_vertical" android:background="@drawable/selector_user_agreement_checkbox" android:button="@null" android:checked="true" android:gravity="center" android:visibility="gone" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="6.5dp" android:text="登录即表示同意" android:textColor="#B3B8D3" android:textSize="11sp" /> <TextView android:id="@+id/tv_user_agreement" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/user_agreement" android:textColor="@color/login_protocol_highlight_text_color" android:textSize="11sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="、" android:textColor="@color/login_protocol_text_color" android:textSize="11sp" /> <TextView android:id="@+id/tv_privacy_policy" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/privacy_policy" android:textColor="@color/login_protocol_highlight_text_color" android:textSize="11sp" /> </LinearLayout> </FrameLayout> </LinearLayout> </LinearLayout> BuWanVideo/res/layout/act_phone_login.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/theme" android:background="@color/page_content_bg_color" android:orientation="vertical"> <include layout="@layout/view_status_bar" /> @@ -22,7 +22,7 @@ android:gravity="center_vertical" android:padding="8dp" android:text="返回" android:textColor="@color/white" android:textColor="@color/page_title_text_color" android:textSize="16sp" /> <TextView @@ -33,7 +33,7 @@ android:paddingTop="6dp" android:paddingBottom="6dp" android:text="注册" android:textColor="@color/white" android:textColor="@color/page_title_text_color" android:textSize="20sp" /> </FrameLayout> @@ -164,7 +164,7 @@ android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:text="@string/user_agreement" android:textColor="@color/blue1" /> android:textColor="@color/login_protocol_highlight_text_color" /> </LinearLayout> @@ -180,7 +180,7 @@ android:layout_marginTop="10dp" android:padding="5dp" android:text="本机号码一键登录" android:textColor="#FFE84D" android:textColor="@color/login_other_login_text_color" android:textSize="11sp"> BuWanVideo/res/layout/activity_feedback.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/content_bg_color" android:background="@color/page_bg_color" android:orientation="vertical"> <include layout="@layout/view_activity_top_navbar"></include> BuWanVideo/res/layout/activity_follow.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="#3C3C3C" android:background="@color/page_bg_color" android:orientation="vertical"> <include layout="@layout/view_activity_top_navbar"></include> @@ -12,7 +12,7 @@ android:layout_height="0dp" android:layout_weight="1"> <com.lcjian.library.util.RefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_follow_activity" android:layout_width="match_parent" android:layout_height="wrap_content" @@ -27,7 +27,7 @@ android:background="@color/transparent" android:divider="@null" android:dividerHeight="5dp"></ListView> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> <LinearLayout android:id="@+id/ll_no_login" @@ -48,7 +48,7 @@ android:layout_marginTop="12dp" android:gravity="center" android:text="登录后,系统将同步你关注的剧集,\n并为你呈现更新提示。" android:textColor="#ffffffff" android:textColor="@color/list_empty_default_text_color" android:textSize="15sp" /> <TextView @@ -85,7 +85,7 @@ android:layout_marginTop="12dp" android:gravity="center" android:text="看视频时添加关注\n就能更快查看到最新的视频哦!" android:textColor="#ffffffff" android:textColor="@color/list_empty_default_text_color" android:textSize="15sp" /> </LinearLayout> </FrameLayout> BuWanVideo/res/layout/activity_forget_pwd.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/page_content_bg_color" android:orientation="vertical"> <include layout="@layout/view_status_bar" /> @@ -9,8 +10,7 @@ <FrameLayout android:layout_width="match_parent" android:layout_height="48dp" android:background="@color/top_bar_color"> android:layout_height="48dp"> <TextView android:id="@+id/tv_back" @@ -22,7 +22,7 @@ android:gravity="center_vertical" android:padding="8dp" android:text="返回" android:textColor="@color/white" android:textColor="@color/page_title_text_color" android:textSize="16sp" /> <TextView @@ -32,7 +32,7 @@ android:paddingTop="6dp" android:paddingBottom="6dp" android:text="忘记密码" android:textColor="@color/white" android:textColor="@color/page_title_text_color" android:textSize="20sp" /> </FrameLayout> @@ -40,7 +40,7 @@ <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/theme" android:background="@color/page_content_bg_color" android:paddingLeft="47dp" android:paddingRight="47dp"> @@ -71,13 +71,13 @@ <EditText android:id="@+id/et_email" style="@style/loginInputStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="18dp" android:digits="@string/rule_email" android:hint="请输入注册时邮箱" android:inputType="textEmailAddress" style="@style/loginInputStyle" /> android:inputType="textEmailAddress" /> </LinearLayout> <LinearLayout @@ -96,14 +96,14 @@ <EditText android:id="@+id/et_verfication_code" style="@style/loginInputStyle" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginLeft="18dp" android:layout_weight="1" android:digits="@string/rule_password" android:hint="请输入验证码" android:inputType="textPassword" style="@style/loginInputStyle" /> android:inputType="textPassword" /> <TextView android:id="@+id/tv_obtain_verfication_code" @@ -139,13 +139,13 @@ <EditText android:id="@+id/et_pwd" style="@style/loginInputStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="18dp" android:digits="@string/rule_password" android:hint="输入新密码" android:inputType="textPassword" style="@style/loginInputStyle" /> android:inputType="textPassword" /> </LinearLayout> <TextView BuWanVideo/res/layout/activity_goods_review.xml
@@ -14,7 +14,7 @@ <include layout="@layout/navigation_top_bar" /> <com.lcjian.library.util.RefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_review_goods" android:layout_width="match_parent" android:layout_height="0dp" @@ -25,7 +25,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:divider="@null"></ListView> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> </LinearLayout> <ImageView BuWanVideo/res/layout/activity_person_info.xml
@@ -2,40 +2,10 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#4C4C4C" android:background="@color/page_bg_color" android:orientation="vertical"> <include layout="@layout/view_status_bar" /> <FrameLayout android:layout_width="match_parent" android:layout_height="48dp" android:background="@color/top_bar_color"> <TextView android:id="@+id/tv_back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:drawableLeft="@drawable/ic_back_two" android:drawablePadding="3dp" android:gravity="center_vertical" android:padding="8dp" android:text="返回" android:textColor="@color/white" android:textSize="16sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:paddingTop="6dp" android:paddingBottom="6dp" android:text="个人资料" android:textColor="@color/white" android:textSize="20sp" /> </FrameLayout> <include layout="@layout/view_activity_top_navbar" /> <ScrollView android:layout_width="match_parent" BuWanVideo/res/layout/activity_register.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/theme" android:background="@color/page_content_bg_color" android:orientation="vertical"> <include layout="@layout/view_status_bar" /> @@ -21,7 +21,7 @@ android:gravity="center_vertical" android:padding="8dp" android:text="返回" android:textColor="@color/white" android:textColor="@color/page_title_text_color" android:textSize="16sp" /> <TextView @@ -31,7 +31,7 @@ android:paddingTop="6dp" android:paddingBottom="6dp" android:text="注册" android:textColor="@color/white" android:textColor="@color/page_title_text_color" android:textSize="20sp" /> </FrameLayout> @@ -194,7 +194,7 @@ android:layout_height="wrap_content" android:layout_marginLeft="6.5dp" android:text="注册即表示同意" android:textColor="#B3B8D3" android:textColor="@color/login_protocol_text_color" android:textSize="11sp" /> <TextView @@ -202,14 +202,14 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/user_agreement" android:textColor="#51B3FF" android:textColor="@color/login_protocol_highlight_text_color" android:textSize="11sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="、" android:textColor="#B3B8D3" android:textColor="@color/login_protocol_text_color" android:textSize="11sp" /> <TextView @@ -217,7 +217,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/privacy_policy" android:textColor="#51B3FF" android:textColor="@color/login_protocol_highlight_text_color" android:textSize="11sp" /> </LinearLayout> BuWanVideo/res/layout/activity_splash.xml
@@ -3,7 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#010005" android:background="@color/page_content_bg_color" android:orientation="vertical"> <include layout="@layout/view_status_bar" /> @@ -24,35 +24,11 @@ android:layout_height="match_parent" android:orientation="vertical"> <com.lcjian.library.widget.RatioLayout <ImageView android:id="@+id/iv_bg" android:layout_width="match_parent" android:layout_height="wrap_content" app:ratio="0.8333"> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="centerCrop" android:src="@drawable/ic_splash_top"></ImageView> </com.lcjian.library.widget.RatioLayout> <View android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="2"></View> <com.lcjian.library.widget.RatioLayout android:layout_width="match_parent" android:layout_height="wrap_content" app:ratio="0.6916"> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="centerCrop" android:src="@drawable/ic_splash_bottom"></ImageView> </com.lcjian.library.widget.RatioLayout> android:layout_height="match_parent" android:scaleType="matrix"></ImageView> </LinearLayout> @@ -62,7 +38,6 @@ android:id="@+id/fl_splash_ad" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center"> @@ -70,32 +45,17 @@ <LinearLayout android:id="@+id/fl_input" android:layout_width="60dp" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_height="34dp" android:layout_gravity="top|right" android:layout_marginTop="20dp" android:layout_marginRight="20dp" android:background="@drawable/shape_splash_ad" android:gravity="center" android:orientation="horizontal" android:paddingLeft="20dp" android:paddingRight="20dp" android:visibility="invisible"> <TextView android:id="@+id/ad_close_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" android:padding="2dp" android:text="5" android:textColor="@color/white" android:textSize="14sp" android:visibility="visible" /> <View android:layout_width="1dp" android:layout_height="10dp" android:layout_gravity="center_vertical" android:background="@color/white" /> <TextView android:id="@+id/ad_input" @@ -103,10 +63,25 @@ android:layout_height="wrap_content" android:maxLines="1" android:padding="2dp" android:text="进入" android:text="跳过" android:textColor="@color/white" android:textSize="14sp" android:visibility="visible" /> <TextView android:id="@+id/ad_close_time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="2dp" android:maxLines="1" android:padding="2dp" android:text="5" android:textColor="@color/white" android:textSize="14sp" android:visibility="visible" /> </LinearLayout> </FrameLayout> @@ -118,9 +93,9 @@ android:padding="15dp"> <ImageView android:id="@+id/iv_logo" android:layout_width="27dp" android:layout_height="27dp"></ImageView> android:layout_width="28dp" android:layout_height="28dp" android:src="@drawable/ic_launcher"></ImageView> <ImageView android:layout_width="wrap_content" BuWanVideo/res/layout/activity_video_player.xml
@@ -2,7 +2,7 @@ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/theme"> android:background="@color/page_content_bg_color"> <LinearLayout android:id="@+id/ll_container" BuWanVideo/res/layout/activity_watch_history.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="#3C3C3C" android:background="@color/page_bg_color" android:orientation="vertical"> <include layout="@layout/view_activity_top_navbar"></include> @@ -17,7 +17,7 @@ android:id="@+id/ll_recent_bottom" android:layout_width="match_parent" android:layout_height="43dp" android:background="#5C5C5C" android:background="@color/page_content_bg_color" android:gravity="center_vertical" android:orientation="horizontal" android:visibility="visible"> @@ -29,7 +29,7 @@ android:layout_weight="1" android:background="@null" android:text="@string/select_all" android:textColor="@color/white" android:textColor="@color/item_title_text_color" android:textSize="14sp" /> <View @@ -45,7 +45,7 @@ android:layout_weight="1" android:background="@null" android:text="@string/delete" android:textColor="@color/white" android:textColor="@color/item_title_text_color" android:textSize="14sp" /> </LinearLayout> BuWanVideo/res/layout/activty_live_category.xml
@@ -6,7 +6,7 @@ <include layout="@layout/view_activity_top_navbar"></include> <com.lcjian.library.util.RefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_live_category" android:layout_width="wrap_content" android:layout_height="wrap_content"> @@ -15,6 +15,6 @@ android:id="@+id/lv_live_category" android:layout_width="wrap_content" android:layout_height="wrap_content"></ListView> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> </LinearLayout> BuWanVideo/res/layout/browser_fengxing_activity.xml
@@ -3,7 +3,7 @@ android:id="@+id/ll_all" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/theme" android:background="@color/page_content_bg_color" android:orientation="vertical"> <include layout="@layout/view_status_bar" /> BuWanVideo/res/layout/category_fragment.xml
@@ -12,7 +12,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content"></FrameLayout> <android.support.v4.widget.SwipeRefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/ptsv_container" android:layout_width="match_parent" android:layout_height="0dp" @@ -28,6 +28,6 @@ android:numColumns="3" android:paddingBottom="10dp" android:verticalSpacing="15dp" /> </android.support.v4.widget.SwipeRefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> </LinearLayout> BuWanVideo/res/layout/category_star.xml
@@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> <com.lcjian.library.util.RefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" <com.weikou.beibeivideo.widget.MySwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rl_starView" android:layout_width="match_parent" android:layout_height="match_parent" > @@ -14,4 +14,4 @@ android:verticalSpacing="1dp" > </ListView> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> BuWanVideo/res/layout/category_unique.xml
@@ -1,10 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:background="@color/theme" android:background="@color/page_content_bg_color" android:layout_height="match_parent"> <com.lcjian.library.util.RefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_unique_ptrlv" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -14,6 +14,6 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:divider="@null"></ListView> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> </FrameLayout> BuWanVideo/res/layout/fragment_cate_recommend.xml
@@ -3,9 +3,9 @@ android:id="@+id/rl_cate_recommend" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/theme"> android:background="@color/page_content_bg_color"> <android.support.v4.widget.SwipeRefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_cate_recommed" android:descendantFocusability="blocksDescendants" android:layout_width="match_parent" @@ -15,5 +15,5 @@ android:id="@+id/rv_category" android:layout_width="match_parent" android:layout_height="match_parent"></android.support.v7.widget.RecyclerView> </android.support.v4.widget.SwipeRefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> </FrameLayout> BuWanVideo/res/layout/fragment_discover.xml
@@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> <com.lcjian.library.util.RefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" <com.weikou.beibeivideo.widget.MySwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/rl_discover" android:layout_width="match_parent" android:layout_height="wrap_content"> @@ -11,4 +11,4 @@ android:background="@color/register_gray" android:divider="@null" android:dividerHeight="8dp"></ListView> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> BuWanVideo/res/layout/fragment_episode.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="@color/theme" android:background="@color/page_content_bg_color" android:orientation="vertical"> <FrameLayout @@ -23,8 +23,8 @@ android:id="@+id/tv_title" android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="#ffefefef" android:textSize="14sp"></TextView> android:textColor="@color/video_detail_name_text_color" android:textSize="17sp"></TextView> <FrameLayout android:layout_width="match_parent" @@ -37,8 +37,8 @@ android:layout_height="wrap_content" android:layout_gravity="left" android:text="评分:9.2" android:textColor="#ff999999" android:textSize="12sp"> android:textColor="@color/video_detail_content_text_color" android:textSize="14sp"> </TextView> @@ -48,8 +48,8 @@ android:layout_height="wrap_content" android:layout_gravity="right" android:text="播放:1.3万次" android:textColor="#ff999999" android:textSize="12sp"> android:textColor="@color/video_detail_content_text_color" android:textSize="14sp"> </TextView> @@ -79,7 +79,7 @@ android:drawablePadding="8dp" android:gravity="center" android:text="来源:爱奇艺" android:textColor="#EFEFEF" android:textColor="@color/video_detail_content_text_color" android:textSize="9sp" /> </LinearLayout> BuWanVideo/res/layout/fragment_follow.xml
@@ -3,7 +3,7 @@ android:layout_width="match_parent" android:layout_height="match_parent"> <com.lcjian.library.util.RefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/sr_follow" android:layout_width="match_parent" android:layout_height="match_parent" @@ -18,7 +18,7 @@ android:background="@color/transparent" android:divider="@null" android:dividerHeight="5dp"></ListView> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> <LinearLayout android:id="@+id/ll_no_login" BuWanVideo/res/layout/fragment_guess_like.xml
@@ -2,9 +2,9 @@ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/theme"> android:background="@color/page_content_bg_color"> <com.lcjian.library.util.RefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_guess_like" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -15,6 +15,6 @@ android:layout_height="match_parent" android:divider="@null" android:dividerHeight="8dp"></ListView> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> </FrameLayout> BuWanVideo/res/layout/fragment_live_girl.xml
@@ -4,7 +4,7 @@ android:layout_height="match_parent" android:orientation="vertical"> <com.lcjian.library.util.RefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_live_girl" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -14,7 +14,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:divider="@null"></ListView> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> </LinearLayout> BuWanVideo/res/layout/fragment_recommend_content.xml
@@ -9,7 +9,7 @@ android:layout_height="1px" android:background="@color/register_gray" /> <com.lcjian.library.util.RefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_recommend_content" android:layout_width="match_parent" android:layout_height="wrap_content"> @@ -22,7 +22,7 @@ android:background="@color/white" android:dividerHeight="1px" android:listSelector="@android:color/transparent"></ListView> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> </LinearLayout> BuWanVideo/res/layout/fragment_search_suggest.xml
@@ -8,7 +8,10 @@ android:id="@+id/rv_suggest" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="18dp" android:layout_marginLeft="18dp" android:layout_marginTop="2dp" android:layout_marginRight="18dp" android:layout_marginBottom="18dp" android:background="#DFDFDF"></android.support.v7.widget.RecyclerView> BuWanVideo/res/layout/item_cate_recommend_top.xml
@@ -36,10 +36,10 @@ </com.lcjian.library.widget.RatioLayout> <TextView android:textColor="#DDDDDD" android:textColor="@color/item_title_text_color" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="15dp" android:layout_marginLeft="10dp" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:drawablePadding="5dp" BuWanVideo/res/layout/item_category_unique_lv.xml
@@ -3,7 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res/com.doudou.ysvideo" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/theme" android:background="@color/page_content_bg_color" android:orientation="vertical"> <com.lcjian.library.widget.RatioLayout BuWanVideo/res/layout/item_exit.xml
@@ -2,9 +2,12 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white" android:layout_height="wrap_content" android:background="@drawable/shape_app_exit_bg" android:orientation="vertical"> <TextView android:layout_width="match_parent" @@ -48,7 +51,6 @@ <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" android:orientation="horizontal"> <TextView BuWanVideo/res/layout/item_follow2.xml
@@ -39,7 +39,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="刘涛" android:textColor="#EFEFEF" android:textColor="@color/follow_title_text_color" android:textSize="15sp" /> <TextView @@ -49,7 +49,7 @@ android:layout_height="wrap_content" android:layout_marginTop="8.5dp" android:text="更新 4天前" android:textColor="#ffefefef" android:textColor="@color/follow_subtitle_text_color" android:textSize="12sp" /> </LinearLayout> @@ -68,7 +68,7 @@ android:paddingRight="12dp" android:paddingBottom="5dp" android:text="已关注" android:textColor="#EFEFEF" android:textColor="@color/follow_btn_text_color" android:textSize="10sp" /> </LinearLayout> BuWanVideo/res/layout/item_guess_like.xml
@@ -3,7 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res/com.doudou.ysvideo" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/theme" android:background="@color/page_content_bg_color" android:orientation="vertical"> <com.lcjian.library.widget.RatioLayout BuWanVideo/res/layout/item_recommend_home_type.xml
@@ -5,8 +5,8 @@ android:layout_height="wrap_content" android:background="@color/transparent" android:orientation="vertical" android:paddingLeft="9dp" android:paddingRight="9dp" android:paddingLeft="8dp" android:paddingRight="8dp" android:paddingBottom="6dp"> <LinearLayout @@ -19,9 +19,9 @@ android:id="@+id/ll_title_item" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingBottom="8dp" android:layout_marginLeft="4dp" android:paddingTop="8dp"> android:paddingTop="8dp" android:paddingBottom="8dp"> <TextView android:id="@+id/tv_category_name" @@ -36,7 +36,6 @@ <TextView android:visibility="gone" android:id="@+id/tv_tag_refresh" android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -52,7 +51,8 @@ android:paddingBottom="5dp" android:text="换一批" android:textColor="@color/item_tag_text_color" android:textSize="10sp" /> android:textSize="10sp" android:visibility="gone" /> <TextView android:id="@+id/tv_more" @@ -78,18 +78,17 @@ android:id="@+id/rv_content" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingLeft="3dp" android:paddingRight="3dp"></android.support.v7.widget.RecyclerView> ></android.support.v7.widget.RecyclerView> <TextView android:layout_gravity="center_horizontal" android:id="@+id/tv_refresh" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_gravity="center_horizontal" android:background="@drawable/shape_item_tag_bg" android:drawableLeft="@drawable/icon_item_refresh" android:drawablePadding="6.5dp" @@ -98,9 +97,9 @@ android:paddingRight="12dp" android:paddingBottom="5dp" android:text="换一批" android:visibility="gone" android:textColor="@color/item_tag_text_color" android:textSize="10sp" /> android:textSize="10sp" android:visibility="gone" /> </LinearLayout> BuWanVideo/res/layout/item_recyclerview.xml
@@ -5,8 +5,11 @@ <android.support.v7.widget.RecyclerView android:id="@+id/rv" android:padding="3dp" android:layout_width="match_parent" android:layout_height="wrap_content"></android.support.v7.widget.RecyclerView> android:layout_height="wrap_content" android:paddingLeft="6dp" android:paddingTop="3dp" android:paddingRight="6dp" android:paddingBottom="3dp"></android.support.v7.widget.RecyclerView> </LinearLayout> BuWanVideo/res/layout/item_star_work.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="@color/theme" android:background="@color/page_content_bg_color" android:orientation="horizontal"> <ImageView BuWanVideo/res/layout/item_video_search_result_album.xml
@@ -5,6 +5,39 @@ android:layout_height="wrap_content" android:orientation="vertical"> <FrameLayout android:id="@+id/ll_nav" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingBottom="10dp"> <TextView android:id="@+id/tv_nav_name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="left|center_vertical" android:layout_marginLeft="3dp" android:text="电视剧" android:textColor="@color/search_nav_highlight_text_color" android:textSize="15sp" /> <TextView android:id="@+id/tv_nav_more" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right|center_vertical" android:drawableRight="@drawable/ic_search_result_nav_in" android:drawablePadding="3.5dp" android:gravity="center" android:text="更多" android:textColor="#666666" android:textSize="12sp" /> </FrameLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content"> @@ -28,21 +61,21 @@ <ImageView android:visibility="gone" android:id="@+id/iv_high" android:layout_width="29dp" android:layout_height="17dp" android:layout_gravity="top|left" android:src="@drawable/icon_high" /> android:src="@drawable/icon_high" android:visibility="gone" /> <ImageView android:visibility="gone" android:id="@+id/iv_vip" android:layout_width="29.5dp" android:layout_height="17.5dp" android:layout_gravity="top|right" android:src="@drawable/icon_video_vip" /> android:src="@drawable/icon_video_vip" android:visibility="gone" /> </FrameLayout> @@ -55,15 +88,38 @@ android:layout_weight="190" android:orientation="vertical"> <TextView android:id="@+id/tv_name" android:layout_width="wrap_content" <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:ellipsize="end" android:maxLines="2" android:text="以家人之名" android:textColor="@color/white" android:textSize="15sp" /> android:layout_marginTop="2dp" android:gravity="bottom" android:orientation="horizontal"> <TextView android:id="@+id/tv_name" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:ellipsize="end" android:maxLines="2" android:text="以家人之名" android:textColor="@color/video_list_title_text_color" android:textSize="15sp" /> <TextView android:id="@+id/tv_score" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:ellipsize="end" android:maxLines="2" android:text="评分:9.2" android:textColor="@color/video_list_subtitle_text_color" android:textSize="8sp" /> </LinearLayout> <TextView android:id="@+id/tv_type" @@ -71,7 +127,7 @@ android:layout_height="wrap_content" android:layout_marginTop="8dp" android:text="2020/电视剧/内地" android:textColor="#ffa3a3a3" android:textColor="@color/video_list_subtitle_text_color" android:textSize="12sp"> @@ -88,12 +144,22 @@ android:layout_height="wrap_content" android:ellipsize="end" android:lines="2" android:text="主演: 谭松韵 / 宋威龙 / 张新成 / 孙铱 / 何瑞贤 / 更多..." android:textColor="#ffa3a3a3" android:textSize="12sp"> android:text="主演: 谭松韵 / 宋威龙 / 张新成 / 孙铱 / 何瑞贤" android:textColor="@color/video_list_subtitle_text_color" android:textSize="12sp" /> </TextView> <TextView android:id="@+id/tv_director" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5dp" android:ellipsize="end" android:lines="2" android:text="导演: 谭松韵 " android:textColor="@color/video_list_subtitle_text_color" android:textSize="12sp" /> <View android:layout_width="1dp" BuWanVideo/res/layout/item_video_search_result_video.xml
@@ -55,7 +55,7 @@ android:ellipsize="end" android:maxLines="3" android:text="琅琊榜" android:textColor="#ffffffff" android:textColor="@color/video_list_title_text_color" android:textSize="15sp" /> @@ -66,7 +66,7 @@ android:layout_height="wrap_content" android:layout_marginTop="2dp" android:text="琅琊榜" android:textColor="#DCDCDC" android:textColor="@color/video_list_subtitle_text_color" android:textSize="14sp" /> BuWanVideo/res/layout/mine_fragment.xml
@@ -119,7 +119,9 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="12dp" android:layout_marginRight="12dp" android:background="@drawable/shape_mine_functions_bg" android:orientation="horizontal"> <LinearLayout BuWanVideo/res/layout/mvideo_activity.xml
@@ -2,7 +2,7 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@color/white" android:background="@color/page_content_bg_color" android:orientation="vertical"> <include layout="@layout/view_status_bar" /> @@ -10,7 +10,7 @@ <LinearLayout android:layout_width="match_parent" android:layout_height="48dp" android:background="@color/top_bar_color" android:background="@color/transparent" android:gravity="center_vertical" android:orientation="horizontal"> @@ -24,11 +24,13 @@ style="@style/TextBuleNormal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:drawableStart="@drawable/ic_back" android:drawableLeft="@drawable/ic_back_two" android:drawablePadding="5dp" android:gravity="center" android:padding="8dp" /> android:padding="8dp" android:textColor="@color/page_title_text_color" /> </FrameLayout> <LinearLayout @@ -90,7 +92,9 @@ android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" /> android:layout_weight="1" android:paddingLeft="4dp" android:paddingRight="4dp" /> <FrameLayout android:id="@+id/fl_mvideosfragment_download_failure" BuWanVideo/res/layout/mvideos_activity.xml
@@ -6,7 +6,7 @@ android:orientation="vertical"> <include layout="@layout/view_activity_top_navbar"></include> <com.lcjian.library.util.RefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_walfare" android:layout_width="match_parent" android:layout_height="0dp" @@ -18,7 +18,7 @@ android:layout_height="match_parent" android:divider="@null" android:dividerHeight="8dp"></ListView> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> <FrameLayout 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="#3C3C3C" android:background="@color/page_bg_color" android:orientation="vertical"> <include layout="@layout/view_activity_top_navbar"></include> @@ -17,7 +17,7 @@ android:layout_height="0dp" android:layout_weight="1"> <com.lcjian.library.util.RefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/srl_favourite" android:layout_width="match_parent" android:layout_height="wrap_content"> @@ -29,7 +29,7 @@ android:divider="@null" android:dividerHeight="1px" /> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> <FrameLayout @@ -55,7 +55,7 @@ android:layout_height="wrap_content" android:layout_marginTop="12dp" android:text="您还没有收藏,快去逛逛吧~" android:textColor="@color/white" android:textColor="@color/list_empty_default_text_color" android:textSize="15sp" /> </LinearLayout> </FrameLayout> BuWanVideo/res/layout/navigation_top_bar.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="@color/top_bar_color" android:background="@color/page_content_bg_color" android:orientation="vertical"> <RelativeLayout @@ -16,13 +16,17 @@ style="@style/TextBuleNormal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:drawableLeft="@drawable/ic_back_two" android:drawablePadding="3dp" android:gravity="center" android:padding="8dp" /> android:paddingLeft="15dp" android:paddingTop="8dp" android:paddingRight="8dp" android:paddingBottom="8dp" android:textColor="@color/page_title_text_color" /> <TextView android:id="@+id/tv_top_bar_left2" @@ -32,10 +36,11 @@ android:layout_centerVertical="true" android:layout_toRightOf="@id/tv_top_bar_left" android:gravity="center" android:paddingBottom="8dp" android:paddingLeft="3dp" android:paddingRight="8dp" android:paddingTop="8dp" android:paddingRight="8dp" android:paddingBottom="8dp" android:textColor="@color/page_title_text_color" android:visibility="gone" /> <TextView @@ -46,7 +51,9 @@ android:layout_centerInParent="true" android:ellipsize="end" android:maxLength="6" android:singleLine="true" /> android:singleLine="true" android:textColor="@color/page_title_text_color" android:textSize="18sp" /> <TextView android:id="@+id/tv_top_bar_right" @@ -56,7 +63,8 @@ android:layout_alignParentEnd="true" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:padding="8dp" /> android:padding="8dp" android:textColor="@color/page_title_text_color" /> </RelativeLayout> </LinearLayout> BuWanVideo/res/layout/recommend_fragment.xml
@@ -23,7 +23,7 @@ android:layout_height="match_parent" android:descendantFocusability="blocksDescendants"> <android.support.v4.widget.SwipeRefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_recommend" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -37,7 +37,7 @@ </android.support.v7.widget.RecyclerView> </android.support.v4.widget.SwipeRefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> <ImageView BuWanVideo/res/layout/search_result_activity.xml
@@ -77,7 +77,7 @@ <include layout="@layout/search_result_top_bar" /> <android.support.v4.widget.SwipeRefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_search_result" android:layout_width="match_parent" android:layout_height="0dp" @@ -89,7 +89,7 @@ android:layout_height="wrap_content" android:paddingLeft="10dp" android:paddingRight="10dp"></android.support.v7.widget.RecyclerView> </android.support.v4.widget.SwipeRefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> <LinearLayout android:id="@+id/ll_empty" @@ -110,7 +110,7 @@ android:layout_height="wrap_content" android:layout_marginTop="12dp" android:text="抱歉,暂未搜索到相关内容..." android:textColor="@color/white"></TextView> android:textColor="@color/list_empty_default_text_color"></TextView> </LinearLayout> BuWanVideo/res/layout/settings_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/content_bg_color" android:background="@color/page_bg_color" android:orientation="vertical"> <include layout="@layout/view_activity_top_navbar"></include> @@ -14,6 +14,7 @@ <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:paddingTop="13dp" android:orientation="vertical"> <RelativeLayout style="@style/settingsItemStyle"> @@ -23,7 +24,6 @@ android:layout_height="wrap_content" android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:gravity="center_vertical" android:orientation="vertical" android:paddingTop="9dp" BuWanVideo/res/layout/specific_detail_fragment.xml
@@ -5,7 +5,7 @@ android:background="@color/theme" android:orientation="vertical"> <android.support.v4.widget.SwipeRefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_specific_detail" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -20,7 +20,7 @@ android:listSelector="@android:color/transparent" android:paddingLeft="10dp" android:paddingRight="10dp"></android.support.v7.widget.RecyclerView> </android.support.v4.widget.SwipeRefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> </LinearLayout> BuWanVideo/res/layout/star_detail_fragment.xml
@@ -6,7 +6,7 @@ <include layout="@layout/star_detail_top" /> <android.support.v4.widget.SwipeRefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_detail" android:layout_width="match_parent" android:layout_height="0dp" @@ -18,6 +18,6 @@ android:layout_height="match_parent" android:divider="@null" android:listSelector="@android:color/transparent"></android.support.v7.widget.RecyclerView> </android.support.v4.widget.SwipeRefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> </LinearLayout> BuWanVideo/res/layout/system_message_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/content_bg_color" android:background="@color/page_bg_color" android:orientation="vertical"> <include layout="@layout/view_activity_top_navbar"></include> @@ -41,7 +41,7 @@ android:layout_height="wrap_content" android:layout_marginTop="22dp" android:text="暂无站内消息" android:textColor="#ffffffff" android:textColor="@color/list_empty_default_text_color" android:textSize="15sp" /> </LinearLayout> BuWanVideo/res/layout/video_detail_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/theme" android:background="@color/page_content_bg_color" android:orientation="vertical"> <include layout="@layout/view_status_bar" /> BuWanVideo/res/layout/video_detail_fragment.xml
@@ -3,7 +3,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center" android:background="@color/theme"> android:background="@color/page_content_bg_color"> <LinearLayout android:id="@+id/ll_video_detail" BuWanVideo/res/layout/video_episode_fragment.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/theme"> android:background="@color/page_content_bg_color"> <ScrollView android:id="@+id/sv_detail" @@ -36,7 +36,7 @@ android:layout_height="wrap_content" android:padding="8dp" android:text="@string/related_video" android:textColor="#DDDDDD" android:textColor="@color/item_title_text_color" android:textSize="16sp" /> <RelativeLayout @@ -74,7 +74,7 @@ android:layout_height="wrap_content" android:padding="8dp" android:text="@string/guess_like" android:textColor="#DDDDDD" android:textColor="@color/item_title_text_color" android:textSize="16sp" /> <RelativeLayout BuWanVideo/res/layout/video_introduction.xml
@@ -74,8 +74,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="4dp" android:textColor="#666666" android:textSize="10sp" /> android:textColor="@color/video_detail_content_text_color" android:textSize="12sp" /> <LinearLayout android:id="@+id/video_introduction_more" @@ -92,7 +92,7 @@ android:layout_height="wrap_content" android:layout_gravity="center" android:textSize="12sp" android:textColor="#999999" android:textColor="@color/video_detail_content_text_color" android:text="查看更多" /> <ImageView BuWanVideo/res/layout/video_review_fragment.xml
@@ -9,7 +9,7 @@ android:layout_height="match_parent" android:orientation="vertical"> <com.lcjian.library.util.RefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_review" android:layout_width="match_parent" android:layout_height="0dp" @@ -20,7 +20,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:dividerHeight="1dp"></ListView> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> <LinearLayout android:id="@+id/tv_review_layout" BuWanVideo/res/layout/videos_activity.xml
@@ -2,12 +2,12 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/theme" android:background="@color/page_content_bg_color" android:orientation="vertical"> <include layout="@layout/category_top_bar" /> <android.support.v4.widget.SwipeRefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_category_video" android:layout_width="match_parent" android:layout_height="0dp" @@ -20,7 +20,7 @@ android:layout_height="match_parent" android:paddingLeft="3dp" android:paddingRight="3dp"></android.support.v7.widget.RecyclerView> </android.support.v4.widget.SwipeRefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> <ImageView android:id="@+id/iv_videosfragment_download_failure" BuWanVideo/res/layout/videos_live_activity.xml
@@ -7,7 +7,7 @@ <include layout="@layout/view_activity_top_navbar"></include> <com.lcjian.library.util.RefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/rl_video" android:layout_width="match_parent" android:layout_height="0dp" @@ -21,7 +21,7 @@ android:dividerHeight="8dp"> </ListView> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> <WebView BuWanVideo/res/layout/watch_history_fragment.xml
@@ -2,10 +2,10 @@ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#3C3C3C"> android:background="@color/page_bg_color"> <com.lcjian.library.util.RefreshLayout <com.weikou.beibeivideo.widget.MySwipeRefreshLayout android:id="@+id/srl_watch_history" android:layout_width="match_parent" android:layout_height="match_parent"> @@ -17,7 +17,7 @@ android:divider="@null" android:dividerHeight="1px" /> </com.lcjian.library.util.RefreshLayout> </com.weikou.beibeivideo.widget.MySwipeRefreshLayout> <FrameLayout android:id="@+id/fl_empty" @@ -42,7 +42,7 @@ android:layout_marginTop="12dp" android:gravity="center" android:text="您目前没有观看记录\n马上去看看吧" android:textColor="#ffffffff" android:textColor="@color/list_empty_default_text_color" android:textSize="15sp" /> </LinearLayout> 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="#5C5C5C" android:background="@color/page_content_bg_color" android:descendantFocusability="blocksDescendants" android:gravity="center_vertical" android:orientation="horizontal"> @@ -64,7 +64,7 @@ android:layout_toRightOf="@id/iv_cover" android:ellipsize="end" android:maxLines="1" android:textColor="@color/white" /> android:textColor="@color/item_title_text_color" /> <TextView android:id="@+id/tv_watch_time" @@ -78,7 +78,7 @@ android:layout_toRightOf="@id/iv_cover" android:ellipsize="end" android:maxLines="1" android:textColor="@color/white" /> android:textColor="@color/item_title_text_color" /> <!-- <FrameLayout android:layout_width="wrap_content" BuWanVideo/res/values/colors.xml
@@ -43,7 +43,7 @@ <color name="colorPrimary">#3F51B5</color> <color name="colorPrimaryDark">#303F9F</color> <color name="colorAccent">#FF4081</color> <color name="colorAccent">#0052f6</color> <color name="colorLoading">#0052f6</color> @@ -57,8 +57,11 @@ <color name="page_bg_color">#F3F3F3</color> <color name="page_status_bar_color">#FFFFFF</color> <color name="page_header_bg_color">#FFFFFF</color> <color name="page_title_text_color">#FFFFFF</color> <color name="page_title_text_color">#000000</color> <color name="page_content_bg_color">#FFFFFF</color> <!-- 页面下拉刷新的颜色 --> <color name="page_refresh_color">#159FFF</color> <!-- 列表为空的提示 --> <color name="list_empty_default_text_color">#666666</color> @@ -90,9 +93,11 @@ <color name="search_input_text_color">#000000</color> <color name="search_input_hint_text_color">#787878</color> <color name="search_nav_highlight_text_color">#0051F5</color> <!-- 我的页面 --> <color name="mine_item_title_text_color">#666666</color> <color name="mine_item_container_bg_color">#EBEBEB</color> <color name="mine_item_container_bg_color">#FFFFFF</color> <color name="mine_nickname_text_color">#0052F6</color> <!--视频颜色 --> @@ -100,10 +105,37 @@ <color name="video_list_subtitle_text_color">#9FA5B3</color> <color name="video_list_tag_text_color">#C0C0C0</color> <color name="video_list_score_text_color">#f8dc9f</color> <color name="video_episode_text_color">#232323</color> <color name="video_episode_bg_color">#EFEFEF</color> <color name="btn_bg_color">#0052F6</color> <!--登录页 --> <color name="login_other_login_text_color">#0052F6</color> <color name="login_login_name_text_color">#999999</color> <color name="login_protocol_highlight_text_color">#51B3FF</color> <color name="login_protocol_text_color">#B3B8D3</color> <color name="login_input_text_color">#777777</color> <color name="login_input_bg_color">#DFDFDF</color> <color name="person_info_title_text_color">#333333</color> <color name="person_info_content_text_color">#959595</color> <color name="setting_subtitle_text_color">#666666</color> <color name="setting_content_text_color">#959595</color> <color name="follow_title_text_color">#000000</color> <color name="follow_subtitle_text_color">#999999</color> <color name="follow_btn_text_color">#F4DE4A</color> <color name="follow_btn_bg_color">#0052F6</color> <color name="video_detail_name_text_color">#000000</color> <color name="video_detail_content_text_color">#999999</color> <color name="video_detail_resource_text_color">#666666</color> <color name="video_detail_resource_bg_color">#F0F0F0</color> </resources> BuWanVideo/res/values/dimens.xml
@@ -16,7 +16,7 @@ <dimen name="video_list_tag">11sp</dimen> <dimen name="mine_item_name">12sp</dimen> <!--专辑标题 --> <dimen name="video_album_title">17sp</dimen> <dimen name="video_album_title">16sp</dimen> </resources> BuWanVideo/res/values/styles.xml
@@ -65,14 +65,12 @@ <item name="android:textSize">10sp</item> </style> <!-- Application theme. --> <style name="AppTheme" parent="AppBaseTheme"> <!-- All customizations that are NOT specific to a particular API-level can go here. --> <!--半透明 已经删除--> <!--<item name="android:windowIsTranslucent">true</item>--> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/white</item> <item name="colorAccent">@color/colorAccent</item> <item name="android:windowBackground">@color/bg</item> <item name="android:windowNoTitle">true</item> <item name="android:navigationBarColor">@color/page_status_bar_color</item> <item name="android:windowTranslucentStatus">false</item> </style> <style name="AppTabTheme" parent="AppTheme"> @@ -284,14 +282,14 @@ <item name="android:gravity">center</item> <item name="android:textSize">12sp</item> <item name="android:layout_marginLeft">11dp</item> <item name="android:textColor">#232323</item> <item name="android:textColor">@color/video_episode_text_color</item> </style> <style name="loginInputStyle"> <item name="android:background">@null</item> <item name="android:singleLine">true</item> <item name="android:textColor">#ffc5c5c5</item> <item name="android:textColor">@color/login_input_text_color</item> <item name="android:textCursorDrawable">@drawable/shape_login_input_cursor</item> <item name="android:textSize">14sp</item> </style> @@ -304,7 +302,7 @@ <item name="android:paddingTop">19dp</item> <item name="android:paddingLeft">19dp</item> <item name="android:paddingRight">19dp</item> <item name="android:background">#5C5C5C</item> <item name="android:background">@color/page_content_bg_color</item> <item name="android:gravity">center_vertical</item> </style> @@ -314,7 +312,7 @@ <item name="android:layout_height">wrap_content</item> <item name="android:layout_width">wrap_content</item> <item name="android:layout_gravity">center_vertical</item> <item name="android:textColor">#FFFFFF</item> <item name="android:textColor">@color/person_info_title_text_color</item> <item name="android:textSize">16dp</item> </style> @@ -323,7 +321,7 @@ <item name="android:layout_height">wrap_content</item> <item name="android:layout_width">wrap_content</item> <item name="android:layout_gravity">center_vertical</item> <item name="android:textColor">#FFFFFF</item> <item name="android:textColor">@color/person_info_content_text_color</item> <item name="android:textSize">14dp</item> <item name="android:drawableRight">@drawable/ic_input</item> <item name="android:drawablePadding">13.5dp</item> @@ -349,7 +347,7 @@ <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:background">@color/page_content_bg_color</item> <item name="android:gravity">center_vertical</item> <item name="android:paddingLeft">17dp</item> <item name="android:paddingRight">16dp</item> @@ -360,14 +358,14 @@ <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> <item name="android:textColor">@color/item_title_text_color</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> <item name="android:textColor">@color/setting_subtitle_text_color</item> </style> @@ -375,7 +373,7 @@ <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> <item name="android:textColor">@color/setting_content_text_color</item> </style> BuWanVideo/src/com/weikou/beibeivideo/BeibeiVideoApplication.java
@@ -1,11 +1,15 @@ package com.weikou.beibeivideo; import android.app.Activity; import android.app.ActivityManager; import android.app.Application; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.multidex.MultiDex; @@ -31,6 +35,7 @@ import com.umeng.commonsdk.UMConfigure; import com.umeng.socialize.PlatformConfig; import com.umeng.socialize.UMShareAPI; import com.weikou.beibeivideo.ui.SplashActivity; import com.weikou.beibeivideo.ui.push.PushOpenClickActivity; import com.weikou.beibeivideo.util.BeibeiConstant; import com.weikou.beibeivideo.util.CrashHandler; @@ -118,6 +123,7 @@ crashHandler.init(getApplicationContext()); } this.registerActivityLifecycleCallbacks(new MyActivityLifecycleCallbacks()); application = this; MultiDex.install(this); //友盟初始化 @@ -178,7 +184,7 @@ public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { } },true); }, true); } }); @@ -268,4 +274,61 @@ private void initCSJAd() { TTAdManagerHolder.init(this); } class MyActivityLifecycleCallbacks implements Application.ActivityLifecycleCallbacks { private int mFinalCount; @Override public void onActivityCreated(Activity activity, Bundle savedInstanceState) { } @Override public void onActivityStarted(Activity activity) { mFinalCount++; //如果mFinalCount ==1,说明是从后台到前台 if (mFinalCount == 1) { Log.e(TAG, "应用从后台切换到前台"); // 进入前台 改为热启动 //判断当前activity ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE); ComponentName cn = am.getRunningTasks(1).get(0).topActivity; if (!cn.getClassName().equalsIgnoreCase(SplashActivity.class.getName())) { Log.i(TAG, "应当展示开屏广告"); } } } @Override public void onActivityResumed(Activity activity) { } @Override public void onActivityPaused(Activity activity) { } @Override public void onActivityStopped(Activity activity) { mFinalCount--; //如果mFinalCount ==0,说明是前台到后台 if (mFinalCount == 0) { Log.e(TAG, "应用从前台切换到后台"); } } @Override public void onActivitySaveInstanceState(Activity activity, Bundle outState) { } @Override public void onActivityDestroyed(Activity activity) { } } } BuWanVideo/src/com/weikou/beibeivideo/entity/VideoInfo.java
@@ -85,6 +85,21 @@ @Expose private int definition; //导演 @Expose private String director; @Expose private VideoAlbumMoreInfo albumMoreInfo; public VideoAlbumMoreInfo getAlbumMoreInfo() { return albumMoreInfo; } public void setAlbumMoreInfo(VideoAlbumMoreInfo albumMoreInfo) { this.albumMoreInfo = albumMoreInfo; } public int getDefinition() { return definition; } @@ -377,4 +392,33 @@ public void setSubTitle(String subTitle) { this.subTitle = subTitle; } public String getDirector() { return director; } public void setDirector(String director) { this.director = director; } public static class VideoAlbumMoreInfo { private String name; private int jumpPosition; public String getName() { return name; } public void setName(String name) { this.name = name; } public int getJumpPosition() { return jumpPosition; } public void setJumpPosition(int jumpPosition) { this.jumpPosition = jumpPosition; } } } BuWanVideo/src/com/weikou/beibeivideo/entity/video/VideoContent.java
@@ -13,6 +13,7 @@ private VideoInfo video; public static VideoContent createVideoContent(VideoInfo video) { VideoContent vc = new VideoContent(); vc.setType(TYPE_VIDEO); BuWanVideo/src/com/weikou/beibeivideo/ui/BaseActivity.java
@@ -3,6 +3,7 @@ import android.app.Dialog; import android.content.res.Configuration; import android.content.res.Resources; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.support.v4.app.FragmentActivity; @@ -14,6 +15,9 @@ import com.umeng.analytics.MobclickAgent; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.ui.dialog.LoadingDialogUtil; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import java.lang.reflect.Field; //import com.umeng.message.PushAgent; public class BaseActivity extends FragmentActivity { @@ -26,31 +30,43 @@ 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); // } if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { try { Class decorViewClazz = Class.forName("com.android.internal.policy.DecorView"); Field field = decorViewClazz.getDeclaredField("mSemiTransparentStatusBarColor"); field.setAccessible(true); field.setInt(getWindow().getDecorView(), Color.TRANSPARENT); //改为透明 } catch (Exception e) { } } } protected void initStatusBar() { /* * 计算状态栏高度并设置 */ 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); } LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, result); findViewById(R.id.v_status_bar).setLayoutParams(params); findViewById(R.id.v_status_bar).setVisibility(View.VISIBLE); } else { findViewById(R.id.v_status_bar).setVisibility(View.GONE); } // /* // * 计算状态栏高度并设置 // */ // 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); // } // LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, // result); // findViewById(R.id.v_status_bar).setLayoutParams(params); // findViewById(R.id.v_status_bar).setVisibility(View.VISIBLE); // } else { // findViewById(R.id.v_status_bar).setVisibility(View.GONE); // } TopStatusSettings.setStatusViewAndDeepColor(this); } @Override BuWanVideo/src/com/weikou/beibeivideo/ui/SplashActivity.java
@@ -9,6 +9,8 @@ import android.content.SharedPreferences; import android.content.pm.ActivityInfo; import android.content.pm.PackageManager; import android.graphics.Bitmap; import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.AsyncTask; import android.os.Build; @@ -24,6 +26,9 @@ import com.bumptech.glide.Glide; import com.google.gson.Gson; import com.lcjian.library.util.ScreenUtils; import com.lcjian.library.util.common.BitmapUtils; import com.lcjian.library.util.common.DrawableUtils; import com.lcjian.library.util.common.StringUtils; import com.lcjian.library.util.glide.GlideRoundTransform; import com.weikou.beibeivideo.BasicTextHttpResponseHandler; @@ -43,6 +48,7 @@ import com.weikou.beibeivideo.util.ad.CSJConstant; import com.weikou.beibeivideo.util.ad.GDTConstant; import com.weikou.beibeivideo.util.ad.SplashAdUtil; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import org.apache.http.Header; import org.json.JSONObject; @@ -58,10 +64,9 @@ private ViewGroup vg_ad; private ViewGroup vg_input; private ImageView iv_bg; private TextView ad_close_time; private ImageView iv_logo; private static String TAG = "SplashActivity"; @@ -81,14 +86,12 @@ // } setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); setContentView(R.layout.activity_splash); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); vg_ad = findViewById(R.id.fl_splash_ad); vg_input = findViewById(R.id.fl_input); ad_close_time = findViewById(R.id.ad_close_time); iv_logo = findViewById(R.id.iv_logo); Glide.with(getApplicationContext()).load(R.drawable.ic_launcher).transform(new GlideRoundTransform(getApplicationContext(), 5)).into(iv_logo); iv_bg = findViewById(R.id.iv_bg); SharedPreferences preferences = getSharedPreferences("link_page", Context.MODE_PRIVATE); @@ -109,6 +112,15 @@ // new BannerView(SplashActivity.this, ADSize.BANNER, BeibeiConstant.GDT_ID, BeibeiConstant.GDT_PLAYER_DETAIL); //弹用户协议框 showProtocol(); //设置背景图片 Drawable drawable = getResources().getDrawable(R.drawable.ic_splash_bg); Bitmap bitmap = DrawableUtils.drawableToBitmap(drawable); int width = ScreenUtils.getScreenWidth(this); float scaleRate = width * 1.0f / bitmap.getWidth(); Bitmap bitmap1 = BitmapUtils.scaleImage(bitmap, scaleRate, scaleRate); iv_bg.setImageBitmap(bitmap1); } BuWanVideo/src/com/weikou/beibeivideo/ui/baidu/BaiDuNewsFragment.java
@@ -175,7 +175,9 @@ @Override public Fragment getItem(int position) { Fragment fragment = BaiDuCPUContentFragment.newInstance(mlist.get(position), BaiDuCPUContentFragment.VIEW_TYPE_NEWS, AdUtil.getAdPid(getContext(), AdPositionEnum.splash) != null, new BaiduCPUContentAdapter.IBaiDuCPUItemClickListener() { int refreshColor = getResources().getColor(com.weikou.beibeivideo.R.color.page_refresh_color); Fragment fragment = BaiDuCPUContentFragment.newInstance(mlist.get(position), BaiDuCPUContentFragment.VIEW_TYPE_NEWS, AdUtil.getAdPid(getContext(), AdPositionEnum.splash) != null, refreshColor, new BaiduCPUContentAdapter.IBaiDuCPUItemClickListener() { @Override public void onClick(IBasicCPUData nrAd) { BuWanVideo/src/com/weikou/beibeivideo/ui/baidu/BaiDuVideosFragment.java
@@ -163,10 +163,11 @@ @Override public Fragment getItem(int position) { int refreshColor = getResources().getColor(com.weikou.beibeivideo.R.color.page_refresh_color); if (mlist.get(position).getId() == 1085) return BaiDuShortVideosFragment.newInstance(mlist.get(position)); else return BaiDuCPUContentFragment.newInstance(mlist.get(position), mlist.get(position).getId() == 1085 ? BaiDuCPUContentFragment.VIEW_TYPE_SMALLVIDEO : BaiDuCPUContentFragment.VIEW_TYPE_VIDEO, AdUtil.getAdPid(getContext(), AdPositionEnum.splash) != null, new BaiduCPUContentAdapter.IBaiDuCPUItemClickListener() { return BaiDuCPUContentFragment.newInstance(mlist.get(position), mlist.get(position).getId() == 1085 ? BaiDuCPUContentFragment.VIEW_TYPE_SMALLVIDEO : BaiDuCPUContentFragment.VIEW_TYPE_VIDEO, AdUtil.getAdPid(getContext(), AdPositionEnum.splash) != null, refreshColor, new BaiduCPUContentAdapter.IBaiDuCPUItemClickListener() { @Override public void onClick(IBasicCPUData nrAd) { UmengEventUtil.baiduCpuClick(getContext(), "videos"); BuWanVideo/src/com/weikou/beibeivideo/ui/category/MVideosActivity.java
@@ -4,6 +4,7 @@ import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.ActivityInfo; import android.graphics.Color; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; @@ -29,6 +30,7 @@ import com.weikou.beibeivideo.ui.mine.WatchHistoryActivity; import com.weikou.beibeivideo.ui.recommend.SearchActivity; import com.weikou.beibeivideo.util.downutil.StringUtils; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import org.apache.http.Header; import org.json.JSONObject; @@ -67,12 +69,12 @@ super.onCreate(savedInstanceState); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);// 锁定竖屏 setContentView(R.layout.mvideo_activity); TopStatusSettings.setStatusViewAndDeepColor(this); findViewById(R.id.iv_activity_main_search).setOnClickListener(this); findViewById(R.id.iv_recommend_watch_history).setOnClickListener(this); preferences = getSharedPreferences("user", Context.MODE_PRIVATE); initStatusBar(); mVideoTypes = new ArrayList<VideoType>(); mVideoType = (VideoType) getIntent().getSerializableExtra("video_type"); pager = (ViewPager) findViewById(R.id.pager); @@ -80,7 +82,7 @@ fl_mvideos_download_failure = (FrameLayout) findViewById(R.id.fl_mvideosfragment_download_failure); fl_mvideos_download_failure.setOnClickListener(this); tv_top_bar_left = (TextView) findViewById(R.id.tv_top_bar_left); tv_top_bar_left = findViewById(R.id.tv_top_bar_left); tv_top_bar_left.setText(mVideoType.getName()); tv_top_bar_left.setOnClickListener(this); //接受数据 @@ -170,6 +172,7 @@ indicator = new MTabPageIndicator( MVideosActivity.this); indicator.setTextColor(getResources().getColor(R.color.nav_text_color), getResources().getColor(R.color.nav_highloght_text_color)); if (mVideoType.getParent() == null) { indicator.setViewPager(pager, 0); } else { BuWanVideo/src/com/weikou/beibeivideo/ui/category/SpecificDetailActivity.java
@@ -13,6 +13,7 @@ import com.weikou.beibeivideo.R; import com.umeng.analytics.MobclickAgent; import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.util.ui.TopStatusSettings; /** * 专题详情页 @@ -35,7 +36,7 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.specific_detail_activity); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); 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.setOnClickListener(this); BuWanVideo/src/com/weikou/beibeivideo/ui/category/StarDetailActivity.java
@@ -12,6 +12,7 @@ import com.weikou.beibeivideo.R; import com.umeng.analytics.MobclickAgent; import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.util.ui.TopStatusSettings; /** * 明星详情页 @@ -27,7 +28,7 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.star_detail_activity); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); 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.setOnClickListener(this); BuWanVideo/src/com/weikou/beibeivideo/ui/category/fragment/StarFragment.java
@@ -13,13 +13,13 @@ import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.lcjian.library.RetainViewFragment; import com.lcjian.library.util.RefreshLayout; import com.umeng.analytics.MobclickAgent; import com.weikou.beibeivideo.BasicTextHttpResponseHandler; import com.weikou.beibeivideo.BeibeiVideoAPI; import com.weikou.beibeivideo.ui.category.NewStarAdapter; import com.weikou.beibeivideo.ui.category.bean.HotStar; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; import org.apache.http.Header; import org.json.JSONObject; @@ -31,7 +31,7 @@ * 明星fragment */ public class StarFragment extends RetainViewFragment { private RefreshLayout rl_starView; private MySwipeRefreshLayout rl_starView; private ListView starView; private int starPage = 1; private NewStarAdapter starAdapter; @@ -120,7 +120,7 @@ @Override public void onCreateView(View contentView, Bundle savedInstanceState) { rl_starView = (RefreshLayout) contentView.findViewById(R.id.rl_starView); rl_starView = contentView.findViewById(R.id.rl_starView); starView = (ListView) contentView.findViewById(R.id.star_ptrgv); starAdapter = new NewStarAdapter(hotStars, getContext()); View view = new View(rl_starView.getContext()); @@ -137,7 +137,7 @@ } }); rl_starView.setOnLoadListener(new RefreshLayout.OnLoadListener() { rl_starView.setOnLoadListener(new MySwipeRefreshLayout.OnLoadListener() { @Override public void onLoad() { getHotStars(); BuWanVideo/src/com/weikou/beibeivideo/ui/common/FollowActivity.java
@@ -18,7 +18,6 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.lcjian.library.util.RefreshLayout; import com.lcjian.library.util.SingleToast; import com.lcjian.library.util.common.StringUtils; import com.weikou.beibeivideo.BasicTextHttpResponseHandler; @@ -27,6 +26,8 @@ import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.ui.login.LoginActivity; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; import org.apache.http.Header; import org.json.JSONObject; @@ -41,7 +42,7 @@ ListView lv_follow; RefreshLayout rl_refresh; MySwipeRefreshLayout rl_refresh; TextView tv_middle; @@ -60,11 +61,11 @@ protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.activity_follow); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); ll_no_data = (LinearLayout) findViewById(R.id.ll_no_data); lv_follow = (ListView) findViewById(R.id.lv_activity_follow); lv_follow.addHeaderView(new View(this)); rl_refresh = (RefreshLayout) findViewById(R.id.rl_follow_activity); rl_refresh = findViewById(R.id.rl_follow_activity); ll_no_login = (LinearLayout) findViewById(R.id.ll_no_login); tv_login = (TextView) findViewById(R.id.tv_follow_login); tv_middle = (TextView) findViewById(R.id.tv_top_bar_middle); @@ -101,7 +102,7 @@ getAttentionList(uid, loginUid); } }); rl_refresh.setOnLoadListener(new RefreshLayout.OnLoadListener() { rl_refresh.setOnLoadListener(new MySwipeRefreshLayout.OnLoadListener() { @Override public void onLoad() { cPage++; BuWanVideo/src/com/weikou/beibeivideo/ui/common/LiveBrowserActivity.java
@@ -29,6 +29,7 @@ import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.util.downutil.DownFiles; import com.weikou.beibeivideo.util.downutil.DownFiles.IProgress; import com.weikou.beibeivideo.util.ui.TopStatusSettings; public class LiveBrowserActivity extends BaseActivity implements OnClickListener { private TextView tv_top_bar_left; @@ -51,7 +52,7 @@ super.onCreate(savedInstanceState); setContentView(R.layout.live_browser_activity); getWindow().setFormat(PixelFormat.TRANSLUCENT); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); tv_top_bar_left = (TextView) findViewById(R.id.tv_top_bar_left); tv_top_bar_middle = (TextView) findViewById(R.id.tv_top_bar_middle); webview = (WebView) findViewById(R.id.webview); BuWanVideo/src/com/weikou/beibeivideo/ui/common/MVideosActivity.java
@@ -28,7 +28,6 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.lcjian.library.util.RefreshLayout; import com.lcjian.library.util.common.DimenUtils; import com.lcjian.library.util.common.StringUtils; import com.weikou.beibeivideo.R; @@ -39,13 +38,15 @@ import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.ui.media.VideoDetailActivity; import com.weikou.beibeivideo.ui.media.VideoDetailActivity2; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; public class MVideosActivity extends BaseActivity implements OnClickListener { private TextView tv_top_bar_left; private TextView tv_top_bar_middle; private RefreshLayout rl_video; private MySwipeRefreshLayout rl_video; private ListView lv_video; @@ -68,7 +69,7 @@ super.onCreate(savedInstanceState); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);// 锁定竖屏 setContentView(R.layout.mvideos_activity); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); if (getIntent().getSerializableExtra("home_type") == null) { id = getIntent().getStringExtra("id"); @@ -81,7 +82,7 @@ if (!StringUtils.isEmpty(getIntent().getStringExtra("push"))) { isPush = true; } rl_video = (RefreshLayout) findViewById(R.id.rl_walfare); rl_video = findViewById(R.id.rl_walfare); fl_download_failure = (FrameLayout) findViewById(R.id.fl_videosfragment_download_failure); fl_download_failure.setOnClickListener(this); @@ -112,7 +113,7 @@ } } }); rl_video.setOnLoadListener(new RefreshLayout.OnLoadListener() { rl_video.setOnLoadListener(new MySwipeRefreshLayout.OnLoadListener() { @Override public void onLoad() { if (isPush) { BuWanVideo/src/com/weikou/beibeivideo/ui/common/VideosFragment.java
@@ -23,7 +23,6 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.lcjian.library.util.RefreshLayout; import com.umeng.analytics.MobclickAgent; import com.weikou.beibeivideo.BasicTextHttpResponseHandler; import com.weikou.beibeivideo.BeibeiVideoAPI; BuWanVideo/src/com/weikou/beibeivideo/ui/common/VideosLiveActivity.java
@@ -18,7 +18,6 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.lcjian.library.util.RefreshLayout; import com.lcjian.library.util.common.DimenUtils; import com.umeng.analytics.MobclickAgent; import com.weikou.beibeivideo.BasicTextHttpResponseHandler; @@ -26,6 +25,8 @@ import com.weikou.beibeivideo.entity.MemeLiveInfo; import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; import org.apache.http.Header; import org.json.JSONException; @@ -39,7 +40,7 @@ private TextView tv_top_bar_left; private TextView tv_top_bar_middle; private RefreshLayout rl_video; private MySwipeRefreshLayout rl_video; private ListView mm_gv_video;// 么么直播 @@ -61,7 +62,7 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.videos_live_activity); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); mHomeType = getIntent().getStringExtra("home_type"); mVideoType = getIntent().getStringExtra("video_type"); mStarId = getIntent().getStringExtra("star_id"); @@ -78,7 +79,7 @@ wb_fx_live = (WebView) findViewById(R.id.fxlive_webview); rl_video = (RefreshLayout) findViewById(R.id.rl_video); rl_video = findViewById(R.id.rl_video); mm_gv_video = (ListView) findViewById(R.id.mm_gv_video); mm_gv_video.setVisibility(View.VISIBLE); View view = new View(this); @@ -101,7 +102,7 @@ getMemeVideoList(); } }); rl_video.setOnLoadListener(new RefreshLayout.OnLoadListener() { rl_video.setOnLoadListener(new MySwipeRefreshLayout.OnLoadListener() { @Override public void onLoad() { getMemeVideoList(); BuWanVideo/src/com/weikou/beibeivideo/ui/discover/GoodsDetailActivity.java
@@ -40,6 +40,7 @@ import com.weikou.beibeivideo.entity.Ware; import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.ui.login.LoginActivity; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import org.apache.http.Header; import org.json.JSONObject; @@ -87,7 +88,7 @@ protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.activity_goods_detail); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); View topView = LayoutInflater.from(this).inflate(R.layout.item_goods_detail_top, null); View bottom = LayoutInflater.from(this).inflate(R.layout.item_good_detail_bottom, null); tv_top_left = (TextView) findViewById(R.id.tv_top_bar_left); BuWanVideo/src/com/weikou/beibeivideo/ui/discover/GoodsReviewActivity.java
@@ -18,12 +18,13 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.lcjian.library.util.RefreshLayout; import com.weikou.beibeivideo.BasicTextHttpResponseHandler; import com.weikou.beibeivideo.BeibeiVideoAPI; import com.weikou.beibeivideo.entity.GoodsComments; import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; import org.apache.http.Header; import org.json.JSONObject; @@ -41,19 +42,19 @@ ListView lv_review; TextView tv_review_num; ImageView iv_review_edit; RefreshLayout rl_review; MySwipeRefreshLayout rl_review; int page = 1; @Override protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.activity_goods_review); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); tv_top_left = (TextView) findViewById(R.id.tv_top_bar_left); tv_top_middle = (TextView) findViewById(R.id.tv_top_bar_middle); tv_top_middle.setText("全部评论"); rl_review = (RefreshLayout) findViewById(R.id.rl_review_goods); rl_review.setOnLoadListener(new RefreshLayout.OnLoadListener() { rl_review = findViewById(R.id.rl_review_goods); rl_review.setOnLoadListener(new MySwipeRefreshLayout.OnLoadListener() { @Override public void onLoad() { page++; BuWanVideo/src/com/weikou/beibeivideo/ui/discover/ReleaseGoodsActivity.java
@@ -10,6 +10,7 @@ import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.util.ui.TopStatusSettings; /** * Created by weikou2015 on 2017/1/3. @@ -23,7 +24,7 @@ protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.activity_release_goods); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); tv_top_left = (TextView) findViewById(R.id.tv_top_bar_left); tv_top_middle = (TextView) findViewById(R.id.tv_top_bar_middle); tv_top_middle.setText("发布"); BuWanVideo/src/com/weikou/beibeivideo/ui/discover/ReleasePromptActivity.java
@@ -16,6 +16,7 @@ import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.ui.login.RegisterActivity; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.util.ui.TopStatusSettings; /** * Created by weikou2015 on 2017/1/3. @@ -31,7 +32,7 @@ protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.activity_release_prompt); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); tv_top_left = (TextView) findViewById(R.id.tv_top_bar_left); tv_top_middle = (TextView) findViewById(R.id.tv_top_bar_middle); tv_top_middle.setText("发布"); BuWanVideo/src/com/weikou/beibeivideo/ui/discover/SpecificListActivity.java
@@ -13,6 +13,7 @@ import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.ui.main.DiscoverNowFragment; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.util.ui.TopStatusSettings; /** * Created by weikou2015 on 2016/8/17. @@ -36,7 +37,7 @@ fm.beginTransaction().add(R.id.fl_add_container, fragment, "DiscoverNowFragment").commitAllowingStateLoss(); } initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); } @Override BuWanVideo/src/com/weikou/beibeivideo/ui/discover/StarsActivity.java
@@ -13,6 +13,7 @@ import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.ui.category.fragment.StarFragment; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.util.ui.TopStatusSettings; /** * Created by weikou2015 on 2016/8/17. @@ -31,7 +32,7 @@ fragment = new StarFragment(); fm.beginTransaction().add(R.id.fl_add_container, fragment, "StarFragment").commitAllowingStateLoss(); } initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); } @Override BuWanVideo/src/com/weikou/beibeivideo/ui/live/Activity_LiveCateGory.java
@@ -19,13 +19,14 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.lcjian.library.util.RefreshLayout; import com.weikou.beibeivideo.BasicTextHttpResponseHandler; import com.weikou.beibeivideo.BeibeiVideoAPI; import com.weikou.beibeivideo.entity.ZhiBoContent; import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.ui.common.LiveGirlAdapter; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; import org.apache.http.Header; import org.json.JSONObject; @@ -40,7 +41,7 @@ public class Activity_LiveCateGory extends BaseActivity implements View.OnClickListener { private TextView tv_top_bar_left; private TextView tv_top_bar_middle; private RefreshLayout rl_live_cate; private MySwipeRefreshLayout rl_live_cate; private ListView lv_live_cate; private int page = 1; @@ -52,13 +53,13 @@ super.onCreate(arg0); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); setContentView(R.layout.activty_live_category); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); 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.setOnClickListener(this); tv_top_bar_middle.setText(getIntent().getStringExtra("cate")); rl_live_cate = (RefreshLayout) findViewById(R.id.rl_live_category); rl_live_cate = findViewById(R.id.rl_live_category); lv_live_cate = (ListView) findViewById(R.id.lv_live_category); mAdapter = new LiveGirlAdapter(this, mList); @@ -72,7 +73,7 @@ getLiveInfo(); } }); rl_live_cate.setOnLoadListener(new RefreshLayout.OnLoadListener() { rl_live_cate.setOnLoadListener(new MySwipeRefreshLayout.OnLoadListener() { @Override public void onLoad() { page++; BuWanVideo/src/com/weikou/beibeivideo/ui/login/ForgetPwdActivity.java
@@ -20,6 +20,7 @@ import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.util.IsEmail; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import org.apache.http.Header; import org.json.JSONObject; @@ -47,7 +48,7 @@ setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); setContentView(R.layout.activity_forget_pwd); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); et_email = (EditText) findViewById(R.id.et_email); et_verfication_code = (EditText) findViewById(R.id.et_verfication_code); BuWanVideo/src/com/weikou/beibeivideo/ui/login/LoginActivity.java
@@ -39,6 +39,7 @@ import com.weikou.beibeivideo.ui.mine.BrowserActivity; import com.weikou.beibeivideo.util.BeibeiConstant; import com.weikou.beibeivideo.util.XGPush; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import org.apache.http.Header; import org.json.JSONException; @@ -55,34 +56,33 @@ private String loginType = "";// 登录类型 默认为空字符 QQ为1 private String openId = "";// 用户第三方登录唯一识别码 private LinearLayout ll_login_content; private LinearLayout ll_login_content, ll_third_login; private EditText et_name; private EditText et_pwd; private CheckBox cb_user_agreement; private TextView tv_forget_pwd; private TextView tv_register; private TextView tv_login; private TextView tv_login, tv_other_login, tv_title; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.act_login); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); uid = getSharedPreferences("user", Context.MODE_PRIVATE).getString( "uid", ""); ll_login_qq = findViewById(R.id.ll_login_qq); tv_other_login = findViewById(R.id.tv_other_login); tv_title = findViewById(R.id.tv_title); findViewById(R.id.ll_login_qq).setOnClickListener(this); findViewById(R.id.ll_login_wx).setOnClickListener(this); findViewById(R.id.login_tv_cancel).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { onResult(RESULT_CANCELED); } }); findViewById(R.id.login_tv_cancel).setOnClickListener(this); ll_login_content = (LinearLayout) findViewById(R.id.ll_login_content); ll_login_content = findViewById(R.id.ll_login_content); ll_third_login = findViewById(R.id.ll_third_login); int w = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED); int h = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED); @@ -97,15 +97,39 @@ tv_forget_pwd.setOnClickListener(this); tv_register.setOnClickListener(this); tv_login.setOnClickListener(this); tv_other_login.setOnClickListener(this); findViewById(R.id.tv_user_agreement).setOnClickListener(this); findViewById(R.id.tv_privacy_policy).setOnClickListener(this); setLoginType(false); } private void setLoginType(boolean email) { if (email) { tv_other_login.setVisibility(View.GONE); ll_third_login.setVisibility(View.GONE); ll_login_content.setVisibility(View.VISIBLE); tv_title.setText("其他登录方式"); } else { tv_other_login.setVisibility(View.VISIBLE); ll_third_login.setVisibility(View.VISIBLE); ll_login_content.setVisibility(View.GONE); tv_title.setText("账号登录"); } } @Override public void onClick(View v) { switch (v.getId()) { case R.id.login_tv_cancel:// 取消 onResult(RESULT_CANCELED); if (ll_third_login.getVisibility() == View.GONE) { setLoginType(false); } else { onResult(RESULT_CANCELED); } break; case R.id.tv_other_login: setLoginType(true); break; case R.id.ll_login_qq:// QQ登录 if (!cb_user_agreement.isChecked()) { @@ -199,7 +223,6 @@ public void onStart(SHARE_MEDIA platform) { DialogUtil.show(loadingDialog); } @Override BuWanVideo/src/com/weikou/beibeivideo/ui/login/PersonInfoActivity.java
@@ -50,6 +50,7 @@ import com.weikou.beibeivideo.util.BeibeiConstant; import com.weikou.beibeivideo.util.FileUtils; import com.weikou.beibeivideo.util.UserUtil; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import org.apache.http.Header; import org.json.JSONObject; @@ -97,7 +98,7 @@ protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.activity_person_info); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); ll_portrait = (LinearLayout) findViewById(R.id.ll_portrait_select); ll_nickName = (LinearLayout) findViewById(R.id.ll_nickName); ll_birthday = (LinearLayout) findViewById(R.id.ll_birthday); @@ -116,19 +117,19 @@ tv_bind_qq = findViewById(R.id.tv_bind_qq); tv_bind_wx = findViewById(R.id.tv_bind_wx); tv_bind_phone = findViewById(R.id.tv_bind_phone); TextView tv_top_bar_middle = findViewById(R.id.tv_top_bar_middle); tv_top_bar_middle.setText("个人资料"); ll_portrait.setOnClickListener(this); ll_nickName.setOnClickListener(this); ll_birthday.setOnClickListener(this); ll_sex.setOnClickListener(this); ll_autograph.setOnClickListener(this); findViewById(R.id.tv_back).setOnClickListener(this); findViewById(R.id.tv_top_bar_left).setOnClickListener(this); tv_bind_qq.setOnClickListener(this); tv_bind_wx.setOnClickListener(this); tv_bind_phone.setOnClickListener(this); mPermissionsChecker = new PermissionHelper(this, this);//权限 } private String sign = ""; @@ -432,7 +433,7 @@ @Override public void onClick(View v) { switch (v.getId()) { case R.id.tv_back: case R.id.tv_top_bar_left: finish(); break; case R.id.ll_portrait_select: BuWanVideo/src/com/weikou/beibeivideo/ui/login/PhoneLoginActivity.java
@@ -53,6 +53,7 @@ import com.weikou.beibeivideo.util.IsEmail; import com.weikou.beibeivideo.util.UserUtil; import com.weikou.beibeivideo.util.XGPush; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import org.apache.http.Header; import org.json.JSONException; @@ -110,7 +111,7 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.act_phone_login); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); initView(); login = getIntent().getBooleanExtra("login", false); tv_title.setText(login ? "登录" : "绑定手机号"); @@ -167,8 +168,8 @@ .setNavReturnScaleType(ImageView.ScaleType.FIT_XY) .setWebNavColor(Color.BLACK) .setWebNavReturnImgPath("ic_back_two") .setWebViewStatusBarColor(Color.BLACK) .setStatusBarColor(Color.BLACK) .setWebViewStatusBarColor(Color.WHITE) .setStatusBarColor(Color.WHITE) .setLogoWidth(147) .setLogoHeight(36) @@ -177,7 +178,7 @@ .setSloganOffsetY(171 - 10) .setSloganTextSize(12) .setSloganTextColor(Color.parseColor("#F4DE4A")) .setSloganTextColor(Color.parseColor("#F804F5")) .setLogBtnText("⼀键登录") .setLogBtnTextSize(17) @@ -191,7 +192,7 @@ .setDialogHeight(454) .setNavColor(Color.RED) .setSwitchAccHidden(true) .setNumberColor(Color.WHITE) .setNumberColor(Color.parseColor("#0052F6")) .setNumberSize(36) .setNumFieldOffsetY(128 - 10) BuWanVideo/src/com/weikou/beibeivideo/ui/login/RegisterActivity.java
@@ -24,6 +24,7 @@ import com.weikou.beibeivideo.util.BeibeiConstant; import com.weikou.beibeivideo.util.IsEmail; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import org.apache.http.Header; import org.json.JSONObject; @@ -50,7 +51,7 @@ protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.activity_register); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); et_email = (EditText) findViewById(R.id.et_name); et_pwd = (EditText) findViewById(R.id.et_pwd); et_verfication_code = (EditText) findViewById(R.id.et_verfication_code); BuWanVideo/src/com/weikou/beibeivideo/ui/main/CategoryFragment.java
@@ -5,6 +5,7 @@ import android.content.SharedPreferences; import android.content.pm.PackageInfo; import android.content.pm.PackageManager.NameNotFoundException; import android.graphics.Color; import android.os.Bundle; import android.provider.Settings; import android.support.v4.widget.SwipeRefreshLayout; @@ -109,6 +110,7 @@ ptsv_container = contentView .findViewById(R.id.ptsv_container); gv_video_category = contentView .findViewById(R.id.gv_video_category); ptsv_container BuWanVideo/src/com/weikou/beibeivideo/ui/main/DiscoverNowFragment.java
@@ -13,7 +13,6 @@ import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.lcjian.library.RetainViewFragment; import com.lcjian.library.util.RefreshLayout; import com.lcjian.library.util.SingleToast; import com.qq.e.ads.cfg.VideoOption; import com.qq.e.ads.nativ.ADSize; @@ -28,6 +27,7 @@ import com.weikou.beibeivideo.ui.recommend.DiscoverAdapter; import com.weikou.beibeivideo.util.BeibeiConstant; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; import org.apache.http.Header; import org.json.JSONObject; @@ -42,7 +42,7 @@ private List<UniqueBean> uniques = new ArrayList<UniqueBean>(); private int mCurrentPage = 1; private ListView uniqueView; private RefreshLayout rl_unique; private MySwipeRefreshLayout rl_unique; private DiscoverAdapter uniqueAdapter; @@ -84,7 +84,7 @@ refreshAd(); } }); rl_unique.setOnLoadListener(new RefreshLayout.OnLoadListener() { rl_unique.setOnLoadListener(new MySwipeRefreshLayout.OnLoadListener() { @Override public void onLoad() { mCurrentPage++; BuWanVideo/src/com/weikou/beibeivideo/ui/main/GuessLikeFragment.java
@@ -11,7 +11,6 @@ import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.lcjian.library.RetainViewFragment; import com.lcjian.library.util.RefreshLayout; import com.lcjian.library.util.SingleToast; import com.qq.e.ads.cfg.VideoOption; import com.qq.e.ads.nativ.ADSize; @@ -26,6 +25,7 @@ import com.weikou.beibeivideo.ui.recommend.GuessLikeAdapter; import com.weikou.beibeivideo.util.BeibeiConstant; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; import org.apache.http.Header; import org.json.JSONObject; @@ -46,7 +46,7 @@ private List<VideoInfo> mList = new ArrayList<>(); private int mCurrentPage = 1; private ListView lv_guess_like; private RefreshLayout rl_guess_like; private MySwipeRefreshLayout rl_guess_like; private GuessLikeAdapter guessLikeAdapter; @Override @@ -79,7 +79,7 @@ refreshAd(); } }); rl_guess_like.setOnLoadListener(new RefreshLayout.OnLoadListener() { rl_guess_like.setOnLoadListener(new MySwipeRefreshLayout.OnLoadListener() { @Override public void onLoad() { mCurrentPage++; BuWanVideo/src/com/weikou/beibeivideo/ui/main/MainActivity.java
@@ -78,6 +78,7 @@ import com.weikou.beibeivideo.util.ad.RewardVideoAdManager; import com.weikou.beibeivideo.util.ad.manager.SearchResultAdManager; import com.weikou.beibeivideo.util.browser.BWJavaInterface; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import com.yeshi.appupdate.AppUpdate; import org.apache.http.Header; @@ -133,7 +134,7 @@ exitDialog = exitDialogBuilder.create(); exitDialog.setCanceledOnTouchOutside(true); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); // 将imei mac lat lng存入sharedpreference中 SharedPreferences mPre = getSharedPreferences("user", Context.MODE_PRIVATE); @@ -162,7 +163,7 @@ iv_taobao.setOnClickListener(this); iv_red_dot = findViewById(R.id.iv_red_dot); fl_right_ad = findViewById(R.id.fl_right_ad); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); initialer.run(); BuWanVideo/src/com/weikou/beibeivideo/ui/media/VideoDetailActivity.java
@@ -63,6 +63,7 @@ import com.weikou.beibeivideo.ui.video.VideoPlayerBrowserActivity; import com.weikou.beibeivideo.util.BeibeiConstant; import com.weikou.beibeivideo.util.VideoUtil; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import org.apache.http.Header; import org.json.JSONArray; @@ -131,7 +132,7 @@ super.onCreate(savedInstanceState); setContentView(R.layout.video_detail_activity); VideoUtil.clearVideoEpisodeList(this); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); /** * 广告 BuWanVideo/src/com/weikou/beibeivideo/ui/media/VideoDetailActivity2.java
@@ -73,6 +73,7 @@ import com.weikou.beibeivideo.util.VideoUtil; import com.weikou.beibeivideo.util.ad.FullVideoAdManager; import com.weikou.beibeivideo.util.ui.IPageEventListener; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import org.apache.http.Header; import org.json.JSONArray; @@ -158,7 +159,7 @@ super.onCreate(savedInstanceState); setContentView(R.layout.video_detail_activity); VideoUtil.clearVideoEpisodeList(this); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); //广告 mVideoDetailVideoAdFragment = new PlayVideoPreADFragment(); BuWanVideo/src/com/weikou/beibeivideo/ui/media/VideoReviewFragment.java
@@ -20,7 +20,6 @@ import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.lcjian.library.RetainViewFragment; import com.lcjian.library.util.RefreshLayout; import com.umeng.analytics.MobclickAgent; import com.weikou.beibeivideo.BasicTextHttpResponseHandler; import com.weikou.beibeivideo.BeibeiVideoAPI; @@ -29,6 +28,7 @@ import com.weikou.beibeivideo.entity.VideoDetailInfo; import com.weikou.beibeivideo.entity.VideoInfo; import com.weikou.beibeivideo.util.VideoUtil; import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; import org.apache.http.Header; import org.json.JSONObject; @@ -54,7 +54,7 @@ private VideoReviewAdapter adapter; private RefreshLayout rl_review; private MySwipeRefreshLayout rl_review; private ListView lv_review; @@ -83,7 +83,7 @@ public void onCreateView(View contentView, Bundle savedInstanceState) { mVideoInfo = (VideoInfo) getArguments().getSerializable("video_info"); tv_no_review = (TextView) contentView.findViewById(R.id.tv_no_review); rl_review = (RefreshLayout) contentView.findViewById(R.id.rl_review); rl_review = contentView.findViewById(R.id.rl_review); lv_review = (ListView) contentView.findViewById(R.id.lv_review); tv_review_layout = (LinearLayout) contentView.findViewById(R.id.tv_review_layout); mList = new ArrayList<Comment>(); @@ -102,7 +102,7 @@ getReviewList(); } }); rl_review.setOnLoadListener(new RefreshLayout.OnLoadListener() { rl_review.setOnLoadListener(new MySwipeRefreshLayout.OnLoadListener() { @Override public void onLoad() { mCurrentPage++; BuWanVideo/src/com/weikou/beibeivideo/ui/mine/BrowserActivity.java
@@ -50,6 +50,7 @@ import com.weikou.beibeivideo.util.downutil.DownFiles; import com.weikou.beibeivideo.util.downutil.DownFiles.IProgress; import com.weikou.beibeivideo.util.downutil.StringUtils; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import com.weikou.beibeivideo.util.x5.X5WebView; import java.io.IOException; @@ -237,7 +238,7 @@ super.onCreate(savedInstanceState); getWindow().setFormat(PixelFormat.TRANSLUCENT); setContentView(R.layout.browser_activity); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); tv_top_bar_left = findViewById(R.id.tv_top_bar_left); tv_top_bar_left2 = findViewById(R.id.tv_top_bar_left2); tv_top_bar_left2.setVisibility(View.VISIBLE); BuWanVideo/src/com/weikou/beibeivideo/ui/mine/DownLoadUrlActivity.java
@@ -25,6 +25,7 @@ import com.weikou.beibeivideo.BeibeiVideoAPI; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.util.ui.TopStatusSettings; public class DownLoadUrlActivity extends BaseActivity implements OnClickListener { @@ -43,7 +44,7 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.download_url_activity); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); 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("返回"); BuWanVideo/src/com/weikou/beibeivideo/ui/mine/DownloadActivity.java
@@ -22,6 +22,7 @@ import com.weikou.beibeivideo.ui.recent.DownloadAdapter2; import com.weikou.beibeivideo.ui.recent.OfflineCacheFragment2; import com.weikou.beibeivideo.ui.recent.WatchHistoryFragment; import com.weikou.beibeivideo.util.ui.TopStatusSettings; public class DownloadActivity extends BaseActivity implements DownloadAdapter2.IGetDeleteCallback, OnClickListener { @@ -39,7 +40,7 @@ protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.activity_download); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); OfflineCacheFragment2 cacheFragment2 = new OfflineCacheFragment2(); cacheFragment2.setDeleteCallback(this); mFragmentSwitchHelper = FragmentSwitchHelper.create( BuWanVideo/src/com/weikou/beibeivideo/ui/mine/FeedBackActivity.java
@@ -17,6 +17,7 @@ import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.util.BeibeiConstant; import com.weikou.beibeivideo.util.ui.TopStatusSettings; public class FeedBackActivity extends BaseActivity implements OnClickListener { @@ -27,7 +28,7 @@ super.onCreate(savedInstanceState); setContentView(R.layout.activity_feedback); aQuery = new AQuery(this); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); aQuery.id(R.id.tv_submit).clicked(this); aQuery.id(R.id.tv_top_bar_left).clicked(this); BuWanVideo/src/com/weikou/beibeivideo/ui/mine/HelpAndTicklingActivity.java
@@ -16,6 +16,7 @@ import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.util.BeibeiConstant; import com.weikou.beibeivideo.util.ui.TopStatusSettings; public class HelpAndTicklingActivity extends BaseActivity implements OnClickListener { @@ -26,7 +27,7 @@ super.onCreate(savedInstanceState); setContentView(R.layout.act_help); aQuery = new AQuery(this); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); 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); BuWanVideo/src/com/weikou/beibeivideo/ui/mine/MyFavouriteActivity.java
@@ -26,7 +26,6 @@ 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; import com.umeng.analytics.MobclickAgent; @@ -40,6 +39,8 @@ import com.weikou.beibeivideo.ui.common.ListVideoAdapter; import com.weikou.beibeivideo.ui.discover.GoodsFavouriteAdapter; import com.weikou.beibeivideo.ui.login.LoginActivity; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; import org.apache.http.Header; import org.json.JSONObject; @@ -64,7 +65,7 @@ private ListVideoAdapter.IGetDeleteCallback getdeleteNumber = null; private GoodsFavouriteAdapter.IGetDeleteGoodSCallback getDeleteGoods = null; private View empty; private RefreshLayout srl_favourite; private MySwipeRefreshLayout srl_favourite; private TextView tv_top_bar_right; private View v1; private View v2; @@ -97,7 +98,7 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.myfavourites_activity); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); 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); @@ -134,7 +135,7 @@ if (getDeleteGoods != null) mAdapter.setDeleteCallback(getDeleteGoods); gv_video.setAdapter(mGridVideoAdapter); srl_favourite = (RefreshLayout) findViewById(R.id.srl_favourite); srl_favourite = findViewById(R.id.srl_favourite); ProgressBar pb = new ProgressBar(this); srl_favourite.setFooter(pb); srl_favourite.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { @@ -145,7 +146,7 @@ getCollectedVideo(); } }); srl_favourite.setOnLoadListener(new RefreshLayout.OnLoadListener() { srl_favourite.setOnLoadListener(new MySwipeRefreshLayout.OnLoadListener() { @Override public void onLoad() { vPage++; BuWanVideo/src/com/weikou/beibeivideo/ui/mine/SettingsActivity.java
@@ -39,6 +39,7 @@ import com.weikou.beibeivideo.util.SDCardUtil; import com.weikou.beibeivideo.util.UserUtil; import com.weikou.beibeivideo.util.XGPush; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import com.weikou.beibeivideo.widget.BadgeView; import com.yeshi.appupdate.AppUpdate; @@ -147,7 +148,7 @@ rl_user_agreement.setOnClickListener(this); rl_privacy_policy.setOnClickListener(this); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); final SharedPreferences settings = getSharedPreferences("settings", Context.MODE_PRIVATE); BuWanVideo/src/com/weikou/beibeivideo/ui/mine/SuggestionActivity.java
@@ -21,6 +21,7 @@ import com.weikou.beibeivideo.BeibeiVideoAPI; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.util.ui.TopStatusSettings; public class SuggestionActivity extends BaseActivity implements OnClickListener { @@ -36,7 +37,7 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.suggestion_activity); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); 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_middle.setText(R.string.suggestion); BuWanVideo/src/com/weikou/beibeivideo/ui/mine/SystemMessageActivity.java
@@ -22,6 +22,7 @@ import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.db.MessageTable; import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import java.util.Date; @@ -45,7 +46,7 @@ super.onCreate(arg0); setContentView(R.layout.system_message_activity); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); 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); BuWanVideo/src/com/weikou/beibeivideo/ui/mine/WatchHistoryActivity.java
@@ -25,6 +25,7 @@ import com.weikou.beibeivideo.ui.recent.DownloadAdapter2; import com.weikou.beibeivideo.ui.recent.OfflineCacheFragment2; import com.weikou.beibeivideo.ui.recent.WatchHistoryFragment; import com.weikou.beibeivideo.util.ui.TopStatusSettings; public class WatchHistoryActivity extends BaseActivity implements DownloadAdapter2.IGetDeleteCallback, OnClickListener { @@ -45,7 +46,7 @@ super.onCreate(arg0); setContentView(R.layout.activity_watch_history); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); tv_top_bar_right = findViewById(R.id.tv_top_bar_right); tv_top_bar_right.setText("编辑"); BuWanVideo/src/com/weikou/beibeivideo/ui/recent/DownLoadActivity.java
@@ -26,6 +26,7 @@ import com.weikou.beibeivideo.ui.media.VideoEpisodeFragment3; import com.weikou.beibeivideo.ui.recent.DownLoadAdapter.IGetDeleteCallback; import com.weikou.beibeivideo.ui.recent.DownLoadAdapter.IGetSelectStatus; import com.weikou.beibeivideo.util.ui.TopStatusSettings; public class DownLoadActivity extends BaseActivity implements OnClickListener, IGetDeleteCallback, IGetSelectStatus { @@ -51,7 +52,7 @@ protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.download_group_activity); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); 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_right = (ToggleButton) findViewById(R.id.btn_delete); BuWanVideo/src/com/weikou/beibeivideo/ui/recent/WatchHistoryFragment.java
@@ -16,7 +16,6 @@ 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; import com.weikou.beibeivideo.BeibeiVideoAPI; @@ -25,6 +24,7 @@ import com.weikou.beibeivideo.entity.vo.WatchHistoryVO; import com.weikou.beibeivideo.ui.dialog.LoadingDialogUtil; import com.weikou.beibeivideo.util.UserUtil; import com.weikou.beibeivideo.widget.MySwipeRefreshLayout; import org.apache.http.Header; import org.json.JSONObject; @@ -37,7 +37,7 @@ public class WatchHistoryFragment extends Fragment { private RefreshLayout srl; private MySwipeRefreshLayout srl; private WatchHistoryAdapter mAdapter; @@ -80,7 +80,7 @@ getWatchHistory(currentPage); } }); srl.setOnLoadListener(new RefreshLayout.OnLoadListener() { srl.setOnLoadListener(new MySwipeRefreshLayout.OnLoadListener() { @Override public void onLoad() { getWatchHistory(currentPage + 1); BuWanVideo/src/com/weikou/beibeivideo/ui/recommend/CategoryRecommendFragment.java
@@ -3,42 +3,25 @@ import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.SimpleItemAnimator; import android.view.LayoutInflater; import android.view.View; import android.widget.AbsListView; import android.widget.FrameLayout; import android.widget.ListView; import com.google.gson.FieldNamingPolicy; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import com.lcjian.library.RetainViewFragment; import com.lcjian.library.util.SingleToast; import com.qq.e.ads.cfg.VideoOption; import com.qq.e.ads.nativ.ADSize; import com.qq.e.ads.nativ.NativeExpressAD; import com.qq.e.ads.nativ.NativeExpressADView; import com.qq.e.comm.util.AdError; import com.viewpagerindicator.CirclePageIndicator; import com.weikou.beibeivideo.BasicTextHttpResponseHandler; import com.weikou.beibeivideo.BeibeiVideoAPI; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.entity.CategoryRecommendVideo; import com.weikou.beibeivideo.entity.HomeType; import com.weikou.beibeivideo.entity.VideoInfo; import com.weikou.beibeivideo.entity.VideoType; import com.weikou.beibeivideo.ui.category.CategoryRecommedTopAdapter; import com.weikou.beibeivideo.ui.category.CategoryRecommendAdapter; import com.weikou.beibeivideo.util.BeibeiConstant; import com.weikou.beibeivideo.util.DimenUtils; import org.apache.http.Header; @@ -46,8 +29,6 @@ import java.util.ArrayList; import java.util.List; import de.greenrobot.event.EventBus; /** * 推荐分类 BuWanVideo/src/com/weikou/beibeivideo/ui/recommend/SearchActivity.java
@@ -51,6 +51,7 @@ import com.weikou.beibeivideo.util.DimenUtils; import com.weikou.beibeivideo.util.ad.AdUtil; import com.weikou.beibeivideo.util.ad.ExpressAdManager; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import org.apache.http.Header; import org.json.JSONObject; @@ -96,7 +97,7 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.search_actvity); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); initView(); suggestFragment = new SearchSuggestFragment(); @@ -160,11 +161,9 @@ if (!TextUtils.isEmpty(value)) { et_search_key.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_clear, 0); // tv_search_cancel.setText(R.string.search); } else { et_search_key.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0); // tv_search_cancel.setText(R.string.cancel); } et_search_key.setOnTouchListener(new OnTouchListener() { BuWanVideo/src/com/weikou/beibeivideo/ui/recommend/SearchResultActivity.java
@@ -1,11 +1,9 @@ package com.weikou.beibeivideo.ui.recommend; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Color; import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android.os.Build; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; @@ -21,21 +19,11 @@ import android.view.View.OnTouchListener; import android.view.ViewGroup; import android.view.inputmethod.EditorInfo; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ArrayAdapter; import android.widget.AutoCompleteTextView; import android.widget.BaseAdapter; import android.widget.EditText; import android.widget.Filter; import android.widget.Filterable; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.LinearLayout.LayoutParams; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast; import com.google.gson.FieldNamingPolicy; import com.google.gson.Gson; @@ -43,23 +31,21 @@ import com.google.gson.reflect.TypeToken; import com.lcjian.library.util.common.SoftKeyboardUtils; import com.lcjian.library.util.common.StringUtils; import com.umeng.analytics.MobclickAgent; import com.weikou.beibeivideo.BasicTextHttpResponseHandler; import com.weikou.beibeivideo.BeibeiVideoAPI; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.entity.VideoInfo; import com.weikou.beibeivideo.entity.VideoType; import com.weikou.beibeivideo.entity.ad.ExpressAdContainer; import com.weikou.beibeivideo.entity.video.VideoContent; import com.weikou.beibeivideo.ui.BaseActivity; import com.weikou.beibeivideo.ui.video.SearchResultAdapter; import com.weikou.beibeivideo.ui.video.SuggestKeysAdapter; import com.weikou.beibeivideo.ui.video.VideoCloumn1Adapter; import com.weikou.beibeivideo.util.DimenUtils; import com.weikou.beibeivideo.util.UmengEventUtil; import com.weikou.beibeivideo.util.ad.ExpressAdManager; import com.weikou.beibeivideo.util.ad.manager.SearchResultAdManager; import com.weikou.beibeivideo.util.ui.DividerItemDecoration; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import org.apache.http.Header; import org.json.JSONObject; @@ -107,11 +93,12 @@ private FrameLayout fl_suggest; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.search_result_activity); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); suggestFragment = new SearchSuggestFragment(); @@ -212,7 +199,12 @@ decoration.setSize(DimenUtils.dip2px(rv_video_search.getContext(), 6)); rv_video_search.addItemDecoration(decoration); adapter = new SearchResultAdapter(this, mVideoInfos); adapter = new SearchResultAdapter(this, mVideoInfos, new SearchResultAdapter.VideoAlbumNavClickListener() { @Override public void onNav(int p) { navClick(p); } }); loading = LayoutInflater.from(this).inflate(R.layout.item_loading, null); loading.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); loading.setVisibility(View.GONE); @@ -266,14 +258,15 @@ search(mCurrentKey, mCurrentType); } private void initTopBar(List<VideoType> videoTypeList) { private void initTopBar() { int p = 0; ll_top_bar.removeAllViews(); LayoutInflater inflater = LayoutInflater.from(getApplicationContext()); for (int i = 0; i < videoTypeList.size(); i++) { for (int i = 0; i < typeList.size(); i++) { final View view = inflater.inflate(R.layout.item_search_result_top_bar_content, null); TextView tv_name = view.findViewById(R.id.tv_name); tv_name.setText(videoTypeList.get(i).getName()); tv_name.setText(typeList.get(i).getName()); setTopBarSelect(tv_name, i == p); ll_top_bar.addView(view); ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) view.getLayoutParams(); @@ -284,17 +277,23 @@ @Override public void onClick(View v) { int p = Integer.parseInt(view.getTag() + ""); selectTopBar(p); VideoType vt = videoTypeList.get(p); if (StringUtils.isBlank(mCurrentType) || !mCurrentType.equalsIgnoreCase(vt.getId())) { mCurrentPage = 1; mCurrentType = vt.getId(); rl_search_result.setRefreshing(true); search(mCurrentKey, mCurrentType); } navClick(p); } }); } } private void navClick(int p) { if (typeList == null || typeList.size() <= p) return; selectTopBar(p); VideoType vt = typeList.get(p); if (StringUtils.isBlank(mCurrentType) || !mCurrentType.equalsIgnoreCase(vt.getId())) { mCurrentPage = 1; mCurrentType = vt.getId(); rl_search_result.setRefreshing(true); search(mCurrentKey, mCurrentType); } } @@ -302,13 +301,15 @@ if (selected) { tv_name.setBackgroundResource(R.drawable.vpi__tab_selected_focused_holo); tv_name.setTextSize(17); tv_name.setTextColor(getResources().getColor(R.color.nav_highloght_text_color)); tv_name.setTextColor(getResources().getColor(R.color.search_nav_highlight_text_color)); tv_name.setPadding(0, 0, 0, DimenUtils.dip2px(getApplicationContext(), 5)); tv_name.setTypeface(Typeface.defaultFromStyle(Typeface.BOLD)); } else { tv_name.setBackground(null); tv_name.setTextSize(12); tv_name.setTextColor(getResources().getColor(R.color.nav_text_color)); tv_name.setPadding(0, 0, 0, 0); tv_name.setTypeface(Typeface.defaultFromStyle(Typeface.NORMAL)); } } @@ -465,7 +466,7 @@ .getJSONArray("typeList").toString(), new TypeToken<List<VideoType>>() { }.getType()); initTopBar(typeList); initTopBar(); } } @@ -531,7 +532,11 @@ public void onClick(View v) { switch (v.getId()) { case R.id.tv_search_cancel: { finish(); if (fl_suggest.getVisibility() == View.VISIBLE) { hiddenSuggestFragment(); } else { finish(); } } break; case R.id.tv_top_bar_left: BuWanVideo/src/com/weikou/beibeivideo/ui/video/SearchResultAdapter.java
@@ -3,8 +3,14 @@ import android.app.Activity; import android.content.Intent; import android.graphics.Color; import android.graphics.Typeface; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.text.SpannableString; import android.text.Spanned; import android.text.style.AbsoluteSizeSpan; import android.text.style.ForegroundColorSpan; import android.text.style.StyleSpan; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -14,6 +20,7 @@ import android.widget.TextView; import com.bumptech.glide.Glide; import com.lcjian.library.util.common.DimenUtils; import com.lcjian.library.util.common.StringUtils; import com.weikou.beibeivideo.R; import com.weikou.beibeivideo.entity.VideoDetailInfo; @@ -50,6 +57,8 @@ private final static int TYPE_VIDEO_ALBUM = 11; private final static int TYPE_VIDEO_SIMPLE = 12; private VideoAlbumNavClickListener mVideoAlbumNavClickListener; public void setHeaderView(View headerView) { this.headerView = headerView; @@ -59,10 +68,11 @@ this.footerView = footerView; } public SearchResultAdapter(Activity context, List<VideoContent> contentList) { public SearchResultAdapter(Activity context, List<VideoContent> contentList, VideoAlbumNavClickListener mVideoAlbumNavClickListener) { this.contentList = contentList; mContext = context; inflater = LayoutInflater.from(context); this.mVideoAlbumNavClickListener = mVideoAlbumNavClickListener; } @NonNull @@ -115,7 +125,16 @@ albumVideoHolder.iv_vip.setVisibility(View.GONE); } if (info.getDefinition()== 1) { //导演 if (StringUtils.isEmpty(info.getDirector())) { albumVideoHolder.tv_director.setVisibility(View.GONE); } else { albumVideoHolder.tv_director.setVisibility(View.VISIBLE); albumVideoHolder.tv_director.setText("导演:" + info.getDirector()); } if (info.getDefinition() == 1) { albumVideoHolder.iv_high.setVisibility(View.VISIBLE); } else { albumVideoHolder.iv_high.setVisibility(View.GONE); @@ -128,6 +147,38 @@ myClick(info, v, 0); } }); //是否显示更多信息 if (videoContent.getVideo().getAlbumMoreInfo() != null) { albumVideoHolder.ll_nav.setVisibility(View.VISIBLE); albumVideoHolder.tv_nav_name.setText(videoContent.getVideo().getAlbumMoreInfo().getName()); } else { albumVideoHolder.ll_nav.setVisibility(View.GONE); } albumVideoHolder.ll_nav.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (videoContent.getVideo().getAlbumMoreInfo() != null) { if (mVideoAlbumNavClickListener != null) mVideoAlbumNavClickListener.onNav(videoContent.getVideo().getAlbumMoreInfo().getJumpPosition()); } } }); //设置分数 if (!StringUtils.isEmpty(videoContent.getVideo().getScore())) { albumVideoHolder.tv_score.setVisibility(View.VISIBLE); String st = "评分:" + videoContent.getVideo().getScore(); SpannableString spannableString = new SpannableString(st); spannableString.setSpan(new AbsoluteSizeSpan(DimenUtils.spToPixels(13, mContext)), 3, st.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); spannableString.setSpan(new ForegroundColorSpan(Color.parseColor("#FF9C00")), 3, st.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); spannableString.setSpan(new StyleSpan(Typeface.BOLD_ITALIC), 3, st.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); albumVideoHolder.tv_score.setText(spannableString); } else { albumVideoHolder.tv_score.setVisibility(View.GONE); } //设置专辑 if (videoContent.getVideo().getVideoDetailList() == null || videoContent.getVideo().getVideoDetailList().size() == 0) { albumVideoHolder.ll_videos.setVisibility(View.GONE); @@ -330,8 +381,13 @@ TextView tv_name; TextView tv_type; TextView tv_actors; TextView tv_director; TextView tv_play; TextView tv_nav_name; TextView tv_nav_more; TextView tv_score; LinearLayout ll_videos; FrameLayout ll_nav; TextView tv_video_1, tv_video_2, tv_video_3, tv_video_4, tv_video_5; View view; @@ -351,6 +407,11 @@ tv_video_5 = view.findViewById(R.id.tv_video_5); iv_vip = view.findViewById(R.id.iv_vip); iv_high = view.findViewById(R.id.iv_high); ll_nav = view.findViewById(R.id.ll_nav); tv_nav_name = view.findViewById(R.id.tv_nav_name); tv_nav_more = view.findViewById(R.id.tv_nav_more); tv_score = view.findViewById(R.id.tv_score); tv_director = view.findViewById(R.id.tv_director); } } @@ -384,4 +445,8 @@ } public interface VideoAlbumNavClickListener { public void onNav(int p); } } BuWanVideo/src/com/weikou/beibeivideo/ui/video/VideoColumn2Adapter.java
@@ -124,7 +124,7 @@ super.getItemOffsets(outRect, view, parent, state); int index = parent.getChildAdapterPosition(view); int total = parent.getAdapter().getItemCount(); int minWidth = DimenUtils.dipToPixels(2, view.getContext()); int minWidth = DimenUtils.dipToPixels(3, view.getContext()); if (index % 2 == 0) { outRect.left = 0; //第一列左边贴边 outRect.right = minWidth; @@ -204,9 +204,9 @@ public static int getItemWidth(Activity activity, int column, int padding) { int deviceWidth = DimenUtils.getScreenWidth(activity); if (column == 3) return (deviceWidth - DimenUtils.dip2px(activity, 3 * 2) - padding) / 3; return (deviceWidth - DimenUtils.dip2px(activity, 9 * 2) - padding) / 3; else if (column == 2) return (deviceWidth - DimenUtils.dip2px(activity, 3) - padding) / 2; return (deviceWidth - DimenUtils.dip2px(activity, 8) - padding) / 2; else return (int) (deviceWidth / 2.5f); } @@ -242,7 +242,7 @@ padding += rv.getPaddingLeft(); padding += rv.getPaddingRight(); itemWidth = getItemWidth(activity, 2, padding); //itemWidth = getItemWidth(activity, 2, padding); rv.addItemDecoration(itemDecoration2); } @@ -294,7 +294,7 @@ int padding = 0; padding += rv.getPaddingLeft(); padding += rv.getPaddingRight(); itemWidth = getItemWidth(activity, 3, padding); // itemWidth = getItemWidth(activity, 3, padding); rv.addItemDecoration(itemDecoration3); rv.getItemDecorationCount(); } BuWanVideo/src/com/weikou/beibeivideo/ui/video/VideoPlayerActivity.java
@@ -47,6 +47,7 @@ import com.weikou.beibeivideo.util.browser.BWJavaInterface; import com.weikou.beibeivideo.util.downutil.DownFiles; import com.weikou.beibeivideo.util.downutil.DownFiles.IProgress; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import com.weikou.beibeivideo.util.x5.X5PlayerWebView; import com.tencent.smtt.export.external.interfaces.IX5WebChromeClient.CustomViewCallback; @@ -207,7 +208,7 @@ super.onCreate(savedInstanceState); getWindow().setFormat(PixelFormat.TRANSLUCENT); setContentView(R.layout.activity_video_player); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); initX5WebView(); tv_title = findViewById(R.id.tv_title); BuWanVideo/src/com/weikou/beibeivideo/ui/video/VideoPlayerBrowserActivity.java
@@ -48,6 +48,7 @@ import com.weikou.beibeivideo.util.browser.BWJavaInterface; import com.weikou.beibeivideo.util.downutil.DownFiles; import com.weikou.beibeivideo.util.downutil.DownFiles.IProgress; import com.weikou.beibeivideo.util.ui.TopStatusSettings; import com.weikou.beibeivideo.widget.CustomWebView; import com.yeshi.video.player.util.PlayerFullScreenUtil; @@ -70,7 +71,7 @@ super.onCreate(savedInstanceState); getWindow().setFormat(PixelFormat.TRANSLUCENT); setContentView(R.layout.browser_fengxing_activity); initStatusBar(); TopStatusSettings.setStatusViewAndDeepColor(this); tv_top_bar_left = findViewById(R.id.tv_top_bar_left); tv_url = findViewById(R.id.tv_url); BuWanVideo/src/com/weikou/beibeivideo/util/ui/TopStatusSettings.java
New file @@ -0,0 +1,197 @@ package com.weikou.beibeivideo.util.ui; import android.app.Activity; import android.graphics.Color; import android.os.Build; import android.view.View; import android.view.Window; import android.view.WindowManager; import android.widget.LinearLayout; import android.widget.RelativeLayout; import com.weikou.beibeivideo.R; import java.lang.reflect.Field; public class TopStatusSettings { /* * 计算状态栏高度并设置 */ public static void setStatusView(Activity mActivity, View v_status_bar) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { Window window = mActivity.getWindow(); window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE); window.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) window.setStatusBarColor(Color.WHITE); //设置状态栏文字颜色及图标为深色 mActivity.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); int result = 0; int resourceId = mActivity.getResources().getIdentifier("status_bar_height", "dimen", "android"); if (resourceId > 0) { result = mActivity.getResources().getDimensionPixelSize(resourceId); } LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, result); v_status_bar.setLayoutParams(params); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { try { Class decorViewClazz = Class.forName("com.android.internal.policy.DecorView"); Field field = decorViewClazz.getDeclaredField("mSemiTransparentStatusBarColor"); field.setAccessible(true); field.setInt(window.getDecorView(), Color.TRANSPARENT); //改为透明 } catch (Exception e) { e.printStackTrace(); } } } else { v_status_bar.setVisibility(View.GONE); } } /* * 计算状态栏高度并设置 */ public static void setStatusViewAndDeepColor(Activity mActivity) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { Window window = mActivity.getWindow(); window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE); window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); window.setStatusBarColor(Color.WHITE); //设置状态栏文字颜色及图标为深色 mActivity.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); int result = 0; int resourceId = mActivity.getResources().getIdentifier("status_bar_height", "dimen", "android"); if (resourceId > 0) { result = mActivity.getResources().getDimensionPixelSize(resourceId); } LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, result); mActivity.findViewById(R.id.v_status_bar).setLayoutParams(params); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { try { Class decorViewClazz = Class.forName("com.android.internal.policy.DecorView"); Field field = decorViewClazz.getDeclaredField("mSemiTransparentStatusBarColor"); field.setAccessible(true); field.setInt(window.getDecorView(), Color.TRANSPARENT); //改为透明 } catch (Exception e) { e.printStackTrace(); } } } else { mActivity.findViewById(R.id.v_status_bar).setVisibility(View.GONE); } } public static void setStatusViewAndDeepColor(Activity mActivity, View stateBar, View stateBar1) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { Window window = mActivity.getWindow(); window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE); window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); window.setStatusBarColor(Color.WHITE); //设置状态栏文字颜色及图标为深色 mActivity.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); int result = 0; int resourceId = mActivity.getResources().getIdentifier("status_bar_height", "dimen", "android"); if (resourceId > 0) { result = mActivity.getResources().getDimensionPixelSize(resourceId); } LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, result); stateBar.setLayoutParams(params); if (stateBar1 != null) { stateBar1.setLayoutParams(params); } if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { try { Class decorViewClazz = Class.forName("com.android.internal.policy.DecorView"); Field field = decorViewClazz.getDeclaredField("mSemiTransparentStatusBarColor"); field.setAccessible(true); field.setInt(window.getDecorView(), Color.TRANSPARENT); //改为透明 } catch (Exception e) { e.printStackTrace(); } } } else { stateBar.setVisibility(View.GONE); if (stateBar1 != null) { stateBar1.setVisibility(View.GONE); } } } /* * 计算状态栏高度并设置 */ public static void setStatusViewAndDeepColor2(Activity mActivity) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { Window window = mActivity.getWindow(); window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE); window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); window.setStatusBarColor(Color.TRANSPARENT); int result = 0; int resourceId = mActivity.getResources().getIdentifier("status_bar_height", "dimen", "android"); if (resourceId > 0) { result = mActivity.getResources().getDimensionPixelSize(resourceId); } //设置状态栏文字颜色及图标为深色 mActivity.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, result); mActivity.findViewById(R.id.v_status_bar).setLayoutParams(params); try { Class decorViewClazz = Class.forName("com.android.internal.policy.DecorView"); Field field = decorViewClazz.getDeclaredField("mSemiTransparentStatusBarColor"); field.setAccessible(true); field.setInt(mActivity.getWindow().getDecorView(), Color.TRANSPARENT); //改为透明 } catch (Exception e) { } } else { mActivity.findViewById(R.id.v_status_bar).setVisibility(View.GONE); } } /* * 计算状态栏高度并设置 */ public static void setStatusViewAndDeepColorNoView(Activity mActivity) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { Window window = mActivity.getWindow(); window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE); window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); window.setStatusBarColor(Color.WHITE); //设置状态栏文字颜色及图标为深色 mActivity.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { try { Class decorViewClazz = Class.forName("com.android.internal.policy.DecorView"); Field field = decorViewClazz.getDeclaredField("mSemiTransparentStatusBarColor"); field.setAccessible(true); field.setInt(window.getDecorView(), Color.TRANSPARENT); //改为透明 } catch (Exception e) { e.printStackTrace(); } } } } } BuWanVideo/src/com/weikou/beibeivideo/widget/MySwipeRefreshLayout.java
New file @@ -0,0 +1,246 @@ package com.weikou.beibeivideo.widget; import android.content.Context; import android.support.v4.widget.SwipeRefreshLayout; import android.util.AttributeSet; import android.util.Log; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.AbsListView; import android.widget.ListView; import com.lcjian.library.util.RefreshLayout; import com.weikou.beibeivideo.R; public class MySwipeRefreshLayout extends SwipeRefreshLayout implements AbsListView.OnScrollListener { /** * 滑动到最下面时的上拉操作 */ private int mTouchSlop; /** * listview实例 */ private ListView mListView; /** * 上拉监听器, 到了最底部的上拉加载操作 */ private MySwipeRefreshLayout.OnLoadListener mOnLoadListener; /** * ListView的加载中footer */ private View mListViewFooter; /** * 按下时的y坐标 */ private int mYDown; /** * 抬起时的y坐标, 与mYDown一起用于滑动到底部时判断是上拉还是下拉 */ private int mLastY; /** * 是否在加载中 ( 上拉加载更多 ) */ private boolean isLoading = false; private Context mContext; /** * @param context */ public MySwipeRefreshLayout(Context context) { this(context, null); mContext = context; } public MySwipeRefreshLayout(Context context, AttributeSet attrs) { super(context, attrs); mContext = context; mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); mListViewFooter = LayoutInflater.from(context).inflate(com.lcjian.lcjianlibrary.R.layout.listview_footer, null, false); setColorSchemeColors(getResources().getColor(R.color.page_refresh_color)); } public void setFooter(View view) { if (view != null) mListViewFooter = view; } @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top , right, bottom); // Log.i("result","changed:"+changed); // Log.i("result","left:"+left); // Log.i("result","top:"+top); // Log.i("result","right:"+right); // Log.i("result","bottom:"+bottom); // 初始化ListView对象 if (mListView == null) { getListView(); } } /** * 获取ListView对象 */ private void getListView() { int childs = getChildCount(); if (childs > 0) { View childView = getChildAt(0); if (childView instanceof ListView) { mListView = (ListView) childView; // 设置滚动监听器给ListView, 使得滚动的情况下也可以自动加载 mListView.setOnScrollListener(this); Log.d(VIEW_LOG_TAG, "### 找到listview"); } } } /* * (non-Javadoc) * @see android.view.ViewGroup#dispatchTouchEvent(android.view.MotionEvent) */ @Override public boolean dispatchTouchEvent(MotionEvent event) { final int action = event.getAction(); switch (action) { case MotionEvent.ACTION_DOWN: // 按下 mYDown = (int) event.getRawY(); break; case MotionEvent.ACTION_MOVE: // 移动 mLastY = (int) event.getRawY(); break; case MotionEvent.ACTION_UP: // 抬起 if (canLoad()) { loadData(); } break; default: break; } try { return super.dispatchTouchEvent(event); } catch (Exception e) { return false; } } /** * 是否可以加载更多, 条件是到了最底部, listview不在加载中, 且为上拉操作. * * @return */ private boolean canLoad() { return isBottom() && !isLoading && isPullUp() && isMore; } /** * 是否有更多 */ public boolean isMore = true; /** * 判断是否到了最底部 */ private boolean isBottom() { if (mListView != null && mListView.getAdapter() != null) { return mListView.getLastVisiblePosition() == (mListView.getAdapter().getCount() - 1); } return false; } /** * 是否是上拉操作 * * @return */ private boolean isPullUp() { return (mYDown - mLastY) >= mTouchSlop; } /** * 如果到了最底部,而且是上拉操作.那么执行onLoad方法 */ private void loadData() { if (mOnLoadListener != null) { // 设置状态 setLoading(true); // mOnLoadListener.onLoad(); } } /** * @param loading */ public void setLoading(boolean loading) { if (disableLoading) return; isLoading = loading; if (isLoading) { mListView.addFooterView(mListViewFooter); } else { if (mListView != null && mListViewFooter != null) { mListView.removeFooterView(mListViewFooter); mYDown = 0; mLastY = 0; } } } //是否允许加载更多 默认允许加载更多 boolean disableLoading = false; public void disableLoad() { disableLoading = true; } public void enableLoad() { disableLoading = false; } /** * @param loadListener */ public void setOnLoadListener(MySwipeRefreshLayout.OnLoadListener loadListener) { mOnLoadListener = loadListener; } @Override public void onScrollStateChanged(AbsListView view, int scrollState) { } @Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { // 滚动时到了最底部也可以加载更多 if (!disableLoading && canLoad()) { loadData(); } } public static interface OnLoadListener { public void onLoad(); } } library-BaiduCPU/src/main/java/com/yeshi/ec/library_baiducpu/fragment/BaiDuCPUContentFragment.java
@@ -65,12 +65,15 @@ } public static BaiDuCPUContentFragment newInstance(BaiDuCPUType spinnerItem, int viewType, boolean showAd, BaiduCPUContentAdapter.IBaiDuCPUItemClickListener baiDuCPUItemClickListener) { public static BaiDuCPUContentFragment newInstance(BaiDuCPUType spinnerItem, int viewType, boolean showAd, int refreshColor, BaiduCPUContentAdapter.IBaiDuCPUItemClickListener baiDuCPUItemClickListener) { BaiDuCPUContentFragment fragment = new BaiDuCPUContentFragment(); Bundle bundle = new Bundle(); bundle.putSerializable("item", spinnerItem); bundle.putInt("viewType", viewType); bundle.putBoolean("showAd", showAd); bundle.putInt("refreshColor", refreshColor); fragment.setArguments(bundle); fragment.setBaiDuCPUItemClickListener(baiDuCPUItemClickListener); return fragment; @@ -177,6 +180,8 @@ return; viewType = bundle.getInt("viewType"); showAd = bundle.getBoolean("showAd", true); srl_news.setColorSchemeColors(bundle.getInt("refreshColor")); bundle.clear(); mChannelId = item.getId(); library-ViewPagerIndicator/src/com/viewpagerindicator/MTabPageIndicator.java
@@ -98,6 +98,14 @@ MATCH_PARENT)); } private int textColor; private int highLightColor; public void setTextColor(int textColor, int highLightColor) { this.textColor = textColor; this.highLightColor = highLightColor; } public void setOnTabReselectedListener(OnTabReselectedListener listener) { mTabReselectedListener = listener; } @@ -143,12 +151,10 @@ } for (int i = 0; i < mTabLayout.getChildCount(); i++) { ((TextView) mTabLayout.getChildAt(i)).setTextColor(Color.argb(255, 255, 255, 255)); ((TextView) mTabLayout.getChildAt(i)).setTextColor(textColor); } // ((TextView) tabView).setTextColor(Color.argb(255, 24, 180, // 237));//argb(255, 6, 124, 246) ((TextView) tabView).setTextColor(Color.argb(255, 247, 219, 0));// 木瓜系列 ((TextView) tabView).setTextColor(highLightColor);// 木瓜系列 mTabSelector = new Runnable() { public void run() { final int scrollPos = tabView.getLeft() @@ -192,9 +198,10 @@ tabView.setFocusable(true); tabView.setOnClickListener(mTabClickListener); tabView.setText(text); tabView.setTextColor(getResources().getColor(R.color.black1)); if (IsPad.isPad(tabView.getContext())) tabView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 25); tabView.setTextColor(textColor); tabView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 15); tabView.setBackgroundColor(Color.TRANSPARENT); if (iconResId != 0) { tabView.setCompoundDrawablesWithIntrinsicBounds(iconResId, 0, 0, 0); library-common/src/com/lcjian/library/util/common/DrawableUtils.java
New file @@ -0,0 +1,39 @@ package com.lcjian.library.util.common; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.PixelFormat; import android.graphics.drawable.Drawable; import android.view.View; import java.io.ByteArrayOutputStream; import java.io.IOException; /** * ImageUtils * * @author LCJIAN */ public class DrawableUtils { public static Bitmap drawableToBitmap(Drawable drawable) { // 取 drawable 的长宽 int w = drawable.getIntrinsicWidth(); int h = drawable.getIntrinsicHeight(); // 取 drawable 的颜色格式 Bitmap.Config config = drawable.getOpacity() != PixelFormat.OPAQUE ? Bitmap.Config.ARGB_8888 : Bitmap.Config.RGB_565; // 建立对应 bitmap Bitmap bitmap = Bitmap.createBitmap(w, h, config); // 建立对应 bitmap 的画布 Canvas canvas = new Canvas(bitmap); drawable.setBounds(0, 0, w, h); // 把 drawable 内容画到画布中 drawable.draw(canvas); return bitmap; } }