wangkai

添加MineFragment、ShortVideoFragment

Showing 361 changed files with 6093 additions and 117 deletions
... ... @@ -62,6 +62,8 @@ dependencies {
implementation project(':lib_base')
implementation project(path: ':wdinterfaceimpl')
implementation project(path: ':module_home')
implementation project(path: ':module_videoplayer')
implementation project(path: ':module_personalcenter')
// annotationProcessor 'com.alibaba:arouter-compiler:1.5.2'
}
\ No newline at end of file
... ...
/build
\ No newline at end of file
... ...
#2023/2/1 创建
个人中心module
... ...
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-parcelize'
}
android {
compileSdkVersion var.compileSdkVersion
buildToolsVersion var.buildToolsVersion
defaultConfig {
minSdkVersion var.minSdkVersion
targetSdkVersion var.targetSdkVersion
versionCode var.versionCode
versionName var.versionName
consumerProguardFiles "consumer-rules.pro"
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation project(path: ':wdbean')
implementation project(path: ':wdlayout')
annotationProcessor rootProject.ext.dependencies["arouter-compiler"]
implementation rootProject.ext.dependencies["TagTextView"]
implementation rootProject.ext.dependencies["banner"]
// implementation 'com.google.android.flexbox:flexbox:3.0.0'
}
\ No newline at end of file
... ...
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.wd.personalcenter">
<application>
<!-- <activity-->
<!-- android:name=".activity.AboutActivity"-->
<!-- android:launchMode="singleTask"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".activity.SettingActivity"-->
<!-- android:configChanges="uiMode"-->
<!-- android:exported="false"-->
<!-- android:screenOrientation="portrait" />-->
<!-- &lt;!&ndash; <activity&ndash;&gt;-->
<!-- &lt;!&ndash; android:name=".activity.FeedBackActivity"&ndash;&gt;-->
<!-- &lt;!&ndash; android:launchMode="singleTask"&ndash;&gt;-->
<!-- &lt;!&ndash; android:screenOrientation="portrait"&ndash;&gt;-->
<!-- &lt;!&ndash; android:fitsSystemWindows="true"&ndash;&gt;-->
<!-- &lt;!&ndash; android:windowSoftInputMode="adjustPan" />&ndash;&gt;-->
<!-- <activity-->
<!-- android:name=".history.activity.HistoryFavoriteDisplayActivity"-->
<!-- android:launchMode="singleTask"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".activity.AddAppWidgetActivity"-->
<!-- android:launchMode="singleTask"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".history.activity.HistoryFavoriteEditActivity"-->
<!-- android:launchMode="singleTask"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".userinfo.activity.EditProfileActivity"-->
<!-- android:exported="false"-->
<!-- android:launchMode="singleTask"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".userinfo.activity.EditNickNameActivity"-->
<!-- android:exported="false"-->
<!-- android:launchMode="singleTask"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".userinfo.activity.EditIntroductionActivity"-->
<!-- android:exported="false"-->
<!-- android:launchMode="singleTask"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".activity.PermissionManagementActivity"-->
<!-- android:launchMode="singleTask"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".activity.FocusListActivity"-->
<!-- android:launchMode="singleTask"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".usercenter.index.view.PersonalCenterActivity"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".trends.view.TrendsDetailActivity"-->
<!-- android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|screenLayout|uiMode"-->
<!-- android:resizeableActivity="true"-->
<!-- android:screenOrientation="portrait"-->
<!-- android:supportsPictureInPicture="true" />-->
<!-- <activity-->
<!-- android:name=".activity.AccountSafetyActivity"-->
<!-- android:configChanges="uiMode"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".activity.FeedBackActivity"-->
<!-- android:configChanges="uiMode"-->
<!-- android:screenOrientation="portrait"-->
<!-- android:windowSoftInputMode="adjustPan"-->
<!-- android:exported="false"/>-->
<!-- <activity-->
<!-- android:name=".activity.AboutActivity"-->
<!-- android:configChanges="uiMode"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".activity.ModifyPasswordActivity"-->
<!-- android:configChanges="uiMode"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".activity.VisitorCommentActivity"-->
<!-- android:configChanges="uiMode"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".usercenter.index.view.PictureShowActivity"-->
<!-- android:launchMode="singleTask"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".message.activity.MailGroupActivity"-->
<!-- android:exported="false"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".message.activity.PushMsgListActivity"-->
<!-- android:exported="false"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".message.activity.SystemMsgListActivity"-->
<!-- android:exported="false"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".message.activity.SystemMsgDetailActivity"-->
<!-- android:exported="false"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".message.activity.ReplyMsgListActivity"-->
<!-- android:exported="false"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".message.activity.ReservationListActivity"-->
<!-- android:exported="false"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".incentive.level.UserLevelActivity"-->
<!-- android:exported="false"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".incentive.integral.IntegralCenterActivity"-->
<!-- android:exported="false"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".incentive.integral.IntegralDetailActivity"-->
<!-- android:exported="false"-->
<!-- android:screenOrientation="portrait" />-->
<!-- <activity-->
<!-- android:name=".activity.FontSizeSettingActivity"-->
<!-- android:exported="false"-->
<!-- android:screenOrientation="portrait" />-->
</application>
</manifest>
\ No newline at end of file
... ...
package com.people.personalcenter;
import android.app.Dialog;
import android.graphics.Color;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.lifecycle.Observer;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.wd.capability.layout.constant.PageNameConstants;
import com.wd.capability.layout.uitls.PDUtils;
import com.wd.capability.network.constant.EventConstants;
import com.wd.common.base.BaseLazyFragment;
import com.wd.common.imageglide.ImageUtils;
import com.wd.foundation.bean.analytics.TrackContentBean;
import com.wd.foundation.bean.live.LiveExistNotWatchBean;
import com.wd.foundation.bean.live.LiveSubscribeBean;
import com.wd.foundation.bean.response.PersonalInfoBean;
import com.wd.foundation.wdkit.constant.BaseConstants;
import com.wd.foundation.wdkit.constant.Constants;
import com.wd.foundation.wdkit.constant.IntentConstants;
import com.wd.foundation.wdkit.constant.RouterConstants;
import com.wd.foundation.wdkit.utils.SafeBundleUtil;
import com.wd.foundation.wdkit.utils.ScreenUtils;
import com.wd.foundation.wdkit.utils.SpUtils;
import com.wd.foundation.wdkit.utils.ViewUtils;
import com.wd.foundation.wdkit.view.CircleImageView;
import com.wd.foundation.wdkit.view.RoundImageView;
import com.wd.foundation.wdkit.view.customtextview.StrokeWidthTextView;
import com.wd.foundation.wdkitcore.livedata.LiveDataBus;
import com.wd.foundation.wdkitcore.tools.ArrayUtils;
import com.wd.foundation.wdkitcore.tools.ResUtils;
import com.wd.foundation.wdkitcore.tools.StringUtils;
import com.wd.personalcenter.R;
import java.util.List;
/**
* 我的页面
*
* @author baozhaoxin
* @version [V1.0.0, 2023/4/25]
* @since V1.0.0
*/
@Route(path = RouterConstants.PATH_MODULE_MY_FRAGMENT)
public class MineFragment extends BaseLazyFragment implements View.OnClickListener {
//**************************我的页面****************************
/**
* 用户头像
*/
public final String MY_PAGE_USER_HEAD = "myPageUserHead";
/**
* 用户昵称
*/
public final String MY_PAGE_USER_NAME = "myPageUserName";
/**
* 登录/注册
*/
public final String MY_PAGE_USER_LOGIN = "myPageUserLogin";
/**
* 签到入口点击
*/
public final String MY_PAGE_USER_SIGN_IN = "myPageUserSignIn";
/**
* 评论入口点击
*/
public final String MY_PAGE_USER_COMMENT = "myPageUserComment";
/**
* 关注入口点击
*/
public final String MY_PAGE_USER_FOLLOW = "myPageUserFollow";
/**
* 收藏入口点击
*/
public final String MY_PAGE_USER_COLLECTION = "myPageUserCollection";
/**
* 历史入口点击
*/
public final String MY_PAGE_USER_HISTORY = "myPageUserHistory";
/**
* 消息入口点击
*/
public final String MY_PAGE_USER_NOTICE = "myPageUserNotice";
/**
* 问政入口点击
*/
public final String MY_PAGE_MESSAGE_BOARD = "myPageMessageBoard";
/**
* 预约入口点击
*/
public final String MY_PAGE_USER_SUBSCRIBE = "myPageUserSubscribe";
/**
* 取消预约
*/
public final String MY_PAGE_SAVEDLIVEPAGEUNSUBSCRIBE = "mySavedLivePageUnSubscribe";
/**
* 积分商城点击
*/
public final String MY_PAGE_USER_POINTS_MALL = "myPageUserPointsMall";
/**
* 数字藏品点击
*/
public final String MY_PAGE_USER_DIGITAL_COLLECTIBLES = "myPageUserDigitalCollectibles";
/**
* 意见反馈点击
*/
public final String MY_PAGE_USER_FEED_BACK = "myPageUserFeedBack";
/**
* 设置点击
*/
public final String MY_PAGE_USER_SETTING = "myPageUserSetting";
/**
* 关于点击
*/
public final String MY_PAGE_USER_ABOUT = "myPageUserAbout";
/**
* 扫一扫点击
*/
public final String MY_PAGE_SCANCODE = "myPageScanCode";
/**
* 夜间模式点击
*/
public final String MY_PAGE_USER_LIGHT_MODE = "myPageUserLightMode";
/**
* 内容管理 点击
*/
public final String MY_PAGE_CONTENT_MANAGEMENT = "myPageContentManagement";
/**
* 发布文章 点击
*/
public final String MY_PAGE_PUBLISH_ARTICLE = "myPagePublishArticle";
/**
* 发布视频 点击
*/
public final String MY_PAGE_PUBLISH_VIDEO = "myPagePublishVideo";
/**
* 发布动态 点击
*/
public final String MY_PAGE_PUBLISH_DYNAMIC = "myPagePublishDynamic";
/**
* 发布图集 点击
*/
public final String MY_PAGE_PUBLISH_ATLAS = "myPagePublishAtlas";
/**
* tag
*/
private static final String TAG = "MineFragment";
/**
* 测试入口
*/
private TextView testTv;
/**
* 滑动控件
*/
private ScrollView mScrollView;
/**
* 顶部背景图
*/
private ImageView topBgImg;
/**
* 顶部布局-未登录状态
*/
private LinearLayout unLoginTopLayout;
/**
* 头像-未登录状态
*/
private CircleImageView unLoginHeadImg;
/**
* 昵称布局-未登录状态
*/
private LinearLayout unLoginNameLayout;
/**
* 签到布局-未登录状态
*/
private FrameLayout unLoginSignInLayout;
/**
* 评论布局-未登录状态
*/
private FrameLayout unLoginCommentLayout;
/**
* 关注布局-未登录状态
*/
private FrameLayout unLoginAttentionLayout;
/**
* 收藏布局-未登录状态
*/
private FrameLayout unLoginCollectLayout;
/**
* 历史布局-未登录状态
*/
private FrameLayout unLoginhistoryLayout;
/**
* 消息布局-未登录状态
*/
private FrameLayout unLoginMessageLayout;
/**
* 问政布局-未登录状态
*/
private FrameLayout unLoginAskPoliticsLayout;
/**
* 预约布局-未登录状态
*/
private FrameLayout unLoginSubscribeLayout;
/**
* 活动投稿布局-未登录状态
*/
private FrameLayout unLoginEventSubmissionLayout;
/**
* 顶部登录状态布局
*/
private LinearLayout topLoginLayout;
/**
* 头像框
*/
private ImageView avatarFrameImg;
/**
* 头像
*/
private CircleImageView headImg;
/**
* 认证布局
*/
private FrameLayout vipLayout;
/**
* 头像加V
*/
private RoundImageView vipIV;
/**
* 昵称布局
*/
private LinearLayout nameLayout;
/**
* 昵称
*/
private StrokeWidthTextView nameTv;
private TextView tv_name_un_login;
private ImageView tvNameArrow,tv_name_un_login_arrow;
/**
* 等级
*/
private TextView lvTv;
/**
* 签到布局
*/
private FrameLayout signInLayout;
/**
* 签到
*/
private TextView signInTv;
/**
* 评论布局
*/
private FrameLayout commentLayout;
/**
* 关注布局
*/
private FrameLayout attentionLayout;
/**
* 收藏布局
*/
private FrameLayout collectLayout;
/**
* 历史布局
*/
private FrameLayout historyLayout;
/**
* 消息布局
*/
private FrameLayout messageLayout;
/**
* 消息红点
*/
private CircleImageView messageRedView;
/**
* 问政布局
*/
private FrameLayout askPoliticsLayout;
/**
* 问政红点
*/
private CircleImageView askRedView;
/**
* 预约布局
*/
private FrameLayout subscribeLayout;
/**
* 预约红点
*/
private CircleImageView subscribeRedView;
/**
* 活动投稿布局
*/
private FrameLayout eventSubmissionLayout;
/**
* 金刚区布局
*/
private RelativeLayout secLayout;
/**
* 金刚区-左边背景图
*/
private ImageView secLeftImg;
/**
* 金刚区-右边背景图
*/
private ImageView secRightImg;
/**
* 金刚区-单个图片
*/
private ImageView secSingleImg;
/**
* 创作者中心布局
*/
private LinearLayout creatorCenterLayout;
/**
* 创作者中心-内容管理布局
*/
private LinearLayout contentManagementLayout;
/**
* 创作者中心-发布入口布局
*/
private LinearLayout publishEntranceLayout;
/**
* 创作者中心-发布文章布局
*/
private LinearLayout publishArticleLayout;
/**
* 创作者中心-发布视频布局
*/
private LinearLayout publishVideoLayout;
/**
* 创作者中心-发布动态布局
*/
private LinearLayout publishDynamicLayout;
/**
* 创作者中心-发布图集布局
*/
private LinearLayout publishAtlasLayout;
/**
* 更多功能布局
*/
private LinearLayout moreFunctionsLayout;
/**
* 更多功能-积分商城布局
*/
private RelativeLayout pointsMallLayout;
/**
* 更多功能-夜间模式布局
*/
private RelativeLayout nightModeLayout;
/**
* 日间模式、夜间模式、跟随系统
*/
private TextView nightModeTv;
/**
* 更多功能-我的奖品布局
*/
private RelativeLayout myPrizeLayout;
/**
* 更多功能-意见反馈布局
*/
private RelativeLayout feedBackLayout;
/**
* 更多功能-扫一扫布局
*/
private RelativeLayout scanLayout;
/**
* 更多功能-桌面小组就布局
*/
private RelativeLayout layoutWidget;
/**
* 更多功能-设置布局
*/
private RelativeLayout settingLayout;
/**
* 更多功能-关于布局
*/
private RelativeLayout aboutLayout;
/**
* pageId
*/
private String mPageId;
/**
* tab名称
*/
private String pageName;
/**
* 背景url
*/
private String backgroundUrl;
/**
* 页面顶部状态栏颜色
*/
private int pageStatusBarColor = 0;
private String pageHomeColor;
private String noticeHomeColor;
/**
* PersonalCenterViewModel
*/
// private LoginViewModel loginViewModel;
/**
* 查询是否存在已预约且未观看且直播中的直播 (客户端个人页 预约小红点)
*/
// private GetLiveNotWatchExistViewModel getLiveNotWatchExistViewModel;
/**
* 问政-我的留言小红点
*/
// private MyAskMarkViewModel myAskMarkViewModel;
/**
* 我的消息-小红点
*/
// private MailGroupViewModel mailGroupViewModel;
/**
* 用户等级相关接口
*/
// private UserLevelViewModel userLevelViewModel;
/**
* 个人中心配置信息查询
*/
// private AppPersonalConfigViewModel appPersonalConfigViewModel;
/**
* 是否已经设置头像框
*/
private boolean avatarFrameHasSet = false;
/**
* 等级头像框
*/
private String levelHeadUrl = "";
/**
* 积分商城地址
*/
private String pointMallLinkUrl;
/**
* 我的奖品跳转地址
*/
private String awardsLinkUrl;
/**
* 夜间模式切换弹窗
*/
private Dialog nightModeDialog;
/**
* 夜间模式列表adapter
*/
// private NightModeAdapter nightModeAdapter = null;
/**
* 记录开启页面时间
*/
private long startTime;
/**
* 浏览时长
*/
public long mDuration = 0;
@Override
protected void lazyLoadData() {
}
@Override
protected String getLogTag() {
return TAG;
}
@Override
protected int getLayout() {
return R.layout.fragment_mine;
}
@Override
protected void initView(View rootView) {
testTv = ViewUtils.findViewById(rootView, R.id.iv_test);
creatorCenterLayout = ViewUtils.findViewById(rootView, R.id.layout_creator_center);
mScrollView = ViewUtils.findViewById(rootView, R.id.scroll_view);
topBgImg = ViewUtils.findViewById(rootView, R.id.img_top_bg);
//未登录布局
unLoginTopLayout = ViewUtils.findViewById(rootView, R.id.layout_mine_top_un_login);
unLoginHeadImg = ViewUtils.findViewById(rootView, R.id.img_head_un_login);
unLoginNameLayout = ViewUtils.findViewById(rootView, R.id.layout_name_un_login);
unLoginSignInLayout = ViewUtils.findViewById(rootView, R.id.layout_sign_in__un_login);
unLoginCommentLayout = ViewUtils.findViewById(rootView, R.id.layout_comment_un_login);
unLoginAttentionLayout = ViewUtils.findViewById(rootView, R.id.layout_attention_un_login);
unLoginCollectLayout = ViewUtils.findViewById(rootView, R.id.layout_collect_un_login);
unLoginhistoryLayout = ViewUtils.findViewById(rootView, R.id.layout_history_un_login);
unLoginMessageLayout = ViewUtils.findViewById(rootView, R.id.layout_message_un_login);
unLoginAskPoliticsLayout = ViewUtils.findViewById(rootView, R.id.layout_ask_politics_un_login);
unLoginSubscribeLayout = ViewUtils.findViewById(rootView, R.id.layout_subscribe_un_login);
unLoginEventSubmissionLayout = ViewUtils.findViewById(rootView, R.id.layout_event_submission_un_login);
//登录布局
topLoginLayout = ViewUtils.findViewById(rootView, R.id.layout_mine_top_login);
avatarFrameImg = ViewUtils.findViewById(rootView, R.id.img_avatar_frame);
headImg = ViewUtils.findViewById(rootView, R.id.img_head);
vipLayout = ViewUtils.findViewById(rootView, R.id.layout_vip);
vipIV = ViewUtils.findViewById(rootView, R.id.iv_vip);
nameLayout = ViewUtils.findViewById(rootView, R.id.layout_name);
nameTv = ViewUtils.findViewById(rootView, R.id.tv_name);
nameTv.setTextColor(SpUtils.isNightMode()? ResUtils.getColor(R.color.res_color_general_DDDDDD):
ResUtils.getColor(R.color.res_color_common_C1_keep));
tv_name_un_login = ViewUtils.findViewById(rootView,R.id.tv_name_un_login);
tvNameArrow = ViewUtils.findViewById(rootView,R.id.tvNameArrow);
tv_name_un_login_arrow = ViewUtils.findViewById(rootView,R.id.tv_name_un_login_arrow);
lvTv = ViewUtils.findViewById(rootView, R.id.tv_lv);
signInLayout = ViewUtils.findViewById(rootView, R.id.layout_sign_in);
signInTv = ViewUtils.findViewById(rootView, R.id.tv_sign_in);
commentLayout = ViewUtils.findViewById(rootView, R.id.layout_comment);
attentionLayout = ViewUtils.findViewById(rootView, R.id.layout_attention);
collectLayout = ViewUtils.findViewById(rootView, R.id.layout_collect);
historyLayout = ViewUtils.findViewById(rootView, R.id.layout_history);
messageLayout = ViewUtils.findViewById(rootView, R.id.layout_message);
messageRedView = ViewUtils.findViewById(rootView, R.id.view_message_red);
askPoliticsLayout = ViewUtils.findViewById(rootView, R.id.layout_ask_politics);
askRedView = ViewUtils.findViewById(rootView, R.id.view_ask_red);
subscribeLayout = ViewUtils.findViewById(rootView, R.id.layout_subscribe);
subscribeRedView = ViewUtils.findViewById(rootView, R.id.view_subscribe_red);
eventSubmissionLayout = ViewUtils.findViewById(rootView, R.id.layout_event_submission);
secLayout = ViewUtils.findViewById(rootView, R.id.mine_second_layout);
secLeftImg = ViewUtils.findViewById(rootView, R.id.img_sec_left);
secRightImg = ViewUtils.findViewById(rootView, R.id.img_sec_right);
secSingleImg = ViewUtils.findViewById(rootView, R.id.img_sec_single);
//创作者中心
contentManagementLayout = ViewUtils.findViewById(rootView, R.id.layout_content_management);
publishEntranceLayout = ViewUtils.findViewById(rootView, R.id.layout_publish_entrance);
publishArticleLayout = ViewUtils.findViewById(rootView, R.id.layout_publish_article);
publishVideoLayout = ViewUtils.findViewById(rootView, R.id.layout_publish_video);
publishDynamicLayout = ViewUtils.findViewById(rootView, R.id.layout_publish_dynamic);
publishAtlasLayout = ViewUtils.findViewById(rootView, R.id.layout_publish_atlas);
//动态设置发布入口宽度
int screenWidth = ScreenUtils.getScreenWidth();
publishArticleLayout.getLayoutParams().width = screenWidth * 88 / 375;
publishVideoLayout.getLayoutParams().width = screenWidth * 88 / 375;
publishDynamicLayout.getLayoutParams().width = screenWidth * 88 / 375;
publishAtlasLayout.getLayoutParams().width = screenWidth * 88 / 375;
//更多
moreFunctionsLayout = ViewUtils.findViewById(rootView, R.id.layout_more_functions);
pointsMallLayout = ViewUtils.findViewById(rootView, R.id.layout_points_mall);
nightModeLayout = ViewUtils.findViewById(rootView, R.id.layout_night_mode);
nightModeTv = ViewUtils.findViewById(rootView, R.id.tv_night_mode);
myPrizeLayout = ViewUtils.findViewById(rootView, R.id.layout_my_prize);
feedBackLayout = ViewUtils.findViewById(rootView, R.id.layout_feed_back);
settingLayout = ViewUtils.findViewById(rootView, R.id.layout_setting);
aboutLayout = ViewUtils.findViewById(rootView, R.id.layout_about);
scanLayout = ViewUtils.findViewById(rootView, R.id.layout_scan);
layoutWidget = ViewUtils.findViewById(rootView, R.id.layout_widget);
mPageId = SafeBundleUtil.getString(getArguments(), IntentConstants.PARAM_PAGE_ID, "");
pageName = SafeBundleUtil.getString(getArguments(), IntentConstants.TAB_NEWS_TITLE, "");
backgroundUrl = SafeBundleUtil.getString(getArguments(), IntentConstants.PAGE_BACKGROUND_URL, "");
pageStatusBarColor = SafeBundleUtil.getInt(getArguments(), IntentConstants.PAGE_STATUS_COLOR, 0);
pageHomeColor = SafeBundleUtil.getString(getArguments(), IntentConstants.PAGE_HOME_COLOR, "#FFFFFF");
noticeHomeColor = SafeBundleUtil.getString(getArguments(), IntentConstants.PAGE_NOTICE_COLOR, "#ED2800");
topBgImg.setBackgroundResource(R.mipmap.bg_mine_top_default);
changeThemeColor();
String nightmode = SpUtils.getNightMode();
String nightText = "日间模式";
if(StringUtils.isEqual(SpUtils.NIGHT_MODE,nightmode)){
nightText = "夜间模式";
}else if(StringUtils.isEqual(SpUtils.FOLLOWUP_SYSTEM,nightmode)){
nightText = "跟随系统";
}
nightModeTv.setText(nightText);
initListener();
if (PDUtils.isLogin()) {
//头像
if (!"1".equals(SpUtils.getUserType())){
ImageUtils.getInstance().
loadImageCircle(headImg, SpUtils.getHeadPhotoUrl(), R.mipmap.icon_default_head_mater);
}else {
ImageUtils.getInstance().
loadImageCircle(headImg, SpUtils.getHeadPhotoUrl(), R.mipmap.icon_default_head);
}
if (StringUtils.isEmpty(SpUtils.getUserName())) {
nameLayout.setVisibility(View.GONE);
} else {
nameLayout.setVisibility(View.VISIBLE);
//名称
nameTv.setText(SpUtils.getUserName());
}
}
}
/**
* 修改主题颜色
*/
private void changeThemeColor() {
if (!TextUtils.isEmpty(backgroundUrl)) {
ImageUtils.getInstance().homeThemeImageLoadAndSave(topBgImg, 0,
backgroundUrl, R.mipmap.bg_mine_top_default);
}
int size = topLoginLayout.getChildCount();
updateTopColor(size, topLoginLayout, false);
int sizeb = unLoginTopLayout.getChildCount();
updateTopColor(sizeb, unLoginTopLayout, false);
if(!TextUtils.isEmpty(pageHomeColor)){
nameTv.setTextColor(Color.parseColor(pageHomeColor));
tvNameArrow.setColorFilter(Color.parseColor(pageHomeColor));
tv_name_un_login.setTextColor(Color.parseColor(pageHomeColor));
tv_name_un_login_arrow.setColorFilter(Color.parseColor(pageHomeColor));
}
if (!TextUtils.isEmpty(noticeHomeColor)) {
messageRedView.setColorFilter(Color.parseColor(noticeHomeColor));
askRedView.setColorFilter(Color.parseColor(noticeHomeColor));
subscribeRedView.setColorFilter(Color.parseColor(noticeHomeColor));
}
}
/**
* @param size
* @param view
* @param isRl
*/
private void updateTopColor(int size, ViewGroup view, boolean isRl) {
ViewGroup parent = view;
if (size > 0 && !TextUtils.isEmpty(pageHomeColor)) {
for (int i = 0; i < size; i++) {
View childViewA = parent.getChildAt(i);
if (childViewA instanceof LinearLayout) {
int aSize = ((LinearLayout) childViewA).getChildCount();
updateTopColor(aSize, (ViewGroup) childViewA, true);
} else if (childViewA instanceof FrameLayout) {
int aSize = ((FrameLayout) childViewA).getChildCount();
updateTopColor(aSize, (ViewGroup) childViewA, true);
} else if (childViewA instanceof RelativeLayout && isRl) {
int aSize = ((RelativeLayout) childViewA).getChildCount();
updateTopColor(aSize, (ViewGroup) childViewA, true);
} else if (childViewA instanceof ImageView) {
ImageView childIv = (ImageView) childViewA;
childIv.setColorFilter(Color.parseColor(pageHomeColor));
} else if (childViewA instanceof TextView) {
TextView childIv = (TextView) childViewA;
childIv.setTextColor(Color.parseColor(pageHomeColor));
}
}
}
}
/**
* 监听
*/
private void initListener() {
testTv.setOnClickListener(this);
//未登录部分
unLoginHeadImg.setOnClickListener(unLoginClickListener);
unLoginNameLayout.setOnClickListener(unLoginClickListener);
unLoginSignInLayout.setOnClickListener(unLoginClickListener);
unLoginCommentLayout.setOnClickListener(this);
unLoginAttentionLayout.setOnClickListener(unLoginClickListener);
unLoginCollectLayout.setOnClickListener(unLoginClickListener);
unLoginhistoryLayout.setOnClickListener(this);
unLoginMessageLayout.setOnClickListener(this);
unLoginAskPoliticsLayout.setOnClickListener(unLoginClickListener);
unLoginSubscribeLayout.setOnClickListener(unLoginClickListener);
unLoginEventSubmissionLayout.setOnClickListener(unLoginClickListener);
headImg.setOnClickListener(this);
nameLayout.setOnClickListener(this);
lvTv.setOnClickListener(this);
signInLayout.setOnClickListener(this);
commentLayout.setOnClickListener(this);
attentionLayout.setOnClickListener(this);
collectLayout.setOnClickListener(this);
historyLayout.setOnClickListener(this);
messageLayout.setOnClickListener(this);
askPoliticsLayout.setOnClickListener(this);
subscribeLayout.setOnClickListener(this);
eventSubmissionLayout.setOnClickListener(this);
secLeftImg.setOnClickListener(this);
secRightImg.setOnClickListener(this);
secSingleImg.setOnClickListener(this);
contentManagementLayout.setOnClickListener(this);
publishArticleLayout.setOnClickListener(this);
publishVideoLayout.setOnClickListener(this);
publishDynamicLayout.setOnClickListener(this);
publishAtlasLayout.setOnClickListener(this);
pointsMallLayout.setOnClickListener(this);
nightModeLayout.setOnClickListener(this);
myPrizeLayout.setOnClickListener(this);
feedBackLayout.setOnClickListener(this);
settingLayout.setOnClickListener(this);
aboutLayout.setOnClickListener(this);
scanLayout.setOnClickListener(this);
layoutWidget.setOnClickListener(this);
initViewModel();
receiveLiveDataMsg();
}
/**
* 注册LiveDataBus
*/
private void receiveLiveDataMsg() {
//单击"ME"tab,刷新数据
// LiveDataBus.getInstance()
// .with(EventConstants.HOME_TAB_REFRESH + mPageId, Boolean.class)
// .observe(this, new Observer<Boolean>() {
// @Override
// public void onChanged(Boolean flag) {
// if (PDUtils.isLogin()) {
// //查询用户信息
//// loginViewModel.queryUserDetail();
// }
// }
// });
//退出登录清除资源
LiveDataBus.getInstance()
.with(EventConstants.CLEAR_MINE_USER_TYPE, Boolean.class)
.observe(this, new Observer<Boolean>() {
@Override
public void onChanged(Boolean aBoolean) {
if (aBoolean) {
if (!PDUtils.isLogin()) {
doUnLogin();
}
}
}
});
//游客一键合并通知
LiveDataBus.getInstance()
.with(EventConstants.VISTOR_ONE_CLICK_MERGE, Boolean.class)
.observe(this, new Observer<Boolean>() {
@Override
public void onChanged(Boolean aBoolean) {
showLevelUpGradeGuideDialog();
}
});
}
/**
* 初始化ViewModel
*/
private void initViewModel() {
// loginViewModel = getViewModelThis(LoginViewModel.class);
// loginViewModel.observeMyDetailListener(this, new MyDetailListener() {
// @Override
// public void onGetMyDetailSuccess(PersonalInfoBean myDetailBean) {
// if (myDetailBean == null) {
// return;
// }
// Logger.d(TAG, "observeUserInfoListener========>onGetUserInfoSuccess:" + myDetailBean.toString());
// seUserData(myDetailBean);
// }
//
// @Override
// public void onGetMyDetailFailed(String error) {
// Logger.d(TAG, "observeUserInfoListener========>onGetUserInfoFailed:" + error);
// userLevelViewModel.queryUserLevel();
// }
// });
//
// getLiveNotWatchExistViewModel = getViewModelThis(GetLiveNotWatchExistViewModel.class);
// getLiveNotWatchExistViewModel.observeGetLiveNotWatchExistListener(this,
// new IGetLiveNotWatchExistListener() {
// @Override
// public void onGetLiveNotWatchExistSuccess(
// LiveExistNotWatchBean liveExistNotWatchBean) {
// getLiveNotWatchExistSuccess(liveExistNotWatchBean);
// }
//
// @Override
// public void onGetLiveNotWatchExistFailed(String msg) {
//
// }
// });
//
// myAskMarkViewModel = getViewModelThis(MyAskMarkViewModel.class);
// myAskMarkViewModel.observeIMyAskMarkListener(this, new IMyAskMarkListener() {
// @Override
// public void onMyAskMarkSuccess(MyAskMarkBean myAskMarkBean, MetaBean metaBean) {
// if (metaBean != null && !StringUtils.isEmpty(metaBean.getMd5())) {
// String askMd5 = metaBean.getMd5();
// String localMd5 = SpUtils.getAskMarkMD5();
// if (StringUtils.isEmpty(localMd5)) {
// askRedView.setVisibility(View.GONE);
// SpUtils.saveAskMarkMD5(askMd5);
// return;
// }
// if (!StringUtils.isEqual(askMd5, localMd5)) {
// askRedView.setVisibility(View.VISIBLE);
// } else {
// askRedView.setVisibility(View.GONE);
// }
// }
// }
//
// @Override
// public void onMyAskMarkFailed(String msg) {
// askRedView.setVisibility(View.GONE);
// }
// });
//
// mailGroupViewModel = getViewModelThis(MailGroupViewModel.class);
// mailGroupViewModel.observeMailListener(this, new IGetMailGroupListener() {
// @Override
// public void onGetMailSuccess(MailBean mailbean) {
// getMessageRedView(mailbean);
// }
//
// @Override
// public void onGetMailError(String msg) {
//
// }
// });
//
// userLevelViewModel = new UserLevelViewModel();
// //获取用户等级回调
// userLevelViewModel.observeQueryUserLevelListener(this, new IQueryUserLevelListener() {
// @Override
// public void onQueryUserLevelSuccess(UserLevelBean userLevelBean) {
// updateUserLevel(userLevelBean);
// }
//
// @Override
// public void onQueryUserLevelFailed(String error) {
//
// }
// });
//
// appPersonalConfigViewModel = new AppPersonalConfigViewModel();
// appPersonalConfigViewModel.observeAppPersonalConfigListener(this, new IAppPersonalConfigListener() {
// @Override
// public void onAppPersonalConfigSuccess(PersonalConfigBean personalConfigBean) {
// setAppPersonalConfigData(personalConfigBean);
// }
//
// @Override
// public void onAppPersonalConfigFailed(String msg) {
//
// }
// });
}
/**
*
* @param personalConfigBean
*/
// private void setAppPersonalConfigData(PersonalConfigBean personalConfigBean){
// if(personalConfigBean == null){
// return;
// }
// //设置我的奖品跳转链接
// awardsLinkUrl = personalConfigBean.getAwardsLinkUrl();
//
// //积分商城跳转链接
// pointMallLinkUrl = personalConfigBean.getPointLinkUrl();
// //设置积分商城、数字藏品入口 todo 先隐藏
//// setPointDigitalData(personalConfigBean);
// }
/**
* 设置积分商城、数字藏品数据
* @param personalConfigBean
*/
// private void setPointDigitalData(PersonalConfigBean personalConfigBean){
// String pointDisplayImg = personalConfigBean.getPointDisplayImg();
// String digitalDisplayImg = personalConfigBean.getDigitalDisplayImg();
// if(StringUtils.isEmpty(pointDisplayImg) && StringUtils.isEmpty(digitalDisplayImg)){
// //积分商城和数字藏品入口图片都为空,不展示入口
// secLayout.setVisibility(View.GONE);
// return;
// }
// String show = personalConfigBean.getShow();
// if(StringUtils.isEqual("0",show)){
// secLayout.setVisibility(View.VISIBLE);
// secLeftImg.setVisibility(View.VISIBLE);
// secRightImg.setVisibility(View.VISIBLE);
// secSingleImg.setVisibility(View.GONE);
// //设置积分商城图
// ImageUtils.getInstance().
// loadImage(secLeftImg, pointDisplayImg, 0);
// String pointLinkUrl = personalConfigBean.getPointLinkUrl();
// secLeftImg.setTag(R.id.personal_config,pointLinkUrl);
// //设置数字藏品图
// ImageUtils.getInstance().
// loadImage(secRightImg, digitalDisplayImg, 0);
// String digitalLinkUrl = personalConfigBean.getDigitalLinkUrl();
// secRightImg.setTag(R.id.personal_config,digitalLinkUrl);
// }else if(StringUtils.isEqual("1",show) && !StringUtils.isEmpty(pointDisplayImg)){
// //1-仅展示积分商城
// secLayout.setVisibility(View.VISIBLE);
// secLeftImg.setVisibility(View.GONE);
// secRightImg.setVisibility(View.GONE);
// secSingleImg.setVisibility(View.VISIBLE);
// //设置积分商城图
// ImageUtils.getInstance().
// loadImage(secSingleImg, pointDisplayImg, 0);
// secSingleImg.setTag(R.id.personal_config,personalConfigBean);
// }else if(StringUtils.isEqual("2",show) && !StringUtils.isEmpty(digitalDisplayImg)){
// //2-仅展示数字藏品
// secLayout.setVisibility(View.VISIBLE);
// secLeftImg.setVisibility(View.GONE);
// secRightImg.setVisibility(View.GONE);
// secSingleImg.setVisibility(View.VISIBLE);
// //设置数字藏品图
// ImageUtils.getInstance().
// loadImage(secSingleImg, digitalDisplayImg, 0);
// secSingleImg.setTag(R.id.personal_config,personalConfigBean);
// }else {
// //3-全隐藏
// secLayout.setVisibility(View.GONE);
// }
// }
/**
* 更新用户等级
*/
// private void updateUserLevel(UserLevelBean userLevelBean) {
// if (userLevelBean == null) {
// return;
// }
// //用户等级
// int levelId = userLevelBean.getLevelId();
// if(levelId < 1){
// levelId = 1;
// }
// lvTv.setText("等级" + levelId);
// lvTv.setVisibility(View.VISIBLE);
//
// int userType = SpUtils.getUserType();
//
// if (userType != 1 || avatarFrameHasSet) {
// return;
// }
// //等级头像框
// String levelHead = userLevelBean.getLevelHead();
// if(StringUtils.isEmpty(levelHead)){
// avatarFrameImg.setVisibility(View.GONE);
// }else {
// ImageUtils.getInstance().
// loadImage(avatarFrameImg, levelHead, 0);
// avatarFrameImg.setVisibility(View.VISIBLE);
// avatarFrameHasSet = true;
// levelHeadUrl = levelHead;
// //处理等级升级引导
// handleLevelUpgradeGuide();
// }
// }
/**
* 获取我的消息小红点
*
* @param mailBean
*/
// private void getMessageRedView(MailBean mailBean) {
// //四种类型有一种有数据就有红点
// if (mailBean.getSystemCount() != 0 ||
// mailBean.getSubscribeCount() != 0 ||
// mailBean.getActiveCount() != 0 || SpUtils.getPushMsgCount() != 0) {
// messageRedView.setVisibility(View.VISIBLE);
// } else {
// messageRedView.setVisibility(View.GONE);
// }
// }
@Override
public void onClick(View v) {
// if (FastClickUtil.isFastClick()) {
// return;
// }
// int id = v.getId();
// if (id == R.id.iv_test) {
// //测试入口
// ProcessUtils.goTestPage();
//// ProcessUtils.goLiveTwo();
// } else if (id == R.id.img_head || id == R.id.layout_name) {
// //跳转个人详情页
// ProcessUtils.jumpToPersonalCenterActivity(0,"1", SpUtils.getUserId(),
// String.valueOf(SpUtils.getUserType()), SpUtils.getCreatorId());
// if (id == R.id.img_head) {
// //埋点:普通按钮点击,用户头像
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_HEAD,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// } else {
// //埋点:普通按钮点击,昵称
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_NAME,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// }
// } else if (id == R.id.tv_lv) {
// //等级
// ProcessUtils.jumpUserLevelPage();
// } else if (id == R.id.layout_sign_in) {
// //埋点:普通按钮点击,评论
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_SIGN_IN,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// //签到
// ProcessUtils.jumpIntegralCenterPage(1);
// } else if (id == R.id.layout_comment_un_login || id == R.id.layout_comment) {
// //埋点:普通按钮点击,评论
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_COMMENT,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// if (PDUtils.isLogin()) {
// ProcessUtils.jumpToPersonalCenterActivityFromMine(SpUtils.getUserId(),
// String.valueOf(SpUtils.getUserType()), SpUtils.getCreatorId(),
// Constants.FROM_MINE_TYPE_COMMENT);
// } else {
// ProcessUtils.goVisitorComment();
// }
// } else if (id == R.id.layout_attention) {
// //关注
// //埋点:普通按钮点击,关注
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_FOLLOW,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// ProcessUtils.goFocusListPage(0);
// } else if (id == R.id.layout_collect) {
// //收藏
// //埋点:普通按钮点击,收藏
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_COLLECTION,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// if (PDUtils.isLogin()) {
// ProcessUtils.goHistoryFavoriteEditActivity(HistoryFavoriteDisplayActivity.PAGE_TYPE_COLLECTION);
// } else {
// ProcessUtils.toOneKeyLoginActivity();
// }
// } else if (id == R.id.layout_history || id == R.id.layout_history_un_login) {
// //历史
// //埋点:普通按钮点击,历史
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_HISTORY,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// ProcessUtils.goHistoryFavoriteEditActivity(HistoryFavoriteDisplayActivity.PAGE_TYPE_HISTORY);
// } else if (id == R.id.layout_message || id == R.id.layout_message_un_login) {
// //消息
// //埋点:普通按钮点击,消息
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_NOTICE,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// ProcessUtils.goMailGroupPage();
// } else if (id == R.id.layout_ask_politics) {
// //留言板
// //埋点:普通按钮点击,留言板
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_MESSAGE_BOARD,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// ProcessUtils.goLeaveWordActivity(IntentConstants.PAGETYPE_MYLEVEWORD);
// } else if (id == R.id.layout_subscribe) {
// //预约
// //埋点:普通按钮点击,预约
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_SUBSCRIBE,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// ProcessUtils.toSubscribeLiveListActivity();
// } else if (id == R.id.layout_event_submission) {
// //活动投稿
// ProcessUtils.jumpToPersonalCenterActivityFromMine(SpUtils.getUserId(),
// String.valueOf(SpUtils.getUserType()), SpUtils.getCreatorId(),
// Constants.FROM_MINE_TYPE_ACTIVITY);
// } else if (id == R.id.img_sec_left) {
// //金刚区左边区域
// try {
// String url = (String) v.getTag(R.id.personal_config);
// if(!StringUtils.isEmpty(url)){
// ProcessUtils.goToH5Page(new ContentBean(url));
// }
// } catch (Exception e) {
// e.printStackTrace();
// }
// } else if (id == R.id.img_sec_right) {
// //金刚区右边区域
// try {
// String url = (String) v.getTag(R.id.personal_config);
// if(!StringUtils.isEmpty(url)){
// ProcessUtils.goToH5Page(new ContentBean(url));
// }
// } catch (Exception e) {
// e.printStackTrace();
// }
// } else if (id == R.id.img_sec_single) {
// //单个图片
// try {
// PersonalConfigBean personalConfigBean = (PersonalConfigBean) v.getTag(R.id.personal_config);
// if(personalConfigBean == null){
// return;
// }
// String show = personalConfigBean.getShow();
// String url = "";
// if(StringUtils.isEqual("1",show)){
// //1-仅展示数字藏品
// url = personalConfigBean.getDigitalLinkUrl();
// }else if(StringUtils.isEqual("2",show)){
// //2-仅展示积分商城
// url = personalConfigBean.getPointLinkUrl();
// }
// if(!StringUtils.isEmpty(url)){
// ProcessUtils.goToH5Page(new ContentBean(url));
// }
// } catch (Exception e) {
// e.printStackTrace();
// }
// try {
// String url = (String) v.getTag(R.id.personal_config);
// if(!StringUtils.isEmpty(url)){
// ProcessUtils.goToH5Page(new ContentBean(url));
// }
// } catch (Exception e) {
// e.printStackTrace();
// }
// } else if (id == R.id.img_sec_single) {
// //单个图片
// try {
// PersonalConfigBean personalConfigBean = (PersonalConfigBean) v.getTag(R.id.personal_config);
// if(personalConfigBean == null){
// return;
// }
// String show = personalConfigBean.getShow();
// String url = "";
// if(StringUtils.isEqual("1",show)){
// //1-仅展示积分商城
// url = personalConfigBean.getPointLinkUrl();
// }else if(StringUtils.isEqual("2",show)){
// //2-仅展示数字藏品
// url = personalConfigBean.getDigitalLinkUrl();
// }
// if(!StringUtils.isEmpty(url)){
// ProcessUtils.goToH5Page(new ContentBean(url));
// }
// } catch (Exception e) {
// e.printStackTrace();
// }
// } else if (id == R.id.layout_content_management) {
// //内容管理
// //埋点:普通按钮点击,内容管理
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_CONTENT_MANAGEMENT,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// if (PDUtils.isLogin()) {
// ProcessUtils.jumpToPersonalCenterActivityFromMine(SpUtils.getUserId(), String.valueOf(SpUtils.getUserType()), SpUtils.getCreatorId(), Constants.FROM_MINE_TYPE_WORKS);
// } else {
// ProcessUtils.toOneKeyLoginActivity();
// }
// } else if (id == R.id.layout_publish_article) {
// //发布文章
// //埋点:普通按钮点击,发布文章
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_PUBLISH_ARTICLE,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// getRemainingDispatchNum(ContentTypeConstant.URL_TYPE_EIGHT);
// } else if (id == R.id.layout_publish_video) {
// //发布视频
// //埋点:普通按钮点击,发布视频
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_PUBLISH_VIDEO,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// if (SpUtils.isPublishUploading()) {
// ToastNightUtil.showShort(ResUtils.getString(com.people.daily.common.R.string.res_publish_uploading));
// return;
// }
// getRemainingDispatchNum(ContentTypeConstant.URL_TYPE_NINE);
//// ProcessUtils.toPublishVideoActivity();
// } else if (id == R.id.layout_publish_dynamic) {
// //发布动态
// //埋点:普通按钮点击,发布动态
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_PUBLISH_DYNAMIC,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// getRemainingDispatchNum(ContentTypeConstant.URL_TYPE_FIFTEEN);
// } else if (id == R.id.layout_publish_atlas) {
// //发布图集
// //埋点:普通按钮点击,发布图集
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_PUBLISH_ATLAS,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// getRemainingDispatchNum(ContentTypeConstant.URL_TYPE_ONE);
// } else if (id == R.id.layout_points_mall) {
// //积分商城
// //埋点:普通按钮点击,积分商城
// /*GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_POINTS_MALL,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);*/
// ProcessUtils.goToH5Page(new ContentBean(StringUtils.isEmpty(pointMallLinkUrl)?
// UrlConstants.getPointsMallUrl(): pointMallLinkUrl));
// } else if (id == R.id.layout_night_mode) {
// //夜间模式
// //埋点:普通按钮点击,夜间模式
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_LIGHT_MODE,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// switchNightMode();
// } else if (id == R.id.layout_my_prize) {
// //我的奖品
// if (PDUtils.isLogin()) {
//// ToastNightUtil.showShort("敬请期待");
// ProcessUtils.goToH5Page(new ContentBean(StringUtils.isEmpty(awardsLinkUrl)?
// UrlConstants.getMyPrizeUrl():awardsLinkUrl));
// } else {
// ProcessUtils.toOneKeyLoginActivity();
// }
// } else if (id == R.id.layout_feed_back) {
// //意见反馈
// //埋点:普通按钮点击,意见反馈
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_FEED_BACK,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// if (PDUtils.isLogin()) {
// ProcessUtils.goFeekBackPage();
// } else {
// ProcessUtils.toOneKeyLoginActivity();
// }
// } else if (id == R.id.layout_setting) {
// //设置
// //埋点:普通按钮点击,设置
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_SETTING,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// ProcessUtils.goSettingPage();
// } else if (id == R.id.layout_about) {
// //关于
// //埋点:普通按钮点击,关于
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_ABOUT,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// ProcessUtils.goAboutPage();
// } else if (id == R.id.layout_scan) {
// //扫一扫
// //埋点:普通按钮点击,扫一扫
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_SCANCODE,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// if (PDUtils.isLogin()) {
// ScanHelper.getScanHelper().scanCode(getActivity());
// } else {
// ProcessUtils.toOneKeyLoginActivity();
// }
// } else if (id == R.id.layout_widget){
// // 跳转桌面组件页面
// ProcessUtils.goAddWidgetPage();
// }
}
/**
* 获取当日发文次数
* @param type
*/
// private void getRemainingDispatchNum(int type){
// final boolean[] startLoading = {true};
// CommonNetUtils.getInstance().getRemainingDispatchNum(new BaseObserver<Integer>() {
// @Override
// protected void dealSpecialCode(int code, String message) {
// stopLoading();
// startLoading[0] = false;
// jumpPublish(type);
// }
//
// @Override
// protected void onSuccess(Integer integer) {
// stopLoading();
// startLoading[0] = false;
// if(integer == 0){
// //已达到今日发文篇数限制
// ToastNightUtil.showShort(ResUtils.getString(R.string.res_get_remaining_dispatch_num_limit));
// }else {
// jumpPublish(type);
// }
// }
//
// @Override
// public void onError(Throwable e) {
// stopLoading();
// startLoading[0] = false;
// jumpPublish(type);
// }
// });
// //延迟1秒,出现loading加载动画
// contentManagementLayout.postDelayed(new Runnable() {
// @Override
// public void run() {
// if(startLoading[0]){
// startLoading();
// }
// }
// },1000);
// }
/**
* 跳转发布页
* @param type
*/
private void jumpPublish(int type){
// if(type == ContentTypeConstant.URL_TYPE_EIGHT){
// //文章
// ProcessUtils.jumpPublishArticlePage();
// }else if(type == ContentTypeConstant.URL_TYPE_NINE){
// //视频
// Intent intent = new Intent(getActivity(), RecordActivity.class);
// startActivity(intent);
// }else if(type == ContentTypeConstant.URL_TYPE_ONE){
// //多图
// ProcessUtils.jumpPublishAtlasPage();
// }else if(type == ContentTypeConstant.URL_TYPE_FIFTEEN){
// //动态
// ProcessUtils.toPublishActivity();
// }
}
/**
* 未登录点击
*/
View.OnClickListener unLoginClickListener = new View.OnClickListener() {
@Override
public void onClick(View view) {
// ProcessUtils.toOneKeyLoginActivity();
// int id = view.getId();
// if (id == R.id.layout_name_un_login) {
// //埋点:普通按钮点击,登录
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_LOGIN,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// } else if (id == R.id.img_head_un_login) {
// //埋点:普通按钮点击,头像
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_HEAD,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// } else if (id == R.id.layout_attention_un_login) {
// //埋点:普通按钮点击,关注
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_FOLLOW,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// } else if (id == R.id.layout_collect_un_login) {
// //埋点:普通按钮点击,收藏
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_COLLECTION,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// } else if (id == R.id.layout_ask_politics_un_login) {
// //埋点:普通按钮点击,留言板
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_MESSAGE_BOARD,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// } else if (id == R.id.layout_subscribe_un_login) {
// //埋点:普通按钮点击,预约
// GeneralTrack.getInstance().commonBtnClickTrack(
// MY_PAGE_USER_SUBSCRIBE,
// PageNameConstants.MY_PAGE,
// PageNameConstants.MY_PAGE);
// }
}
};
@Override
public void onResume() {
super.onResume();
startTime = System.currentTimeMillis();
//设置状态栏文字为白色
boolean isWhite = pageStatusBarColor == 0;
changePhoneStatusBarWhiteOrBlack(SpUtils.isNightMode()? !isWhite : isWhite);
if(SpUtils.isNightMode() && StringUtils.isEmpty(backgroundUrl)){
topBgImg.setBackgroundResource(R.mipmap.bg_mine_top_default_night);
}
//设置我的奖品入口是否展示
if(Constants.atvHideSwitch){
myPrizeLayout.setVisibility(View.GONE);
unLoginEventSubmissionLayout.setVisibility(View.INVISIBLE);
eventSubmissionLayout.setVisibility(View.INVISIBLE);
}else {
myPrizeLayout.setVisibility(View.VISIBLE);
unLoginEventSubmissionLayout.setVisibility(View.VISIBLE);
eventSubmissionLayout.setVisibility(View.VISIBLE);
}
//个人中心配置信息查询
// appPersonalConfigViewModel.getAppPersonalConfig();
// if (PDUtils.isLogin()) {
// doLogin();
// } else {
// doUnLogin();
// }
LiveDataBus.getInstance().with(EventConstants.HOME_TAB_BACKGROUND_THEME).postValue(false);
}
@Override
public void onPause() {
super.onPause();
long endTime = System.currentTimeMillis();
mDuration = (int) (endTime - startTime);
mDuration = mDuration/1000;
//页面浏览埋点
TrackContentBean trackContentBean = new TrackContentBean();
trackContentBean.setPage_name(PageNameConstants.MY_PAGE);
trackContentBean.setPage_id(PageNameConstants.MY_PAGE);
trackContentBean.setExposure(mDuration);
// CommonTrack.getInstance().channelExposureTrack(trackContentBean);
}
/**
* 登录后页面
*/
// private void doLogin() {
// avatarFrameHasSet = false;
// levelHeadUrl = "";
// topLoginLayout.setVisibility(View.VISIBLE);
// unLoginTopLayout.setVisibility(View.GONE);
// loginViewModel.getMyDetail();
// String paramsJson;
// List<SubscribeLivingModel> subscribeLivingModelList = SubscribeLivingHelper.
// getInstance(getContext()).getAllByUserId(SpUtils.getUserId());
// if (!ArrayUtil.isEmpty(subscribeLivingModelList)) {
// paramsJson = GsonUtils.objectToJson(subscribeLivingModelList);
// } else {
// JSONArray jsonArray = new JSONArray();
// paramsJson = jsonArray.toString();
// }
// Logger.t(TAG).d("getLiveNotWatchExistData=======>" + paramsJson);
// getLiveNotWatchExistViewModel.getLiveNotWatchExistData(paramsJson);
// myAskMarkViewModel.getMyAskMarkData();
// mailGroupViewModel.getMailList();
// }
/**
* 未登录状态
*/
private void doUnLogin() {
unLoginTopLayout.setVisibility(View.VISIBLE);
topLoginLayout.setVisibility(View.GONE);
lvTv.setVisibility(View.GONE);
askRedView.setVisibility(View.GONE);
avatarFrameImg.setVisibility(View.GONE);
avatarFrameHasSet = false;
levelHeadUrl = "";
secLayout.setVisibility(View.GONE);
hiddenCreatorCenterLayout();
}
/**
* 处理等级升级引导
*/
// private void handleLevelUpgradeGuide(){
// boolean levelUpgradeGuideIsShow = SpUtils.getLevelUpgradeGuideIsShow();
// if(levelUpgradeGuideIsShow){
// return;
// }
// String vistorMergeDataTag = SpUtils.getVistorMergeDataTag();
// if(StringUtils.isEqual("0",vistorMergeDataTag)){
// //没有合并过
// boolean isShowDataDialog = false;
// //游客评论
// String touristFirstCommentTime = SpUtils.getTouristFirstCommentTime();
// if (!StringUtils.isEmpty(touristFirstCommentTime)) {
// isShowDataDialog = true;
// }
// //直播的评论时间
// if (!StringUtils.isEmpty(SpUtils.getLiveFirstCommentTime())) {
// isShowDataDialog = true;
// }
// // 检测是否有已读数据
// if (!isShowDataDialog) {
// List<ReadContentModel> readContentModelList = ReadContentHelper.getInstance(AppContext.getContext()).queryAll();
// if (readContentModelList.size() > 0) {
// isShowDataDialog = true;
// }
// }
// if (isShowDataDialog) {
// //有游客数据需要合并
// return;
// }
// }
// showLevelUpGradeGuideDialog();
// }
/**
* 展示等级升级引导弹框
*/
private void showLevelUpGradeGuideDialog(){
// if(!isRealVisible()){
// return;
// }
// boolean levelUpgradeGuideIsShow = SpUtils.getLevelUpgradeGuideIsShow();
// if(!levelUpgradeGuideIsShow && StringUtils.isNotBlank(levelHeadUrl)){
// if(mScrollView != null){
// mScrollView.scrollTo(0,0);
// }
// SpUtils.setLevelUpgradeGuideIsShow(true);
// new LevelUpGradeGuideDialog(activity).builder(levelHeadUrl).show();
// }
}
/**
* 设置个人中心第二部分数据:评论关注数据等
*/
private void seUserData(PersonalInfoBean user) {
if (user == null) {
return;
}
String userType = StringUtils.getStringValue(user.getUserType());
try {
//更新用户类型
int mUserType = Integer.parseInt(userType);
if(mUserType != SpUtils.getUserType()){
SpUtils.saveUserType(mUserType);
}
} catch (NumberFormatException e) {
e.printStackTrace();
}
//更新性别
String sex = user.getSex();
if(StringUtils.isNotBlank(sex) && !StringUtils.isEqual(sex,SpUtils.getSex())){
SpUtils.saveSex(sex);
}
String userHeadPhoto = user.getRmhHeadUrl();
if (!StringUtils.isBlank(userHeadPhoto)) {
SpUtils.saveHeadPhotoUrl(userHeadPhoto);
}
//头像
if (!"1".equals(userType)){
ImageUtils.getInstance().
loadImageCircle(headImg, userHeadPhoto, R.mipmap.icon_default_head_mater);
}else {
ImageUtils.getInstance().
loadImageCircle(headImg, userHeadPhoto, R.mipmap.icon_default_head);
}
//认证图标
String authIcon = user.getAuthIcon();
if (StringUtils.isEmpty(authIcon)) {
vipLayout.setVisibility(View.GONE);
} else {
vipLayout.setVisibility(View.VISIBLE);
ImageUtils.getInstance().
loadImageCircle(vipIV, authIcon, 0);
}
//荣誉头像框
String honoraryIcon = user.getHonoraryIcon();
if (!StringUtils.isBlank(honoraryIcon)) {
ImageUtils.getInstance().
loadImage(avatarFrameImg, honoraryIcon, 0);
avatarFrameImg.setVisibility(View.VISIBLE);
avatarFrameHasSet = true;
} else if (StringUtils.isEmpty(authIcon)){
//最佳评论员头像框(有加V,则不展示最佳评论员头像框)
String avatarFrame = user.getAvatarFrame();
if (!StringUtils.isBlank(avatarFrame)) {
//头像
ImageUtils.getInstance().
loadImage(avatarFrameImg, avatarFrame, 0);
avatarFrameImg.setVisibility(View.VISIBLE);
avatarFrameHasSet = true;
}
}
if (!Constants.USER_TYPE_COMMON.equals(userType) && !avatarFrameHasSet) {
//是创作者且没有设置头像框
avatarFrameImg.setVisibility(View.GONE);
}
// userLevelViewModel.queryUserLevel();
if (StringUtils.isEmpty(user.getRmhName())) {
nameLayout.setVisibility(View.GONE);
} else {
nameLayout.setVisibility(View.VISIBLE);
//名称
nameTv.setText(user.getRmhName());
//更新sp中userName
SpUtils.saveUserName(user.getRmhName());
}
if (!StringUtils.isBlank(userType) && !Constants.USER_TYPE_COMMON.equals(userType) && !StringUtils.isBlank(user.getRmhId())) {
SpUtils.saveCreatorId(user.getRmhId());
}
//普通用户没有扫一扫
if (Constants.USER_TYPE_COMMON.equals(userType)){
// scanLayout.setVisibility(View.GONE);
}
//创作者中心模块
hiddenCreatorCenterLayout();
if(Constants.publishHideSwitch){
//“移动生产隐藏“开关为关
return;
}
if (StringUtils.isBlank(userType) || StringUtils.isEqual("1", userType)) {
//不是创作者,不展示创作者模块
return;
}
if ("1".equals(BaseConstants.speakControl)) {
//禁止发稿
return;
}
String cnContentPublish = StringUtils.getStringValue(user.getCnContentPublish());
if (StringUtils.isEqual("1",cnContentPublish)) {
//中文版内容分发权限 0:正常,1:关闭
return;
}
int count = 0;
if (StringUtils.isEqual("0", user.getVideoCreation())) {
//视频
count++;
ViewUtils.setVisible(publishVideoLayout, true);
}
if (StringUtils.isEqual("0", user.getVideoCollectionCreation())) {
//视频合集
}
if (StringUtils.isEqual("0", user.getArticleCreation())) {
//图文
count++;
ViewUtils.setVisible(publishArticleLayout, true);
}
if (StringUtils.isEqual("0", user.getPictureCollectionCreation())) {
//图集
count++;
ViewUtils.setVisible(publishAtlasLayout, true);
}
if (StringUtils.isEqual("0", user.getDynamicCreation())) {
//动态
count++;
ViewUtils.setVisible(publishDynamicLayout, true);
}
if (count > 0) {
ViewUtils.setVisible(creatorCenterLayout, true);
}
}
/**
* 隐藏创作者中心相关布局
*/
private void hiddenCreatorCenterLayout() {
if (ViewUtils.isVisible(creatorCenterLayout)) {
creatorCenterLayout.setVisibility(View.GONE);
}
if (ViewUtils.isVisible(publishVideoLayout)) {
publishVideoLayout.setVisibility(View.GONE);
}
if (ViewUtils.isVisible(publishArticleLayout)) {
publishArticleLayout.setVisibility(View.GONE);
}
if (ViewUtils.isVisible(publishDynamicLayout)) {
publishDynamicLayout.setVisibility(View.GONE);
}
if (ViewUtils.isVisible(publishAtlasLayout)) {
publishAtlasLayout.setVisibility(View.GONE);
}
}
/**
* 直播预约小红点
*
* @param liveExistNotWatchBean
*/
private void getLiveNotWatchExistSuccess(LiveExistNotWatchBean liveExistNotWatchBean) {
if (liveExistNotWatchBean == null) {
return;
}
if (liveExistNotWatchBean.isExistNotWatch()) {
//存在 已预约且未观看且直播中的直播
subscribeRedView.setVisibility(View.VISIBLE);
} else {
//不存在 已预约且未观看且直播中的直播
subscribeRedView.setVisibility(View.GONE);
}
List<LiveSubscribeBean> endLiveList = liveExistNotWatchBean.getEndLiveList();
if (ArrayUtils.isEmpty(endLiveList)) {
return;
}
for (int i = 0; i < endLiveList.size(); i++) {
//删除缓存中结束的直播数据
LiveSubscribeBean liveSubscribeBean = endLiveList.get(i);
String keys = SpUtils.getUserId() + "_" + liveSubscribeBean.getLiveId() + "_" +
liveSubscribeBean.getRelationId();
// SubscribeLivingHelper.getInstance(getContext()).deleteByKeys(keys);
}
}
/**
* 切换夜间模式
*/
// private void switchNightMode() {
// //创建弹窗
// if (nightModeDialog == null) {
// List<NightModeBean> nightModeBeans = new ArrayList<>();
// //日间模式
// NightModeBean bean = new NightModeBean();
// bean.nightmodeWord = SpUtils.LIGHT_MODE;
// bean.nightMode = AppCompatDelegate.MODE_NIGHT_NO;
// bean.showLine = true;
// nightModeBeans.add(bean);
// //夜间模式
// bean = new NightModeBean();
// bean.nightmodeWord = SpUtils.NIGHT_MODE;
// bean.nightMode = AppCompatDelegate.MODE_NIGHT_YES;
// bean.showLine = true;
// nightModeBeans.add(bean);
// //跟随系统(二级页面跟随系统,系统切换有问题,暂去掉)
// /*bean = new NightModeBean();
// bean.nightmodeWord = SpUtils.FOLLOWUP_SYSTEM;
// bean.nightMode = AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM;
// nightModeBeans.add(bean);*/
//
// AlertDialog.Builder builder = new AlertDialog.Builder(activity);
// builder.setContentView(R.layout.nightmode_dialog);
// builder.fullWidth();
// builder.fromBottom(false);
// builder.setAnimations(R.style.BottomShowAnimation);
// nightModeDialog = builder.show();
// RecyclerView rvproduct = nightModeDialog.findViewById(R.id.rv_product);
// rvproduct.setLayoutManager(new LinearLayoutManager(activity));
// AppCompatTextView tvCancel = nightModeDialog.findViewById(R.id.tvCancel);
// tvCancel.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
// nightModeDialog.dismiss();
// }
// });
// //设置列表数据
// nightModeAdapter = new NightModeAdapter(nightModeBeans);
// rvproduct.setAdapter(nightModeAdapter);
// nightModeAdapter.setOnItemClickListener(new OnItemClickListener() {
// @Override
// public void onItemClick(BaseQuickAdapter baseQuickAdapter, View view, int i) {
// //更换了模式
// if (!nightModeBeans.get(i).nightmodeWord.equals(SpUtils.getNightMode())) {
// //切换模式
// try {
// if(i == 1){
// Constants.isNightMode = true;
// }
// SpUtils.saveNightMode(nightModeBeans.get(i).nightmodeWord);
// AppCompatActivity appCompatActivity = (AppCompatActivity) activity;
// appCompatActivity.getDelegate().setLocalNightMode(nightModeBeans.get(i).nightMode);
// AppCompatDelegate.setDefaultNightMode(nightModeBeans.get(i).nightMode);
//// LiveDataBus.getInstance().with(EventConstants.EVENT_GLOBALLISTENING).postValue(1);
// } catch (Exception e) {
// throw new RuntimeException(e);
// }
// }
// String nightText = "日间模式";
// if(StringUtils.isEqual(SpUtils.NIGHT_MODE,SpUtils.getNightMode())){
// nightText = "夜间模式";
// }else if(StringUtils.isEqual(SpUtils.FOLLOWUP_SYSTEM,SpUtils.getNightMode())){
// nightText = "跟随系统";
// }
// nightModeTv.setText(nightText);
// nightModeDialog.dismiss();
// }
// });
// } else {
// nightModeDialog.show();
// if(nightModeAdapter != null){
// nightModeAdapter.notifyDataSetChanged();
// }
// }
// }
@Override
public void onDestroy() {
super.onDestroy();
}
}
... ...
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="#F6F6F6"></item>
<item android:state_selected="true" android:color="#ED2800"></item>
<item android:state_selected="false" android:color="#F6F6F6"></item>
</selector>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"
android:useLevel="false" >
<solid android:color="@color/transparent" />
<stroke
android:width="@dimen/rmrb_dp2"
android:color="@color/res_color_common_C8" />
<size
android:height="@dimen/rmrb_dp72"
android:width="@dimen/rmrb_dp72" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/res_color_common_C8" />
<corners android:radius="10dp" />
</shape>
</item>
</layer-list>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#14555555" />
<corners
android:bottomLeftRadius="7dp"
android:bottomRightRadius="7dp"
android:topLeftRadius="7dp"
android:topRightRadius="7dp" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="@dimen/rmrb_dp4"/>
<solid android:color="@color/res_color_common_C8"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="@dimen/rmrb_dp5"/>
<solid android:color="@color/res_color_common_C11_2"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="@dimen/rmrb_dp5"/>
<solid android:color="@color/res_color_common_C11"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffdddddd" />
<corners
android:bottomLeftRadius="2dp"
android:bottomRightRadius="2dp"
android:topLeftRadius="2dp"
android:topRightRadius="2dp" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/res_color_common_C7"/>
<corners android:radius="@dimen/rmrb_dp4" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="1dp" />
<solid android:color="@color/rmrb_a3a3a3_light" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="1dp" />
<solid android:color="#4D000000" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffb71d26" />
<corners
android:bottomLeftRadius="@dimen/rmrb_dp1"
android:bottomRightRadius="@dimen/rmrb_dp1"
android:topLeftRadius="@dimen/rmrb_dp1"
android:topRightRadius="@dimen/rmrb_dp1" />
</shape>
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="45"
android:startColor="#FFFAF8F8"
android:endColor="#00FAF8F8"
android:type="linear"
android:useLevel="true" />
<corners
android:bottomLeftRadius="0dp"
android:bottomRightRadius="0dp"
android:topLeftRadius="0dp"
android:topRightRadius="0dp" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="45"
android:startColor="#E6000000"
android:endColor="#4D000000"
android:type="linear"
android:useLevel="true" />
<corners
android:bottomLeftRadius="0dp"
android:bottomRightRadius="0dp"
android:topLeftRadius="0dp"
android:topRightRadius="0dp" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#66000000" />
<corners
android:bottomLeftRadius="136dp"
android:bottomRightRadius="136dp"
android:topLeftRadius="136dp"
android:topRightRadius="136dp" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/color_a6a6a6" />
<corners android:radius="@dimen/rmrb_dp8" />
</shape>
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="@dimen/rmrb_dp8"/>
<solid android:color="@color/color_a6a6a6"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_checked="true"
android:drawable="@mipmap/checkbox_true"
/>
<item
android:state_checked="false"
android:drawable="@mipmap/checkbox_false"
/>
</selector>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="@dimen/rmrb_dp4"/>
<solid android:color="@color/res_color_common_C8"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/shape_tab_item_bag_select_yes" android:state_selected="true" />
<item android:drawable="@drawable/shape_tab_item_bag_select_no" />
</selector>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/tab_bottom_line" android:state_selected="true" />
<item android:drawable="@drawable/shape_tab_item_line_select_no" />
</selector>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/color_1ACB0000" />
<corners android:radius="@dimen/rmrb_dp2"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="@dimen/rmrb_dp3"/>
<solid android:color="@color/res_color_common_C7"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="@dimen/rmrb_dp8"/>
<solid android:color="@color/res_color_common_C8"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/res_color_common_C11_2" />
<corners
android:radius="@dimen/rmrb_dp5" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/res_color_common_C11" />
<corners
android:radius="@dimen/rmrb_dp5" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="@dimen/rmrb_dp2"/>
<solid android:color="@color/res_color_general_E31919_8"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:width="@dimen/rmrb_dp1"
android:color="@color/res_color_common_C6" />
<solid android:color="@color/res_color_common_C8"/>
<corners android:radius="@dimen/rmrb_dp2" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:width="@dimen/rmrb_dp0_5"
android:color="@color/res_color_common_C6" />
<solid android:color="@color/res_color_general_F9F9F9_s1" />
<corners android:radius="@dimen/rmrb_dp2" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:width="@dimen/rmrb_dp0_5"
android:color="@color/res_color_common_C6" />
<corners android:radius="@dimen/rmrb_dp2" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid android:color="@color/res_color_common_C7" />
<corners android:radius="@dimen/rmrb_dp4"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="@dimen/rmrb_dp3"/>
<stroke android:width="0.5dp"
android:color="@color/res_color_common_C6"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<!-- 内部颜色 -->
<solid android:color="@color/color_F9F9F9" />
<corners android:radius="@dimen/rmrb_dp8" />
<padding android:bottom="@dimen/rmrb_dp16" android:left="@dimen/rmrb_dp12"
android:right="@dimen/rmrb_dp19" android:top="@dimen/rmrb_dp16" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="@dimen/rmrb_dp4"/>
<solid android:color="@color/res_color_common_C8"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:shape="oval"
android:useLevel="false"
tools:ignore="ResourceName">
<solid android:color="@color/transparent" />
<stroke
android:width="@dimen/rmrb_dp0_5"
android:color="@color/res_color_common_C10" />
<size
android:width="@dimen/rmrb_dp60"
android:height="@dimen/rmrb_dp60" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/res_color_common_C7" />
<corners android:radius="@dimen/rmrb_dp2"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:bottomLeftRadius="0dp"
android:bottomRightRadius="0dp"
android:topLeftRadius="@dimen/rmrb_dp16"
android:topRightRadius="@dimen/rmrb_dp16" />
<solid android:color="@color/res_color_common_C8" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:bottomLeftRadius="0dp"
android:bottomRightRadius="0dp"
android:topLeftRadius="@dimen/rmrb_dp12"
android:topRightRadius="@dimen/rmrb_dp12" />
<solid android:color="@color/res_color_common_C8" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="@dimen/rmrb_dp4"/>
<solid android:color="@color/res_color_common_C8" />
<stroke android:width="@dimen/rmrb_dp1"
android:color="@color/res_color_common_C7"/>
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="@dimen/rmrb_dp4"/>
<solid android:color="@color/color_D50A17_1A" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/transparent" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/res_color_common_C11" />
</shape>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:width="@dimen/rmrb_dp16"
android:height="@dimen/rmrb_dp2"
android:gravity="center">
<shape>
<corners android:radius="@dimen/rmrb_dp1" />
</shape>
</item>
</layer-list>
\ No newline at end of file
... ...
<?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="@color/res_color_common_C7_s1"
android:orientation="vertical">
<ScrollView
android:id="@+id/scroll_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:scrollbars="none"
android:fillViewport="true"
android:overScrollMode="never">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/img_top_bg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- 头部未登录状态 -->
<include layout="@layout/include_mine_top_un_login" />
<!-- 用户信息 -->
<include layout="@layout/include_mine_top_login" />
<!-- 积分商城、数字藏品 -->
<include layout="@layout/include_mine_second_layout" />
<!-- 创作者中心 -->
<include layout="@layout/include_mine_creator_center" />
<!-- 更多功能 -->
<include layout="@layout/include_mine_more_functions" />
<TextView
android:id="@+id/iv_test"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp80"
android:layout_marginTop="@dimen/rmrb_dp20"
android:background="@color/blue_theme_bg"
android:gravity="center"
android:text="测试入口"
android:textColor="@color/res_color_common_C8"
android:textSize="@dimen/rmrb_dp20"
android:visibility="gone" />
</LinearLayout>
</FrameLayout>
</ScrollView>
</LinearLayout>
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layout_creator_center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginHorizontal="@dimen/rmrb_dp12"
android:layout_marginTop="@dimen/rmrb_dp10"
android:paddingBottom="@dimen/rmrb_dp20"
android:orientation="vertical"
android:visibility="gone"
tools:visibility="visible"
android:background="@drawable/shape_bg_white_radious_4">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp48">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/res_str_creator_center"
android:textSize="@dimen/rmrb_dp15"
android:textColor="@color/res_color_common_C1"
android:textStyle="bold"
android:layout_marginTop="@dimen/rmrb_dp12"
android:layout_marginLeft="@dimen/rmrb_dp16"
android:layout_centerVertical="true"/>
<LinearLayout
android:id="@+id/layout_content_management"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/rmrb_dp16">
<TextView
android:id="@+id/tv_content_management"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/res_str_content_management"
android:textSize="@dimen/rmrb_dp14"
android:textColor="@color/res_color_common_C3"
android:layout_gravity="center_vertical"/>
<ImageView
android:id="@+id/img_content_management"
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:src="@mipmap/icon_mine_next_gray"
android:layout_gravity="center_vertical"/>
</LinearLayout>
</RelativeLayout>
<LinearLayout
android:id="@+id/layout_publish_entrance"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/layout_publish_article"
android:layout_width="@dimen/rmrb_dp88"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/img_publish_article"
android:layout_width="@dimen/rmrb_dp26"
android:layout_height="@dimen/rmrb_dp26"
android:background="@mipmap/icon_mine_publish_article"
android:layout_gravity="center_horizontal"/>
<TextView
android:id="@+id/tv_publish_article"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/res_str_publish_article"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C1"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/rmrb_dp8"/>
</LinearLayout>
<LinearLayout
android:id="@+id/layout_publish_video"
android:layout_width="@dimen/rmrb_dp88"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/img_publish_video"
android:layout_width="@dimen/rmrb_dp26"
android:layout_height="@dimen/rmrb_dp26"
android:background="@mipmap/icon_mine_publish_video"
android:layout_gravity="center_horizontal"/>
<TextView
android:id="@+id/tv_publish_video"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/res_str_publish_video"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C1"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/rmrb_dp8"/>
</LinearLayout>
<LinearLayout
android:id="@+id/layout_publish_dynamic"
android:layout_width="@dimen/rmrb_dp88"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/img_publish_dynamic"
android:layout_width="@dimen/rmrb_dp26"
android:layout_height="@dimen/rmrb_dp26"
android:background="@mipmap/icon_mine_publish_dynamic"
android:layout_gravity="center_horizontal"/>
<TextView
android:id="@+id/tv_publish_dynamic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/res_str_publish_dynamic"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C1"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/rmrb_dp8"/>
</LinearLayout>
<LinearLayout
android:id="@+id/layout_publish_atlas"
android:layout_width="@dimen/rmrb_dp88"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/img_publish_atlas"
android:layout_width="@dimen/rmrb_dp26"
android:layout_height="@dimen/rmrb_dp26"
android:background="@mipmap/icon_mine_publish_atlas"
android:layout_gravity="center_horizontal"/>
<TextView
android:id="@+id/tv_publish_atlas"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/res_str_publish_atlas"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C1"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/rmrb_dp8"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_more_functions"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/rmrb_dp12"
android:layout_marginTop="@dimen/rmrb_dp10"
android:background="@drawable/shape_bg_white_radious_4"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/rmrb_dp16"
android:layout_marginTop="@dimen/rmrb_dp12"
android:text="@string/res_str_more_functions"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp15"
android:textStyle="bold" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp0_5"
android:layout_marginTop="@dimen/rmrb_dp12"
android:background="@color/res_color_common_C6" />
<!--积分商城-->
<RelativeLayout
android:id="@+id/layout_points_mall"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp56">
<ImageView
android:id="@+id/img_points_mall"
android:layout_width="@dimen/rmrb_dp20"
android:layout_height="@dimen/rmrb_dp20"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp14"
android:background="@mipmap/icon_mine_point_mall" />
<TextView
android:id="@+id/tv_point_display"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp8"
android:layout_toRightOf="@+id/img_points_mall"
android:text="@string/res_integral_mall"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp15" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/rmrb_dp12"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/res_str_more"
android:textColor="@color/res_color_common_C3"
android:textSize="@dimen/rmrb_dp14"
android:visibility="gone" />
<ImageView
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:layout_gravity="center_vertical"
android:background="@mipmap/icon_mine_next_gray" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp0_5"
android:layout_alignParentBottom="true"
android:layout_marginLeft="@dimen/rmrb_dp16"
android:layout_marginRight="@dimen/rmrb_dp16"
android:background="@color/res_color_common_C6" />
</RelativeLayout>
<!--扫一扫-->
<RelativeLayout
android:id="@+id/layout_scan"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp56">
<ImageView
android:id="@+id/img_scan"
android:layout_width="@dimen/rmrb_dp20"
android:layout_height="@dimen/rmrb_dp20"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp14"
android:background="@mipmap/icon_mine_scan" />
<TextView
android:id="@+id/tv_scan"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp8"
android:layout_toRightOf="@+id/img_scan"
android:text="@string/res_str_scan"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp15" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/rmrb_dp12"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/res_str_more"
android:textColor="@color/res_color_common_C3"
android:textSize="@dimen/rmrb_dp14"
android:visibility="gone" />
<ImageView
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:layout_gravity="center_vertical"
android:background="@mipmap/icon_mine_next_gray" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp0_5"
android:layout_alignParentBottom="true"
android:layout_marginLeft="@dimen/rmrb_dp16"
android:layout_marginRight="@dimen/rmrb_dp16"
android:background="@color/res_color_common_C6" />
</RelativeLayout>
<!--桌面组件-->
<RelativeLayout
android:id="@+id/layout_widget"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp56">
<ImageView
android:id="@+id/img_widget"
android:layout_width="@dimen/rmrb_dp20"
android:layout_height="@dimen/rmrb_dp20"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp14"
android:background="@mipmap/icon_mine_widget" />
<TextView
android:id="@+id/tv_widget"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp8"
android:layout_toRightOf="@+id/img_widget"
android:text="@string/res_str_widget"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp15" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/rmrb_dp12"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/res_str_more"
android:textColor="@color/res_color_common_C3"
android:textSize="@dimen/rmrb_dp14"
android:visibility="gone" />
<ImageView
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:layout_gravity="center_vertical"
android:background="@mipmap/icon_mine_next_gray" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp0_5"
android:layout_alignParentBottom="true"
android:layout_marginLeft="@dimen/rmrb_dp16"
android:layout_marginRight="@dimen/rmrb_dp16"
android:background="@color/res_color_common_C6" />
</RelativeLayout>
<!--夜间模式-->
<RelativeLayout
android:id="@+id/layout_night_mode"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp56"
android:visibility="visible">
<ImageView
android:id="@+id/img_night_mode"
android:layout_width="@dimen/rmrb_dp20"
android:layout_height="@dimen/rmrb_dp20"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp14"
android:background="@mipmap/icon_mine_night_mode" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp8"
android:layout_toRightOf="@+id/img_night_mode"
android:text="@string/res_str_night_mode"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp15" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/rmrb_dp12"
android:orientation="horizontal">
<com.wd.foundation.wdkit.view.customtextview.RegularTextView
android:id="@+id/tv_night_mode"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:textColor="@color/res_color_common_C1_s2"
android:textSize="@dimen/rmrb_dp14"
android:layout_marginRight="@dimen/rmrb_dp4"/>
<ImageView
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:layout_gravity="center_vertical"
android:background="@mipmap/icon_mine_next_gray" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp0_5"
android:layout_alignParentBottom="true"
android:layout_marginLeft="@dimen/rmrb_dp16"
android:layout_marginRight="@dimen/rmrb_dp16"
android:background="@color/res_color_common_C6" />
</RelativeLayout>
<!--我的奖品-->
<RelativeLayout
android:id="@+id/layout_my_prize"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp56"
android:visibility="gone">
<ImageView
android:id="@+id/img_my_prize"
android:layout_width="@dimen/rmrb_dp20"
android:layout_height="@dimen/rmrb_dp20"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp14"
android:background="@mipmap/icon_mine_my_prize" />
<TextView
android:id="@+id/tv_my_prize"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp8"
android:layout_toRightOf="@+id/img_my_prize"
android:text="@string/res_str_my_prize"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp15" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/rmrb_dp12"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/res_str_more"
android:textColor="@color/res_color_common_C3"
android:textSize="@dimen/rmrb_dp14"
android:visibility="gone" />
<ImageView
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:layout_gravity="center_vertical"
android:background="@mipmap/icon_mine_next_gray" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp0_5"
android:layout_alignParentBottom="true"
android:layout_marginLeft="@dimen/rmrb_dp16"
android:layout_marginRight="@dimen/rmrb_dp16"
android:background="@color/res_color_common_C6" />
</RelativeLayout>
<!--意见反馈-->
<RelativeLayout
android:id="@+id/layout_feed_back"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp56">
<ImageView
android:id="@+id/img_feed_back"
android:layout_width="@dimen/rmrb_dp20"
android:layout_height="@dimen/rmrb_dp20"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp14"
android:background="@mipmap/icon_mine_feedback" />
<TextView
android:id="@+id/tv_feed_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp8"
android:layout_toRightOf="@+id/img_feed_back"
android:text="@string/res_str_feed_back"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp15" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/rmrb_dp12"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/res_str_more"
android:textColor="@color/res_color_common_C3"
android:textSize="@dimen/rmrb_dp14"
android:visibility="gone" />
<ImageView
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:layout_gravity="center_vertical"
android:background="@mipmap/icon_mine_next_gray" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp0_5"
android:layout_alignParentBottom="true"
android:layout_marginLeft="@dimen/rmrb_dp16"
android:layout_marginRight="@dimen/rmrb_dp16"
android:background="@color/res_color_common_C6" />
</RelativeLayout>
<!--设置-->
<RelativeLayout
android:id="@+id/layout_setting"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp56">
<ImageView
android:id="@+id/img_setting"
android:layout_width="@dimen/rmrb_dp20"
android:layout_height="@dimen/rmrb_dp20"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp14"
android:background="@mipmap/icon_mine_setting" />
<TextView
android:id="@+id/tv_setting"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp8"
android:layout_toRightOf="@+id/img_setting"
android:text="@string/res_str_setting"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp15" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/rmrb_dp12"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/res_str_more"
android:textColor="@color/res_color_common_C3"
android:textSize="@dimen/rmrb_dp14"
android:visibility="gone" />
<ImageView
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:layout_gravity="center_vertical"
android:background="@mipmap/icon_mine_next_gray" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp0_5"
android:layout_alignParentBottom="true"
android:layout_marginLeft="@dimen/rmrb_dp16"
android:layout_marginRight="@dimen/rmrb_dp16"
android:background="@color/res_color_common_C6" />
</RelativeLayout>
<!--关于-->
<RelativeLayout
android:id="@+id/layout_about"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp56">
<ImageView
android:id="@+id/img_about"
android:layout_width="@dimen/rmrb_dp20"
android:layout_height="@dimen/rmrb_dp20"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp14"
android:background="@mipmap/icon_mine_about" />
<TextView
android:id="@+id/tv_about"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp8"
android:layout_toRightOf="@+id/img_about"
android:text="@string/res_str_about"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp15" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/rmrb_dp12"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/res_str_more"
android:textColor="@color/res_color_common_C3"
android:textSize="@dimen/rmrb_dp14"
android:visibility="gone" />
<ImageView
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:layout_gravity="center_vertical"
android:background="@mipmap/icon_mine_next_gray" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mine_second_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp60"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/rmrb_dp12"
android:layout_marginHorizontal="@dimen/rmrb_dp12"
android:visibility="gone"
tools:visibility="visible">
<ImageView
android:id="@+id/img_sec_left"
android:layout_width="@dimen/rmrb_dp182"
android:layout_height="match_parent"
android:visibility="gone"
tools:visibility="visible"/>
<ImageView
android:id="@+id/img_sec_right"
android:layout_width="@dimen/rmrb_dp182"
android:layout_height="match_parent"
android:visibility="gone"
tools:visibility="visible"
android:layout_alignParentRight="true"/>
<ImageView
android:id="@+id/img_sec_single"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
tools:visibility="visible"/>
</RelativeLayout>
\ No newline at end of file
... ...
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layout_mine_top_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/rmrb_dp46"
android:orientation="vertical"
android:visibility="gone"
tools:visibility="visible">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp86">
<RelativeLayout
android:id="@+id/layout_head"
android:layout_width="@dimen/rmrb_dp86"
android:layout_height="@dimen/rmrb_dp86"
android:layout_marginLeft="@dimen/rmrb_dp11">
<com.wd.foundation.wdkit.view.CircleImageView
android:id="@+id/img_head"
android:layout_width="@dimen/rmrb_dp60"
android:layout_height="@dimen/rmrb_dp60"
android:layout_centerInParent="true"
android:src="@mipmap/icon_default_head" />
<View
android:layout_width="@dimen/rmrb_dp61"
android:layout_height="@dimen/rmrb_dp61"
android:layout_centerInParent="true"
android:background="@drawable/shape_header_circle_000000_60" />
<!-- 人民号认证加V-个人中心-->
<FrameLayout
android:id="@+id/layout_vip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/img_head"
android:layout_alignRight="@+id/img_head"
android:visibility="gone">
<com.wd.foundation.wdkit.view.RoundImageView
android:id="@+id/iv_vip"
android:layout_width="@dimen/rmrb_dp20"
android:layout_height="@dimen/rmrb_dp20"
android:scaleType="fitXY" />
</FrameLayout>
<ImageView
android:id="@+id/img_avatar_frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:visibility="gone"/>
</RelativeLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/layout_head"
android:orientation="vertical">
<LinearLayout
android:id="@+id/layout_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<com.wd.foundation.wdkit.view.customtextview.StrokeWidthTextView
android:id="@+id/tv_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxWidth="@dimen/rmrb_dp185"
android:text=""
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp20"
app:text_stroke_width="1"
android:maxLines="1"
android:ellipsize="end"/>
<ImageView
android:id="@+id/tvNameArrow"
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:src="@mipmap/icon_mine_next_black" />
</LinearLayout>
<TextView
android:id="@+id/tv_lv"
android:layout_width="wrap_content"
android:layout_height="@dimen/rmrb_dp15"
android:layout_marginTop="8dp"
android:background="@mipmap/mine_lv_bg"
android:gravity="center"
android:paddingLeft="@dimen/rmrb_dp9"
android:paddingRight="@dimen/rmrb_dp9"
android:text="等级1"
android:textColor="@color/res_color_common_C8_keep"
android:textSize="@dimen/rmrb_dp10"
android:textStyle="bold"
android:visibility="gone" />
</LinearLayout>
<FrameLayout
android:id="@+id/layout_sign_in"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true">
<TextView
android:id="@+id/tv_sign_in"
android:layout_width="@dimen/rmrb_dp56"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/rmrb_dp13"
android:background="@mipmap/bg_sign_in"
android:gravity="center"
android:text="签到"
android:textColor="@color/res_color_common_C14"
android:textSize="@dimen/rmrb_dp13"
android:textStyle="bold" />
<ImageView
android:layout_width="@dimen/rmrb_dp26"
android:layout_height="@dimen/rmrb_dp26"
android:layout_gravity="center_vertical"
android:layout_toLeftOf="@+id/tv_sign_in"
android:background="@mipmap/icon_mine_sign_in"
android:scaleType="fitXY" />
</FrameLayout>
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp61"
android:layout_marginLeft="@dimen/rmrb_dp12"
android:layout_marginRight="@dimen/rmrb_dp11"
android:orientation="horizontal">
<FrameLayout
android:id="@+id/layout_comment"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_mine_comment" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/res_str_comment"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp12"
android:layout_marginTop="@dimen/rmrb_dp4" />
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/layout_attention"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<View
android:layout_width="1dp"
android:layout_height="@dimen/rmrb_dp15"
android:layout_gravity="center_vertical"
android:background="@color/res_color_general_222222_10" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_mine_attention" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/res_str_attention"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp12"
android:layout_marginTop="@dimen/rmrb_dp4" />
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/layout_collect"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<View
android:layout_width="1dp"
android:layout_height="@dimen/rmrb_dp15"
android:layout_gravity="center_vertical"
android:background="@color/res_color_general_222222_10" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_mine_collect" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/res_str_collect"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp12"
android:layout_marginTop="@dimen/rmrb_dp4" />
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/layout_history"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<View
android:layout_width="1dp"
android:layout_height="@dimen/rmrb_dp15"
android:layout_gravity="center_vertical"
android:background="@color/res_color_general_222222_10" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_mine_history" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/res_str_history"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp12"
android:layout_marginTop="@dimen/rmrb_dp4" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp61"
android:layout_marginLeft="@dimen/rmrb_dp12"
android:layout_marginRight="@dimen/rmrb_dp11"
android:orientation="horizontal">
<FrameLayout
android:id="@+id/layout_message"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:visibility="visible">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical">
<RelativeLayout
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:src="@mipmap/icon_mine_message" />
<com.wd.foundation.wdkit.view.CircleImageView
android:id="@+id/view_message_red"
android:layout_width="@dimen/rmrb_dp8"
android:layout_height="@dimen/rmrb_dp8"
android:layout_alignParentRight="true"
android:src="@color/res_color_common_C11"
android:visibility="gone"
app:civ_border_color="@color/res_color_common_C8"
app:civ_border_overlay="true"
app:civ_border_width="@dimen/rmrb_dp1" />
</RelativeLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/res_str_message"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp12"
android:layout_marginTop="@dimen/rmrb_dp4"/>
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/layout_ask_politics"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:visibility="visible">
<View
android:layout_width="1dp"
android:layout_height="@dimen/rmrb_dp15"
android:layout_gravity="center_vertical"
android:background="@color/res_color_general_222222_10"
android:visibility="visible" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical">
<RelativeLayout
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_mine_ask_politics" />
<com.wd.foundation.wdkit.view.CircleImageView
android:id="@+id/view_ask_red"
android:layout_width="@dimen/rmrb_dp8"
android:layout_height="@dimen/rmrb_dp8"
android:layout_alignParentRight="true"
android:src="@color/res_color_common_C11"
android:visibility="gone"
app:civ_border_color="@color/res_color_common_C8"
app:civ_border_overlay="true"
app:civ_border_width="@dimen/rmrb_dp1"/>
</RelativeLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/res_str_message_board"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp12"
android:layout_marginTop="@dimen/rmrb_dp4" />
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/layout_subscribe"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<View
android:layout_width="1dp"
android:layout_height="@dimen/rmrb_dp15"
android:layout_gravity="center_vertical"
android:background="@color/res_color_general_222222_10"
android:visibility="visible" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical">
<RelativeLayout
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:src="@mipmap/icon_mine_subscribe" />
<com.wd.foundation.wdkit.view.CircleImageView
android:id="@+id/view_subscribe_red"
android:layout_width="@dimen/rmrb_dp8"
android:layout_height="@dimen/rmrb_dp8"
android:layout_alignParentRight="true"
android:src="@color/res_color_common_C11"
android:visibility="gone"
app:civ_border_color="@color/res_color_common_C8"
app:civ_border_overlay="true"
app:civ_border_width="@dimen/rmrb_dp1"/>
</RelativeLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/res_str_subscribe"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp12"
android:layout_marginTop="@dimen/rmrb_dp4" />
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/layout_event_submission"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:visibility="invisible"
tools:visibility="visible">
<View
android:layout_width="1dp"
android:layout_height="@dimen/rmrb_dp15"
android:layout_gravity="center_vertical"
android:background="@color/res_color_general_222222_10"
android:visibility="visible" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical">
<RelativeLayout
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:src="@mipmap/icon_mine_event_submission" />
<com.wd.foundation.wdkit.view.CircleImageView
android:id="@+id/view_event_submission_red"
android:layout_width="@dimen/rmrb_dp8"
android:layout_height="@dimen/rmrb_dp8"
android:layout_alignParentRight="true"
android:src="@color/res_color_common_C11"
android:visibility="gone"
app:civ_border_color="@color/res_color_common_C8"
app:civ_border_overlay="true"
app:civ_border_width="@dimen/rmrb_dp1"/>
</RelativeLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/res_str_event_submission"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp12"
android:layout_marginTop="@dimen/rmrb_dp4" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layout_mine_top_un_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="@dimen/rmrb_dp46">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp86">
<RelativeLayout
android:id="@+id/layout_head_un_login"
android:layout_width="@dimen/rmrb_dp86"
android:layout_height="@dimen/rmrb_dp86"
android:layout_marginLeft="@dimen/rmrb_dp11">
<com.wd.foundation.wdkit.view.CircleImageView
android:id="@+id/img_head_un_login"
android:layout_width="@dimen/rmrb_dp60"
android:layout_height="@dimen/rmrb_dp60"
android:layout_centerInParent="true"
android:src="@mipmap/icon_default_head" />
<View
android:layout_width="@dimen/rmrb_dp61"
android:layout_height="@dimen/rmrb_dp61"
android:layout_centerInParent="true"
android:background="@drawable/shape_header_circle_000000_60"/>
</RelativeLayout>
<LinearLayout
android:id="@+id/layout_name_un_login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:layout_toRightOf="@+id/layout_head_un_login"
android:layout_centerVertical="true">
<TextView
android:id="@+id/tv_name_un_login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/rmrb_dp20"
android:textColor="@color/res_color_common_C1"
android:text="登录注册"
android:textStyle="bold"/>
<ImageView
android:id="@+id/tv_name_un_login_arrow"
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:src="@mipmap/icon_mine_next_black"/>
</LinearLayout>
<FrameLayout
android:id="@+id/layout_sign_in__un_login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true">
<TextView
android:id="@+id/tv_sign_in_un_login"
android:layout_width="@dimen/rmrb_dp56"
android:layout_height="@dimen/rmrb_dp24"
android:text="签到"
android:textStyle="bold"
android:textSize="@dimen/rmrb_dp13"
android:gravity="center"
android:textColor="@color/res_color_common_C14"
android:background="@mipmap/bg_sign_in"
android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/rmrb_dp13"/>
<ImageView
android:layout_width="@dimen/rmrb_dp26"
android:layout_height="@dimen/rmrb_dp26"
android:background="@mipmap/icon_mine_sign_in"
android:layout_toLeftOf="@+id/tv_sign_in"
android:layout_gravity="center_vertical"
android:scaleType="fitXY"/>
</FrameLayout>
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp61"
android:layout_marginLeft="@dimen/rmrb_dp12"
android:layout_marginRight="@dimen/rmrb_dp11"
android:orientation="horizontal">
<FrameLayout
android:id="@+id/layout_comment_un_login"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_mine_comment"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/res_str_comment"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C1"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/rmrb_dp4" />
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/layout_attention_un_login"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent">
<View
android:layout_width="1dp"
android:layout_height="@dimen/rmrb_dp15"
android:background="@color/res_color_general_222222_10"
android:layout_gravity="center_vertical"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_mine_attention"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/res_str_attention"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C1"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/rmrb_dp4"/>
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/layout_collect_un_login"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent">
<View
android:layout_width="1dp"
android:layout_height="@dimen/rmrb_dp15"
android:background="@color/res_color_general_222222_10"
android:layout_gravity="center_vertical"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_mine_collect"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/res_str_collect"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C1"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/rmrb_dp4"/>
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/layout_history_un_login"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent">
<View
android:layout_width="1dp"
android:layout_height="@dimen/rmrb_dp15"
android:background="@color/res_color_general_222222_10"
android:layout_gravity="center_vertical"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_mine_history"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/res_str_history"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C1"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/rmrb_dp4" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp61"
android:layout_marginLeft="@dimen/rmrb_dp12"
android:layout_marginRight="@dimen/rmrb_dp11"
android:orientation="horizontal">
<FrameLayout
android:id="@+id/layout_message_un_login"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:visibility="visible">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_mine_message" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/res_str_message"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C1"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/rmrb_dp4" />
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/layout_ask_politics_un_login"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:visibility="visible">
<View
android:layout_width="1dp"
android:layout_height="@dimen/rmrb_dp15"
android:background="@color/res_color_general_222222_10"
android:layout_gravity="center_vertical"
android:visibility="visible"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_mine_ask_politics"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/res_str_message_board"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C1"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/rmrb_dp4" />
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/layout_subscribe_un_login"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent">
<View
android:layout_width="1dp"
android:layout_height="@dimen/rmrb_dp15"
android:background="@color/res_color_general_222222_10"
android:layout_gravity="center_vertical"
android:visibility="visible"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_mine_subscribe"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/res_str_subscribe"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C1"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/rmrb_dp4"/>
</LinearLayout>
</FrameLayout>
<FrameLayout
android:id="@+id/layout_event_submission_un_login"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:visibility="invisible"
tools:visibility="visible">
<View
android:layout_width="1dp"
android:layout_height="@dimen/rmrb_dp15"
android:background="@color/res_color_general_222222_10"
android:layout_gravity="center_vertical"
android:visibility="visible"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<ImageView
android:layout_width="@dimen/rmrb_dp24"
android:layout_height="@dimen/rmrb_dp24"
android:layout_gravity="center_horizontal"
android:src="@mipmap/icon_mine_event_submission"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/res_str_event_submission"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C1"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/rmrb_dp4"/>
</LinearLayout>
</FrameLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
... ...
<?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:id="@+id/cl_root"
android:layout_width="wrap_content"
android:layout_height="32dp"
android:gravity="center">
<ImageView
android:id="@+id/ivLeft"
android:layout_width="10dp"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@mipmap/ic_collect_left_left" />
<TextView
android:id="@+id/tv_tab_name"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@mipmap/ic_collect_mid"
android:ellipsize="end"
android:gravity="center"
android:maxLength="10"
android:maxLines="1"
android:paddingHorizontal="@dimen/rmrb_dp6"
android:text=""
android:textColor="@color/res_color_common_C2"
android:textSize="@dimen/rmrb_dp14"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent" />
<ImageView
android:id="@+id/ivRight"
android:layout_width="18dp"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@mipmap/ic_collect_left_right" />
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="@dimen/rmrb_dp115"
android:layout_height="@dimen/rmrb_dp22"
android:layout_marginBottom="@dimen/rmrb_dp16"
android:background="@color/res_color_common_C8"
android:orientation="vertical">
<CheckBox
android:id="@+id/tv_suggest"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@null"
android:button="@drawable/feekback_checkbox"
android:checked="false"
android:paddingLeft="@dimen/rmrb_dp4"
android:text=""
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp14" />
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp55"
android:gravity="center"
android:background="@color/res_color_common_C8"
android:orientation="vertical">
<com.wd.foundation.wdkit.view.customtextview.RegularTextView
android:id="@+id/tv_gender"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Twitter"
android:textColor="@color/rmrb_333333_light"
android:textSize="@dimen/rmrb_dp16" />
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tv_level"
android:layout_width="@dimen/rmrb_dp25"
android:layout_height="@dimen/rmrb_dp25"
android:layout_centerHorizontal="true"
android:text="3"
android:textStyle="bold"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C8"
android:gravity="center"
android:background="@mipmap/img_grade_two"/>
</RelativeLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/cl_root"
android:layout_width="wrap_content"
android:layout_height="@dimen/rmrb_dp32">
<TextView
android:id="@+id/tv_tab_name"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:maxLines="1"
android:textSize="@dimen/rmrb_dp14"
android:textColor="@color/res_color_common_C2"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/cl_root"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<View
android:id="@+id/tab_bag"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/selector_tab_item_bag"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tv_tab_name_not_self"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text=""
android:maxLines="1"
android:textSize="@dimen/rmrb_dp18"
android:textColor="@color/res_color_common_C2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<View
android:id="@+id/line_bottom"
android:layout_width="@dimen/rmrb_dp16"
android:layout_height="@dimen/rmrb_dp2"
android:layout_marginTop="@dimen/rmrb_dp2"
android:background="@drawable/selector_tab_item_line"
android:visibility="visible"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_tab_name_not_self" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="@dimen/rmrb_dp48"
android:orientation="vertical">
<ImageView
android:id="@+id/me_ivLogo"
android:layout_width="@dimen/rmrb_dp48"
android:layout_height="@dimen/rmrb_dp48"
android:layout_marginRight="@dimen/rmrb_dp24"
/>
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="@dimen/rmrb_dp100"
android:layout_height="@dimen/rmrb_dp100"
android:layout_marginRight="@dimen/rmrb_dp8"
android:background="@drawable/collection_search_bar_bg" >
<FrameLayout
android:layout_gravity="center"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_gravity="center"
android:id="@+id/id_ll_show_add"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:layout_width="@dimen/rmrb_dp29"
android:layout_height="@dimen/rmrb_dp27"
android:scaleType="centerCrop"
android:src="@drawable/feedback_icon_add_photos" />
<TextView
android:id="@+id/tv_photo_num"
android:layout_marginTop="@dimen/rmrb_dp6"
android:text="0/3"
android:textSize="@dimen/rmrb_dp12"
android:gravity="center"
android:textColor="@color/color_a6a6a6"
android:layout_width="@dimen/rmrb_dp23"
android:layout_height="@dimen/rmrb_dp17"/>
</LinearLayout>
<RelativeLayout
android:id="@+id/id_rv_show_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:visibility="gone">
<ImageView
android:id="@+id/iv_select_pic"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<ImageView
android:id="@+id/id_iv_video"
android:layout_width="@dimen/rmrb_dp30"
android:layout_height="@dimen/rmrb_dp30"
android:layout_centerInParent="true"
/>
</RelativeLayout>
</FrameLayout>
<ImageView
android:id="@+id/iv_close_report"
android:layout_width="@dimen/rmrb_dp16"
android:layout_height="@dimen/rmrb_dp16"
android:layout_gravity="top|right"
android:src="@mipmap/close_black" />
</FrameLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="@dimen/rmrb_dp8"
android:id="@+id/rellayout"
android:background="@color/rmrb_f8f8f8_light_background"
>
<ImageView
android:id="@+id/user_img"
android:layout_width="@dimen/rmrb_dp74"
android:layout_height="@dimen/rmrb_dp74"
android:scaleType="fitXY" />
<View
android:id="@+id/user_backview"
android:layout_width="@dimen/rmrb_dp74"
android:layout_height="@dimen/rmrb_dp74"
android:background="@drawable/bg_photo_66000000_136"
android:visibility="gone"
/>
<ImageView
android:id="@+id/user_img_ok"
android:layout_width="@dimen/rmrb_dp18"
android:layout_height="@dimen/rmrb_dp18"
android:layout_centerInParent="true"
android:src="@mipmap/icon_photo_ok"
android:visibility="gone"
android:scaleType="fitXY"/>
</RelativeLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@drawable/shape_pickview_bg">
<RelativeLayout
android:id="@+id/rl_title"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp50">
<TextView
android:id="@+id/tv_cancle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="取消"
android:textColor="@color/res_color_common_C2"
android:textSize="@dimen/rmrb_dp16"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp15"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="修改地区"
android:textColor="@color/res_color_general_333333"
android:textSize="@dimen/rmrb_dp18"
android:layout_centerInParent="true"/>
<TextView
android:id="@+id/tv_save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="提交"
android:textColor="@color/res_color_common_C11"
android:textSize="@dimen/rmrb_dp16"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/rmrb_dp15"/>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp1"
android:background="@color/res_color_common_C7"
android:layout_alignParentBottom="true"/>
</RelativeLayout>
<!--此部分需要完整复制过去,删减或者更改ID会导致初始化找不到内容而报空-->
<LinearLayout
android:id="@+id/optionspicker"
app:layout_constraintTop_toBottomOf="@+id/rl_title"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp228"
android:gravity="center"
android:minHeight="@dimen/rmrb_dp228"
android:orientation="horizontal">
<com.contrarywind.view.WheelView
android:id="@+id/options1"
android:layout_width="@dimen/rmrb_dp125"
android:layout_height="match_parent"/>
<com.contrarywind.view.WheelView
android:id="@+id/options2"
android:layout_width="@dimen/rmrb_dp125"
android:layout_height="match_parent"/>
<com.contrarywind.view.WheelView
android:id="@+id/options3"
android:layout_width="@dimen/rmrb_dp125"
android:layout_height="match_parent"/>
</LinearLayout>
<View
android:layout_marginTop="@dimen/rmrb_dp92"
app:layout_constraintTop_toBottomOf="@+id/rl_title"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp0_5"
android:background="@color/res_color_common_C7" />
<View
android:layout_marginTop="@dimen/rmrb_dp136"
app:layout_constraintTop_toBottomOf="@+id/rl_title"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp0_5"
android:background="@color/res_color_common_C7" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@drawable/shape_pickview_bg">
<RelativeLayout
android:id="@+id/rl_title"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp50">
<TextView
android:id="@+id/tv_cancle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="取消"
android:textColor="@color/res_color_common_C2"
android:textSize="@dimen/rmrb_dp16"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_marginLeft="@dimen/rmrb_dp15"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="修改生日"
android:textColor="@color/res_color_general_333333"
android:textSize="@dimen/rmrb_dp18"
android:layout_centerInParent="true"/>
<TextView
android:id="@+id/tv_save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="提交"
android:textColor="@color/res_color_common_C11"
android:textSize="@dimen/rmrb_dp16"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="@dimen/rmrb_dp15"/>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp1"
android:background="@color/res_color_common_C7"
android:layout_alignParentBottom="true"/>
</RelativeLayout>
<!--此部分需要完整复制过去,删减或者更改ID会导致初始化找不到内容而报空-->
<LinearLayout
android:id="@+id/timepicker"
app:layout_constraintTop_toBottomOf="@+id/rl_title"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp228"
android:gravity="center"
android:minHeight="@dimen/rmrb_dp228"
android:orientation="horizontal">
<com.contrarywind.view.WheelView
android:id="@+id/year"
android:layout_width="@dimen/rmrb_dp125"
android:layout_height="match_parent"/>
<com.contrarywind.view.WheelView
android:id="@+id/month"
android:layout_width="@dimen/rmrb_dp125"
android:layout_height="match_parent"/>
<com.contrarywind.view.WheelView
android:id="@+id/day"
android:layout_width="@dimen/rmrb_dp125"
android:layout_height="match_parent"/>
<com.contrarywind.view.WheelView
android:id="@+id/hour"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1.1"/>
<com.contrarywind.view.WheelView
android:id="@+id/min"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1.1"/>
<com.contrarywind.view.WheelView
android:id="@+id/second"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1.1"/>
</LinearLayout>
<View
android:layout_marginTop="@dimen/rmrb_dp92"
app:layout_constraintTop_toBottomOf="@+id/rl_title"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp0_5"
android:background="@color/res_color_common_C7" />
<View
android:layout_marginTop="@dimen/rmrb_dp136"
app:layout_constraintTop_toBottomOf="@+id/rl_title"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp0_5"
android:background="@color/res_color_common_C7" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/layout_follow_more_creator"
android:layout_width="match_parent"
android:layout_height="@dimen/rmrb_dp36"
android:layout_marginHorizontal="@dimen/rmrb_dp16"
android:layout_marginTop="@dimen/rmrb_dp10"
android:layout_marginBottom="@dimen/rmrb_dp2"
android:background="@drawable/shape_follow_header_bg"
android:visibility="visible">
<TextView
android:id="@+id/tv_more"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/res_attention_more"
android:textColor="@color/res_color_common_C1"
android:textSize="@dimen/rmrb_dp14"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/iv_more"
app:layout_constraintHorizontal_chainStyle="packed"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/iv_more"
android:layout_width="@dimen/rmrb_dp15"
android:layout_height="@dimen/rmrb_dp15"
android:layout_marginLeft="@dimen/rmrb_dp2"
android:scaleType="centerCrop"
android:src="@mipmap/icon_setting_arrow"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/tv_more"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginHorizontal="@dimen/rmrb_dp16">
<RelativeLayout
android:id="@+id/layout_tyro_task"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants"
android:background="@drawable/shape_bag_white_radious4"
android:layout_marginTop="@dimen/rmrb_dp12"
android:visibility="gone">
<TextView
android:id="@+id/tv_task_title_tyro"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/res_tyro_task"
android:textStyle="bold"
android:textSize="@dimen/rmrb_dp18"
android:textColor="@color/res_color_common_C1"
android:layout_marginLeft="@dimen/rmrb_dp16"
android:layout_marginTop="@dimen/rmrb_dp16"/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_task_tyro"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_task_title_tyro"
android:layout_marginHorizontal="@dimen/rmrb_dp16"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/layout_daily"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants"
android:background="@drawable/shape_bag_white_radious4"
android:layout_marginTop="@dimen/rmrb_dp12"
android:visibility="gone">
<TextView
android:id="@+id/tv_task_title_daily"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/res_daily_task"
android:textStyle="bold"
android:textSize="@dimen/rmrb_dp18"
android:textColor="@color/res_color_common_C1"
android:layout_marginLeft="@dimen/rmrb_dp16"
android:layout_marginTop="@dimen/rmrb_dp24"/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_task_daily"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_task_title_daily"
android:layout_marginHorizontal="@dimen/rmrb_dp16"/>
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_growth_task"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants"
android:visibility="gone">
<TextView
android:id="@+id/tv_task_title_growth"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/res_growth_value_task"
android:textStyle="bold"
android:textSize="@dimen/rmrb_dp18"
android:textColor="@color/res_color_common_C1"
android:layout_marginLeft="@dimen/rmrb_dp16"
android:layout_marginTop="@dimen/rmrb_dp16"/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_task_growth"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_task_title_growth"
android:layout_marginHorizontal="@dimen/rmrb_dp16"/>
</RelativeLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/module_integral_ll_check_in"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RelativeLayout
android:id="@+id/fl_integral_check_in_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1">
<ImageView
android:id="@+id/iv_double_1"
android:layout_width="@dimen/rmrb_dp28"
android:layout_height="@dimen/rmrb_dp16"
android:layout_marginBottom="@dimen/rmrb_dp4"
android:layout_marginLeft="@dimen/rmrb_dp3"
android:gravity="center"
android:src="@mipmap/icon_sign_double"
android:visibility="invisible"/>
<RelativeLayout
android:id="@+id/rl_check_inz"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_double_1">
<FrameLayout
android:id="@+id/fl_integral_checked_1"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32">
<TextView
android:id="@+id/tv_integral_check_in_1"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32"
android:gravity="center"
android:layout_gravity="center"
android:background="@mipmap/icon_sign_grey"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C8_keep"/>
<ImageView
android:id="@+id/iv_integral_checked_1"
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:gravity="center"
android:layout_gravity="bottom|right"
android:visibility="gone"/>
</FrameLayout>
<TextView
android:id="@+id/tv_check_in_dec_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/fl_integral_checked_1"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/rmrb_dp4"
android:textColor="@color/res_color_general_3D3D3D"
android:textSize="@dimen/rmrb_dp12"
android:text="1天" />
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:id="@+id/fl_integral_check_in_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1">
<ImageView
android:id="@+id/iv_double_2"
android:layout_width="@dimen/rmrb_dp28"
android:layout_height="@dimen/rmrb_dp16"
android:layout_marginBottom="@dimen/rmrb_dp4"
android:layout_marginLeft="@dimen/rmrb_dp3"
android:gravity="center"
android:src="@mipmap/icon_sign_double"
android:visibility="invisible"/>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_double_2">
<FrameLayout
android:id="@+id/fl_integral_checked_2"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32">
<TextView
android:id="@+id/tv_integral_check_in_2"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32"
android:gravity="center"
android:layout_gravity="center"
android:background="@mipmap/icon_sign_grey"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C8_keep"/>
<ImageView
android:id="@+id/iv_integral_checked_2"
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:gravity="center"
android:layout_gravity="bottom|right"
android:visibility="gone"/>
</FrameLayout>
<TextView
android:id="@+id/tv_check_in_dec_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/fl_integral_checked_2"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/rmrb_dp4"
android:textColor="@color/res_color_general_3D3D3D"
android:textSize="@dimen/rmrb_dp12"
android:text="2天" />
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:id="@+id/fl_integral_check_in_3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1">
<ImageView
android:id="@+id/iv_double_3"
android:layout_width="@dimen/rmrb_dp28"
android:layout_height="@dimen/rmrb_dp16"
android:layout_marginBottom="@dimen/rmrb_dp4"
android:layout_marginLeft="@dimen/rmrb_dp3"
android:gravity="center"
android:src="@mipmap/icon_sign_double"
android:visibility="invisible"/>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_double_3">
<FrameLayout
android:id="@+id/fl_integral_checked_3"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32">
<TextView
android:id="@+id/tv_integral_check_in_3"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32"
android:gravity="center"
android:layout_gravity="center"
android:background="@mipmap/icon_sign_grey"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C8_keep"/>
<ImageView
android:id="@+id/iv_integral_checked_3"
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:gravity="center"
android:layout_gravity="bottom|right"
android:visibility="gone"/>
</FrameLayout>
<TextView
android:id="@+id/tv_check_in_dec_3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/fl_integral_checked_3"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/rmrb_dp4"
android:textColor="@color/res_color_general_3D3D3D"
android:textSize="@dimen/rmrb_dp12"
android:text="3天" />
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:id="@+id/fl_integral_check_in_4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1">
<ImageView
android:id="@+id/iv_double_4"
android:layout_width="@dimen/rmrb_dp28"
android:layout_height="@dimen/rmrb_dp16"
android:layout_marginBottom="@dimen/rmrb_dp4"
android:layout_marginLeft="@dimen/rmrb_dp3"
android:gravity="center"
android:src="@mipmap/icon_sign_double"
android:visibility="invisible"/>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_double_4">
<FrameLayout
android:id="@+id/fl_integral_checked_4"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32">
<TextView
android:id="@+id/tv_integral_check_in_4"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32"
android:gravity="center"
android:layout_gravity="center"
android:background="@mipmap/icon_sign_grey"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C8_keep"/>
<ImageView
android:id="@+id/iv_integral_checked_4"
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:gravity="center"
android:layout_gravity="bottom|right"
android:visibility="gone"/>
</FrameLayout>
<TextView
android:id="@+id/tv_check_in_dec_4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/fl_integral_checked_4"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/rmrb_dp4"
android:textColor="@color/res_color_general_3D3D3D"
android:textSize="@dimen/rmrb_dp12"
android:text="4天" />
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:id="@+id/fl_integral_check_in_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1">
<ImageView
android:id="@+id/iv_double_5"
android:layout_width="@dimen/rmrb_dp28"
android:layout_height="@dimen/rmrb_dp16"
android:layout_marginBottom="@dimen/rmrb_dp4"
android:layout_marginLeft="@dimen/rmrb_dp3"
android:gravity="center"
android:src="@mipmap/icon_sign_double"
android:visibility="invisible"/>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_double_5">
<FrameLayout
android:id="@+id/fl_integral_checked_5"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32">
<TextView
android:id="@+id/tv_integral_check_in_5"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32"
android:gravity="center"
android:layout_gravity="center"
android:background="@mipmap/icon_sign_grey"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C8_keep"/>
<ImageView
android:id="@+id/iv_integral_checked_5"
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:gravity="center"
android:layout_gravity="bottom|right"
android:visibility="gone" />
</FrameLayout>
<TextView
android:id="@+id/tv_check_in_dec_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/fl_integral_checked_5"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/rmrb_dp4"
android:textColor="@color/res_color_general_3D3D3D"
android:textSize="@dimen/rmrb_dp12"
android:text="5天" />
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:id="@+id/fl_integral_check_in_6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1">
<ImageView
android:id="@+id/iv_double_6"
android:layout_width="@dimen/rmrb_dp28"
android:layout_height="@dimen/rmrb_dp16"
android:layout_marginBottom="@dimen/rmrb_dp4"
android:layout_marginLeft="@dimen/rmrb_dp3"
android:gravity="center"
android:src="@mipmap/icon_sign_double"
android:visibility="invisible"/>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_double_6">
<FrameLayout
android:id="@+id/fl_integral_checked_6"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32">
<TextView
android:id="@+id/tv_integral_check_in_6"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32"
android:gravity="center"
android:layout_gravity="center"
android:background="@mipmap/icon_sign_grey"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C8_keep"/>
<ImageView
android:id="@+id/iv_integral_checked_6"
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:gravity="center"
android:layout_gravity="bottom|right"
android:visibility="gone"/>
</FrameLayout>
<TextView
android:id="@+id/tv_check_in_dec_6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/fl_integral_checked_6"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/rmrb_dp4"
android:textColor="@color/res_color_general_3D3D3D"
android:textSize="@dimen/rmrb_dp12"
android:text="6天" />
</RelativeLayout>
</RelativeLayout>
<RelativeLayout
android:id="@+id/fl_integral_check_in_7"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/iv_double_7"
android:layout_width="@dimen/rmrb_dp28"
android:layout_height="@dimen/rmrb_dp16"
android:layout_marginBottom="@dimen/rmrb_dp4"
android:layout_marginLeft="@dimen/rmrb_dp3"
android:gravity="center"
android:src="@mipmap/icon_sign_double"
android:visibility="invisible"/>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/iv_double_7">
<FrameLayout
android:id="@+id/fl_integral_checked_7"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32">
<TextView
android:id="@+id/tv_integral_check_in_7"
android:layout_width="@dimen/rmrb_dp32"
android:layout_height="@dimen/rmrb_dp32"
android:gravity="center"
android:layout_gravity="center"
android:background="@mipmap/icon_sign_grey"
android:textSize="@dimen/rmrb_dp12"
android:textColor="@color/res_color_common_C8_keep"/>
<ImageView
android:id="@+id/iv_integral_checked_7"
android:layout_width="@dimen/rmrb_dp14"
android:layout_height="@dimen/rmrb_dp14"
android:gravity="center"
android:layout_gravity="bottom|right"
android:visibility="visible"/>
</FrameLayout>
<TextView
android:id="@+id/tv_check_in_dec_7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/fl_integral_checked_7"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/rmrb_dp4"
android:textColor="@color/res_color_general_3D3D3D"
android:textSize="@dimen/rmrb_dp12"
android:text="7天" />
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</FrameLayout>
... ...
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="channel_focus">
<item>我的关注</item>
<item>推荐</item>
<item>音乐</item>
<item>搞笑</item>
<item>社会</item>
<item>小品</item>
<item>生活</item>
<item>影视</item>
<item>娱乐</item>
<item>呆萌</item>
<item>游戏</item>
<item>原创</item>
<item>开眼</item>
</string-array>
<string-array name="channel_code_focus">
<item>subv_focus</item>
<item>subv_recom</item>
<item>subv_voice</item>
<item>subv_funny</item>
<item>subv_society</item>
<item>subv_comedy</item>
<item>subv_life</item>
<item>subv_movie</item>
<item>subv_entertainment</item>
<item>subv_cute</item>
<item>subv_game</item>
<item>subv_boutique</item>
<item>subv_broaden_view</item>
</string-array>
<string-array name="province_name">
<item>河北省</item>
<item>山西省</item>
<item>辽宁省</item>
<item>吉林省</item>
<item>黑龙江</item>
<item>江苏省</item>
<item>浙江省</item>
<item>安徽省</item>
<item>福建省</item>
<item>江西省</item>
<item>山东省</item>
<item>河南省</item>
<item>湖北省</item>
<item>湖南省</item>
<item>广东省</item>
<item>海南省</item>
<item>四川省</item>
<item>贵州省</item>
</string-array>
<!-- 号主作品 -->
<string-array name="menu_works">
<item>全部</item>
<item>动态</item>
<item>文章</item>
<item>多图</item>
<item>视频</item>
<item>直播</item>
</string-array>
</resources>
\ No newline at end of file
... ...
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="feedback_comments" translatable="false">您的宝贵意见是我们前行的动力</string>
<string name="feedback_email" translatable="false">期待您留下联系方式,我们将提供更好的服务</string>
<string name="feedback_hideemail" translatable="false">请输入电话或者邮箱</string>
<string name="feedback_mail" translatable="false">电话或者邮箱</string>
<string name="submit" translatable="false">提交</string>
<string name="cancellation_failure" translatable="false">用户刷新token为空</string>
<string name="feedBackCommitSuccess" translatable="false">反馈成功</string>
<string name="feedBackCommitFail" translatable="false">反馈失败</string>
<string name="feedback_TypeFail" translatable="false">请选择问题类型</string>
<string name="edit_history_cancel" translatable="false">取消</string>
<string name="edit_history_edit" translatable="false">编辑</string>
<string name="failed" translatable="false">设置失败</string>
<string name="do_you_want_to_clear_your_browsing_history">是否确认清空?</string>
<string name="do_you_want_to_empty_my_favorites">是否确认清空?</string>
<string name="do_you_want_to_delete_the_selected_browsing_history">是否确认删除?</string>
<string name="del_selected_browsing_history">确认删除%s条历史</string>
<string name="del_the_selected_my_favorites">确认删除%s条收藏</string>
<string name="remove_the_selected_my_favorites">确认移出%s条收藏</string>
<string name="str_edit_profile_title">编辑资料</string>
<string name="str_click_change_head_icon">点击更换头像</string>
<string name="str_user_name">昵称</string>
<string name="str_introduction">简介</string>
<string name="str_address">地区</string>
<string name="str_birthday">生日</string>
<string name="str_sex">性别</string>
<string name="str_under_review">审核中</string>
<string name="str_to_improve">待完善</string>
<string name="str_edit_nick_name_title">修改昵称</string>
<string name="str_edit_nick_name_hint">请输入昵称</string>
<string name="str_edit_nick_name_desc">1、账号中(头像、昵称等) 不允许含有违法违规内容;
\n2、最多16个字,只能输入中文、数字、英文字母。</string>
<string name="str_edit_nick_introduction_desc">1、账号中(头像、昵称等) 不允许含有违法违规内容;
\n2、最多60个字,只能输入中文、数字、英文字母。</string>
<string name="str_save">保存</string>
<string name="toast_no_des_master">点击添加简介,让大家认识你</string>
<string name="str_edit_introduction_title">修改简介</string>
<string name="str_edit_introduction_hint">请输入简介</string>
<string name="permission_not_allow">去设置</string>
<string name="permission_albums">相册权限</string>
<string name="permission_albums_description">用于拍摄照片和视频,发布视频,修改头像功能</string>
<string name="permission_turn_on_personalized_recommendations">开启个性推荐</string>
<string name="permission_turn_on_personalized_recommendations_description">关闭后,将不会使用你的偏好进行内容推荐</string>
<string name="permission_turn_on_privacy_policy_authorization">隐私政策授权</string>
<string name="permission_turn_on_privacy_policy_authorization_description">关闭后,我们将停止收集你的个人信息</string>
<string name="permission_takephoto">相机权限</string>
<string name="permission_takephoto_description">用于拍摄照片和视频、发布视频、扫一扫功能</string>
<string name="permission_position">定位权限</string>
<string name="permission_position_description">用于根据您的位置为您提供更准确的本地资讯、发布信息时展示位置信息功能</string>
<string name="permission_microphone">麦克风权限</string>
<string name="permission_microphone_description">用于语音输入、语音搜索、拍摄视频的语音交互功能</string>
<string name="permission_set">设置前可查阅</string>
<string name="permission_url">《隐私政策》</string>
<string name="permission_url_rule">中相应权限使用规则</string>
<string name="feedback_type1">产品建议</string>
<string name="feedback_type2">功能故障</string>
<string name="feedback_type3">其他问题</string>
<string name="feedback_phone_hint">请填入手机号</string>
<string name="feedback_phone">联系方式</string>
<string name="feedback_type_tip">*</string>
<string name="feedback_type">反馈类型</string>
<string name="setting_logout">退出登录</string>
<string name="setting_cancellations">注销账号</string>
<string name="setting_private_permissions">隐私权限</string>
<string name="setting_mine_password">设置密码</string>
<string name="setting_bind_third_account">绑定第三方账号</string>
<string name="logout_tip_title">为保证您的账号安全,在您提交的注销申请生效前,需同时满足以下几个条件:</string>
<string name="logout_tip_text1">1. 账号处于安全状态</string>
<string name="logout_tip_text1_sub">账号处于正常使用状态,无被盗风险。</string>
<string name="logout_tip_text2">2. 账号权限解除</string>
<string name="logout_tip_text2_sub">账号已解除与其他产品的授权登录或绑定关系。</string>
<string name="logout_tip_text3">3. 账号无任何纠纷,包括举报投诉</string>
<string name="user_name">昵称</string>
<string name="user_name_hint">请输入昵称</string>
<string name="user_des">简介</string>
<string name="user_des_hint">爱生活 爱人民</string>
<string name="user_sex">性别</string>
<string name="user_birthday">生日</string>
<string name="user_birthday_hint">请选择生日</string>
<string name="user_area_hint">请选择所在地区</string>
<string name="user_account_id">账号ID</string>
<string name="user_authentication">认证</string>
<string name="please_sel_sex">请选择性别</string>
<string name="user_job">职业</string>
<string name="user_job_hint">选择职业</string>
<string name="str_privacy_policy_authorization_dialog_content">撤销隐私政策,将无法正常使用“人民日报客户端”,将会退出APP,需使用要重新打开APP即可,是否确认撤销?</string>
<string name="str_dialog_btn_revoke">撤销</string>
<string name="str_dialog_btn_continue">继续使用</string>
<string name="setting_title">设置</string>
<string name="setting_privacy_title">隐私权限</string>
<string name="setting_logout_title">注销账号</string>
<string name="upload_title">上传</string>
<string name="person_info_title">编辑资料</string>
<string name="feedback_hint_content">请输入(5-300字以内)</string>
<string name="report_hint">请输入描述(必填)</string>
<string name="feedback_success">问题反馈成功</string>
<string name="feedback_fail">问题反馈失败</string>
<string name="feedback_content_input">请输入正文描述您要反馈的问题</string>
<string name="feedback_btn_name">意见/问题反馈</string>
<string name="feedback_help_title">帮助与反馈</string>
<string name="common_questions">常见问题</string>
<string name="news_personal_suggestion_box_str">意见反馈</string>
<string name="news_personal_wx_account">绑定微信</string>
<string name="news_personal_wb_account">绑定新浪微博</string>
<string name="news_personal_qq_account">绑定QQ</string>
<string name="news_personal_unbind">立即绑定</string>
<string name="news_personal_bind">已绑定</string>
<string name="news_personal_account_and_safe">账户管理</string>
<string name="news_personal_phone">更换手机号</string>
<string name="known">我知道了</string>
<string name="cancle">取消</string>
<string name="edit_info">编辑资料</string>
<string name="drafts_info">草稿箱</string>
<string name="redact_personal">编辑</string>
<string name="revocation_personal">撤回</string>
<string name="unstick_personal">取消置顶</string>
<string name="stick_personal">置顶</string>
<string name="delete_personal">删除</string>
<string name="cancel_personal">取消</string>
<string name="module_personal_center_p_old_cipher_tip">请输入原密码</string>
<string name="module_personal_center_p_new_cipher_tip">请输入新密码</string>
<string name="module_personal_center_agin_sure_cipher">再次输入新密码</string>
<string name="module_personal_center_b_sure">确认</string>
<string name="module_personal_center_two_input_diverse">两次输入的密码不一致,请重新输入</string>
<string name="module_personal_center_please_input_password">请输入密码</string>
<string name="module_personal_center_login_success_tip">登录成功</string>
<string name="module_personal_center_get_user_failed">获取用户信息失败</string>
<string name="review_waiting">发布中,请耐心等待</string>
<string name="toast_input_name">点击填写昵称</string>
<string name="toast_person_info_bottom">完善基础资料编辑,可进一步认证创作者,\n并有效提升被关注的概率</string>
<string name="module_personal_center_net_error">网络出小差了,请检查网络后重试</string>
<string name="info_paste_success">信息已复制到粘贴板</string>
<!-- 收银台-->
<string name="wechat_pay">微信支付</string>
<string name="ali_apy">支付宝支付</string>
<string name="cashier_desk">收银台</string>
<string name="real_amount">实付金额</string>
<string name="go_pay">去支付</string>
<string name="pay_count_down">支付截止时间&#160;&#160;</string>
<string name="order_pay_success">订单支付成功</string>
<string name="order_pay_timeout">订单支付超时</string>
<string name="order_pay_fail">订单支付失败</string>
<string name="direct_sales">直营</string>
<string name="inner_bug_system">内部采购系统</string>
<string name="look_order">查看订单</string>
<string name="mine_pay_finish">我已支付成功</string>
<string name="pay_fail_retry">支付失败再试一次</string>
<string name="pay_cancel">取消</string>
<string name="order_unpay_retry">订单尚未支付,请重新支付</string>
<string name="i_know">我知道了</string>
<string name="money_flag">¥</string>
<string name="count_end">00:00</string>
<string name="pay_result_query_order">查询订单</string>
<string name="cashier_pay_amount">订单金额:</string>
<string name="money">¥%f</string>
<string name="order_no">编号:%s</string>
<string name="serial_number_no">付款流水号:%s</string>
<string name="retry">重试</string>
<string name="pay_close">关闭</string>
<string name="order_unpay_repay">订单尚未支付,请重新支付</string>
<string name="logout_tips" tools:ignore="ExtraTranslation">我已阅读并同意</string>
<string name="logout_tips2" tools:ignore="ExtraTranslation">《用户注销协议》</string>
<string name="confirm" tools:ignore="ExtraTranslation">确认</string>
<string name="res_str_comment">评论</string>
<string name="res_str_attention">关注</string>
<string name="res_str_collect">收藏</string>
<string name="res_str_history">历史</string>
<string name="res_str_message">消息</string>
<string name="res_str_ask_politics">问政</string>
<string name="res_str_message_board">留言板</string>
<string name="res_str_subscribe">预约</string>
<string name="res_str_event_submission">活动投稿</string>
<string name="res_str_creator_center">创作者中心</string>
<string name="res_str_content_management">内容管理</string>
<string name="res_str_publish_article">发布文章</string>
<string name="res_str_publish_video">发布视频</string>
<string name="res_str_publish_dynamic">发布动态</string>
<string name="res_str_start_live">发起直播</string>
<string name="res_str_publish_atlas">发布图集</string>
<string name="res_str_more_functions">更多功能</string>
<string name="res_str_night_mode">夜间模式</string>
<string name="res_str_my_prize">我的奖品</string>
<string name="res_str_feed_back">意见反馈</string>
<string name="res_str_setting">设置</string>
<string name="res_str_about">关于</string>
<string name="res_str_more">更多</string>
<string name="res_str_scan">扫一扫</string>
<string name="res_str_widget">桌面小组件</string>
<!-- 新加 -->
<string name="trends_detail">动态详情</string>
<string name="come_day_number">来到人民日报%d天</string>
<string name="ip_address">IP归属地:%s</string>
<string name="res_str_check">您的资料已保存,请稍候</string>
<string name="res_str_change_num">本月修改次数已用完</string>
<string name="res_str_update_success_creator">您的资料已提交</string>
<string name="res_str_update_success">您的资料已提交</string>
<string name="res_str_no_data_">-&#8197;-</string>
<string name="cancel_account_tips">请注意:注销后%s天内不能再次注册人民日报客户端,需要等到账号冷静期结束才能再次登录注册</string>
<string name="cancel_account_sure_tips">注销后%s天内无法重新登录注册人民日报app,是否确认注销?</string>
<string name="author_deactivated_sure_tips">您确认要注销账号吗? 请联系rmh@pdnews.cn邮箱</string>
<string name="about_app_copyright">京ICP备16066560号-6A Copyright © 人民日报客户端\n all rights reserved.</string>
<string name="message_comment_works">评论了你的作品</string>
<string name="message_follow">关注了你</string>
<string name="message_like_works">赞了你的作品</string>
<string name="message_reply_comment">回复了你的评论</string>
<string name="message_like_comment">赞了你的评论</string>
<string name="message_like_forward">转发了您的作品</string>
<string name="res_str_integral_sign_explain">1、7天为一个签到周期,断签会丢失连签资格
\n2、7连签达成以后的下一天,开始新的一轮签到
\n3、错过的签到不能补签
\n4、完成全部每日任务次数可以获得积分
\n5、每日任务每天凌晨00:00重置
\n6、常规任务积分只能获得一次</string>
<string name="res_str_signed_in">已签到</string>
<string name="res_cancel_edit_collect_tag">取消编辑</string>
<string name="res_edit_collect_tag">编辑标签</string>
<string name="res_create_collect_tag">新建标签</string>
<string name="fragment_trends_1" >特别声明:本文为人民日报客户端用户参与活动上传并发布,仅代表作者观点。人民日报仅提供信息发布平台。</string>
<string name="fragment_trends_2" >特别声明:本文为人民日报新媒体平台“人民号”作者上传并发布,仅代表作者观点。人民日报仅提供信息发布平台。</string>
<string name="reservation_desc">你预约的直播即将开播</string>
<string name="reservation_state_running">已开播</string>
<string name="reservation_state_end">回放</string>
</resources>
\ No newline at end of file
... ...
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="tab_normal_style">
<item name="android:textSize">15sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@color/res_color_common_C3</item>
</style>
<style name="tab_select_style">
<item name="android:textSize">15sp</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/black</item>
</style>
</resources>
... ...
/build
\ No newline at end of file
... ...
plugins {
id 'com.android.library'
}
android {
compileSdkVersion var.compileSdkVersion
buildToolsVersion var.buildToolsVersion
defaultConfig {
minSdkVersion var.minSdkVersion
targetSdkVersion var.targetSdkVersion
versionCode var.versionCode
versionName var.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildFeatures {
viewBinding true
}
compileOptions {
// //标志启用对新语言api的支持
// coreLibraryDesugaringEnabled true
//Java兼容性设置为Java 8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation project(path: ':wdlayout')
annotationProcessor rootProject.ext.dependencies["arouter-compiler"]
implementation rootProject.ext.dependencies["TagTextView"]
// coreLibraryDesugaring rootProject.ext.dependencies["desugar_jdk_libs"]
}
\ No newline at end of file
... ...
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.people.module_player">
<application>
</application>
</manifest>
\ No newline at end of file
... ...
package com.wd.module_player;
import android.content.res.Configuration;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.WindowManager;
import android.widget.FrameLayout;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.lifecycle.Lifecycle;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.people.module_player.R;
import com.wd.base.log.Logger;
import com.wd.capability.network.constant.EventConstants;
import com.wd.common.base.BaseAutoLazyFragment;
import com.wd.common.utils.ToolsUtil;
import com.wd.foundation.bean.custom.video.VodDetailIntentBean;
import com.wd.foundation.wdkit.constant.IntentConstants;
import com.wd.foundation.wdkit.constant.RouterConstants;
import com.wd.foundation.wdkit.utils.SafeBundleUtil;
import com.wd.foundation.wdkitcore.livedata.LiveDataBus;
import com.wd.foundation.wdkitcore.tools.JsonUtils;
/**
* Time:2023/5/18
* @author:ypf
* Description:短视频
*/
@Route(path = RouterConstants.PATH_SHORT_VIDEO)
public class ShortVideoFragment extends BaseAutoLazyFragment {
public boolean isStop = false;
private static final String TAG = "ShortVideoFragment";
// private ContainerManager containerManager;
public ViewHolder viewHolder;
private VodDetailIntentBean intentBean;
public static ShortVideoFragment newInstance() {
return new ShortVideoFragment();
}
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
String params = SafeBundleUtil.getString(getArguments(), IntentConstants.PARAMS_VIDEO_DETAIL, "");
Logger.t(getLogTag()).i("params:" + params);
if (TextUtils.isEmpty(params)) {
return;
}
// 二级视频详情的参数
intentBean = JsonUtils.convertJsonToObject(params, VodDetailIntentBean.class);
// // 设置缓存目录
// File externalCacheDir = activity.getExternalCacheDir();
// if (externalCacheDir != null) {
// GlobalSettings.CACHE_DIR = externalCacheDir.getAbsolutePath() + File.separator + "Preload";
// }
}
@Override
public void onStop() {
isStop = true;
super.onStop();
}
@Override
protected String getLogTag() {
return "ShortVideoFragment";
}
@Override
protected int getLayout() {
return R.layout.fragment_video_list;
}
@Override
protected void initView(View rootView) {
// 绑定控件
viewHolder = new ViewHolder(rootView);
}
@Override
protected void lazyLoadData() {
// 布局管理
// containerManager = new ContainerManager(this, intentBean);
//
// // 展示空页面
// if (NetworkUtil.isConnectNet()) {
// containerManager.addTiles();
// }else {
// containerManager.addBackTile();
// containerManager.showEmptyView(DefaultViewConstant.TYPE_NO_NETWORK, true, true);
// }
//
// // 让内容管理感知lazyLoadData方法
// if (containerManager != null) {
// containerManager.lazyLoadData();
// }
}
@Override
public void onUserLeaveHint() {
// if (BooleanIos.NO.equalsIgnoreCase(SpUtils.getPlayVideoWindowSwitchTag())) {
// return;
// }
//
// if (containerManager == null) {
// return;
// }
//
// VideoListTile videoListTile = containerManager.videoListTile;
// if (videoListTile == null) {
// return;
// }
//
// LinkedList<NewsDetailBean> listVideoBean = videoListTile.mVideoBeanList;
// if (listVideoBean.size() == 0) {
// return;
// }
//
// if (intentBean == null) {
// return;
// }
//
// // 分享弹窗弹出来不要进入小窗播放
// if (CommonVarUtils.isShowShareDialog){
// return;
// }
//
// // 横屏下切到竖屏再进入小窗
// int orientation = activity.getRequestedOrientation();
// if (orientation == Configuration.ORIENTATION_LANDSCAPE){
// activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
// }
//
// // 判断页面类型
// int type = intentBean.getType();
// if (type == VodDetailIntentBean.Type.COMP) {
// // 用于判断fragment真实展现
// if (isRealVisible()) {
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
// // 进入小窗
// containerManager.enterPictureInPictureMode();
// }
// }
// }else {
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
// // 进入小窗
// containerManager.enterPictureInPictureMode();
// }
// }
}
@Override
public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode) {
super.onPictureInPictureModeChanged(isInPictureInPictureMode);
// 监听点击关闭画中画
if (getLifecycle().getCurrentState() == Lifecycle.State.CREATED) {
// 主动调用页面销毁
onDestroy();
// 关闭当前页面
activity.finish();
Logger.t(TAG).i("监听到小窗被关闭了");
return;
}
Logger.t(getLogTag()).i("onPictureInPictureModeChanged isInPictureInPictureMode:" + isInPictureInPictureMode);
// if (containerManager != null) {
// containerManager.onPictureInPictureModeChanged(isInPictureInPictureMode);
// }
}
@Override
public void onConfigurationChanged(@NonNull Configuration newConfig) {
super.onConfigurationChanged(newConfig);
// boolean inPictureInPictureMode = PipUtils.isInPictureInPictureMode(activity);
// // 小窗模式
// if (inPictureInPictureMode) {
// return;
// }
// 屏幕方向
int orientation = newConfig.orientation;
// // 竖屏
// if (orientation == Configuration.ORIENTATION_PORTRAIT) {
// // 让containerManager感知横竖屏
// if (containerManager != null) {
// containerManager.onConfigurationChanged(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
// }
// } else if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
// // 让containerManager感知横竖屏
// if (containerManager != null) {
// containerManager.onConfigurationChanged(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
// }
// }
// 处理底部导航栏,横屏隐藏、竖屏展示
dealNavigationBar();
}
@Override
public void onResume() {
super.onResume();
// 拦截画中画,这个拦截最好是点击底部tab去拦截
// ProcessUtils.interceptorPictureInPicture();
//
// // 让内容管理感知onResume方法
// if (containerManager != null) {
// containerManager.onResume();
// }
//
// // 短视频前后台切换事件
//// LiveDataBus.getInstance().with(EventConstants.SHORT_VIDEO_FOREGROUND).postValue(true);
// if (FloatWindow.get() != null && FloatWindow.get().isShow()){
// LiveDataBus.getInstance().with(EventConstants.FLOW_AUDIO_FREQUENCY, Integer.class).postValue(1);
// }
//
// //分享弹窗是否显示,
// CommonVarUtils.isShowShareDialog = false;
//
// // 修改手机顶部状态,只支持白色和黑色
// ToolsUtil.setStatusBarStyle(StatusBarStyleEnum.FULLSCREEN_LIGHT_ENUM, Color.BLACK, getActivity());
//
// // 保持屏幕常亮
// FragmentActivity fragmentActivity = getActivity();
// if (fragmentActivity != null) {
// fragmentActivity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
// }
}
@Override
public void onPause() {
isStop = false;
super.onPause();
// if (containerManager != null) {
// containerManager.onPause();
// }
//
// if (FloatWindow.get() != null && !FloatWindow.get().isShow() && PlayerManagerUtils.isDataAvailable() &&
// !BaseConstants.isCloseMusicDialog) {
// FloatWindow.get().setAudioFloatingIsShow(true);
// }
// // 音频控制 任务
// HandlerHelper.main().postDelayed(flowAudioFrequencyRunnable, 200);
//
// // 清除屏幕常亮
// FragmentActivity fragmentActivity = getActivity();
// if (fragmentActivity != null) {
// fragmentActivity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
// }
}
/**
* 音频控制 任务
*/
private final Runnable flowAudioFrequencyRunnable = new Runnable() {
@Override
public void run() {
if(!isStop){
LiveDataBus.getInstance().with(EventConstants.FLOW_AUDIO_FREQUENCY, Integer.class).postValue(2);
}
}
};
@Override
public void onDestroy() {
super.onDestroy();
Logger.t(TAG).i("onDestroy");
// // 移除 音频控制 任务
// HandlerHelper.main().removeCallbacks(flowAudioFrequencyRunnable);
//
// if (containerManager != null) {
// containerManager.onDestroy();
// }
}
/**
* 点击 tab 页面下拉刷新
*/
@Override
public void clickTabAutoRefresh() {
// // 页面下拉刷新
// if (containerManager != null) {
// containerManager.autoRefresh();
// }
}
// 基类不支持ViewBinding,通过这种方式实现ViewBinding的效果
public static class ViewHolder {
public FrameLayout flRoot;
/**
* 视频列表
*/
public FrameLayout flVideoListContainer;
/**
* 空布局
*/
public FrameLayout flEmptyViewContainer;
public FrameLayout flToolbarContainer;
public FrameLayout flReplayContainer;
public FrameLayout flLoadingContainer;
public FrameLayout flRefreshAnimContainer;
public FrameLayout flBackContainer;
public FrameLayout flItemContainer;
public FrameLayout flAlbumDialogContainer;
public ViewHolder(View rootView) {
flRoot = rootView.findViewById(R.id.flRoot);
flVideoListContainer = rootView.findViewById(R.id.flVideoListContainer);
flEmptyViewContainer = rootView.findViewById(R.id.flEmptyViewContainer);
flToolbarContainer = rootView.findViewById(R.id.flToolbarContainer);
flReplayContainer = rootView.findViewById(R.id.flReplayContainer);
flLoadingContainer = rootView.findViewById(R.id.flLoadingContainer);
flRefreshAnimContainer = rootView.findViewById(R.id.flRefreshAnimContainer);
flBackContainer = rootView.findViewById(R.id.flBackContainer);
flItemContainer = rootView.findViewById(R.id.flItemContainer);
flAlbumDialogContainer = rootView.findViewById(R.id.flAlbumDialogContainer);
}
}
/**
* 处理底部导航栏,横屏隐藏、竖屏展示
*/
public void dealNavigationBar() {
int orientation = getResources().getConfiguration().orientation;
if (orientation == Configuration.ORIENTATION_PORTRAIT) {
activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
viewHolder.flRoot.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);
} else if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
if (!ToolsUtil.isStrangePhone()) {
activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
viewHolder.flRoot.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
}
}
}
}
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/flRoot"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black">
<FrameLayout
android:id="@+id/flVideoListContainer"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<FrameLayout
android:id="@+id/flItemContainer"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<FrameLayout
android:id="@+id/flEmptyViewContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
<FrameLayout
android:id="@+id/flToolbarContainer"
android:layout_width="match_parent"
android:layout_marginTop="@dimen/rmrb_dp42"
android:layout_height="@dimen/rmrb_dp44" />
<FrameLayout
android:id="@+id/flReplayContainer"
android:layout_width="@dimen/rmrb_dp36"
android:layout_height="@dimen/margin_20"
android:layout_marginStart="@dimen/rmrb_dp48"
android:layout_marginTop="@dimen/rmrb_dp54" />
<FrameLayout
android:id="@+id/flLoadingContainer"
android:layout_width="@dimen/rmrb_dp167"
android:layout_height="@dimen/rmrb_dp60"
android:layout_gravity="center"
android:visibility="gone" />
<FrameLayout
android:id="@+id/flRefreshAnimContainer"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<FrameLayout
android:id="@+id/flBackContainer"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<FrameLayout
android:id="@+id/flAlbumDialogContainer"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
\ No newline at end of file
... ...
... ... @@ -12,23 +12,7 @@ include ':wdlayout'
include ':wdinterface'
include ':wdinterfaceimpl'
include ':module_home'
include ':lib_routermanager'
include ':lib_entityclass'
////视频播放器
include ':module_videoplayer'
//个人中心
include ':module_personalcenter'
include ':aar_repo:lib_logger'
include ':aar_repo:localaar_ability'
include ':base_res'
include ':lib_network'
include ':aar_repo:localaar_weiboaar'
include ':base_location'
include ':aar_repo:lib_main'
include ':aar_repo:localaar_framework'
include ':base_share'
include ':base_component'
include ':lib_liveDataBus'
include ':base_player'
include ':base_interact'
include ':lib_logutil'
include ':wd_annotation'
include ':lib_common'
include ':lib_kittools'
... ...
package com.wd.foundation.bean.live;
import com.wd.foundation.bean.base.BaseBean;
/**
... ...
package com.wd.foundation.bean.response;
import com.wd.foundation.bean.base.BaseBean;
/**
* 预约直播列表子项
*
* @author wd
* @version [V1.0.0]
* @since V1.0.0
*/
public class LiveSubscribeBean extends BaseBean {
/**
* // string [] 非必须 封面图 item 类型: string 非必须
* */
public String[] imageUrl;
/**
* // number 非必须 直播ID
* */
public String liveId;
/**
* // string 非必须 计划开始时间 2023-05-31 10:12:59
* */
public String planStartTime;
/**
* // string 非必须 直播状态 wait是预约、runing 直播中、end结束
* */
public String status;
/**
* // string 非必须 直播标题
* */
public String title;
// /**
// * // string 非必须 App样式 1:小图卡,2:大图卡,3:无图卡,4:三图卡,5:头图卡,6:小视频卡,7:作者卡,8:单图卡
// * */
// public String appStyle;
//
//
// /**
// * // string 非必须 直播开始时间
// * */
// public String startTime;
/**
* 是否曝光过 false: 没有曝光;true: 曝光过
*/
public boolean exposure = false;
/**
* fixme 待重新提供接口
* */
public boolean isSubscribe;
/**
* 关系ID
*/
public String relId;
/**
* 关联关系type
*/
public int relType;
}
... ... @@ -3,6 +3,7 @@ package com.wd.foundation.bean.response;
import java.util.List;
import com.wd.foundation.bean.base.BaseBean;
import com.wd.foundation.bean.live.LiveSubscribeBean;
/**
* 预约直播列表子项
... ...
package com.wd.foundation.bean.response;
import android.text.TextUtils;
import com.wd.foundation.bean.custom.content.PeopleMasterBean;
import com.wd.foundation.wdkitcore.tools.StringUtils;
/**
* @author ouyang
... ... @@ -52,12 +53,10 @@ public class PersonalInfoBean extends PeopleMasterBean {
* 等同于父类的cnMainControl
*/
private String mainControl;
/**
* 分享地址
*/
private String shareUrl;
/**
* 从我的页面调到个人主页的类型 1:评论 2:作品
*/
... ... @@ -70,6 +69,11 @@ public class PersonalInfoBean extends PeopleMasterBean {
private String speakControl;
/**
* 登录用户评论开关 0 正常,1 关闭
*/
private String cnCommentAllowed;
/**
* 直播权限 0 有 ,1 无
*/
private String liveSwitch;
... ... @@ -98,12 +102,10 @@ public class PersonalInfoBean extends PeopleMasterBean {
* 动态生产权限 默认1,0:正常,1:关闭
*/
private String dynamicCreation;
/**
* 领域/官方认证信息
*/
private String categoryAuth;
/**
* 认证id:1蓝2黄
*/
... ... @@ -113,7 +115,6 @@ public class PersonalInfoBean extends PeopleMasterBean {
* 中文版内容分发权限 0:正常,1:关闭
*/
private String cnContentPublish = "0";
/**
* 评论量
*/
... ... @@ -158,7 +159,6 @@ public class PersonalInfoBean extends PeopleMasterBean {
* 最近登录用户IP归属地
*/
private String region;
/**
* 身份认证
*/
... ... @@ -184,6 +184,12 @@ public class PersonalInfoBean extends PeopleMasterBean {
private String itemType;
/**
* 性别
*/
private String sex;
public String getAuthPersonal() {
return authPersonal;
}
... ... @@ -216,6 +222,8 @@ public class PersonalInfoBean extends PeopleMasterBean {
this.sceneId = sceneId;
}
public String getAttentionNum() {
return attentionNum;
}
... ... @@ -224,6 +232,7 @@ public class PersonalInfoBean extends PeopleMasterBean {
this.attentionNum = attentionNum;
}
public String getCommentNum() {
return commentNum;
}
... ... @@ -277,7 +286,7 @@ public class PersonalInfoBean extends PeopleMasterBean {
}
private String getHeadPhotoUrl() {
if (headPhotoUrl == null) {
if(headPhotoUrl == null){
return "";
}
return headPhotoUrl;
... ... @@ -296,7 +305,7 @@ public class PersonalInfoBean extends PeopleMasterBean {
}
private String getUserName() {
return userName;
return userName ;
}
public void setUserName(String userName) {
... ... @@ -323,6 +332,7 @@ public class PersonalInfoBean extends PeopleMasterBean {
return traceInfo;
}
public int getFromMineType() {
return fromMineType;
}
... ... @@ -335,6 +345,7 @@ public class PersonalInfoBean extends PeopleMasterBean {
this.traceInfo = traceInfo;
}
public String getFollowStatus() {
return followStatus;
}
... ... @@ -388,7 +399,7 @@ public class PersonalInfoBean extends PeopleMasterBean {
}
public boolean isAuthentication() {
return !isBlank(getCategoryAuth()) && !isBlank(getAuthIcon());
return !StringUtils.isBlank(getCategoryAuth())&&!StringUtils.isBlank(getAuthIcon());
}
public String getRegistTime() {
... ... @@ -400,7 +411,7 @@ public class PersonalInfoBean extends PeopleMasterBean {
}
private int getIsAttention() {
if (TextUtils.isEmpty(isAttention)) {
if(TextUtils.isEmpty(isAttention)){
return 1;
}
try {
... ... @@ -430,6 +441,14 @@ public class PersonalInfoBean extends PeopleMasterBean {
this.speakControl = speakControl;
}
public String getCnCommentAllowed() {
return cnCommentAllowed;
}
public void setCnCommentAllowed(String cnCommentAllowed) {
this.cnCommentAllowed = cnCommentAllowed;
}
public String getPosterShareControl() {
return posterShareControl;
}
... ... @@ -501,52 +520,52 @@ public class PersonalInfoBean extends PeopleMasterBean {
public void setCnContentPublish(String cnContentPublish) {
this.cnContentPublish = cnContentPublish;
}
/** *********************************一下是字段修正方法 */
/** *********************************一下是字段修正方法*/
public String getRmhDesc() {
if (TextUtils.isEmpty(rmhDesc)) {
if(TextUtils.isEmpty(rmhDesc)){
return getIntroduction();
}
return rmhDesc;
}
public String getRmhHeadUrl() {
if (rmhHeadUrl == null) {
if (rmhHeadUrl == null){
return getHeadPhotoUrl();
}
return rmhHeadUrl;
}
public String getRmhId() {
if (TextUtils.isEmpty(rmhId)) {
if(TextUtils.isEmpty(rmhId)){
return getCreatorId();
}
return rmhId;
}
public String getRmhName() {
if (TextUtils.isEmpty(rmhName)) {
if(TextUtils.isEmpty(rmhName)){
return getUserName();
}
return rmhName;
}
public int getCnIsAttention() {
if (TextUtils.isEmpty(cnIsAttention)) {
if(TextUtils.isEmpty(cnIsAttention)){
return getIsAttention();
}
// TODO 是否会死循环?
return getCnIsAttention();
return 1;
}
public String getCnMainControl() {
if (TextUtils.isEmpty(cnMainControl)) {
if(TextUtils.isEmpty(cnMainControl)){
return getMainControl();
}
return cnMainControl;
}
private static boolean isBlank(String value) {
return null == value || 0 == value.length() || "".equals(value.trim());
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
}
... ...
... ... @@ -100,9 +100,9 @@ public class CompServiceImpl implements ICompService {
@Override
public Fragment createShortVideoFragment(String pageId, int color) {
Fragment myFragment = (Fragment) WdRouterRule.getInstance().getFragment(RouterConstants.PATH_SHORT_VIDEO);
Logger.e("CompServiceImpl", "myFragment:" + myFragment);
if (myFragment != null) {
Fragment shortVideoFragment = (Fragment) WdRouterRule.getInstance().getFragment(RouterConstants.PATH_SHORT_VIDEO);
Logger.e("CompServiceImpl", "shortVideoFragment:" + shortVideoFragment);
if (shortVideoFragment != null) {
VodDetailIntentBean intentBean = new VodDetailIntentBean();
intentBean.setType(VodDetailIntentBean.Type.COMP);
intentBean.setPageId(pageId);
... ... @@ -110,8 +110,8 @@ public class CompServiceImpl implements ICompService {
intentBean.isImmerse = true;
Bundle bundle = new Bundle();
bundle.putString(IntentConstants.PARAMS_VIDEO_DETAIL, JsonUtils.convertObjectToJson(intentBean));
myFragment.setArguments(bundle);
return myFragment;
shortVideoFragment.setArguments(bundle);
return shortVideoFragment;
}
return createDefaultFragment();
}
... ...