Showing
361 changed files
with
6098 additions
and
122 deletions
| @@ -62,6 +62,8 @@ dependencies { | @@ -62,6 +62,8 @@ dependencies { | ||
| 62 | implementation project(':lib_base') | 62 | implementation project(':lib_base') |
| 63 | implementation project(path: ':wdinterfaceimpl') | 63 | implementation project(path: ':wdinterfaceimpl') |
| 64 | implementation project(path: ':module_home') | 64 | implementation project(path: ':module_home') |
| 65 | + implementation project(path: ':module_videoplayer') | ||
| 66 | + implementation project(path: ':module_personalcenter') | ||
| 65 | // annotationProcessor 'com.alibaba:arouter-compiler:1.5.2' | 67 | // annotationProcessor 'com.alibaba:arouter-compiler:1.5.2' |
| 66 | 68 | ||
| 67 | } | 69 | } |
module_personalcenter/.gitignore
0 → 100644
| 1 | +/build |
module_personalcenter/README.md
0 → 100644
module_personalcenter/build.gradle
0 → 100644
| 1 | +plugins { | ||
| 2 | + id 'com.android.library' | ||
| 3 | + id 'kotlin-android' | ||
| 4 | + id 'kotlin-parcelize' | ||
| 5 | +} | ||
| 6 | +android { | ||
| 7 | + compileSdkVersion var.compileSdkVersion | ||
| 8 | + buildToolsVersion var.buildToolsVersion | ||
| 9 | + | ||
| 10 | + defaultConfig { | ||
| 11 | + minSdkVersion var.minSdkVersion | ||
| 12 | + targetSdkVersion var.targetSdkVersion | ||
| 13 | + versionCode var.versionCode | ||
| 14 | + versionName var.versionName | ||
| 15 | + | ||
| 16 | + consumerProguardFiles "consumer-rules.pro" | ||
| 17 | + javaCompileOptions { | ||
| 18 | + annotationProcessorOptions { | ||
| 19 | + arguments = [AROUTER_MODULE_NAME: project.getName()] | ||
| 20 | + } | ||
| 21 | + } | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + buildTypes { | ||
| 25 | + release { | ||
| 26 | + minifyEnabled false | ||
| 27 | + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
| 28 | + } | ||
| 29 | + } | ||
| 30 | + compileOptions { | ||
| 31 | + sourceCompatibility JavaVersion.VERSION_1_8 | ||
| 32 | + targetCompatibility JavaVersion.VERSION_1_8 | ||
| 33 | + } | ||
| 34 | +} | ||
| 35 | + | ||
| 36 | +dependencies { | ||
| 37 | + implementation project(path: ':wdbean') | ||
| 38 | + implementation project(path: ':wdlayout') | ||
| 39 | + annotationProcessor rootProject.ext.dependencies["arouter-compiler"] | ||
| 40 | + implementation rootProject.ext.dependencies["TagTextView"] | ||
| 41 | + implementation rootProject.ext.dependencies["banner"] | ||
| 42 | +// implementation 'com.google.android.flexbox:flexbox:3.0.0' | ||
| 43 | +} |
module_personalcenter/consumer-rules.pro
0 → 100644
module_personalcenter/proguard-rules.pro
0 → 100644
| 1 | +# Add project specific ProGuard rules here. | ||
| 2 | +# You can control the set of applied configuration files using the | ||
| 3 | +# proguardFiles setting in build.gradle. | ||
| 4 | +# | ||
| 5 | +# For more details, see | ||
| 6 | +# http://developer.android.com/guide/developing/tools/proguard.html | ||
| 7 | + | ||
| 8 | +# If your project uses WebView with JS, uncomment the following | ||
| 9 | +# and specify the fully qualified class name to the JavaScript interface | ||
| 10 | +# class: | ||
| 11 | +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
| 12 | +# public *; | ||
| 13 | +#} | ||
| 14 | + | ||
| 15 | +# Uncomment this to preserve the line number information for | ||
| 16 | +# debugging stack traces. | ||
| 17 | +#-keepattributes SourceFile,LineNumberTable | ||
| 18 | + | ||
| 19 | +# If you keep the line number information, uncomment this to | ||
| 20 | +# hide the original source file name. | ||
| 21 | +#-renamesourcefileattribute SourceFile |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + package="com.wd.personalcenter"> | ||
| 4 | + | ||
| 5 | + <application> | ||
| 6 | + <!-- <activity--> | ||
| 7 | + <!-- android:name=".activity.AboutActivity"--> | ||
| 8 | + <!-- android:launchMode="singleTask"--> | ||
| 9 | + <!-- android:screenOrientation="portrait" />--> | ||
| 10 | +<!-- <activity--> | ||
| 11 | +<!-- android:name=".activity.SettingActivity"--> | ||
| 12 | +<!-- android:configChanges="uiMode"--> | ||
| 13 | +<!-- android:exported="false"--> | ||
| 14 | +<!-- android:screenOrientation="portrait" />--> | ||
| 15 | +<!-- <!– <activity–>--> | ||
| 16 | +<!-- <!– android:name=".activity.FeedBackActivity"–>--> | ||
| 17 | +<!-- <!– android:launchMode="singleTask"–>--> | ||
| 18 | +<!-- <!– android:screenOrientation="portrait"–>--> | ||
| 19 | +<!-- <!– android:fitsSystemWindows="true"–>--> | ||
| 20 | +<!-- <!– android:windowSoftInputMode="adjustPan" />–>--> | ||
| 21 | +<!-- <activity--> | ||
| 22 | +<!-- android:name=".history.activity.HistoryFavoriteDisplayActivity"--> | ||
| 23 | +<!-- android:launchMode="singleTask"--> | ||
| 24 | +<!-- android:screenOrientation="portrait" />--> | ||
| 25 | +<!-- <activity--> | ||
| 26 | +<!-- android:name=".activity.AddAppWidgetActivity"--> | ||
| 27 | +<!-- android:launchMode="singleTask"--> | ||
| 28 | +<!-- android:screenOrientation="portrait" />--> | ||
| 29 | +<!-- <activity--> | ||
| 30 | +<!-- android:name=".history.activity.HistoryFavoriteEditActivity"--> | ||
| 31 | +<!-- android:launchMode="singleTask"--> | ||
| 32 | +<!-- android:screenOrientation="portrait" />--> | ||
| 33 | + | ||
| 34 | +<!-- <activity--> | ||
| 35 | +<!-- android:name=".userinfo.activity.EditProfileActivity"--> | ||
| 36 | +<!-- android:exported="false"--> | ||
| 37 | +<!-- android:launchMode="singleTask"--> | ||
| 38 | +<!-- android:screenOrientation="portrait" />--> | ||
| 39 | + | ||
| 40 | +<!-- <activity--> | ||
| 41 | +<!-- android:name=".userinfo.activity.EditNickNameActivity"--> | ||
| 42 | +<!-- android:exported="false"--> | ||
| 43 | +<!-- android:launchMode="singleTask"--> | ||
| 44 | +<!-- android:screenOrientation="portrait" />--> | ||
| 45 | + | ||
| 46 | +<!-- <activity--> | ||
| 47 | +<!-- android:name=".userinfo.activity.EditIntroductionActivity"--> | ||
| 48 | +<!-- android:exported="false"--> | ||
| 49 | +<!-- android:launchMode="singleTask"--> | ||
| 50 | +<!-- android:screenOrientation="portrait" />--> | ||
| 51 | + | ||
| 52 | +<!-- <activity--> | ||
| 53 | +<!-- android:name=".activity.PermissionManagementActivity"--> | ||
| 54 | +<!-- android:launchMode="singleTask"--> | ||
| 55 | +<!-- android:screenOrientation="portrait" />--> | ||
| 56 | + | ||
| 57 | +<!-- <activity--> | ||
| 58 | +<!-- android:name=".activity.FocusListActivity"--> | ||
| 59 | +<!-- android:launchMode="singleTask"--> | ||
| 60 | +<!-- android:screenOrientation="portrait" />--> | ||
| 61 | + | ||
| 62 | +<!-- <activity--> | ||
| 63 | +<!-- android:name=".usercenter.index.view.PersonalCenterActivity"--> | ||
| 64 | +<!-- android:screenOrientation="portrait" />--> | ||
| 65 | + | ||
| 66 | + | ||
| 67 | +<!-- <activity--> | ||
| 68 | +<!-- android:name=".trends.view.TrendsDetailActivity"--> | ||
| 69 | +<!-- android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|screenLayout|uiMode"--> | ||
| 70 | +<!-- android:resizeableActivity="true"--> | ||
| 71 | +<!-- android:screenOrientation="portrait"--> | ||
| 72 | +<!-- android:supportsPictureInPicture="true" />--> | ||
| 73 | + | ||
| 74 | +<!-- <activity--> | ||
| 75 | +<!-- android:name=".activity.AccountSafetyActivity"--> | ||
| 76 | +<!-- android:configChanges="uiMode"--> | ||
| 77 | +<!-- android:screenOrientation="portrait" />--> | ||
| 78 | +<!-- <activity--> | ||
| 79 | +<!-- android:name=".activity.FeedBackActivity"--> | ||
| 80 | +<!-- android:configChanges="uiMode"--> | ||
| 81 | +<!-- android:screenOrientation="portrait"--> | ||
| 82 | +<!-- android:windowSoftInputMode="adjustPan"--> | ||
| 83 | +<!-- android:exported="false"/>--> | ||
| 84 | +<!-- <activity--> | ||
| 85 | +<!-- android:name=".activity.AboutActivity"--> | ||
| 86 | +<!-- android:configChanges="uiMode"--> | ||
| 87 | +<!-- android:screenOrientation="portrait" />--> | ||
| 88 | + | ||
| 89 | +<!-- <activity--> | ||
| 90 | +<!-- android:name=".activity.ModifyPasswordActivity"--> | ||
| 91 | +<!-- android:configChanges="uiMode"--> | ||
| 92 | +<!-- android:screenOrientation="portrait" />--> | ||
| 93 | + | ||
| 94 | +<!-- <activity--> | ||
| 95 | +<!-- android:name=".activity.VisitorCommentActivity"--> | ||
| 96 | +<!-- android:configChanges="uiMode"--> | ||
| 97 | +<!-- android:screenOrientation="portrait" />--> | ||
| 98 | + | ||
| 99 | +<!-- <activity--> | ||
| 100 | +<!-- android:name=".usercenter.index.view.PictureShowActivity"--> | ||
| 101 | +<!-- android:launchMode="singleTask"--> | ||
| 102 | +<!-- android:screenOrientation="portrait" />--> | ||
| 103 | +<!-- <activity--> | ||
| 104 | +<!-- android:name=".message.activity.MailGroupActivity"--> | ||
| 105 | +<!-- android:exported="false"--> | ||
| 106 | +<!-- android:screenOrientation="portrait" />--> | ||
| 107 | +<!-- <activity--> | ||
| 108 | +<!-- android:name=".message.activity.PushMsgListActivity"--> | ||
| 109 | +<!-- android:exported="false"--> | ||
| 110 | +<!-- android:screenOrientation="portrait" />--> | ||
| 111 | +<!-- <activity--> | ||
| 112 | +<!-- android:name=".message.activity.SystemMsgListActivity"--> | ||
| 113 | +<!-- android:exported="false"--> | ||
| 114 | +<!-- android:screenOrientation="portrait" />--> | ||
| 115 | +<!-- <activity--> | ||
| 116 | +<!-- android:name=".message.activity.SystemMsgDetailActivity"--> | ||
| 117 | +<!-- android:exported="false"--> | ||
| 118 | +<!-- android:screenOrientation="portrait" />--> | ||
| 119 | +<!-- <activity--> | ||
| 120 | +<!-- android:name=".message.activity.ReplyMsgListActivity"--> | ||
| 121 | +<!-- android:exported="false"--> | ||
| 122 | +<!-- android:screenOrientation="portrait" />--> | ||
| 123 | +<!-- <activity--> | ||
| 124 | +<!-- android:name=".message.activity.ReservationListActivity"--> | ||
| 125 | +<!-- android:exported="false"--> | ||
| 126 | +<!-- android:screenOrientation="portrait" />--> | ||
| 127 | + | ||
| 128 | +<!-- <activity--> | ||
| 129 | +<!-- android:name=".incentive.level.UserLevelActivity"--> | ||
| 130 | +<!-- android:exported="false"--> | ||
| 131 | +<!-- android:screenOrientation="portrait" />--> | ||
| 132 | + | ||
| 133 | +<!-- <activity--> | ||
| 134 | +<!-- android:name=".incentive.integral.IntegralCenterActivity"--> | ||
| 135 | +<!-- android:exported="false"--> | ||
| 136 | +<!-- android:screenOrientation="portrait" />--> | ||
| 137 | + | ||
| 138 | +<!-- <activity--> | ||
| 139 | +<!-- android:name=".incentive.integral.IntegralDetailActivity"--> | ||
| 140 | +<!-- android:exported="false"--> | ||
| 141 | +<!-- android:screenOrientation="portrait" />--> | ||
| 142 | + | ||
| 143 | +<!-- <activity--> | ||
| 144 | +<!-- android:name=".activity.FontSizeSettingActivity"--> | ||
| 145 | +<!-- android:exported="false"--> | ||
| 146 | +<!-- android:screenOrientation="portrait" />--> | ||
| 147 | + | ||
| 148 | + </application> | ||
| 149 | + | ||
| 150 | +</manifest> |
| 1 | +package com.people.personalcenter; | ||
| 2 | + | ||
| 3 | +import android.app.Dialog; | ||
| 4 | +import android.graphics.Color; | ||
| 5 | +import android.text.TextUtils; | ||
| 6 | +import android.view.View; | ||
| 7 | +import android.view.ViewGroup; | ||
| 8 | +import android.widget.FrameLayout; | ||
| 9 | +import android.widget.ImageView; | ||
| 10 | +import android.widget.LinearLayout; | ||
| 11 | +import android.widget.RelativeLayout; | ||
| 12 | +import android.widget.ScrollView; | ||
| 13 | +import android.widget.TextView; | ||
| 14 | + | ||
| 15 | +import androidx.lifecycle.Observer; | ||
| 16 | + | ||
| 17 | +import com.alibaba.android.arouter.facade.annotation.Route; | ||
| 18 | +import com.wd.capability.layout.constant.PageNameConstants; | ||
| 19 | +import com.wd.capability.layout.uitls.PDUtils; | ||
| 20 | +import com.wd.capability.network.constant.EventConstants; | ||
| 21 | +import com.wd.common.base.BaseLazyFragment; | ||
| 22 | +import com.wd.common.imageglide.ImageUtils; | ||
| 23 | +import com.wd.foundation.bean.analytics.TrackContentBean; | ||
| 24 | +import com.wd.foundation.bean.live.LiveExistNotWatchBean; | ||
| 25 | +import com.wd.foundation.bean.live.LiveSubscribeBean; | ||
| 26 | +import com.wd.foundation.bean.response.PersonalInfoBean; | ||
| 27 | +import com.wd.foundation.wdkit.constant.BaseConstants; | ||
| 28 | +import com.wd.foundation.wdkit.constant.Constants; | ||
| 29 | +import com.wd.foundation.wdkit.constant.IntentConstants; | ||
| 30 | +import com.wd.foundation.wdkit.constant.RouterConstants; | ||
| 31 | +import com.wd.foundation.wdkit.utils.SafeBundleUtil; | ||
| 32 | +import com.wd.foundation.wdkit.utils.ScreenUtils; | ||
| 33 | +import com.wd.foundation.wdkit.utils.SpUtils; | ||
| 34 | +import com.wd.foundation.wdkit.utils.ViewUtils; | ||
| 35 | +import com.wd.foundation.wdkit.view.CircleImageView; | ||
| 36 | +import com.wd.foundation.wdkit.view.RoundImageView; | ||
| 37 | +import com.wd.foundation.wdkit.view.customtextview.StrokeWidthTextView; | ||
| 38 | +import com.wd.foundation.wdkitcore.livedata.LiveDataBus; | ||
| 39 | +import com.wd.foundation.wdkitcore.tools.ArrayUtils; | ||
| 40 | +import com.wd.foundation.wdkitcore.tools.ResUtils; | ||
| 41 | +import com.wd.foundation.wdkitcore.tools.StringUtils; | ||
| 42 | +import com.wd.personalcenter.R; | ||
| 43 | + | ||
| 44 | +import java.util.List; | ||
| 45 | + | ||
| 46 | +/** | ||
| 47 | + * 我的页面 | ||
| 48 | + * | ||
| 49 | + * @author baozhaoxin | ||
| 50 | + * @version [V1.0.0, 2023/4/25] | ||
| 51 | + * @since V1.0.0 | ||
| 52 | + */ | ||
| 53 | +@Route(path = RouterConstants.PATH_MODULE_MY_FRAGMENT) | ||
| 54 | +public class MineFragment extends BaseLazyFragment implements View.OnClickListener { | ||
| 55 | + | ||
| 56 | + //**************************我的页面**************************** | ||
| 57 | + /** | ||
| 58 | + * 用户头像 | ||
| 59 | + */ | ||
| 60 | + public final String MY_PAGE_USER_HEAD = "myPageUserHead"; | ||
| 61 | + | ||
| 62 | + /** | ||
| 63 | + * 用户昵称 | ||
| 64 | + */ | ||
| 65 | + public final String MY_PAGE_USER_NAME = "myPageUserName"; | ||
| 66 | + | ||
| 67 | + /** | ||
| 68 | + * 登录/注册 | ||
| 69 | + */ | ||
| 70 | + public final String MY_PAGE_USER_LOGIN = "myPageUserLogin"; | ||
| 71 | + | ||
| 72 | + /** | ||
| 73 | + * 签到入口点击 | ||
| 74 | + */ | ||
| 75 | + public final String MY_PAGE_USER_SIGN_IN = "myPageUserSignIn"; | ||
| 76 | + | ||
| 77 | + /** | ||
| 78 | + * 评论入口点击 | ||
| 79 | + */ | ||
| 80 | + public final String MY_PAGE_USER_COMMENT = "myPageUserComment"; | ||
| 81 | + | ||
| 82 | + /** | ||
| 83 | + * 关注入口点击 | ||
| 84 | + */ | ||
| 85 | + public final String MY_PAGE_USER_FOLLOW = "myPageUserFollow"; | ||
| 86 | + | ||
| 87 | + /** | ||
| 88 | + * 收藏入口点击 | ||
| 89 | + */ | ||
| 90 | + public final String MY_PAGE_USER_COLLECTION = "myPageUserCollection"; | ||
| 91 | + | ||
| 92 | + /** | ||
| 93 | + * 历史入口点击 | ||
| 94 | + */ | ||
| 95 | + public final String MY_PAGE_USER_HISTORY = "myPageUserHistory"; | ||
| 96 | + | ||
| 97 | + /** | ||
| 98 | + * 消息入口点击 | ||
| 99 | + */ | ||
| 100 | + public final String MY_PAGE_USER_NOTICE = "myPageUserNotice"; | ||
| 101 | + | ||
| 102 | + /** | ||
| 103 | + * 问政入口点击 | ||
| 104 | + */ | ||
| 105 | + public final String MY_PAGE_MESSAGE_BOARD = "myPageMessageBoard"; | ||
| 106 | + | ||
| 107 | + /** | ||
| 108 | + * 预约入口点击 | ||
| 109 | + */ | ||
| 110 | + public final String MY_PAGE_USER_SUBSCRIBE = "myPageUserSubscribe"; | ||
| 111 | + | ||
| 112 | + | ||
| 113 | + /** | ||
| 114 | + * 取消预约 | ||
| 115 | + */ | ||
| 116 | + public final String MY_PAGE_SAVEDLIVEPAGEUNSUBSCRIBE = "mySavedLivePageUnSubscribe"; | ||
| 117 | + | ||
| 118 | + /** | ||
| 119 | + * 积分商城点击 | ||
| 120 | + */ | ||
| 121 | + public final String MY_PAGE_USER_POINTS_MALL = "myPageUserPointsMall"; | ||
| 122 | + | ||
| 123 | + /** | ||
| 124 | + * 数字藏品点击 | ||
| 125 | + */ | ||
| 126 | + public final String MY_PAGE_USER_DIGITAL_COLLECTIBLES = "myPageUserDigitalCollectibles"; | ||
| 127 | + | ||
| 128 | + /** | ||
| 129 | + * 意见反馈点击 | ||
| 130 | + */ | ||
| 131 | + public final String MY_PAGE_USER_FEED_BACK = "myPageUserFeedBack"; | ||
| 132 | + | ||
| 133 | + /** | ||
| 134 | + * 设置点击 | ||
| 135 | + */ | ||
| 136 | + public final String MY_PAGE_USER_SETTING = "myPageUserSetting"; | ||
| 137 | + | ||
| 138 | + /** | ||
| 139 | + * 关于点击 | ||
| 140 | + */ | ||
| 141 | + public final String MY_PAGE_USER_ABOUT = "myPageUserAbout"; | ||
| 142 | + | ||
| 143 | + /** | ||
| 144 | + * 扫一扫点击 | ||
| 145 | + */ | ||
| 146 | + public final String MY_PAGE_SCANCODE = "myPageScanCode"; | ||
| 147 | + | ||
| 148 | + /** | ||
| 149 | + * 夜间模式点击 | ||
| 150 | + */ | ||
| 151 | + public final String MY_PAGE_USER_LIGHT_MODE = "myPageUserLightMode"; | ||
| 152 | + | ||
| 153 | + /** | ||
| 154 | + * 内容管理 点击 | ||
| 155 | + */ | ||
| 156 | + public final String MY_PAGE_CONTENT_MANAGEMENT = "myPageContentManagement"; | ||
| 157 | + | ||
| 158 | + /** | ||
| 159 | + * 发布文章 点击 | ||
| 160 | + */ | ||
| 161 | + public final String MY_PAGE_PUBLISH_ARTICLE = "myPagePublishArticle"; | ||
| 162 | + | ||
| 163 | + /** | ||
| 164 | + * 发布视频 点击 | ||
| 165 | + */ | ||
| 166 | + public final String MY_PAGE_PUBLISH_VIDEO = "myPagePublishVideo"; | ||
| 167 | + | ||
| 168 | + /** | ||
| 169 | + * 发布动态 点击 | ||
| 170 | + */ | ||
| 171 | + public final String MY_PAGE_PUBLISH_DYNAMIC = "myPagePublishDynamic"; | ||
| 172 | + | ||
| 173 | + /** | ||
| 174 | + * 发布图集 点击 | ||
| 175 | + */ | ||
| 176 | + public final String MY_PAGE_PUBLISH_ATLAS = "myPagePublishAtlas"; | ||
| 177 | + | ||
| 178 | + /** | ||
| 179 | + * tag | ||
| 180 | + */ | ||
| 181 | + private static final String TAG = "MineFragment"; | ||
| 182 | + | ||
| 183 | + /** | ||
| 184 | + * 测试入口 | ||
| 185 | + */ | ||
| 186 | + private TextView testTv; | ||
| 187 | + | ||
| 188 | + /** | ||
| 189 | + * 滑动控件 | ||
| 190 | + */ | ||
| 191 | + private ScrollView mScrollView; | ||
| 192 | + | ||
| 193 | + /** | ||
| 194 | + * 顶部背景图 | ||
| 195 | + */ | ||
| 196 | + private ImageView topBgImg; | ||
| 197 | + | ||
| 198 | + /** | ||
| 199 | + * 顶部布局-未登录状态 | ||
| 200 | + */ | ||
| 201 | + private LinearLayout unLoginTopLayout; | ||
| 202 | + | ||
| 203 | + /** | ||
| 204 | + * 头像-未登录状态 | ||
| 205 | + */ | ||
| 206 | + private CircleImageView unLoginHeadImg; | ||
| 207 | + | ||
| 208 | + /** | ||
| 209 | + * 昵称布局-未登录状态 | ||
| 210 | + */ | ||
| 211 | + private LinearLayout unLoginNameLayout; | ||
| 212 | + | ||
| 213 | + /** | ||
| 214 | + * 签到布局-未登录状态 | ||
| 215 | + */ | ||
| 216 | + private FrameLayout unLoginSignInLayout; | ||
| 217 | + | ||
| 218 | + /** | ||
| 219 | + * 评论布局-未登录状态 | ||
| 220 | + */ | ||
| 221 | + private FrameLayout unLoginCommentLayout; | ||
| 222 | + | ||
| 223 | + /** | ||
| 224 | + * 关注布局-未登录状态 | ||
| 225 | + */ | ||
| 226 | + private FrameLayout unLoginAttentionLayout; | ||
| 227 | + | ||
| 228 | + /** | ||
| 229 | + * 收藏布局-未登录状态 | ||
| 230 | + */ | ||
| 231 | + private FrameLayout unLoginCollectLayout; | ||
| 232 | + | ||
| 233 | + /** | ||
| 234 | + * 历史布局-未登录状态 | ||
| 235 | + */ | ||
| 236 | + private FrameLayout unLoginhistoryLayout; | ||
| 237 | + | ||
| 238 | + /** | ||
| 239 | + * 消息布局-未登录状态 | ||
| 240 | + */ | ||
| 241 | + private FrameLayout unLoginMessageLayout; | ||
| 242 | + | ||
| 243 | + /** | ||
| 244 | + * 问政布局-未登录状态 | ||
| 245 | + */ | ||
| 246 | + private FrameLayout unLoginAskPoliticsLayout; | ||
| 247 | + | ||
| 248 | + /** | ||
| 249 | + * 预约布局-未登录状态 | ||
| 250 | + */ | ||
| 251 | + private FrameLayout unLoginSubscribeLayout; | ||
| 252 | + | ||
| 253 | + /** | ||
| 254 | + * 活动投稿布局-未登录状态 | ||
| 255 | + */ | ||
| 256 | + private FrameLayout unLoginEventSubmissionLayout; | ||
| 257 | + | ||
| 258 | + /** | ||
| 259 | + * 顶部登录状态布局 | ||
| 260 | + */ | ||
| 261 | + private LinearLayout topLoginLayout; | ||
| 262 | + | ||
| 263 | + /** | ||
| 264 | + * 头像框 | ||
| 265 | + */ | ||
| 266 | + private ImageView avatarFrameImg; | ||
| 267 | + | ||
| 268 | + /** | ||
| 269 | + * 头像 | ||
| 270 | + */ | ||
| 271 | + private CircleImageView headImg; | ||
| 272 | + | ||
| 273 | + /** | ||
| 274 | + * 认证布局 | ||
| 275 | + */ | ||
| 276 | + private FrameLayout vipLayout; | ||
| 277 | + | ||
| 278 | + /** | ||
| 279 | + * 头像加V | ||
| 280 | + */ | ||
| 281 | + private RoundImageView vipIV; | ||
| 282 | + | ||
| 283 | + /** | ||
| 284 | + * 昵称布局 | ||
| 285 | + */ | ||
| 286 | + private LinearLayout nameLayout; | ||
| 287 | + | ||
| 288 | + /** | ||
| 289 | + * 昵称 | ||
| 290 | + */ | ||
| 291 | + private StrokeWidthTextView nameTv; | ||
| 292 | + | ||
| 293 | + private TextView tv_name_un_login; | ||
| 294 | + | ||
| 295 | + private ImageView tvNameArrow,tv_name_un_login_arrow; | ||
| 296 | + | ||
| 297 | + /** | ||
| 298 | + * 等级 | ||
| 299 | + */ | ||
| 300 | + private TextView lvTv; | ||
| 301 | + | ||
| 302 | + /** | ||
| 303 | + * 签到布局 | ||
| 304 | + */ | ||
| 305 | + private FrameLayout signInLayout; | ||
| 306 | + | ||
| 307 | + /** | ||
| 308 | + * 签到 | ||
| 309 | + */ | ||
| 310 | + private TextView signInTv; | ||
| 311 | + | ||
| 312 | + /** | ||
| 313 | + * 评论布局 | ||
| 314 | + */ | ||
| 315 | + private FrameLayout commentLayout; | ||
| 316 | + | ||
| 317 | + /** | ||
| 318 | + * 关注布局 | ||
| 319 | + */ | ||
| 320 | + private FrameLayout attentionLayout; | ||
| 321 | + | ||
| 322 | + /** | ||
| 323 | + * 收藏布局 | ||
| 324 | + */ | ||
| 325 | + private FrameLayout collectLayout; | ||
| 326 | + | ||
| 327 | + /** | ||
| 328 | + * 历史布局 | ||
| 329 | + */ | ||
| 330 | + private FrameLayout historyLayout; | ||
| 331 | + | ||
| 332 | + /** | ||
| 333 | + * 消息布局 | ||
| 334 | + */ | ||
| 335 | + private FrameLayout messageLayout; | ||
| 336 | + | ||
| 337 | + /** | ||
| 338 | + * 消息红点 | ||
| 339 | + */ | ||
| 340 | + private CircleImageView messageRedView; | ||
| 341 | + | ||
| 342 | + /** | ||
| 343 | + * 问政布局 | ||
| 344 | + */ | ||
| 345 | + private FrameLayout askPoliticsLayout; | ||
| 346 | + | ||
| 347 | + /** | ||
| 348 | + * 问政红点 | ||
| 349 | + */ | ||
| 350 | + private CircleImageView askRedView; | ||
| 351 | + | ||
| 352 | + /** | ||
| 353 | + * 预约布局 | ||
| 354 | + */ | ||
| 355 | + private FrameLayout subscribeLayout; | ||
| 356 | + | ||
| 357 | + /** | ||
| 358 | + * 预约红点 | ||
| 359 | + */ | ||
| 360 | + private CircleImageView subscribeRedView; | ||
| 361 | + | ||
| 362 | + /** | ||
| 363 | + * 活动投稿布局 | ||
| 364 | + */ | ||
| 365 | + private FrameLayout eventSubmissionLayout; | ||
| 366 | + | ||
| 367 | + /** | ||
| 368 | + * 金刚区布局 | ||
| 369 | + */ | ||
| 370 | + private RelativeLayout secLayout; | ||
| 371 | + | ||
| 372 | + /** | ||
| 373 | + * 金刚区-左边背景图 | ||
| 374 | + */ | ||
| 375 | + private ImageView secLeftImg; | ||
| 376 | + | ||
| 377 | + /** | ||
| 378 | + * 金刚区-右边背景图 | ||
| 379 | + */ | ||
| 380 | + private ImageView secRightImg; | ||
| 381 | + | ||
| 382 | + /** | ||
| 383 | + * 金刚区-单个图片 | ||
| 384 | + */ | ||
| 385 | + private ImageView secSingleImg; | ||
| 386 | + | ||
| 387 | + /** | ||
| 388 | + * 创作者中心布局 | ||
| 389 | + */ | ||
| 390 | + private LinearLayout creatorCenterLayout; | ||
| 391 | + | ||
| 392 | + /** | ||
| 393 | + * 创作者中心-内容管理布局 | ||
| 394 | + */ | ||
| 395 | + private LinearLayout contentManagementLayout; | ||
| 396 | + | ||
| 397 | + /** | ||
| 398 | + * 创作者中心-发布入口布局 | ||
| 399 | + */ | ||
| 400 | + private LinearLayout publishEntranceLayout; | ||
| 401 | + | ||
| 402 | + /** | ||
| 403 | + * 创作者中心-发布文章布局 | ||
| 404 | + */ | ||
| 405 | + private LinearLayout publishArticleLayout; | ||
| 406 | + | ||
| 407 | + /** | ||
| 408 | + * 创作者中心-发布视频布局 | ||
| 409 | + */ | ||
| 410 | + private LinearLayout publishVideoLayout; | ||
| 411 | + | ||
| 412 | + /** | ||
| 413 | + * 创作者中心-发布动态布局 | ||
| 414 | + */ | ||
| 415 | + private LinearLayout publishDynamicLayout; | ||
| 416 | + | ||
| 417 | + /** | ||
| 418 | + * 创作者中心-发布图集布局 | ||
| 419 | + */ | ||
| 420 | + private LinearLayout publishAtlasLayout; | ||
| 421 | + | ||
| 422 | + /** | ||
| 423 | + * 更多功能布局 | ||
| 424 | + */ | ||
| 425 | + private LinearLayout moreFunctionsLayout; | ||
| 426 | + | ||
| 427 | + /** | ||
| 428 | + * 更多功能-积分商城布局 | ||
| 429 | + */ | ||
| 430 | + private RelativeLayout pointsMallLayout; | ||
| 431 | + | ||
| 432 | + /** | ||
| 433 | + * 更多功能-夜间模式布局 | ||
| 434 | + */ | ||
| 435 | + private RelativeLayout nightModeLayout; | ||
| 436 | + | ||
| 437 | + /** | ||
| 438 | + * 日间模式、夜间模式、跟随系统 | ||
| 439 | + */ | ||
| 440 | + private TextView nightModeTv; | ||
| 441 | + | ||
| 442 | + /** | ||
| 443 | + * 更多功能-我的奖品布局 | ||
| 444 | + */ | ||
| 445 | + private RelativeLayout myPrizeLayout; | ||
| 446 | + | ||
| 447 | + /** | ||
| 448 | + * 更多功能-意见反馈布局 | ||
| 449 | + */ | ||
| 450 | + private RelativeLayout feedBackLayout; | ||
| 451 | + | ||
| 452 | + /** | ||
| 453 | + * 更多功能-扫一扫布局 | ||
| 454 | + */ | ||
| 455 | + private RelativeLayout scanLayout; | ||
| 456 | + | ||
| 457 | + /** | ||
| 458 | + * 更多功能-桌面小组就布局 | ||
| 459 | + */ | ||
| 460 | + private RelativeLayout layoutWidget; | ||
| 461 | + | ||
| 462 | + /** | ||
| 463 | + * 更多功能-设置布局 | ||
| 464 | + */ | ||
| 465 | + private RelativeLayout settingLayout; | ||
| 466 | + | ||
| 467 | + /** | ||
| 468 | + * 更多功能-关于布局 | ||
| 469 | + */ | ||
| 470 | + private RelativeLayout aboutLayout; | ||
| 471 | + | ||
| 472 | + /** | ||
| 473 | + * pageId | ||
| 474 | + */ | ||
| 475 | + private String mPageId; | ||
| 476 | + | ||
| 477 | + /** | ||
| 478 | + * tab名称 | ||
| 479 | + */ | ||
| 480 | + private String pageName; | ||
| 481 | + /** | ||
| 482 | + * 背景url | ||
| 483 | + */ | ||
| 484 | + private String backgroundUrl; | ||
| 485 | + | ||
| 486 | + /** | ||
| 487 | + * 页面顶部状态栏颜色 | ||
| 488 | + */ | ||
| 489 | + private int pageStatusBarColor = 0; | ||
| 490 | + | ||
| 491 | + private String pageHomeColor; | ||
| 492 | + | ||
| 493 | + private String noticeHomeColor; | ||
| 494 | + | ||
| 495 | + /** | ||
| 496 | + * PersonalCenterViewModel | ||
| 497 | + */ | ||
| 498 | +// private LoginViewModel loginViewModel; | ||
| 499 | + | ||
| 500 | + /** | ||
| 501 | + * 查询是否存在已预约且未观看且直播中的直播 (客户端个人页 预约小红点) | ||
| 502 | + */ | ||
| 503 | +// private GetLiveNotWatchExistViewModel getLiveNotWatchExistViewModel; | ||
| 504 | + | ||
| 505 | + /** | ||
| 506 | + * 问政-我的留言小红点 | ||
| 507 | + */ | ||
| 508 | +// private MyAskMarkViewModel myAskMarkViewModel; | ||
| 509 | + | ||
| 510 | + /** | ||
| 511 | + * 我的消息-小红点 | ||
| 512 | + */ | ||
| 513 | +// private MailGroupViewModel mailGroupViewModel; | ||
| 514 | + | ||
| 515 | + /** | ||
| 516 | + * 用户等级相关接口 | ||
| 517 | + */ | ||
| 518 | +// private UserLevelViewModel userLevelViewModel; | ||
| 519 | + | ||
| 520 | + /** | ||
| 521 | + * 个人中心配置信息查询 | ||
| 522 | + */ | ||
| 523 | +// private AppPersonalConfigViewModel appPersonalConfigViewModel; | ||
| 524 | + | ||
| 525 | + /** | ||
| 526 | + * 是否已经设置头像框 | ||
| 527 | + */ | ||
| 528 | + private boolean avatarFrameHasSet = false; | ||
| 529 | + | ||
| 530 | + /** | ||
| 531 | + * 等级头像框 | ||
| 532 | + */ | ||
| 533 | + private String levelHeadUrl = ""; | ||
| 534 | + | ||
| 535 | + /** | ||
| 536 | + * 积分商城地址 | ||
| 537 | + */ | ||
| 538 | + private String pointMallLinkUrl; | ||
| 539 | + | ||
| 540 | + /** | ||
| 541 | + * 我的奖品跳转地址 | ||
| 542 | + */ | ||
| 543 | + private String awardsLinkUrl; | ||
| 544 | + | ||
| 545 | + /** | ||
| 546 | + * 夜间模式切换弹窗 | ||
| 547 | + */ | ||
| 548 | + private Dialog nightModeDialog; | ||
| 549 | + | ||
| 550 | + /** | ||
| 551 | + * 夜间模式列表adapter | ||
| 552 | + */ | ||
| 553 | +// private NightModeAdapter nightModeAdapter = null; | ||
| 554 | + | ||
| 555 | + /** | ||
| 556 | + * 记录开启页面时间 | ||
| 557 | + */ | ||
| 558 | + private long startTime; | ||
| 559 | + | ||
| 560 | + /** | ||
| 561 | + * 浏览时长 | ||
| 562 | + */ | ||
| 563 | + public long mDuration = 0; | ||
| 564 | + | ||
| 565 | + @Override | ||
| 566 | + protected void lazyLoadData() { | ||
| 567 | + | ||
| 568 | + } | ||
| 569 | + | ||
| 570 | + @Override | ||
| 571 | + protected String getLogTag() { | ||
| 572 | + return TAG; | ||
| 573 | + } | ||
| 574 | + | ||
| 575 | + @Override | ||
| 576 | + protected int getLayout() { | ||
| 577 | + return R.layout.fragment_mine; | ||
| 578 | + } | ||
| 579 | + | ||
| 580 | + @Override | ||
| 581 | + protected void initView(View rootView) { | ||
| 582 | + testTv = ViewUtils.findViewById(rootView, R.id.iv_test); | ||
| 583 | + creatorCenterLayout = ViewUtils.findViewById(rootView, R.id.layout_creator_center); | ||
| 584 | + mScrollView = ViewUtils.findViewById(rootView, R.id.scroll_view); | ||
| 585 | + topBgImg = ViewUtils.findViewById(rootView, R.id.img_top_bg); | ||
| 586 | + //未登录布局 | ||
| 587 | + unLoginTopLayout = ViewUtils.findViewById(rootView, R.id.layout_mine_top_un_login); | ||
| 588 | + unLoginHeadImg = ViewUtils.findViewById(rootView, R.id.img_head_un_login); | ||
| 589 | + unLoginNameLayout = ViewUtils.findViewById(rootView, R.id.layout_name_un_login); | ||
| 590 | + unLoginSignInLayout = ViewUtils.findViewById(rootView, R.id.layout_sign_in__un_login); | ||
| 591 | + unLoginCommentLayout = ViewUtils.findViewById(rootView, R.id.layout_comment_un_login); | ||
| 592 | + unLoginAttentionLayout = ViewUtils.findViewById(rootView, R.id.layout_attention_un_login); | ||
| 593 | + unLoginCollectLayout = ViewUtils.findViewById(rootView, R.id.layout_collect_un_login); | ||
| 594 | + unLoginhistoryLayout = ViewUtils.findViewById(rootView, R.id.layout_history_un_login); | ||
| 595 | + unLoginMessageLayout = ViewUtils.findViewById(rootView, R.id.layout_message_un_login); | ||
| 596 | + unLoginAskPoliticsLayout = ViewUtils.findViewById(rootView, R.id.layout_ask_politics_un_login); | ||
| 597 | + unLoginSubscribeLayout = ViewUtils.findViewById(rootView, R.id.layout_subscribe_un_login); | ||
| 598 | + unLoginEventSubmissionLayout = ViewUtils.findViewById(rootView, R.id.layout_event_submission_un_login); | ||
| 599 | + //登录布局 | ||
| 600 | + topLoginLayout = ViewUtils.findViewById(rootView, R.id.layout_mine_top_login); | ||
| 601 | + avatarFrameImg = ViewUtils.findViewById(rootView, R.id.img_avatar_frame); | ||
| 602 | + headImg = ViewUtils.findViewById(rootView, R.id.img_head); | ||
| 603 | + vipLayout = ViewUtils.findViewById(rootView, R.id.layout_vip); | ||
| 604 | + vipIV = ViewUtils.findViewById(rootView, R.id.iv_vip); | ||
| 605 | + nameLayout = ViewUtils.findViewById(rootView, R.id.layout_name); | ||
| 606 | + nameTv = ViewUtils.findViewById(rootView, R.id.tv_name); | ||
| 607 | + nameTv.setTextColor(SpUtils.isNightMode()? ResUtils.getColor(R.color.res_color_general_DDDDDD): | ||
| 608 | + ResUtils.getColor(R.color.res_color_common_C1_keep)); | ||
| 609 | + tv_name_un_login = ViewUtils.findViewById(rootView,R.id.tv_name_un_login); | ||
| 610 | + tvNameArrow = ViewUtils.findViewById(rootView,R.id.tvNameArrow); | ||
| 611 | + tv_name_un_login_arrow = ViewUtils.findViewById(rootView,R.id.tv_name_un_login_arrow); | ||
| 612 | + lvTv = ViewUtils.findViewById(rootView, R.id.tv_lv); | ||
| 613 | + signInLayout = ViewUtils.findViewById(rootView, R.id.layout_sign_in); | ||
| 614 | + signInTv = ViewUtils.findViewById(rootView, R.id.tv_sign_in); | ||
| 615 | + commentLayout = ViewUtils.findViewById(rootView, R.id.layout_comment); | ||
| 616 | + attentionLayout = ViewUtils.findViewById(rootView, R.id.layout_attention); | ||
| 617 | + collectLayout = ViewUtils.findViewById(rootView, R.id.layout_collect); | ||
| 618 | + historyLayout = ViewUtils.findViewById(rootView, R.id.layout_history); | ||
| 619 | + messageLayout = ViewUtils.findViewById(rootView, R.id.layout_message); | ||
| 620 | + messageRedView = ViewUtils.findViewById(rootView, R.id.view_message_red); | ||
| 621 | + askPoliticsLayout = ViewUtils.findViewById(rootView, R.id.layout_ask_politics); | ||
| 622 | + askRedView = ViewUtils.findViewById(rootView, R.id.view_ask_red); | ||
| 623 | + subscribeLayout = ViewUtils.findViewById(rootView, R.id.layout_subscribe); | ||
| 624 | + subscribeRedView = ViewUtils.findViewById(rootView, R.id.view_subscribe_red); | ||
| 625 | + eventSubmissionLayout = ViewUtils.findViewById(rootView, R.id.layout_event_submission); | ||
| 626 | + secLayout = ViewUtils.findViewById(rootView, R.id.mine_second_layout); | ||
| 627 | + secLeftImg = ViewUtils.findViewById(rootView, R.id.img_sec_left); | ||
| 628 | + secRightImg = ViewUtils.findViewById(rootView, R.id.img_sec_right); | ||
| 629 | + secSingleImg = ViewUtils.findViewById(rootView, R.id.img_sec_single); | ||
| 630 | + //创作者中心 | ||
| 631 | + contentManagementLayout = ViewUtils.findViewById(rootView, R.id.layout_content_management); | ||
| 632 | + publishEntranceLayout = ViewUtils.findViewById(rootView, R.id.layout_publish_entrance); | ||
| 633 | + publishArticleLayout = ViewUtils.findViewById(rootView, R.id.layout_publish_article); | ||
| 634 | + publishVideoLayout = ViewUtils.findViewById(rootView, R.id.layout_publish_video); | ||
| 635 | + publishDynamicLayout = ViewUtils.findViewById(rootView, R.id.layout_publish_dynamic); | ||
| 636 | + publishAtlasLayout = ViewUtils.findViewById(rootView, R.id.layout_publish_atlas); | ||
| 637 | + //动态设置发布入口宽度 | ||
| 638 | + int screenWidth = ScreenUtils.getScreenWidth(); | ||
| 639 | + publishArticleLayout.getLayoutParams().width = screenWidth * 88 / 375; | ||
| 640 | + publishVideoLayout.getLayoutParams().width = screenWidth * 88 / 375; | ||
| 641 | + publishDynamicLayout.getLayoutParams().width = screenWidth * 88 / 375; | ||
| 642 | + publishAtlasLayout.getLayoutParams().width = screenWidth * 88 / 375; | ||
| 643 | + | ||
| 644 | + //更多 | ||
| 645 | + moreFunctionsLayout = ViewUtils.findViewById(rootView, R.id.layout_more_functions); | ||
| 646 | + pointsMallLayout = ViewUtils.findViewById(rootView, R.id.layout_points_mall); | ||
| 647 | + nightModeLayout = ViewUtils.findViewById(rootView, R.id.layout_night_mode); | ||
| 648 | + nightModeTv = ViewUtils.findViewById(rootView, R.id.tv_night_mode); | ||
| 649 | + myPrizeLayout = ViewUtils.findViewById(rootView, R.id.layout_my_prize); | ||
| 650 | + feedBackLayout = ViewUtils.findViewById(rootView, R.id.layout_feed_back); | ||
| 651 | + settingLayout = ViewUtils.findViewById(rootView, R.id.layout_setting); | ||
| 652 | + aboutLayout = ViewUtils.findViewById(rootView, R.id.layout_about); | ||
| 653 | + scanLayout = ViewUtils.findViewById(rootView, R.id.layout_scan); | ||
| 654 | + layoutWidget = ViewUtils.findViewById(rootView, R.id.layout_widget); | ||
| 655 | + | ||
| 656 | + mPageId = SafeBundleUtil.getString(getArguments(), IntentConstants.PARAM_PAGE_ID, ""); | ||
| 657 | + pageName = SafeBundleUtil.getString(getArguments(), IntentConstants.TAB_NEWS_TITLE, ""); | ||
| 658 | + | ||
| 659 | + backgroundUrl = SafeBundleUtil.getString(getArguments(), IntentConstants.PAGE_BACKGROUND_URL, ""); | ||
| 660 | + pageStatusBarColor = SafeBundleUtil.getInt(getArguments(), IntentConstants.PAGE_STATUS_COLOR, 0); | ||
| 661 | + pageHomeColor = SafeBundleUtil.getString(getArguments(), IntentConstants.PAGE_HOME_COLOR, "#FFFFFF"); | ||
| 662 | + noticeHomeColor = SafeBundleUtil.getString(getArguments(), IntentConstants.PAGE_NOTICE_COLOR, "#ED2800"); | ||
| 663 | + topBgImg.setBackgroundResource(R.mipmap.bg_mine_top_default); | ||
| 664 | + changeThemeColor(); | ||
| 665 | + | ||
| 666 | + String nightmode = SpUtils.getNightMode(); | ||
| 667 | + String nightText = "日间模式"; | ||
| 668 | + if(StringUtils.isEqual(SpUtils.NIGHT_MODE,nightmode)){ | ||
| 669 | + nightText = "夜间模式"; | ||
| 670 | + }else if(StringUtils.isEqual(SpUtils.FOLLOWUP_SYSTEM,nightmode)){ | ||
| 671 | + nightText = "跟随系统"; | ||
| 672 | + } | ||
| 673 | + nightModeTv.setText(nightText); | ||
| 674 | + | ||
| 675 | + initListener(); | ||
| 676 | + if (PDUtils.isLogin()) { | ||
| 677 | + //头像 | ||
| 678 | + if (!"1".equals(SpUtils.getUserType())){ | ||
| 679 | + ImageUtils.getInstance(). | ||
| 680 | + loadImageCircle(headImg, SpUtils.getHeadPhotoUrl(), R.mipmap.icon_default_head_mater); | ||
| 681 | + }else { | ||
| 682 | + ImageUtils.getInstance(). | ||
| 683 | + loadImageCircle(headImg, SpUtils.getHeadPhotoUrl(), R.mipmap.icon_default_head); | ||
| 684 | + } | ||
| 685 | + if (StringUtils.isEmpty(SpUtils.getUserName())) { | ||
| 686 | + nameLayout.setVisibility(View.GONE); | ||
| 687 | + } else { | ||
| 688 | + nameLayout.setVisibility(View.VISIBLE); | ||
| 689 | + //名称 | ||
| 690 | + nameTv.setText(SpUtils.getUserName()); | ||
| 691 | + } | ||
| 692 | + } | ||
| 693 | + } | ||
| 694 | + | ||
| 695 | + /** | ||
| 696 | + * 修改主题颜色 | ||
| 697 | + */ | ||
| 698 | + private void changeThemeColor() { | ||
| 699 | + if (!TextUtils.isEmpty(backgroundUrl)) { | ||
| 700 | + ImageUtils.getInstance().homeThemeImageLoadAndSave(topBgImg, 0, | ||
| 701 | + backgroundUrl, R.mipmap.bg_mine_top_default); | ||
| 702 | + } | ||
| 703 | + | ||
| 704 | + int size = topLoginLayout.getChildCount(); | ||
| 705 | + updateTopColor(size, topLoginLayout, false); | ||
| 706 | + | ||
| 707 | + int sizeb = unLoginTopLayout.getChildCount(); | ||
| 708 | + updateTopColor(sizeb, unLoginTopLayout, false); | ||
| 709 | + | ||
| 710 | + | ||
| 711 | + if(!TextUtils.isEmpty(pageHomeColor)){ | ||
| 712 | + nameTv.setTextColor(Color.parseColor(pageHomeColor)); | ||
| 713 | + tvNameArrow.setColorFilter(Color.parseColor(pageHomeColor)); | ||
| 714 | + | ||
| 715 | + tv_name_un_login.setTextColor(Color.parseColor(pageHomeColor)); | ||
| 716 | + tv_name_un_login_arrow.setColorFilter(Color.parseColor(pageHomeColor)); | ||
| 717 | + } | ||
| 718 | + | ||
| 719 | + if (!TextUtils.isEmpty(noticeHomeColor)) { | ||
| 720 | + messageRedView.setColorFilter(Color.parseColor(noticeHomeColor)); | ||
| 721 | + askRedView.setColorFilter(Color.parseColor(noticeHomeColor)); | ||
| 722 | + subscribeRedView.setColorFilter(Color.parseColor(noticeHomeColor)); | ||
| 723 | + } | ||
| 724 | + | ||
| 725 | + } | ||
| 726 | + | ||
| 727 | + /** | ||
| 728 | + * @param size | ||
| 729 | + * @param view | ||
| 730 | + * @param isRl | ||
| 731 | + */ | ||
| 732 | + private void updateTopColor(int size, ViewGroup view, boolean isRl) { | ||
| 733 | + | ||
| 734 | + ViewGroup parent = view; | ||
| 735 | + | ||
| 736 | + if (size > 0 && !TextUtils.isEmpty(pageHomeColor)) { | ||
| 737 | + for (int i = 0; i < size; i++) { | ||
| 738 | + View childViewA = parent.getChildAt(i); | ||
| 739 | + if (childViewA instanceof LinearLayout) { | ||
| 740 | + int aSize = ((LinearLayout) childViewA).getChildCount(); | ||
| 741 | + updateTopColor(aSize, (ViewGroup) childViewA, true); | ||
| 742 | + } else if (childViewA instanceof FrameLayout) { | ||
| 743 | + int aSize = ((FrameLayout) childViewA).getChildCount(); | ||
| 744 | + updateTopColor(aSize, (ViewGroup) childViewA, true); | ||
| 745 | + } else if (childViewA instanceof RelativeLayout && isRl) { | ||
| 746 | + int aSize = ((RelativeLayout) childViewA).getChildCount(); | ||
| 747 | + updateTopColor(aSize, (ViewGroup) childViewA, true); | ||
| 748 | + } else if (childViewA instanceof ImageView) { | ||
| 749 | + ImageView childIv = (ImageView) childViewA; | ||
| 750 | + childIv.setColorFilter(Color.parseColor(pageHomeColor)); | ||
| 751 | + | ||
| 752 | + } else if (childViewA instanceof TextView) { | ||
| 753 | + TextView childIv = (TextView) childViewA; | ||
| 754 | + childIv.setTextColor(Color.parseColor(pageHomeColor)); | ||
| 755 | + | ||
| 756 | + } | ||
| 757 | + } | ||
| 758 | + | ||
| 759 | + } | ||
| 760 | + | ||
| 761 | + } | ||
| 762 | + | ||
| 763 | + /** | ||
| 764 | + * 监听 | ||
| 765 | + */ | ||
| 766 | + private void initListener() { | ||
| 767 | + testTv.setOnClickListener(this); | ||
| 768 | + | ||
| 769 | + //未登录部分 | ||
| 770 | + unLoginHeadImg.setOnClickListener(unLoginClickListener); | ||
| 771 | + unLoginNameLayout.setOnClickListener(unLoginClickListener); | ||
| 772 | + unLoginSignInLayout.setOnClickListener(unLoginClickListener); | ||
| 773 | + unLoginCommentLayout.setOnClickListener(this); | ||
| 774 | + unLoginAttentionLayout.setOnClickListener(unLoginClickListener); | ||
| 775 | + unLoginCollectLayout.setOnClickListener(unLoginClickListener); | ||
| 776 | + unLoginhistoryLayout.setOnClickListener(this); | ||
| 777 | + unLoginMessageLayout.setOnClickListener(this); | ||
| 778 | + unLoginAskPoliticsLayout.setOnClickListener(unLoginClickListener); | ||
| 779 | + unLoginSubscribeLayout.setOnClickListener(unLoginClickListener); | ||
| 780 | + unLoginEventSubmissionLayout.setOnClickListener(unLoginClickListener); | ||
| 781 | + | ||
| 782 | + headImg.setOnClickListener(this); | ||
| 783 | + nameLayout.setOnClickListener(this); | ||
| 784 | + lvTv.setOnClickListener(this); | ||
| 785 | + signInLayout.setOnClickListener(this); | ||
| 786 | + commentLayout.setOnClickListener(this); | ||
| 787 | + attentionLayout.setOnClickListener(this); | ||
| 788 | + collectLayout.setOnClickListener(this); | ||
| 789 | + historyLayout.setOnClickListener(this); | ||
| 790 | + messageLayout.setOnClickListener(this); | ||
| 791 | + askPoliticsLayout.setOnClickListener(this); | ||
| 792 | + subscribeLayout.setOnClickListener(this); | ||
| 793 | + eventSubmissionLayout.setOnClickListener(this); | ||
| 794 | + secLeftImg.setOnClickListener(this); | ||
| 795 | + secRightImg.setOnClickListener(this); | ||
| 796 | + secSingleImg.setOnClickListener(this); | ||
| 797 | + | ||
| 798 | + contentManagementLayout.setOnClickListener(this); | ||
| 799 | + publishArticleLayout.setOnClickListener(this); | ||
| 800 | + publishVideoLayout.setOnClickListener(this); | ||
| 801 | + publishDynamicLayout.setOnClickListener(this); | ||
| 802 | + publishAtlasLayout.setOnClickListener(this); | ||
| 803 | + | ||
| 804 | + pointsMallLayout.setOnClickListener(this); | ||
| 805 | + nightModeLayout.setOnClickListener(this); | ||
| 806 | + myPrizeLayout.setOnClickListener(this); | ||
| 807 | + feedBackLayout.setOnClickListener(this); | ||
| 808 | + settingLayout.setOnClickListener(this); | ||
| 809 | + aboutLayout.setOnClickListener(this); | ||
| 810 | + scanLayout.setOnClickListener(this); | ||
| 811 | + layoutWidget.setOnClickListener(this); | ||
| 812 | + | ||
| 813 | + initViewModel(); | ||
| 814 | + receiveLiveDataMsg(); | ||
| 815 | + } | ||
| 816 | + | ||
| 817 | + /** | ||
| 818 | + * 注册LiveDataBus | ||
| 819 | + */ | ||
| 820 | + private void receiveLiveDataMsg() { | ||
| 821 | + //单击"ME"tab,刷新数据 | ||
| 822 | +// LiveDataBus.getInstance() | ||
| 823 | +// .with(EventConstants.HOME_TAB_REFRESH + mPageId, Boolean.class) | ||
| 824 | +// .observe(this, new Observer<Boolean>() { | ||
| 825 | +// @Override | ||
| 826 | +// public void onChanged(Boolean flag) { | ||
| 827 | +// if (PDUtils.isLogin()) { | ||
| 828 | +// //查询用户信息 | ||
| 829 | +//// loginViewModel.queryUserDetail(); | ||
| 830 | +// } | ||
| 831 | +// } | ||
| 832 | +// }); | ||
| 833 | + | ||
| 834 | + //退出登录清除资源 | ||
| 835 | + LiveDataBus.getInstance() | ||
| 836 | + .with(EventConstants.CLEAR_MINE_USER_TYPE, Boolean.class) | ||
| 837 | + .observe(this, new Observer<Boolean>() { | ||
| 838 | + @Override | ||
| 839 | + public void onChanged(Boolean aBoolean) { | ||
| 840 | + if (aBoolean) { | ||
| 841 | + if (!PDUtils.isLogin()) { | ||
| 842 | + doUnLogin(); | ||
| 843 | + } | ||
| 844 | + } | ||
| 845 | + } | ||
| 846 | + }); | ||
| 847 | + | ||
| 848 | + //游客一键合并通知 | ||
| 849 | + LiveDataBus.getInstance() | ||
| 850 | + .with(EventConstants.VISTOR_ONE_CLICK_MERGE, Boolean.class) | ||
| 851 | + .observe(this, new Observer<Boolean>() { | ||
| 852 | + @Override | ||
| 853 | + public void onChanged(Boolean aBoolean) { | ||
| 854 | + showLevelUpGradeGuideDialog(); | ||
| 855 | + } | ||
| 856 | + }); | ||
| 857 | + } | ||
| 858 | + | ||
| 859 | + /** | ||
| 860 | + * 初始化ViewModel | ||
| 861 | + */ | ||
| 862 | + private void initViewModel() { | ||
| 863 | +// loginViewModel = getViewModelThis(LoginViewModel.class); | ||
| 864 | +// loginViewModel.observeMyDetailListener(this, new MyDetailListener() { | ||
| 865 | +// @Override | ||
| 866 | +// public void onGetMyDetailSuccess(PersonalInfoBean myDetailBean) { | ||
| 867 | +// if (myDetailBean == null) { | ||
| 868 | +// return; | ||
| 869 | +// } | ||
| 870 | +// Logger.d(TAG, "observeUserInfoListener========>onGetUserInfoSuccess:" + myDetailBean.toString()); | ||
| 871 | +// seUserData(myDetailBean); | ||
| 872 | +// } | ||
| 873 | +// | ||
| 874 | +// @Override | ||
| 875 | +// public void onGetMyDetailFailed(String error) { | ||
| 876 | +// Logger.d(TAG, "observeUserInfoListener========>onGetUserInfoFailed:" + error); | ||
| 877 | +// userLevelViewModel.queryUserLevel(); | ||
| 878 | +// } | ||
| 879 | +// }); | ||
| 880 | +// | ||
| 881 | +// getLiveNotWatchExistViewModel = getViewModelThis(GetLiveNotWatchExistViewModel.class); | ||
| 882 | +// getLiveNotWatchExistViewModel.observeGetLiveNotWatchExistListener(this, | ||
| 883 | +// new IGetLiveNotWatchExistListener() { | ||
| 884 | +// @Override | ||
| 885 | +// public void onGetLiveNotWatchExistSuccess( | ||
| 886 | +// LiveExistNotWatchBean liveExistNotWatchBean) { | ||
| 887 | +// getLiveNotWatchExistSuccess(liveExistNotWatchBean); | ||
| 888 | +// } | ||
| 889 | +// | ||
| 890 | +// @Override | ||
| 891 | +// public void onGetLiveNotWatchExistFailed(String msg) { | ||
| 892 | +// | ||
| 893 | +// } | ||
| 894 | +// }); | ||
| 895 | +// | ||
| 896 | +// myAskMarkViewModel = getViewModelThis(MyAskMarkViewModel.class); | ||
| 897 | +// myAskMarkViewModel.observeIMyAskMarkListener(this, new IMyAskMarkListener() { | ||
| 898 | +// @Override | ||
| 899 | +// public void onMyAskMarkSuccess(MyAskMarkBean myAskMarkBean, MetaBean metaBean) { | ||
| 900 | +// if (metaBean != null && !StringUtils.isEmpty(metaBean.getMd5())) { | ||
| 901 | +// String askMd5 = metaBean.getMd5(); | ||
| 902 | +// String localMd5 = SpUtils.getAskMarkMD5(); | ||
| 903 | +// if (StringUtils.isEmpty(localMd5)) { | ||
| 904 | +// askRedView.setVisibility(View.GONE); | ||
| 905 | +// SpUtils.saveAskMarkMD5(askMd5); | ||
| 906 | +// return; | ||
| 907 | +// } | ||
| 908 | +// if (!StringUtils.isEqual(askMd5, localMd5)) { | ||
| 909 | +// askRedView.setVisibility(View.VISIBLE); | ||
| 910 | +// } else { | ||
| 911 | +// askRedView.setVisibility(View.GONE); | ||
| 912 | +// } | ||
| 913 | +// } | ||
| 914 | +// } | ||
| 915 | +// | ||
| 916 | +// @Override | ||
| 917 | +// public void onMyAskMarkFailed(String msg) { | ||
| 918 | +// askRedView.setVisibility(View.GONE); | ||
| 919 | +// } | ||
| 920 | +// }); | ||
| 921 | +// | ||
| 922 | +// mailGroupViewModel = getViewModelThis(MailGroupViewModel.class); | ||
| 923 | +// mailGroupViewModel.observeMailListener(this, new IGetMailGroupListener() { | ||
| 924 | +// @Override | ||
| 925 | +// public void onGetMailSuccess(MailBean mailbean) { | ||
| 926 | +// getMessageRedView(mailbean); | ||
| 927 | +// } | ||
| 928 | +// | ||
| 929 | +// @Override | ||
| 930 | +// public void onGetMailError(String msg) { | ||
| 931 | +// | ||
| 932 | +// } | ||
| 933 | +// }); | ||
| 934 | +// | ||
| 935 | +// userLevelViewModel = new UserLevelViewModel(); | ||
| 936 | +// //获取用户等级回调 | ||
| 937 | +// userLevelViewModel.observeQueryUserLevelListener(this, new IQueryUserLevelListener() { | ||
| 938 | +// @Override | ||
| 939 | +// public void onQueryUserLevelSuccess(UserLevelBean userLevelBean) { | ||
| 940 | +// updateUserLevel(userLevelBean); | ||
| 941 | +// } | ||
| 942 | +// | ||
| 943 | +// @Override | ||
| 944 | +// public void onQueryUserLevelFailed(String error) { | ||
| 945 | +// | ||
| 946 | +// } | ||
| 947 | +// }); | ||
| 948 | +// | ||
| 949 | +// appPersonalConfigViewModel = new AppPersonalConfigViewModel(); | ||
| 950 | +// appPersonalConfigViewModel.observeAppPersonalConfigListener(this, new IAppPersonalConfigListener() { | ||
| 951 | +// @Override | ||
| 952 | +// public void onAppPersonalConfigSuccess(PersonalConfigBean personalConfigBean) { | ||
| 953 | +// setAppPersonalConfigData(personalConfigBean); | ||
| 954 | +// } | ||
| 955 | +// | ||
| 956 | +// @Override | ||
| 957 | +// public void onAppPersonalConfigFailed(String msg) { | ||
| 958 | +// | ||
| 959 | +// } | ||
| 960 | +// }); | ||
| 961 | + } | ||
| 962 | + | ||
| 963 | + /** | ||
| 964 | + * | ||
| 965 | + * @param personalConfigBean | ||
| 966 | + */ | ||
| 967 | +// private void setAppPersonalConfigData(PersonalConfigBean personalConfigBean){ | ||
| 968 | +// if(personalConfigBean == null){ | ||
| 969 | +// return; | ||
| 970 | +// } | ||
| 971 | +// //设置我的奖品跳转链接 | ||
| 972 | +// awardsLinkUrl = personalConfigBean.getAwardsLinkUrl(); | ||
| 973 | +// | ||
| 974 | +// //积分商城跳转链接 | ||
| 975 | +// pointMallLinkUrl = personalConfigBean.getPointLinkUrl(); | ||
| 976 | +// //设置积分商城、数字藏品入口 todo 先隐藏 | ||
| 977 | +//// setPointDigitalData(personalConfigBean); | ||
| 978 | +// } | ||
| 979 | + | ||
| 980 | + /** | ||
| 981 | + * 设置积分商城、数字藏品数据 | ||
| 982 | + * @param personalConfigBean | ||
| 983 | + */ | ||
| 984 | +// private void setPointDigitalData(PersonalConfigBean personalConfigBean){ | ||
| 985 | +// String pointDisplayImg = personalConfigBean.getPointDisplayImg(); | ||
| 986 | +// String digitalDisplayImg = personalConfigBean.getDigitalDisplayImg(); | ||
| 987 | +// if(StringUtils.isEmpty(pointDisplayImg) && StringUtils.isEmpty(digitalDisplayImg)){ | ||
| 988 | +// //积分商城和数字藏品入口图片都为空,不展示入口 | ||
| 989 | +// secLayout.setVisibility(View.GONE); | ||
| 990 | +// return; | ||
| 991 | +// } | ||
| 992 | +// String show = personalConfigBean.getShow(); | ||
| 993 | +// if(StringUtils.isEqual("0",show)){ | ||
| 994 | +// secLayout.setVisibility(View.VISIBLE); | ||
| 995 | +// secLeftImg.setVisibility(View.VISIBLE); | ||
| 996 | +// secRightImg.setVisibility(View.VISIBLE); | ||
| 997 | +// secSingleImg.setVisibility(View.GONE); | ||
| 998 | +// //设置积分商城图 | ||
| 999 | +// ImageUtils.getInstance(). | ||
| 1000 | +// loadImage(secLeftImg, pointDisplayImg, 0); | ||
| 1001 | +// String pointLinkUrl = personalConfigBean.getPointLinkUrl(); | ||
| 1002 | +// secLeftImg.setTag(R.id.personal_config,pointLinkUrl); | ||
| 1003 | +// //设置数字藏品图 | ||
| 1004 | +// ImageUtils.getInstance(). | ||
| 1005 | +// loadImage(secRightImg, digitalDisplayImg, 0); | ||
| 1006 | +// String digitalLinkUrl = personalConfigBean.getDigitalLinkUrl(); | ||
| 1007 | +// secRightImg.setTag(R.id.personal_config,digitalLinkUrl); | ||
| 1008 | +// }else if(StringUtils.isEqual("1",show) && !StringUtils.isEmpty(pointDisplayImg)){ | ||
| 1009 | +// //1-仅展示积分商城 | ||
| 1010 | +// secLayout.setVisibility(View.VISIBLE); | ||
| 1011 | +// secLeftImg.setVisibility(View.GONE); | ||
| 1012 | +// secRightImg.setVisibility(View.GONE); | ||
| 1013 | +// secSingleImg.setVisibility(View.VISIBLE); | ||
| 1014 | +// //设置积分商城图 | ||
| 1015 | +// ImageUtils.getInstance(). | ||
| 1016 | +// loadImage(secSingleImg, pointDisplayImg, 0); | ||
| 1017 | +// secSingleImg.setTag(R.id.personal_config,personalConfigBean); | ||
| 1018 | +// }else if(StringUtils.isEqual("2",show) && !StringUtils.isEmpty(digitalDisplayImg)){ | ||
| 1019 | +// //2-仅展示数字藏品 | ||
| 1020 | +// secLayout.setVisibility(View.VISIBLE); | ||
| 1021 | +// secLeftImg.setVisibility(View.GONE); | ||
| 1022 | +// secRightImg.setVisibility(View.GONE); | ||
| 1023 | +// secSingleImg.setVisibility(View.VISIBLE); | ||
| 1024 | +// //设置数字藏品图 | ||
| 1025 | +// ImageUtils.getInstance(). | ||
| 1026 | +// loadImage(secSingleImg, digitalDisplayImg, 0); | ||
| 1027 | +// secSingleImg.setTag(R.id.personal_config,personalConfigBean); | ||
| 1028 | +// }else { | ||
| 1029 | +// //3-全隐藏 | ||
| 1030 | +// secLayout.setVisibility(View.GONE); | ||
| 1031 | +// } | ||
| 1032 | +// } | ||
| 1033 | + | ||
| 1034 | + /** | ||
| 1035 | + * 更新用户等级 | ||
| 1036 | + */ | ||
| 1037 | +// private void updateUserLevel(UserLevelBean userLevelBean) { | ||
| 1038 | +// if (userLevelBean == null) { | ||
| 1039 | +// return; | ||
| 1040 | +// } | ||
| 1041 | +// //用户等级 | ||
| 1042 | +// int levelId = userLevelBean.getLevelId(); | ||
| 1043 | +// if(levelId < 1){ | ||
| 1044 | +// levelId = 1; | ||
| 1045 | +// } | ||
| 1046 | +// lvTv.setText("等级" + levelId); | ||
| 1047 | +// lvTv.setVisibility(View.VISIBLE); | ||
| 1048 | +// | ||
| 1049 | +// int userType = SpUtils.getUserType(); | ||
| 1050 | +// | ||
| 1051 | +// if (userType != 1 || avatarFrameHasSet) { | ||
| 1052 | +// return; | ||
| 1053 | +// } | ||
| 1054 | +// //等级头像框 | ||
| 1055 | +// String levelHead = userLevelBean.getLevelHead(); | ||
| 1056 | +// if(StringUtils.isEmpty(levelHead)){ | ||
| 1057 | +// avatarFrameImg.setVisibility(View.GONE); | ||
| 1058 | +// }else { | ||
| 1059 | +// ImageUtils.getInstance(). | ||
| 1060 | +// loadImage(avatarFrameImg, levelHead, 0); | ||
| 1061 | +// avatarFrameImg.setVisibility(View.VISIBLE); | ||
| 1062 | +// avatarFrameHasSet = true; | ||
| 1063 | +// levelHeadUrl = levelHead; | ||
| 1064 | +// //处理等级升级引导 | ||
| 1065 | +// handleLevelUpgradeGuide(); | ||
| 1066 | +// } | ||
| 1067 | +// } | ||
| 1068 | + | ||
| 1069 | + /** | ||
| 1070 | + * 获取我的消息小红点 | ||
| 1071 | + * | ||
| 1072 | + * @param mailBean | ||
| 1073 | + */ | ||
| 1074 | +// private void getMessageRedView(MailBean mailBean) { | ||
| 1075 | +// //四种类型有一种有数据就有红点 | ||
| 1076 | +// if (mailBean.getSystemCount() != 0 || | ||
| 1077 | +// mailBean.getSubscribeCount() != 0 || | ||
| 1078 | +// mailBean.getActiveCount() != 0 || SpUtils.getPushMsgCount() != 0) { | ||
| 1079 | +// messageRedView.setVisibility(View.VISIBLE); | ||
| 1080 | +// } else { | ||
| 1081 | +// messageRedView.setVisibility(View.GONE); | ||
| 1082 | +// } | ||
| 1083 | +// } | ||
| 1084 | + | ||
| 1085 | + @Override | ||
| 1086 | + public void onClick(View v) { | ||
| 1087 | +// if (FastClickUtil.isFastClick()) { | ||
| 1088 | +// return; | ||
| 1089 | +// } | ||
| 1090 | +// int id = v.getId(); | ||
| 1091 | +// if (id == R.id.iv_test) { | ||
| 1092 | +// //测试入口 | ||
| 1093 | +// ProcessUtils.goTestPage(); | ||
| 1094 | +//// ProcessUtils.goLiveTwo(); | ||
| 1095 | +// } else if (id == R.id.img_head || id == R.id.layout_name) { | ||
| 1096 | +// //跳转个人详情页 | ||
| 1097 | +// ProcessUtils.jumpToPersonalCenterActivity(0,"1", SpUtils.getUserId(), | ||
| 1098 | +// String.valueOf(SpUtils.getUserType()), SpUtils.getCreatorId()); | ||
| 1099 | +// if (id == R.id.img_head) { | ||
| 1100 | +// //埋点:普通按钮点击,用户头像 | ||
| 1101 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1102 | +// MY_PAGE_USER_HEAD, | ||
| 1103 | +// PageNameConstants.MY_PAGE, | ||
| 1104 | +// PageNameConstants.MY_PAGE); | ||
| 1105 | +// } else { | ||
| 1106 | +// //埋点:普通按钮点击,昵称 | ||
| 1107 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1108 | +// MY_PAGE_USER_NAME, | ||
| 1109 | +// PageNameConstants.MY_PAGE, | ||
| 1110 | +// PageNameConstants.MY_PAGE); | ||
| 1111 | +// } | ||
| 1112 | +// } else if (id == R.id.tv_lv) { | ||
| 1113 | +// //等级 | ||
| 1114 | +// ProcessUtils.jumpUserLevelPage(); | ||
| 1115 | +// } else if (id == R.id.layout_sign_in) { | ||
| 1116 | +// //埋点:普通按钮点击,评论 | ||
| 1117 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1118 | +// MY_PAGE_USER_SIGN_IN, | ||
| 1119 | +// PageNameConstants.MY_PAGE, | ||
| 1120 | +// PageNameConstants.MY_PAGE); | ||
| 1121 | +// //签到 | ||
| 1122 | +// ProcessUtils.jumpIntegralCenterPage(1); | ||
| 1123 | +// } else if (id == R.id.layout_comment_un_login || id == R.id.layout_comment) { | ||
| 1124 | +// //埋点:普通按钮点击,评论 | ||
| 1125 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1126 | +// MY_PAGE_USER_COMMENT, | ||
| 1127 | +// PageNameConstants.MY_PAGE, | ||
| 1128 | +// PageNameConstants.MY_PAGE); | ||
| 1129 | +// if (PDUtils.isLogin()) { | ||
| 1130 | +// ProcessUtils.jumpToPersonalCenterActivityFromMine(SpUtils.getUserId(), | ||
| 1131 | +// String.valueOf(SpUtils.getUserType()), SpUtils.getCreatorId(), | ||
| 1132 | +// Constants.FROM_MINE_TYPE_COMMENT); | ||
| 1133 | +// } else { | ||
| 1134 | +// ProcessUtils.goVisitorComment(); | ||
| 1135 | +// } | ||
| 1136 | +// } else if (id == R.id.layout_attention) { | ||
| 1137 | +// //关注 | ||
| 1138 | +// //埋点:普通按钮点击,关注 | ||
| 1139 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1140 | +// MY_PAGE_USER_FOLLOW, | ||
| 1141 | +// PageNameConstants.MY_PAGE, | ||
| 1142 | +// PageNameConstants.MY_PAGE); | ||
| 1143 | +// ProcessUtils.goFocusListPage(0); | ||
| 1144 | +// } else if (id == R.id.layout_collect) { | ||
| 1145 | +// //收藏 | ||
| 1146 | +// //埋点:普通按钮点击,收藏 | ||
| 1147 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1148 | +// MY_PAGE_USER_COLLECTION, | ||
| 1149 | +// PageNameConstants.MY_PAGE, | ||
| 1150 | +// PageNameConstants.MY_PAGE); | ||
| 1151 | +// if (PDUtils.isLogin()) { | ||
| 1152 | +// ProcessUtils.goHistoryFavoriteEditActivity(HistoryFavoriteDisplayActivity.PAGE_TYPE_COLLECTION); | ||
| 1153 | +// } else { | ||
| 1154 | +// ProcessUtils.toOneKeyLoginActivity(); | ||
| 1155 | +// } | ||
| 1156 | +// } else if (id == R.id.layout_history || id == R.id.layout_history_un_login) { | ||
| 1157 | +// //历史 | ||
| 1158 | +// //埋点:普通按钮点击,历史 | ||
| 1159 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1160 | +// MY_PAGE_USER_HISTORY, | ||
| 1161 | +// PageNameConstants.MY_PAGE, | ||
| 1162 | +// PageNameConstants.MY_PAGE); | ||
| 1163 | +// ProcessUtils.goHistoryFavoriteEditActivity(HistoryFavoriteDisplayActivity.PAGE_TYPE_HISTORY); | ||
| 1164 | +// } else if (id == R.id.layout_message || id == R.id.layout_message_un_login) { | ||
| 1165 | +// //消息 | ||
| 1166 | +// //埋点:普通按钮点击,消息 | ||
| 1167 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1168 | +// MY_PAGE_USER_NOTICE, | ||
| 1169 | +// PageNameConstants.MY_PAGE, | ||
| 1170 | +// PageNameConstants.MY_PAGE); | ||
| 1171 | +// ProcessUtils.goMailGroupPage(); | ||
| 1172 | +// } else if (id == R.id.layout_ask_politics) { | ||
| 1173 | +// //留言板 | ||
| 1174 | +// //埋点:普通按钮点击,留言板 | ||
| 1175 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1176 | +// MY_PAGE_MESSAGE_BOARD, | ||
| 1177 | +// PageNameConstants.MY_PAGE, | ||
| 1178 | +// PageNameConstants.MY_PAGE); | ||
| 1179 | +// ProcessUtils.goLeaveWordActivity(IntentConstants.PAGETYPE_MYLEVEWORD); | ||
| 1180 | +// } else if (id == R.id.layout_subscribe) { | ||
| 1181 | +// //预约 | ||
| 1182 | +// //埋点:普通按钮点击,预约 | ||
| 1183 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1184 | +// MY_PAGE_USER_SUBSCRIBE, | ||
| 1185 | +// PageNameConstants.MY_PAGE, | ||
| 1186 | +// PageNameConstants.MY_PAGE); | ||
| 1187 | +// ProcessUtils.toSubscribeLiveListActivity(); | ||
| 1188 | +// } else if (id == R.id.layout_event_submission) { | ||
| 1189 | +// //活动投稿 | ||
| 1190 | +// ProcessUtils.jumpToPersonalCenterActivityFromMine(SpUtils.getUserId(), | ||
| 1191 | +// String.valueOf(SpUtils.getUserType()), SpUtils.getCreatorId(), | ||
| 1192 | +// Constants.FROM_MINE_TYPE_ACTIVITY); | ||
| 1193 | +// } else if (id == R.id.img_sec_left) { | ||
| 1194 | +// //金刚区左边区域 | ||
| 1195 | +// try { | ||
| 1196 | +// String url = (String) v.getTag(R.id.personal_config); | ||
| 1197 | +// if(!StringUtils.isEmpty(url)){ | ||
| 1198 | +// ProcessUtils.goToH5Page(new ContentBean(url)); | ||
| 1199 | +// } | ||
| 1200 | +// } catch (Exception e) { | ||
| 1201 | +// e.printStackTrace(); | ||
| 1202 | +// } | ||
| 1203 | +// } else if (id == R.id.img_sec_right) { | ||
| 1204 | +// //金刚区右边区域 | ||
| 1205 | +// try { | ||
| 1206 | +// String url = (String) v.getTag(R.id.personal_config); | ||
| 1207 | +// if(!StringUtils.isEmpty(url)){ | ||
| 1208 | +// ProcessUtils.goToH5Page(new ContentBean(url)); | ||
| 1209 | +// } | ||
| 1210 | +// } catch (Exception e) { | ||
| 1211 | +// e.printStackTrace(); | ||
| 1212 | +// } | ||
| 1213 | +// } else if (id == R.id.img_sec_single) { | ||
| 1214 | +// //单个图片 | ||
| 1215 | +// try { | ||
| 1216 | +// PersonalConfigBean personalConfigBean = (PersonalConfigBean) v.getTag(R.id.personal_config); | ||
| 1217 | +// if(personalConfigBean == null){ | ||
| 1218 | +// return; | ||
| 1219 | +// } | ||
| 1220 | +// String show = personalConfigBean.getShow(); | ||
| 1221 | +// String url = ""; | ||
| 1222 | +// if(StringUtils.isEqual("1",show)){ | ||
| 1223 | +// //1-仅展示数字藏品 | ||
| 1224 | +// url = personalConfigBean.getDigitalLinkUrl(); | ||
| 1225 | +// }else if(StringUtils.isEqual("2",show)){ | ||
| 1226 | +// //2-仅展示积分商城 | ||
| 1227 | +// url = personalConfigBean.getPointLinkUrl(); | ||
| 1228 | +// } | ||
| 1229 | +// if(!StringUtils.isEmpty(url)){ | ||
| 1230 | +// ProcessUtils.goToH5Page(new ContentBean(url)); | ||
| 1231 | +// } | ||
| 1232 | +// } catch (Exception e) { | ||
| 1233 | +// e.printStackTrace(); | ||
| 1234 | +// } | ||
| 1235 | +// try { | ||
| 1236 | +// String url = (String) v.getTag(R.id.personal_config); | ||
| 1237 | +// if(!StringUtils.isEmpty(url)){ | ||
| 1238 | +// ProcessUtils.goToH5Page(new ContentBean(url)); | ||
| 1239 | +// } | ||
| 1240 | +// } catch (Exception e) { | ||
| 1241 | +// e.printStackTrace(); | ||
| 1242 | +// } | ||
| 1243 | +// } else if (id == R.id.img_sec_single) { | ||
| 1244 | +// //单个图片 | ||
| 1245 | +// try { | ||
| 1246 | +// PersonalConfigBean personalConfigBean = (PersonalConfigBean) v.getTag(R.id.personal_config); | ||
| 1247 | +// if(personalConfigBean == null){ | ||
| 1248 | +// return; | ||
| 1249 | +// } | ||
| 1250 | +// String show = personalConfigBean.getShow(); | ||
| 1251 | +// String url = ""; | ||
| 1252 | +// if(StringUtils.isEqual("1",show)){ | ||
| 1253 | +// //1-仅展示积分商城 | ||
| 1254 | +// url = personalConfigBean.getPointLinkUrl(); | ||
| 1255 | +// }else if(StringUtils.isEqual("2",show)){ | ||
| 1256 | +// //2-仅展示数字藏品 | ||
| 1257 | +// url = personalConfigBean.getDigitalLinkUrl(); | ||
| 1258 | +// } | ||
| 1259 | +// if(!StringUtils.isEmpty(url)){ | ||
| 1260 | +// ProcessUtils.goToH5Page(new ContentBean(url)); | ||
| 1261 | +// } | ||
| 1262 | +// } catch (Exception e) { | ||
| 1263 | +// e.printStackTrace(); | ||
| 1264 | +// } | ||
| 1265 | +// } else if (id == R.id.layout_content_management) { | ||
| 1266 | +// //内容管理 | ||
| 1267 | +// //埋点:普通按钮点击,内容管理 | ||
| 1268 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1269 | +// MY_PAGE_CONTENT_MANAGEMENT, | ||
| 1270 | +// PageNameConstants.MY_PAGE, | ||
| 1271 | +// PageNameConstants.MY_PAGE); | ||
| 1272 | +// if (PDUtils.isLogin()) { | ||
| 1273 | +// ProcessUtils.jumpToPersonalCenterActivityFromMine(SpUtils.getUserId(), String.valueOf(SpUtils.getUserType()), SpUtils.getCreatorId(), Constants.FROM_MINE_TYPE_WORKS); | ||
| 1274 | +// } else { | ||
| 1275 | +// ProcessUtils.toOneKeyLoginActivity(); | ||
| 1276 | +// } | ||
| 1277 | +// } else if (id == R.id.layout_publish_article) { | ||
| 1278 | +// //发布文章 | ||
| 1279 | +// //埋点:普通按钮点击,发布文章 | ||
| 1280 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1281 | +// MY_PAGE_PUBLISH_ARTICLE, | ||
| 1282 | +// PageNameConstants.MY_PAGE, | ||
| 1283 | +// PageNameConstants.MY_PAGE); | ||
| 1284 | +// getRemainingDispatchNum(ContentTypeConstant.URL_TYPE_EIGHT); | ||
| 1285 | +// } else if (id == R.id.layout_publish_video) { | ||
| 1286 | +// //发布视频 | ||
| 1287 | +// //埋点:普通按钮点击,发布视频 | ||
| 1288 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1289 | +// MY_PAGE_PUBLISH_VIDEO, | ||
| 1290 | +// PageNameConstants.MY_PAGE, | ||
| 1291 | +// PageNameConstants.MY_PAGE); | ||
| 1292 | +// if (SpUtils.isPublishUploading()) { | ||
| 1293 | +// ToastNightUtil.showShort(ResUtils.getString(com.people.daily.common.R.string.res_publish_uploading)); | ||
| 1294 | +// return; | ||
| 1295 | +// } | ||
| 1296 | +// getRemainingDispatchNum(ContentTypeConstant.URL_TYPE_NINE); | ||
| 1297 | +//// ProcessUtils.toPublishVideoActivity(); | ||
| 1298 | +// } else if (id == R.id.layout_publish_dynamic) { | ||
| 1299 | +// //发布动态 | ||
| 1300 | +// //埋点:普通按钮点击,发布动态 | ||
| 1301 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1302 | +// MY_PAGE_PUBLISH_DYNAMIC, | ||
| 1303 | +// PageNameConstants.MY_PAGE, | ||
| 1304 | +// PageNameConstants.MY_PAGE); | ||
| 1305 | +// getRemainingDispatchNum(ContentTypeConstant.URL_TYPE_FIFTEEN); | ||
| 1306 | +// } else if (id == R.id.layout_publish_atlas) { | ||
| 1307 | +// //发布图集 | ||
| 1308 | +// //埋点:普通按钮点击,发布图集 | ||
| 1309 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1310 | +// MY_PAGE_PUBLISH_ATLAS, | ||
| 1311 | +// PageNameConstants.MY_PAGE, | ||
| 1312 | +// PageNameConstants.MY_PAGE); | ||
| 1313 | +// getRemainingDispatchNum(ContentTypeConstant.URL_TYPE_ONE); | ||
| 1314 | +// } else if (id == R.id.layout_points_mall) { | ||
| 1315 | +// //积分商城 | ||
| 1316 | +// //埋点:普通按钮点击,积分商城 | ||
| 1317 | +// /*GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1318 | +// MY_PAGE_USER_POINTS_MALL, | ||
| 1319 | +// PageNameConstants.MY_PAGE, | ||
| 1320 | +// PageNameConstants.MY_PAGE);*/ | ||
| 1321 | +// ProcessUtils.goToH5Page(new ContentBean(StringUtils.isEmpty(pointMallLinkUrl)? | ||
| 1322 | +// UrlConstants.getPointsMallUrl(): pointMallLinkUrl)); | ||
| 1323 | +// } else if (id == R.id.layout_night_mode) { | ||
| 1324 | +// //夜间模式 | ||
| 1325 | +// //埋点:普通按钮点击,夜间模式 | ||
| 1326 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1327 | +// MY_PAGE_USER_LIGHT_MODE, | ||
| 1328 | +// PageNameConstants.MY_PAGE, | ||
| 1329 | +// PageNameConstants.MY_PAGE); | ||
| 1330 | +// switchNightMode(); | ||
| 1331 | +// } else if (id == R.id.layout_my_prize) { | ||
| 1332 | +// //我的奖品 | ||
| 1333 | +// if (PDUtils.isLogin()) { | ||
| 1334 | +//// ToastNightUtil.showShort("敬请期待"); | ||
| 1335 | +// ProcessUtils.goToH5Page(new ContentBean(StringUtils.isEmpty(awardsLinkUrl)? | ||
| 1336 | +// UrlConstants.getMyPrizeUrl():awardsLinkUrl)); | ||
| 1337 | +// } else { | ||
| 1338 | +// ProcessUtils.toOneKeyLoginActivity(); | ||
| 1339 | +// } | ||
| 1340 | +// } else if (id == R.id.layout_feed_back) { | ||
| 1341 | +// //意见反馈 | ||
| 1342 | +// //埋点:普通按钮点击,意见反馈 | ||
| 1343 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1344 | +// MY_PAGE_USER_FEED_BACK, | ||
| 1345 | +// PageNameConstants.MY_PAGE, | ||
| 1346 | +// PageNameConstants.MY_PAGE); | ||
| 1347 | +// if (PDUtils.isLogin()) { | ||
| 1348 | +// ProcessUtils.goFeekBackPage(); | ||
| 1349 | +// } else { | ||
| 1350 | +// ProcessUtils.toOneKeyLoginActivity(); | ||
| 1351 | +// } | ||
| 1352 | +// } else if (id == R.id.layout_setting) { | ||
| 1353 | +// //设置 | ||
| 1354 | +// //埋点:普通按钮点击,设置 | ||
| 1355 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1356 | +// MY_PAGE_USER_SETTING, | ||
| 1357 | +// PageNameConstants.MY_PAGE, | ||
| 1358 | +// PageNameConstants.MY_PAGE); | ||
| 1359 | +// ProcessUtils.goSettingPage(); | ||
| 1360 | +// } else if (id == R.id.layout_about) { | ||
| 1361 | +// //关于 | ||
| 1362 | +// //埋点:普通按钮点击,关于 | ||
| 1363 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1364 | +// MY_PAGE_USER_ABOUT, | ||
| 1365 | +// PageNameConstants.MY_PAGE, | ||
| 1366 | +// PageNameConstants.MY_PAGE); | ||
| 1367 | +// ProcessUtils.goAboutPage(); | ||
| 1368 | +// } else if (id == R.id.layout_scan) { | ||
| 1369 | +// //扫一扫 | ||
| 1370 | +// //埋点:普通按钮点击,扫一扫 | ||
| 1371 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1372 | +// MY_PAGE_SCANCODE, | ||
| 1373 | +// PageNameConstants.MY_PAGE, | ||
| 1374 | +// PageNameConstants.MY_PAGE); | ||
| 1375 | +// if (PDUtils.isLogin()) { | ||
| 1376 | +// ScanHelper.getScanHelper().scanCode(getActivity()); | ||
| 1377 | +// } else { | ||
| 1378 | +// ProcessUtils.toOneKeyLoginActivity(); | ||
| 1379 | +// } | ||
| 1380 | +// } else if (id == R.id.layout_widget){ | ||
| 1381 | +// // 跳转桌面组件页面 | ||
| 1382 | +// ProcessUtils.goAddWidgetPage(); | ||
| 1383 | +// } | ||
| 1384 | + } | ||
| 1385 | + | ||
| 1386 | + /** | ||
| 1387 | + * 获取当日发文次数 | ||
| 1388 | + * @param type | ||
| 1389 | + */ | ||
| 1390 | +// private void getRemainingDispatchNum(int type){ | ||
| 1391 | +// final boolean[] startLoading = {true}; | ||
| 1392 | +// CommonNetUtils.getInstance().getRemainingDispatchNum(new BaseObserver<Integer>() { | ||
| 1393 | +// @Override | ||
| 1394 | +// protected void dealSpecialCode(int code, String message) { | ||
| 1395 | +// stopLoading(); | ||
| 1396 | +// startLoading[0] = false; | ||
| 1397 | +// jumpPublish(type); | ||
| 1398 | +// } | ||
| 1399 | +// | ||
| 1400 | +// @Override | ||
| 1401 | +// protected void onSuccess(Integer integer) { | ||
| 1402 | +// stopLoading(); | ||
| 1403 | +// startLoading[0] = false; | ||
| 1404 | +// if(integer == 0){ | ||
| 1405 | +// //已达到今日发文篇数限制 | ||
| 1406 | +// ToastNightUtil.showShort(ResUtils.getString(R.string.res_get_remaining_dispatch_num_limit)); | ||
| 1407 | +// }else { | ||
| 1408 | +// jumpPublish(type); | ||
| 1409 | +// } | ||
| 1410 | +// } | ||
| 1411 | +// | ||
| 1412 | +// @Override | ||
| 1413 | +// public void onError(Throwable e) { | ||
| 1414 | +// stopLoading(); | ||
| 1415 | +// startLoading[0] = false; | ||
| 1416 | +// jumpPublish(type); | ||
| 1417 | +// } | ||
| 1418 | +// }); | ||
| 1419 | +// //延迟1秒,出现loading加载动画 | ||
| 1420 | +// contentManagementLayout.postDelayed(new Runnable() { | ||
| 1421 | +// @Override | ||
| 1422 | +// public void run() { | ||
| 1423 | +// if(startLoading[0]){ | ||
| 1424 | +// startLoading(); | ||
| 1425 | +// } | ||
| 1426 | +// } | ||
| 1427 | +// },1000); | ||
| 1428 | +// } | ||
| 1429 | + | ||
| 1430 | + /** | ||
| 1431 | + * 跳转发布页 | ||
| 1432 | + * @param type | ||
| 1433 | + */ | ||
| 1434 | + private void jumpPublish(int type){ | ||
| 1435 | +// if(type == ContentTypeConstant.URL_TYPE_EIGHT){ | ||
| 1436 | +// //文章 | ||
| 1437 | +// ProcessUtils.jumpPublishArticlePage(); | ||
| 1438 | +// }else if(type == ContentTypeConstant.URL_TYPE_NINE){ | ||
| 1439 | +// //视频 | ||
| 1440 | +// Intent intent = new Intent(getActivity(), RecordActivity.class); | ||
| 1441 | +// startActivity(intent); | ||
| 1442 | +// }else if(type == ContentTypeConstant.URL_TYPE_ONE){ | ||
| 1443 | +// //多图 | ||
| 1444 | +// ProcessUtils.jumpPublishAtlasPage(); | ||
| 1445 | +// }else if(type == ContentTypeConstant.URL_TYPE_FIFTEEN){ | ||
| 1446 | +// //动态 | ||
| 1447 | +// ProcessUtils.toPublishActivity(); | ||
| 1448 | +// } | ||
| 1449 | + } | ||
| 1450 | + | ||
| 1451 | + /** | ||
| 1452 | + * 未登录点击 | ||
| 1453 | + */ | ||
| 1454 | + View.OnClickListener unLoginClickListener = new View.OnClickListener() { | ||
| 1455 | + @Override | ||
| 1456 | + public void onClick(View view) { | ||
| 1457 | +// ProcessUtils.toOneKeyLoginActivity(); | ||
| 1458 | +// int id = view.getId(); | ||
| 1459 | +// if (id == R.id.layout_name_un_login) { | ||
| 1460 | +// //埋点:普通按钮点击,登录 | ||
| 1461 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1462 | +// MY_PAGE_USER_LOGIN, | ||
| 1463 | +// PageNameConstants.MY_PAGE, | ||
| 1464 | +// PageNameConstants.MY_PAGE); | ||
| 1465 | +// } else if (id == R.id.img_head_un_login) { | ||
| 1466 | +// //埋点:普通按钮点击,头像 | ||
| 1467 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1468 | +// MY_PAGE_USER_HEAD, | ||
| 1469 | +// PageNameConstants.MY_PAGE, | ||
| 1470 | +// PageNameConstants.MY_PAGE); | ||
| 1471 | +// } else if (id == R.id.layout_attention_un_login) { | ||
| 1472 | +// //埋点:普通按钮点击,关注 | ||
| 1473 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1474 | +// MY_PAGE_USER_FOLLOW, | ||
| 1475 | +// PageNameConstants.MY_PAGE, | ||
| 1476 | +// PageNameConstants.MY_PAGE); | ||
| 1477 | +// } else if (id == R.id.layout_collect_un_login) { | ||
| 1478 | +// //埋点:普通按钮点击,收藏 | ||
| 1479 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1480 | +// MY_PAGE_USER_COLLECTION, | ||
| 1481 | +// PageNameConstants.MY_PAGE, | ||
| 1482 | +// PageNameConstants.MY_PAGE); | ||
| 1483 | +// } else if (id == R.id.layout_ask_politics_un_login) { | ||
| 1484 | +// //埋点:普通按钮点击,留言板 | ||
| 1485 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1486 | +// MY_PAGE_MESSAGE_BOARD, | ||
| 1487 | +// PageNameConstants.MY_PAGE, | ||
| 1488 | +// PageNameConstants.MY_PAGE); | ||
| 1489 | +// } else if (id == R.id.layout_subscribe_un_login) { | ||
| 1490 | +// //埋点:普通按钮点击,预约 | ||
| 1491 | +// GeneralTrack.getInstance().commonBtnClickTrack( | ||
| 1492 | +// MY_PAGE_USER_SUBSCRIBE, | ||
| 1493 | +// PageNameConstants.MY_PAGE, | ||
| 1494 | +// PageNameConstants.MY_PAGE); | ||
| 1495 | +// } | ||
| 1496 | + } | ||
| 1497 | + }; | ||
| 1498 | + | ||
| 1499 | + @Override | ||
| 1500 | + public void onResume() { | ||
| 1501 | + super.onResume(); | ||
| 1502 | + startTime = System.currentTimeMillis(); | ||
| 1503 | + //设置状态栏文字为白色 | ||
| 1504 | + boolean isWhite = pageStatusBarColor == 0; | ||
| 1505 | + changePhoneStatusBarWhiteOrBlack(SpUtils.isNightMode()? !isWhite : isWhite); | ||
| 1506 | + if(SpUtils.isNightMode() && StringUtils.isEmpty(backgroundUrl)){ | ||
| 1507 | + topBgImg.setBackgroundResource(R.mipmap.bg_mine_top_default_night); | ||
| 1508 | + } | ||
| 1509 | + //设置我的奖品入口是否展示 | ||
| 1510 | + if(Constants.atvHideSwitch){ | ||
| 1511 | + myPrizeLayout.setVisibility(View.GONE); | ||
| 1512 | + unLoginEventSubmissionLayout.setVisibility(View.INVISIBLE); | ||
| 1513 | + eventSubmissionLayout.setVisibility(View.INVISIBLE); | ||
| 1514 | + }else { | ||
| 1515 | + myPrizeLayout.setVisibility(View.VISIBLE); | ||
| 1516 | + unLoginEventSubmissionLayout.setVisibility(View.VISIBLE); | ||
| 1517 | + eventSubmissionLayout.setVisibility(View.VISIBLE); | ||
| 1518 | + } | ||
| 1519 | + //个人中心配置信息查询 | ||
| 1520 | +// appPersonalConfigViewModel.getAppPersonalConfig(); | ||
| 1521 | +// if (PDUtils.isLogin()) { | ||
| 1522 | +// doLogin(); | ||
| 1523 | +// } else { | ||
| 1524 | +// doUnLogin(); | ||
| 1525 | +// } | ||
| 1526 | + LiveDataBus.getInstance().with(EventConstants.HOME_TAB_BACKGROUND_THEME).postValue(false); | ||
| 1527 | + } | ||
| 1528 | + | ||
| 1529 | + @Override | ||
| 1530 | + public void onPause() { | ||
| 1531 | + super.onPause(); | ||
| 1532 | + long endTime = System.currentTimeMillis(); | ||
| 1533 | + mDuration = (int) (endTime - startTime); | ||
| 1534 | + mDuration = mDuration/1000; | ||
| 1535 | + //页面浏览埋点 | ||
| 1536 | + TrackContentBean trackContentBean = new TrackContentBean(); | ||
| 1537 | + trackContentBean.setPage_name(PageNameConstants.MY_PAGE); | ||
| 1538 | + trackContentBean.setPage_id(PageNameConstants.MY_PAGE); | ||
| 1539 | + trackContentBean.setExposure(mDuration); | ||
| 1540 | +// CommonTrack.getInstance().channelExposureTrack(trackContentBean); | ||
| 1541 | + } | ||
| 1542 | + | ||
| 1543 | + /** | ||
| 1544 | + * 登录后页面 | ||
| 1545 | + */ | ||
| 1546 | +// private void doLogin() { | ||
| 1547 | +// avatarFrameHasSet = false; | ||
| 1548 | +// levelHeadUrl = ""; | ||
| 1549 | +// topLoginLayout.setVisibility(View.VISIBLE); | ||
| 1550 | +// unLoginTopLayout.setVisibility(View.GONE); | ||
| 1551 | +// loginViewModel.getMyDetail(); | ||
| 1552 | +// String paramsJson; | ||
| 1553 | +// List<SubscribeLivingModel> subscribeLivingModelList = SubscribeLivingHelper. | ||
| 1554 | +// getInstance(getContext()).getAllByUserId(SpUtils.getUserId()); | ||
| 1555 | +// if (!ArrayUtil.isEmpty(subscribeLivingModelList)) { | ||
| 1556 | +// paramsJson = GsonUtils.objectToJson(subscribeLivingModelList); | ||
| 1557 | +// } else { | ||
| 1558 | +// JSONArray jsonArray = new JSONArray(); | ||
| 1559 | +// paramsJson = jsonArray.toString(); | ||
| 1560 | +// } | ||
| 1561 | +// Logger.t(TAG).d("getLiveNotWatchExistData=======>" + paramsJson); | ||
| 1562 | +// getLiveNotWatchExistViewModel.getLiveNotWatchExistData(paramsJson); | ||
| 1563 | +// myAskMarkViewModel.getMyAskMarkData(); | ||
| 1564 | +// mailGroupViewModel.getMailList(); | ||
| 1565 | +// } | ||
| 1566 | + | ||
| 1567 | + /** | ||
| 1568 | + * 未登录状态 | ||
| 1569 | + */ | ||
| 1570 | + private void doUnLogin() { | ||
| 1571 | + unLoginTopLayout.setVisibility(View.VISIBLE); | ||
| 1572 | + topLoginLayout.setVisibility(View.GONE); | ||
| 1573 | + lvTv.setVisibility(View.GONE); | ||
| 1574 | + askRedView.setVisibility(View.GONE); | ||
| 1575 | + avatarFrameImg.setVisibility(View.GONE); | ||
| 1576 | + avatarFrameHasSet = false; | ||
| 1577 | + levelHeadUrl = ""; | ||
| 1578 | + secLayout.setVisibility(View.GONE); | ||
| 1579 | + hiddenCreatorCenterLayout(); | ||
| 1580 | + } | ||
| 1581 | + | ||
| 1582 | + /** | ||
| 1583 | + * 处理等级升级引导 | ||
| 1584 | + */ | ||
| 1585 | +// private void handleLevelUpgradeGuide(){ | ||
| 1586 | +// boolean levelUpgradeGuideIsShow = SpUtils.getLevelUpgradeGuideIsShow(); | ||
| 1587 | +// if(levelUpgradeGuideIsShow){ | ||
| 1588 | +// return; | ||
| 1589 | +// } | ||
| 1590 | +// String vistorMergeDataTag = SpUtils.getVistorMergeDataTag(); | ||
| 1591 | +// if(StringUtils.isEqual("0",vistorMergeDataTag)){ | ||
| 1592 | +// //没有合并过 | ||
| 1593 | +// boolean isShowDataDialog = false; | ||
| 1594 | +// //游客评论 | ||
| 1595 | +// String touristFirstCommentTime = SpUtils.getTouristFirstCommentTime(); | ||
| 1596 | +// if (!StringUtils.isEmpty(touristFirstCommentTime)) { | ||
| 1597 | +// isShowDataDialog = true; | ||
| 1598 | +// } | ||
| 1599 | +// //直播的评论时间 | ||
| 1600 | +// if (!StringUtils.isEmpty(SpUtils.getLiveFirstCommentTime())) { | ||
| 1601 | +// isShowDataDialog = true; | ||
| 1602 | +// } | ||
| 1603 | +// // 检测是否有已读数据 | ||
| 1604 | +// if (!isShowDataDialog) { | ||
| 1605 | +// List<ReadContentModel> readContentModelList = ReadContentHelper.getInstance(AppContext.getContext()).queryAll(); | ||
| 1606 | +// if (readContentModelList.size() > 0) { | ||
| 1607 | +// isShowDataDialog = true; | ||
| 1608 | +// } | ||
| 1609 | +// } | ||
| 1610 | +// if (isShowDataDialog) { | ||
| 1611 | +// //有游客数据需要合并 | ||
| 1612 | +// return; | ||
| 1613 | +// } | ||
| 1614 | +// } | ||
| 1615 | +// showLevelUpGradeGuideDialog(); | ||
| 1616 | +// } | ||
| 1617 | + | ||
| 1618 | + /** | ||
| 1619 | + * 展示等级升级引导弹框 | ||
| 1620 | + */ | ||
| 1621 | + private void showLevelUpGradeGuideDialog(){ | ||
| 1622 | +// if(!isRealVisible()){ | ||
| 1623 | +// return; | ||
| 1624 | +// } | ||
| 1625 | +// boolean levelUpgradeGuideIsShow = SpUtils.getLevelUpgradeGuideIsShow(); | ||
| 1626 | +// if(!levelUpgradeGuideIsShow && StringUtils.isNotBlank(levelHeadUrl)){ | ||
| 1627 | +// if(mScrollView != null){ | ||
| 1628 | +// mScrollView.scrollTo(0,0); | ||
| 1629 | +// } | ||
| 1630 | +// SpUtils.setLevelUpgradeGuideIsShow(true); | ||
| 1631 | +// new LevelUpGradeGuideDialog(activity).builder(levelHeadUrl).show(); | ||
| 1632 | +// } | ||
| 1633 | + } | ||
| 1634 | + | ||
| 1635 | + /** | ||
| 1636 | + * 设置个人中心第二部分数据:评论关注数据等 | ||
| 1637 | + */ | ||
| 1638 | + private void seUserData(PersonalInfoBean user) { | ||
| 1639 | + if (user == null) { | ||
| 1640 | + return; | ||
| 1641 | + } | ||
| 1642 | + String userType = StringUtils.getStringValue(user.getUserType()); | ||
| 1643 | + try { | ||
| 1644 | + //更新用户类型 | ||
| 1645 | + int mUserType = Integer.parseInt(userType); | ||
| 1646 | + if(mUserType != SpUtils.getUserType()){ | ||
| 1647 | + SpUtils.saveUserType(mUserType); | ||
| 1648 | + } | ||
| 1649 | + } catch (NumberFormatException e) { | ||
| 1650 | + e.printStackTrace(); | ||
| 1651 | + } | ||
| 1652 | + | ||
| 1653 | + //更新性别 | ||
| 1654 | + String sex = user.getSex(); | ||
| 1655 | + if(StringUtils.isNotBlank(sex) && !StringUtils.isEqual(sex,SpUtils.getSex())){ | ||
| 1656 | + SpUtils.saveSex(sex); | ||
| 1657 | + } | ||
| 1658 | + | ||
| 1659 | + String userHeadPhoto = user.getRmhHeadUrl(); | ||
| 1660 | + if (!StringUtils.isBlank(userHeadPhoto)) { | ||
| 1661 | + SpUtils.saveHeadPhotoUrl(userHeadPhoto); | ||
| 1662 | + } | ||
| 1663 | + //头像 | ||
| 1664 | + if (!"1".equals(userType)){ | ||
| 1665 | + ImageUtils.getInstance(). | ||
| 1666 | + loadImageCircle(headImg, userHeadPhoto, R.mipmap.icon_default_head_mater); | ||
| 1667 | + }else { | ||
| 1668 | + ImageUtils.getInstance(). | ||
| 1669 | + loadImageCircle(headImg, userHeadPhoto, R.mipmap.icon_default_head); | ||
| 1670 | + } | ||
| 1671 | + | ||
| 1672 | + | ||
| 1673 | + //认证图标 | ||
| 1674 | + String authIcon = user.getAuthIcon(); | ||
| 1675 | + if (StringUtils.isEmpty(authIcon)) { | ||
| 1676 | + vipLayout.setVisibility(View.GONE); | ||
| 1677 | + } else { | ||
| 1678 | + vipLayout.setVisibility(View.VISIBLE); | ||
| 1679 | + ImageUtils.getInstance(). | ||
| 1680 | + loadImageCircle(vipIV, authIcon, 0); | ||
| 1681 | + } | ||
| 1682 | + | ||
| 1683 | + //荣誉头像框 | ||
| 1684 | + String honoraryIcon = user.getHonoraryIcon(); | ||
| 1685 | + if (!StringUtils.isBlank(honoraryIcon)) { | ||
| 1686 | + ImageUtils.getInstance(). | ||
| 1687 | + loadImage(avatarFrameImg, honoraryIcon, 0); | ||
| 1688 | + avatarFrameImg.setVisibility(View.VISIBLE); | ||
| 1689 | + avatarFrameHasSet = true; | ||
| 1690 | + } else if (StringUtils.isEmpty(authIcon)){ | ||
| 1691 | + //最佳评论员头像框(有加V,则不展示最佳评论员头像框) | ||
| 1692 | + String avatarFrame = user.getAvatarFrame(); | ||
| 1693 | + if (!StringUtils.isBlank(avatarFrame)) { | ||
| 1694 | + //头像 | ||
| 1695 | + ImageUtils.getInstance(). | ||
| 1696 | + loadImage(avatarFrameImg, avatarFrame, 0); | ||
| 1697 | + avatarFrameImg.setVisibility(View.VISIBLE); | ||
| 1698 | + avatarFrameHasSet = true; | ||
| 1699 | + } | ||
| 1700 | + } | ||
| 1701 | + | ||
| 1702 | + if (!Constants.USER_TYPE_COMMON.equals(userType) && !avatarFrameHasSet) { | ||
| 1703 | + //是创作者且没有设置头像框 | ||
| 1704 | + avatarFrameImg.setVisibility(View.GONE); | ||
| 1705 | + } | ||
| 1706 | + | ||
| 1707 | +// userLevelViewModel.queryUserLevel(); | ||
| 1708 | + | ||
| 1709 | + if (StringUtils.isEmpty(user.getRmhName())) { | ||
| 1710 | + nameLayout.setVisibility(View.GONE); | ||
| 1711 | + } else { | ||
| 1712 | + nameLayout.setVisibility(View.VISIBLE); | ||
| 1713 | + //名称 | ||
| 1714 | + nameTv.setText(user.getRmhName()); | ||
| 1715 | + //更新sp中userName | ||
| 1716 | + SpUtils.saveUserName(user.getRmhName()); | ||
| 1717 | + } | ||
| 1718 | + | ||
| 1719 | + if (!StringUtils.isBlank(userType) && !Constants.USER_TYPE_COMMON.equals(userType) && !StringUtils.isBlank(user.getRmhId())) { | ||
| 1720 | + SpUtils.saveCreatorId(user.getRmhId()); | ||
| 1721 | + } | ||
| 1722 | + //普通用户没有扫一扫 | ||
| 1723 | + if (Constants.USER_TYPE_COMMON.equals(userType)){ | ||
| 1724 | +// scanLayout.setVisibility(View.GONE); | ||
| 1725 | + } | ||
| 1726 | + | ||
| 1727 | + //创作者中心模块 | ||
| 1728 | + hiddenCreatorCenterLayout(); | ||
| 1729 | + if(Constants.publishHideSwitch){ | ||
| 1730 | + //“移动生产隐藏“开关为关 | ||
| 1731 | + return; | ||
| 1732 | + } | ||
| 1733 | + if (StringUtils.isBlank(userType) || StringUtils.isEqual("1", userType)) { | ||
| 1734 | + //不是创作者,不展示创作者模块 | ||
| 1735 | + return; | ||
| 1736 | + } | ||
| 1737 | + if ("1".equals(BaseConstants.speakControl)) { | ||
| 1738 | + //禁止发稿 | ||
| 1739 | + return; | ||
| 1740 | + } | ||
| 1741 | + | ||
| 1742 | + String cnContentPublish = StringUtils.getStringValue(user.getCnContentPublish()); | ||
| 1743 | + if (StringUtils.isEqual("1",cnContentPublish)) { | ||
| 1744 | + //中文版内容分发权限 0:正常,1:关闭 | ||
| 1745 | + return; | ||
| 1746 | + } | ||
| 1747 | + | ||
| 1748 | + int count = 0; | ||
| 1749 | + if (StringUtils.isEqual("0", user.getVideoCreation())) { | ||
| 1750 | + //视频 | ||
| 1751 | + count++; | ||
| 1752 | + ViewUtils.setVisible(publishVideoLayout, true); | ||
| 1753 | + } | ||
| 1754 | + if (StringUtils.isEqual("0", user.getVideoCollectionCreation())) { | ||
| 1755 | + //视频合集 | ||
| 1756 | + } | ||
| 1757 | + if (StringUtils.isEqual("0", user.getArticleCreation())) { | ||
| 1758 | + //图文 | ||
| 1759 | + count++; | ||
| 1760 | + ViewUtils.setVisible(publishArticleLayout, true); | ||
| 1761 | + } | ||
| 1762 | + if (StringUtils.isEqual("0", user.getPictureCollectionCreation())) { | ||
| 1763 | + //图集 | ||
| 1764 | + count++; | ||
| 1765 | + ViewUtils.setVisible(publishAtlasLayout, true); | ||
| 1766 | + } | ||
| 1767 | + if (StringUtils.isEqual("0", user.getDynamicCreation())) { | ||
| 1768 | + //动态 | ||
| 1769 | + count++; | ||
| 1770 | + ViewUtils.setVisible(publishDynamicLayout, true); | ||
| 1771 | + } | ||
| 1772 | + if (count > 0) { | ||
| 1773 | + ViewUtils.setVisible(creatorCenterLayout, true); | ||
| 1774 | + } | ||
| 1775 | + } | ||
| 1776 | + | ||
| 1777 | + /** | ||
| 1778 | + * 隐藏创作者中心相关布局 | ||
| 1779 | + */ | ||
| 1780 | + private void hiddenCreatorCenterLayout() { | ||
| 1781 | + if (ViewUtils.isVisible(creatorCenterLayout)) { | ||
| 1782 | + creatorCenterLayout.setVisibility(View.GONE); | ||
| 1783 | + } | ||
| 1784 | + if (ViewUtils.isVisible(publishVideoLayout)) { | ||
| 1785 | + publishVideoLayout.setVisibility(View.GONE); | ||
| 1786 | + } | ||
| 1787 | + if (ViewUtils.isVisible(publishArticleLayout)) { | ||
| 1788 | + publishArticleLayout.setVisibility(View.GONE); | ||
| 1789 | + } | ||
| 1790 | + if (ViewUtils.isVisible(publishDynamicLayout)) { | ||
| 1791 | + publishDynamicLayout.setVisibility(View.GONE); | ||
| 1792 | + } | ||
| 1793 | + if (ViewUtils.isVisible(publishAtlasLayout)) { | ||
| 1794 | + publishAtlasLayout.setVisibility(View.GONE); | ||
| 1795 | + } | ||
| 1796 | + } | ||
| 1797 | + | ||
| 1798 | + /** | ||
| 1799 | + * 直播预约小红点 | ||
| 1800 | + * | ||
| 1801 | + * @param liveExistNotWatchBean | ||
| 1802 | + */ | ||
| 1803 | + private void getLiveNotWatchExistSuccess(LiveExistNotWatchBean liveExistNotWatchBean) { | ||
| 1804 | + if (liveExistNotWatchBean == null) { | ||
| 1805 | + return; | ||
| 1806 | + } | ||
| 1807 | + if (liveExistNotWatchBean.isExistNotWatch()) { | ||
| 1808 | + //存在 已预约且未观看且直播中的直播 | ||
| 1809 | + subscribeRedView.setVisibility(View.VISIBLE); | ||
| 1810 | + } else { | ||
| 1811 | + //不存在 已预约且未观看且直播中的直播 | ||
| 1812 | + subscribeRedView.setVisibility(View.GONE); | ||
| 1813 | + } | ||
| 1814 | + List<LiveSubscribeBean> endLiveList = liveExistNotWatchBean.getEndLiveList(); | ||
| 1815 | + if (ArrayUtils.isEmpty(endLiveList)) { | ||
| 1816 | + return; | ||
| 1817 | + } | ||
| 1818 | + for (int i = 0; i < endLiveList.size(); i++) { | ||
| 1819 | + //删除缓存中结束的直播数据 | ||
| 1820 | + LiveSubscribeBean liveSubscribeBean = endLiveList.get(i); | ||
| 1821 | + String keys = SpUtils.getUserId() + "_" + liveSubscribeBean.getLiveId() + "_" + | ||
| 1822 | + liveSubscribeBean.getRelationId(); | ||
| 1823 | +// SubscribeLivingHelper.getInstance(getContext()).deleteByKeys(keys); | ||
| 1824 | + } | ||
| 1825 | + } | ||
| 1826 | + | ||
| 1827 | + /** | ||
| 1828 | + * 切换夜间模式 | ||
| 1829 | + */ | ||
| 1830 | +// private void switchNightMode() { | ||
| 1831 | +// //创建弹窗 | ||
| 1832 | +// if (nightModeDialog == null) { | ||
| 1833 | +// List<NightModeBean> nightModeBeans = new ArrayList<>(); | ||
| 1834 | +// //日间模式 | ||
| 1835 | +// NightModeBean bean = new NightModeBean(); | ||
| 1836 | +// bean.nightmodeWord = SpUtils.LIGHT_MODE; | ||
| 1837 | +// bean.nightMode = AppCompatDelegate.MODE_NIGHT_NO; | ||
| 1838 | +// bean.showLine = true; | ||
| 1839 | +// nightModeBeans.add(bean); | ||
| 1840 | +// //夜间模式 | ||
| 1841 | +// bean = new NightModeBean(); | ||
| 1842 | +// bean.nightmodeWord = SpUtils.NIGHT_MODE; | ||
| 1843 | +// bean.nightMode = AppCompatDelegate.MODE_NIGHT_YES; | ||
| 1844 | +// bean.showLine = true; | ||
| 1845 | +// nightModeBeans.add(bean); | ||
| 1846 | +// //跟随系统(二级页面跟随系统,系统切换有问题,暂去掉) | ||
| 1847 | +// /*bean = new NightModeBean(); | ||
| 1848 | +// bean.nightmodeWord = SpUtils.FOLLOWUP_SYSTEM; | ||
| 1849 | +// bean.nightMode = AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM; | ||
| 1850 | +// nightModeBeans.add(bean);*/ | ||
| 1851 | +// | ||
| 1852 | +// AlertDialog.Builder builder = new AlertDialog.Builder(activity); | ||
| 1853 | +// builder.setContentView(R.layout.nightmode_dialog); | ||
| 1854 | +// builder.fullWidth(); | ||
| 1855 | +// builder.fromBottom(false); | ||
| 1856 | +// builder.setAnimations(R.style.BottomShowAnimation); | ||
| 1857 | +// nightModeDialog = builder.show(); | ||
| 1858 | +// RecyclerView rvproduct = nightModeDialog.findViewById(R.id.rv_product); | ||
| 1859 | +// rvproduct.setLayoutManager(new LinearLayoutManager(activity)); | ||
| 1860 | +// AppCompatTextView tvCancel = nightModeDialog.findViewById(R.id.tvCancel); | ||
| 1861 | +// tvCancel.setOnClickListener(new View.OnClickListener() { | ||
| 1862 | +// @Override | ||
| 1863 | +// public void onClick(View v) { | ||
| 1864 | +// nightModeDialog.dismiss(); | ||
| 1865 | +// } | ||
| 1866 | +// }); | ||
| 1867 | +// //设置列表数据 | ||
| 1868 | +// nightModeAdapter = new NightModeAdapter(nightModeBeans); | ||
| 1869 | +// rvproduct.setAdapter(nightModeAdapter); | ||
| 1870 | +// nightModeAdapter.setOnItemClickListener(new OnItemClickListener() { | ||
| 1871 | +// @Override | ||
| 1872 | +// public void onItemClick(BaseQuickAdapter baseQuickAdapter, View view, int i) { | ||
| 1873 | +// //更换了模式 | ||
| 1874 | +// if (!nightModeBeans.get(i).nightmodeWord.equals(SpUtils.getNightMode())) { | ||
| 1875 | +// //切换模式 | ||
| 1876 | +// try { | ||
| 1877 | +// if(i == 1){ | ||
| 1878 | +// Constants.isNightMode = true; | ||
| 1879 | +// } | ||
| 1880 | +// SpUtils.saveNightMode(nightModeBeans.get(i).nightmodeWord); | ||
| 1881 | +// AppCompatActivity appCompatActivity = (AppCompatActivity) activity; | ||
| 1882 | +// appCompatActivity.getDelegate().setLocalNightMode(nightModeBeans.get(i).nightMode); | ||
| 1883 | +// AppCompatDelegate.setDefaultNightMode(nightModeBeans.get(i).nightMode); | ||
| 1884 | +//// LiveDataBus.getInstance().with(EventConstants.EVENT_GLOBALLISTENING).postValue(1); | ||
| 1885 | +// } catch (Exception e) { | ||
| 1886 | +// throw new RuntimeException(e); | ||
| 1887 | +// } | ||
| 1888 | +// } | ||
| 1889 | +// String nightText = "日间模式"; | ||
| 1890 | +// if(StringUtils.isEqual(SpUtils.NIGHT_MODE,SpUtils.getNightMode())){ | ||
| 1891 | +// nightText = "夜间模式"; | ||
| 1892 | +// }else if(StringUtils.isEqual(SpUtils.FOLLOWUP_SYSTEM,SpUtils.getNightMode())){ | ||
| 1893 | +// nightText = "跟随系统"; | ||
| 1894 | +// } | ||
| 1895 | +// nightModeTv.setText(nightText); | ||
| 1896 | +// nightModeDialog.dismiss(); | ||
| 1897 | +// } | ||
| 1898 | +// }); | ||
| 1899 | +// } else { | ||
| 1900 | +// nightModeDialog.show(); | ||
| 1901 | +// if(nightModeAdapter != null){ | ||
| 1902 | +// nightModeAdapter.notifyDataSetChanged(); | ||
| 1903 | +// } | ||
| 1904 | +// } | ||
| 1905 | +// } | ||
| 1906 | + | ||
| 1907 | + @Override | ||
| 1908 | + public void onDestroy() { | ||
| 1909 | + super.onDestroy(); | ||
| 1910 | + } | ||
| 1911 | +} |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <item android:color="#F6F6F6"></item> | ||
| 4 | + <item android:state_selected="true" android:color="#ED2800"></item> | ||
| 5 | + <item android:state_selected="false" android:color="#F6F6F6"></item> | ||
| 6 | +</selector> |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
3.05 KB
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
457 Bytes
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
1.02 KB
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
10.9 KB
No preview for this file type
No preview for this file type
module_personalcenter/src/main/res/drawable-xxhdpi/module_personal_center_icon_account_qq.webp
0 → 100644
No preview for this file type
module_personalcenter/src/main/res/drawable-xxhdpi/module_personal_center_icon_account_wechat.webp
0 → 100644
No preview for this file type
module_personalcenter/src/main/res/drawable-xxhdpi/module_personal_center_icon_mine_password.webp
0 → 100644
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:shape="oval" | ||
| 4 | + android:useLevel="false" > | ||
| 5 | + | ||
| 6 | + <solid android:color="@color/transparent" /> | ||
| 7 | + | ||
| 8 | + <stroke | ||
| 9 | + android:width="@dimen/rmrb_dp2" | ||
| 10 | + android:color="@color/res_color_common_C8" /> | ||
| 11 | + | ||
| 12 | + <size | ||
| 13 | + android:height="@dimen/rmrb_dp72" | ||
| 14 | + android:width="@dimen/rmrb_dp72" /> | ||
| 15 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <item> | ||
| 4 | + <shape android:shape="rectangle"> | ||
| 5 | + <solid android:color="@color/res_color_common_C8" /> | ||
| 6 | + <corners android:radius="10dp" /> | ||
| 7 | + </shape> | ||
| 8 | + </item> | ||
| 9 | +</layer-list> |
445 Bytes
321 Bytes
386 Bytes
188 Bytes
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <solid android:color="#14555555" /> | ||
| 4 | + <corners | ||
| 5 | + android:bottomLeftRadius="7dp" | ||
| 6 | + android:bottomRightRadius="7dp" | ||
| 7 | + android:topLeftRadius="7dp" | ||
| 8 | + android:topRightRadius="7dp" /> | ||
| 9 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <solid android:color="#ffdddddd" /> | ||
| 4 | + <corners | ||
| 5 | + android:bottomLeftRadius="2dp" | ||
| 6 | + android:bottomRightRadius="2dp" | ||
| 7 | + android:topLeftRadius="2dp" | ||
| 8 | + android:topRightRadius="2dp" /> | ||
| 9 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <solid android:color="#ffb71d26" /> | ||
| 4 | + <corners | ||
| 5 | + android:bottomLeftRadius="@dimen/rmrb_dp1" | ||
| 6 | + android:bottomRightRadius="@dimen/rmrb_dp1" | ||
| 7 | + android:topLeftRadius="@dimen/rmrb_dp1" | ||
| 8 | + android:topRightRadius="@dimen/rmrb_dp1" /> | ||
| 9 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:shape="rectangle"> | ||
| 4 | + <gradient | ||
| 5 | + android:angle="45" | ||
| 6 | + android:startColor="#FFFAF8F8" | ||
| 7 | + android:endColor="#00FAF8F8" | ||
| 8 | + android:type="linear" | ||
| 9 | + android:useLevel="true" /> | ||
| 10 | + <corners | ||
| 11 | + android:bottomLeftRadius="0dp" | ||
| 12 | + android:bottomRightRadius="0dp" | ||
| 13 | + android:topLeftRadius="0dp" | ||
| 14 | + android:topRightRadius="0dp" /> | ||
| 15 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:shape="rectangle"> | ||
| 4 | + <gradient | ||
| 5 | + android:angle="45" | ||
| 6 | + android:startColor="#E6000000" | ||
| 7 | + android:endColor="#4D000000" | ||
| 8 | + android:type="linear" | ||
| 9 | + android:useLevel="true" /> | ||
| 10 | + <corners | ||
| 11 | + android:bottomLeftRadius="0dp" | ||
| 12 | + android:bottomRightRadius="0dp" | ||
| 13 | + android:topLeftRadius="0dp" | ||
| 14 | + android:topRightRadius="0dp" /> | ||
| 15 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <solid android:color="#66000000" /> | ||
| 4 | + <corners | ||
| 5 | + android:bottomLeftRadius="136dp" | ||
| 6 | + android:bottomRightRadius="136dp" | ||
| 7 | + android:topLeftRadius="136dp" | ||
| 8 | + android:topRightRadius="136dp" /> | ||
| 9 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + | ||
| 4 | + <item | ||
| 5 | + android:state_checked="true" | ||
| 6 | + android:drawable="@mipmap/checkbox_true" | ||
| 7 | + /> | ||
| 8 | + <item | ||
| 9 | + android:state_checked="false" | ||
| 10 | + android:drawable="@mipmap/checkbox_false" | ||
| 11 | + /> | ||
| 12 | +</selector> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <item android:drawable="@drawable/shape_tab_item_bag_select_yes" android:state_selected="true" /> | ||
| 4 | + <item android:drawable="@drawable/shape_tab_item_bag_select_no" /> | ||
| 5 | +</selector> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:shape="rectangle"> | ||
| 4 | + <stroke | ||
| 5 | + android:width="@dimen/rmrb_dp1" | ||
| 6 | + android:color="@color/res_color_common_C6" /> | ||
| 7 | + <solid android:color="@color/res_color_common_C8"/> | ||
| 8 | + <corners android:radius="@dimen/rmrb_dp2" /> | ||
| 9 | + | ||
| 10 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:shape="rectangle"> | ||
| 4 | + <stroke | ||
| 5 | + android:width="@dimen/rmrb_dp0_5" | ||
| 6 | + android:color="@color/res_color_common_C6" /> | ||
| 7 | + <solid android:color="@color/res_color_general_F9F9F9_s1" /> | ||
| 8 | + <corners android:radius="@dimen/rmrb_dp2" /> | ||
| 9 | + | ||
| 10 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:shape="rectangle"> | ||
| 4 | + <stroke | ||
| 5 | + android:width="@dimen/rmrb_dp0_5" | ||
| 6 | + android:color="@color/res_color_common_C6" /> | ||
| 7 | + <corners android:radius="@dimen/rmrb_dp2" /> | ||
| 8 | + | ||
| 9 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:shape="rectangle"> | ||
| 4 | + <!-- 内部颜色 --> | ||
| 5 | + <solid android:color="@color/color_F9F9F9" /> | ||
| 6 | + <corners android:radius="@dimen/rmrb_dp8" /> | ||
| 7 | + <padding android:bottom="@dimen/rmrb_dp16" android:left="@dimen/rmrb_dp12" | ||
| 8 | + android:right="@dimen/rmrb_dp19" android:top="@dimen/rmrb_dp16" /> | ||
| 9 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 4 | + android:shape="oval" | ||
| 5 | + android:useLevel="false" | ||
| 6 | + tools:ignore="ResourceName"> | ||
| 7 | + | ||
| 8 | + <solid android:color="@color/transparent" /> | ||
| 9 | + | ||
| 10 | + <stroke | ||
| 11 | + android:width="@dimen/rmrb_dp0_5" | ||
| 12 | + android:color="@color/res_color_common_C10" /> | ||
| 13 | + | ||
| 14 | + <size | ||
| 15 | + android:width="@dimen/rmrb_dp60" | ||
| 16 | + android:height="@dimen/rmrb_dp60" /> | ||
| 17 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:shape="rectangle"> | ||
| 4 | + | ||
| 5 | + <corners | ||
| 6 | + android:bottomLeftRadius="0dp" | ||
| 7 | + android:bottomRightRadius="0dp" | ||
| 8 | + android:topLeftRadius="@dimen/rmrb_dp16" | ||
| 9 | + android:topRightRadius="@dimen/rmrb_dp16" /> | ||
| 10 | + <solid android:color="@color/res_color_common_C8" /> | ||
| 11 | + | ||
| 12 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:shape="rectangle"> | ||
| 4 | + | ||
| 5 | + <corners | ||
| 6 | + android:bottomLeftRadius="0dp" | ||
| 7 | + android:bottomRightRadius="0dp" | ||
| 8 | + android:topLeftRadius="@dimen/rmrb_dp12" | ||
| 9 | + android:topRightRadius="@dimen/rmrb_dp12" /> | ||
| 10 | + <solid android:color="@color/res_color_common_C8" /> | ||
| 11 | + | ||
| 12 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:shape="rectangle"> | ||
| 4 | + <corners android:radius="@dimen/rmrb_dp4"/> | ||
| 5 | + <solid android:color="@color/res_color_common_C8" /> | ||
| 6 | + <stroke android:width="@dimen/rmrb_dp1" | ||
| 7 | + android:color="@color/res_color_common_C7"/> | ||
| 8 | +</shape> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <item | ||
| 4 | + android:width="@dimen/rmrb_dp16" | ||
| 5 | + android:height="@dimen/rmrb_dp2" | ||
| 6 | + android:gravity="center"> | ||
| 7 | + <shape> | ||
| 8 | + <corners android:radius="@dimen/rmrb_dp1" /> | ||
| 9 | + </shape> | ||
| 10 | + </item> | ||
| 11 | +</layer-list> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| 4 | + android:layout_width="match_parent" | ||
| 5 | + android:layout_height="match_parent" | ||
| 6 | + android:background="@color/res_color_common_C7_s1" | ||
| 7 | + android:orientation="vertical"> | ||
| 8 | + | ||
| 9 | + <ScrollView | ||
| 10 | + android:id="@+id/scroll_view" | ||
| 11 | + android:layout_width="match_parent" | ||
| 12 | + android:layout_height="match_parent" | ||
| 13 | + android:layout_weight="1" | ||
| 14 | + android:scrollbars="none" | ||
| 15 | + android:fillViewport="true" | ||
| 16 | + android:overScrollMode="never"> | ||
| 17 | + | ||
| 18 | + <FrameLayout | ||
| 19 | + android:layout_width="match_parent" | ||
| 20 | + android:layout_height="match_parent"> | ||
| 21 | + | ||
| 22 | + <ImageView | ||
| 23 | + android:id="@+id/img_top_bg" | ||
| 24 | + android:layout_width="match_parent" | ||
| 25 | + android:layout_height="wrap_content" | ||
| 26 | + android:scaleType="fitXY"/> | ||
| 27 | + | ||
| 28 | + <LinearLayout | ||
| 29 | + android:layout_width="match_parent" | ||
| 30 | + android:layout_height="wrap_content" | ||
| 31 | + android:orientation="vertical"> | ||
| 32 | + | ||
| 33 | + <!-- 头部未登录状态 --> | ||
| 34 | + <include layout="@layout/include_mine_top_un_login" /> | ||
| 35 | + | ||
| 36 | + <!-- 用户信息 --> | ||
| 37 | + <include layout="@layout/include_mine_top_login" /> | ||
| 38 | + | ||
| 39 | + <!-- 积分商城、数字藏品 --> | ||
| 40 | + <include layout="@layout/include_mine_second_layout" /> | ||
| 41 | + | ||
| 42 | + <!-- 创作者中心 --> | ||
| 43 | + <include layout="@layout/include_mine_creator_center" /> | ||
| 44 | + | ||
| 45 | + <!-- 更多功能 --> | ||
| 46 | + <include layout="@layout/include_mine_more_functions" /> | ||
| 47 | + | ||
| 48 | + <TextView | ||
| 49 | + android:id="@+id/iv_test" | ||
| 50 | + android:layout_width="match_parent" | ||
| 51 | + android:layout_height="@dimen/rmrb_dp80" | ||
| 52 | + android:layout_marginTop="@dimen/rmrb_dp20" | ||
| 53 | + android:background="@color/blue_theme_bg" | ||
| 54 | + android:gravity="center" | ||
| 55 | + android:text="测试入口" | ||
| 56 | + android:textColor="@color/res_color_common_C8" | ||
| 57 | + android:textSize="@dimen/rmrb_dp20" | ||
| 58 | + android:visibility="gone" /> | ||
| 59 | + </LinearLayout> | ||
| 60 | + </FrameLayout> | ||
| 61 | + </ScrollView> | ||
| 62 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 4 | + android:id="@+id/layout_creator_center" | ||
| 5 | + android:layout_width="match_parent" | ||
| 6 | + android:layout_height="wrap_content" | ||
| 7 | + android:layout_gravity="center_horizontal" | ||
| 8 | + android:layout_marginHorizontal="@dimen/rmrb_dp12" | ||
| 9 | + android:layout_marginTop="@dimen/rmrb_dp10" | ||
| 10 | + android:paddingBottom="@dimen/rmrb_dp20" | ||
| 11 | + android:orientation="vertical" | ||
| 12 | + android:visibility="gone" | ||
| 13 | + tools:visibility="visible" | ||
| 14 | + android:background="@drawable/shape_bg_white_radious_4"> | ||
| 15 | + | ||
| 16 | + <RelativeLayout | ||
| 17 | + android:layout_width="match_parent" | ||
| 18 | + android:layout_height="@dimen/rmrb_dp48"> | ||
| 19 | + | ||
| 20 | + <TextView | ||
| 21 | + android:layout_width="wrap_content" | ||
| 22 | + android:layout_height="wrap_content" | ||
| 23 | + android:text="@string/res_str_creator_center" | ||
| 24 | + android:textSize="@dimen/rmrb_dp15" | ||
| 25 | + android:textColor="@color/res_color_common_C1" | ||
| 26 | + android:textStyle="bold" | ||
| 27 | + android:layout_marginTop="@dimen/rmrb_dp12" | ||
| 28 | + android:layout_marginLeft="@dimen/rmrb_dp16" | ||
| 29 | + android:layout_centerVertical="true"/> | ||
| 30 | + | ||
| 31 | + <LinearLayout | ||
| 32 | + android:id="@+id/layout_content_management" | ||
| 33 | + android:layout_width="wrap_content" | ||
| 34 | + android:layout_height="wrap_content" | ||
| 35 | + android:orientation="horizontal" | ||
| 36 | + android:layout_centerVertical="true" | ||
| 37 | + android:layout_alignParentRight="true" | ||
| 38 | + android:layout_marginRight="@dimen/rmrb_dp16"> | ||
| 39 | + | ||
| 40 | + <TextView | ||
| 41 | + android:id="@+id/tv_content_management" | ||
| 42 | + android:layout_width="wrap_content" | ||
| 43 | + android:layout_height="wrap_content" | ||
| 44 | + android:text="@string/res_str_content_management" | ||
| 45 | + android:textSize="@dimen/rmrb_dp14" | ||
| 46 | + android:textColor="@color/res_color_common_C3" | ||
| 47 | + android:layout_gravity="center_vertical"/> | ||
| 48 | + | ||
| 49 | + <ImageView | ||
| 50 | + android:id="@+id/img_content_management" | ||
| 51 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 52 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 53 | + android:src="@mipmap/icon_mine_next_gray" | ||
| 54 | + android:layout_gravity="center_vertical"/> | ||
| 55 | + | ||
| 56 | + </LinearLayout> | ||
| 57 | + | ||
| 58 | + </RelativeLayout> | ||
| 59 | + | ||
| 60 | + <LinearLayout | ||
| 61 | + android:id="@+id/layout_publish_entrance" | ||
| 62 | + android:layout_width="match_parent" | ||
| 63 | + android:layout_height="wrap_content" | ||
| 64 | + android:orientation="horizontal"> | ||
| 65 | + | ||
| 66 | + <LinearLayout | ||
| 67 | + android:id="@+id/layout_publish_article" | ||
| 68 | + android:layout_width="@dimen/rmrb_dp88" | ||
| 69 | + android:layout_height="wrap_content" | ||
| 70 | + android:orientation="vertical"> | ||
| 71 | + | ||
| 72 | + <ImageView | ||
| 73 | + android:id="@+id/img_publish_article" | ||
| 74 | + android:layout_width="@dimen/rmrb_dp26" | ||
| 75 | + android:layout_height="@dimen/rmrb_dp26" | ||
| 76 | + android:background="@mipmap/icon_mine_publish_article" | ||
| 77 | + android:layout_gravity="center_horizontal"/> | ||
| 78 | + | ||
| 79 | + <TextView | ||
| 80 | + android:id="@+id/tv_publish_article" | ||
| 81 | + android:layout_width="wrap_content" | ||
| 82 | + android:layout_height="wrap_content" | ||
| 83 | + android:maxLines="1" | ||
| 84 | + android:ellipsize="end" | ||
| 85 | + android:text="@string/res_str_publish_article" | ||
| 86 | + android:textSize="@dimen/rmrb_dp12" | ||
| 87 | + android:textColor="@color/res_color_common_C1" | ||
| 88 | + android:layout_gravity="center_horizontal" | ||
| 89 | + android:layout_marginTop="@dimen/rmrb_dp8"/> | ||
| 90 | + | ||
| 91 | + </LinearLayout> | ||
| 92 | + | ||
| 93 | + <LinearLayout | ||
| 94 | + android:id="@+id/layout_publish_video" | ||
| 95 | + android:layout_width="@dimen/rmrb_dp88" | ||
| 96 | + android:layout_height="wrap_content" | ||
| 97 | + android:orientation="vertical"> | ||
| 98 | + | ||
| 99 | + <ImageView | ||
| 100 | + android:id="@+id/img_publish_video" | ||
| 101 | + android:layout_width="@dimen/rmrb_dp26" | ||
| 102 | + android:layout_height="@dimen/rmrb_dp26" | ||
| 103 | + android:background="@mipmap/icon_mine_publish_video" | ||
| 104 | + android:layout_gravity="center_horizontal"/> | ||
| 105 | + | ||
| 106 | + <TextView | ||
| 107 | + android:id="@+id/tv_publish_video" | ||
| 108 | + android:layout_width="wrap_content" | ||
| 109 | + android:layout_height="wrap_content" | ||
| 110 | + android:maxLines="1" | ||
| 111 | + android:ellipsize="end" | ||
| 112 | + android:text="@string/res_str_publish_video" | ||
| 113 | + android:textSize="@dimen/rmrb_dp12" | ||
| 114 | + android:textColor="@color/res_color_common_C1" | ||
| 115 | + android:layout_gravity="center_horizontal" | ||
| 116 | + android:layout_marginTop="@dimen/rmrb_dp8"/> | ||
| 117 | + | ||
| 118 | + </LinearLayout> | ||
| 119 | + | ||
| 120 | + <LinearLayout | ||
| 121 | + android:id="@+id/layout_publish_dynamic" | ||
| 122 | + android:layout_width="@dimen/rmrb_dp88" | ||
| 123 | + android:layout_height="wrap_content" | ||
| 124 | + android:orientation="vertical"> | ||
| 125 | + | ||
| 126 | + <ImageView | ||
| 127 | + android:id="@+id/img_publish_dynamic" | ||
| 128 | + android:layout_width="@dimen/rmrb_dp26" | ||
| 129 | + android:layout_height="@dimen/rmrb_dp26" | ||
| 130 | + android:background="@mipmap/icon_mine_publish_dynamic" | ||
| 131 | + android:layout_gravity="center_horizontal"/> | ||
| 132 | + | ||
| 133 | + <TextView | ||
| 134 | + android:id="@+id/tv_publish_dynamic" | ||
| 135 | + android:layout_width="wrap_content" | ||
| 136 | + android:layout_height="wrap_content" | ||
| 137 | + android:maxLines="1" | ||
| 138 | + android:ellipsize="end" | ||
| 139 | + android:text="@string/res_str_publish_dynamic" | ||
| 140 | + android:textSize="@dimen/rmrb_dp12" | ||
| 141 | + android:textColor="@color/res_color_common_C1" | ||
| 142 | + android:layout_gravity="center_horizontal" | ||
| 143 | + android:layout_marginTop="@dimen/rmrb_dp8"/> | ||
| 144 | + | ||
| 145 | + </LinearLayout> | ||
| 146 | + | ||
| 147 | + <LinearLayout | ||
| 148 | + android:id="@+id/layout_publish_atlas" | ||
| 149 | + android:layout_width="@dimen/rmrb_dp88" | ||
| 150 | + android:layout_height="wrap_content" | ||
| 151 | + android:orientation="vertical"> | ||
| 152 | + | ||
| 153 | + <ImageView | ||
| 154 | + android:id="@+id/img_publish_atlas" | ||
| 155 | + android:layout_width="@dimen/rmrb_dp26" | ||
| 156 | + android:layout_height="@dimen/rmrb_dp26" | ||
| 157 | + android:background="@mipmap/icon_mine_publish_atlas" | ||
| 158 | + android:layout_gravity="center_horizontal"/> | ||
| 159 | + | ||
| 160 | + <TextView | ||
| 161 | + android:id="@+id/tv_publish_atlas" | ||
| 162 | + android:layout_width="wrap_content" | ||
| 163 | + android:layout_height="wrap_content" | ||
| 164 | + android:maxLines="1" | ||
| 165 | + android:ellipsize="end" | ||
| 166 | + android:text="@string/res_str_publish_atlas" | ||
| 167 | + android:textSize="@dimen/rmrb_dp12" | ||
| 168 | + android:textColor="@color/res_color_common_C1" | ||
| 169 | + android:layout_gravity="center_horizontal" | ||
| 170 | + android:layout_marginTop="@dimen/rmrb_dp8"/> | ||
| 171 | + | ||
| 172 | + </LinearLayout> | ||
| 173 | + | ||
| 174 | + </LinearLayout> | ||
| 175 | + | ||
| 176 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:id="@+id/layout_more_functions" | ||
| 4 | + android:layout_width="match_parent" | ||
| 5 | + android:layout_height="wrap_content" | ||
| 6 | + android:layout_marginHorizontal="@dimen/rmrb_dp12" | ||
| 7 | + android:layout_marginTop="@dimen/rmrb_dp10" | ||
| 8 | + android:background="@drawable/shape_bg_white_radious_4" | ||
| 9 | + android:orientation="vertical"> | ||
| 10 | + | ||
| 11 | + <TextView | ||
| 12 | + android:layout_width="wrap_content" | ||
| 13 | + android:layout_height="wrap_content" | ||
| 14 | + android:layout_marginLeft="@dimen/rmrb_dp16" | ||
| 15 | + android:layout_marginTop="@dimen/rmrb_dp12" | ||
| 16 | + android:text="@string/res_str_more_functions" | ||
| 17 | + android:textColor="@color/res_color_common_C1" | ||
| 18 | + android:textSize="@dimen/rmrb_dp15" | ||
| 19 | + android:textStyle="bold" /> | ||
| 20 | + | ||
| 21 | + <View | ||
| 22 | + android:layout_width="match_parent" | ||
| 23 | + android:layout_height="@dimen/rmrb_dp0_5" | ||
| 24 | + android:layout_marginTop="@dimen/rmrb_dp12" | ||
| 25 | + android:background="@color/res_color_common_C6" /> | ||
| 26 | + <!--积分商城--> | ||
| 27 | + <RelativeLayout | ||
| 28 | + android:id="@+id/layout_points_mall" | ||
| 29 | + android:layout_width="match_parent" | ||
| 30 | + android:layout_height="@dimen/rmrb_dp56"> | ||
| 31 | + | ||
| 32 | + <ImageView | ||
| 33 | + android:id="@+id/img_points_mall" | ||
| 34 | + android:layout_width="@dimen/rmrb_dp20" | ||
| 35 | + android:layout_height="@dimen/rmrb_dp20" | ||
| 36 | + android:layout_centerVertical="true" | ||
| 37 | + android:layout_marginLeft="@dimen/rmrb_dp14" | ||
| 38 | + android:background="@mipmap/icon_mine_point_mall" /> | ||
| 39 | + | ||
| 40 | + <TextView | ||
| 41 | + android:id="@+id/tv_point_display" | ||
| 42 | + android:layout_width="wrap_content" | ||
| 43 | + android:layout_height="wrap_content" | ||
| 44 | + android:layout_centerVertical="true" | ||
| 45 | + android:layout_marginLeft="@dimen/rmrb_dp8" | ||
| 46 | + android:layout_toRightOf="@+id/img_points_mall" | ||
| 47 | + android:text="@string/res_integral_mall" | ||
| 48 | + android:textColor="@color/res_color_common_C1" | ||
| 49 | + android:textSize="@dimen/rmrb_dp15" /> | ||
| 50 | + | ||
| 51 | + <LinearLayout | ||
| 52 | + android:layout_width="wrap_content" | ||
| 53 | + android:layout_height="wrap_content" | ||
| 54 | + android:layout_alignParentRight="true" | ||
| 55 | + android:layout_centerVertical="true" | ||
| 56 | + android:layout_marginRight="@dimen/rmrb_dp12" | ||
| 57 | + android:orientation="horizontal"> | ||
| 58 | + | ||
| 59 | + <TextView | ||
| 60 | + android:layout_width="wrap_content" | ||
| 61 | + android:layout_height="wrap_content" | ||
| 62 | + android:layout_gravity="center_vertical" | ||
| 63 | + android:text="@string/res_str_more" | ||
| 64 | + android:textColor="@color/res_color_common_C3" | ||
| 65 | + android:textSize="@dimen/rmrb_dp14" | ||
| 66 | + android:visibility="gone" /> | ||
| 67 | + | ||
| 68 | + <ImageView | ||
| 69 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 70 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 71 | + android:layout_gravity="center_vertical" | ||
| 72 | + android:background="@mipmap/icon_mine_next_gray" /> | ||
| 73 | + | ||
| 74 | + </LinearLayout> | ||
| 75 | + | ||
| 76 | + <View | ||
| 77 | + android:layout_width="match_parent" | ||
| 78 | + android:layout_height="@dimen/rmrb_dp0_5" | ||
| 79 | + android:layout_alignParentBottom="true" | ||
| 80 | + android:layout_marginLeft="@dimen/rmrb_dp16" | ||
| 81 | + android:layout_marginRight="@dimen/rmrb_dp16" | ||
| 82 | + android:background="@color/res_color_common_C6" /> | ||
| 83 | + </RelativeLayout> | ||
| 84 | + <!--扫一扫--> | ||
| 85 | + <RelativeLayout | ||
| 86 | + android:id="@+id/layout_scan" | ||
| 87 | + android:layout_width="match_parent" | ||
| 88 | + android:layout_height="@dimen/rmrb_dp56"> | ||
| 89 | + | ||
| 90 | + <ImageView | ||
| 91 | + android:id="@+id/img_scan" | ||
| 92 | + android:layout_width="@dimen/rmrb_dp20" | ||
| 93 | + android:layout_height="@dimen/rmrb_dp20" | ||
| 94 | + android:layout_centerVertical="true" | ||
| 95 | + android:layout_marginLeft="@dimen/rmrb_dp14" | ||
| 96 | + android:background="@mipmap/icon_mine_scan" /> | ||
| 97 | + | ||
| 98 | + <TextView | ||
| 99 | + android:id="@+id/tv_scan" | ||
| 100 | + android:layout_width="wrap_content" | ||
| 101 | + android:layout_height="wrap_content" | ||
| 102 | + android:layout_centerVertical="true" | ||
| 103 | + android:layout_marginLeft="@dimen/rmrb_dp8" | ||
| 104 | + android:layout_toRightOf="@+id/img_scan" | ||
| 105 | + android:text="@string/res_str_scan" | ||
| 106 | + android:textColor="@color/res_color_common_C1" | ||
| 107 | + android:textSize="@dimen/rmrb_dp15" /> | ||
| 108 | + | ||
| 109 | + <LinearLayout | ||
| 110 | + android:layout_width="wrap_content" | ||
| 111 | + android:layout_height="wrap_content" | ||
| 112 | + android:layout_alignParentRight="true" | ||
| 113 | + android:layout_centerVertical="true" | ||
| 114 | + android:layout_marginRight="@dimen/rmrb_dp12" | ||
| 115 | + android:orientation="horizontal"> | ||
| 116 | + | ||
| 117 | + <TextView | ||
| 118 | + android:layout_width="wrap_content" | ||
| 119 | + android:layout_height="wrap_content" | ||
| 120 | + android:layout_gravity="center_vertical" | ||
| 121 | + android:text="@string/res_str_more" | ||
| 122 | + android:textColor="@color/res_color_common_C3" | ||
| 123 | + android:textSize="@dimen/rmrb_dp14" | ||
| 124 | + android:visibility="gone" /> | ||
| 125 | + | ||
| 126 | + <ImageView | ||
| 127 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 128 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 129 | + android:layout_gravity="center_vertical" | ||
| 130 | + android:background="@mipmap/icon_mine_next_gray" /> | ||
| 131 | + | ||
| 132 | + </LinearLayout> | ||
| 133 | + | ||
| 134 | + <View | ||
| 135 | + android:layout_width="match_parent" | ||
| 136 | + android:layout_height="@dimen/rmrb_dp0_5" | ||
| 137 | + android:layout_alignParentBottom="true" | ||
| 138 | + android:layout_marginLeft="@dimen/rmrb_dp16" | ||
| 139 | + android:layout_marginRight="@dimen/rmrb_dp16" | ||
| 140 | + android:background="@color/res_color_common_C6" /> | ||
| 141 | + </RelativeLayout> | ||
| 142 | + | ||
| 143 | + <!--桌面组件--> | ||
| 144 | + <RelativeLayout | ||
| 145 | + android:id="@+id/layout_widget" | ||
| 146 | + android:layout_width="match_parent" | ||
| 147 | + android:layout_height="@dimen/rmrb_dp56"> | ||
| 148 | + | ||
| 149 | + <ImageView | ||
| 150 | + android:id="@+id/img_widget" | ||
| 151 | + android:layout_width="@dimen/rmrb_dp20" | ||
| 152 | + android:layout_height="@dimen/rmrb_dp20" | ||
| 153 | + android:layout_centerVertical="true" | ||
| 154 | + android:layout_marginLeft="@dimen/rmrb_dp14" | ||
| 155 | + android:background="@mipmap/icon_mine_widget" /> | ||
| 156 | + | ||
| 157 | + <TextView | ||
| 158 | + android:id="@+id/tv_widget" | ||
| 159 | + android:layout_width="wrap_content" | ||
| 160 | + android:layout_height="wrap_content" | ||
| 161 | + android:layout_centerVertical="true" | ||
| 162 | + android:layout_marginLeft="@dimen/rmrb_dp8" | ||
| 163 | + android:layout_toRightOf="@+id/img_widget" | ||
| 164 | + android:text="@string/res_str_widget" | ||
| 165 | + android:textColor="@color/res_color_common_C1" | ||
| 166 | + android:textSize="@dimen/rmrb_dp15" /> | ||
| 167 | + | ||
| 168 | + <LinearLayout | ||
| 169 | + android:layout_width="wrap_content" | ||
| 170 | + android:layout_height="wrap_content" | ||
| 171 | + android:layout_alignParentRight="true" | ||
| 172 | + android:layout_centerVertical="true" | ||
| 173 | + android:layout_marginRight="@dimen/rmrb_dp12" | ||
| 174 | + android:orientation="horizontal"> | ||
| 175 | + | ||
| 176 | + <TextView | ||
| 177 | + android:layout_width="wrap_content" | ||
| 178 | + android:layout_height="wrap_content" | ||
| 179 | + android:layout_gravity="center_vertical" | ||
| 180 | + android:text="@string/res_str_more" | ||
| 181 | + android:textColor="@color/res_color_common_C3" | ||
| 182 | + android:textSize="@dimen/rmrb_dp14" | ||
| 183 | + android:visibility="gone" /> | ||
| 184 | + | ||
| 185 | + <ImageView | ||
| 186 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 187 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 188 | + android:layout_gravity="center_vertical" | ||
| 189 | + android:background="@mipmap/icon_mine_next_gray" /> | ||
| 190 | + | ||
| 191 | + </LinearLayout> | ||
| 192 | + | ||
| 193 | + <View | ||
| 194 | + android:layout_width="match_parent" | ||
| 195 | + android:layout_height="@dimen/rmrb_dp0_5" | ||
| 196 | + android:layout_alignParentBottom="true" | ||
| 197 | + android:layout_marginLeft="@dimen/rmrb_dp16" | ||
| 198 | + android:layout_marginRight="@dimen/rmrb_dp16" | ||
| 199 | + android:background="@color/res_color_common_C6" /> | ||
| 200 | + </RelativeLayout> | ||
| 201 | + | ||
| 202 | + <!--夜间模式--> | ||
| 203 | + <RelativeLayout | ||
| 204 | + android:id="@+id/layout_night_mode" | ||
| 205 | + android:layout_width="match_parent" | ||
| 206 | + android:layout_height="@dimen/rmrb_dp56" | ||
| 207 | + android:visibility="visible"> | ||
| 208 | + | ||
| 209 | + <ImageView | ||
| 210 | + android:id="@+id/img_night_mode" | ||
| 211 | + android:layout_width="@dimen/rmrb_dp20" | ||
| 212 | + android:layout_height="@dimen/rmrb_dp20" | ||
| 213 | + android:layout_centerVertical="true" | ||
| 214 | + android:layout_marginLeft="@dimen/rmrb_dp14" | ||
| 215 | + android:background="@mipmap/icon_mine_night_mode" /> | ||
| 216 | + | ||
| 217 | + <TextView | ||
| 218 | + android:layout_width="wrap_content" | ||
| 219 | + android:layout_height="wrap_content" | ||
| 220 | + android:layout_centerVertical="true" | ||
| 221 | + android:layout_marginLeft="@dimen/rmrb_dp8" | ||
| 222 | + android:layout_toRightOf="@+id/img_night_mode" | ||
| 223 | + android:text="@string/res_str_night_mode" | ||
| 224 | + android:textColor="@color/res_color_common_C1" | ||
| 225 | + android:textSize="@dimen/rmrb_dp15" /> | ||
| 226 | + | ||
| 227 | + <LinearLayout | ||
| 228 | + android:layout_width="wrap_content" | ||
| 229 | + android:layout_height="wrap_content" | ||
| 230 | + android:layout_alignParentRight="true" | ||
| 231 | + android:layout_centerVertical="true" | ||
| 232 | + android:layout_marginRight="@dimen/rmrb_dp12" | ||
| 233 | + android:orientation="horizontal"> | ||
| 234 | + | ||
| 235 | + <com.wd.foundation.wdkit.view.customtextview.RegularTextView | ||
| 236 | + android:id="@+id/tv_night_mode" | ||
| 237 | + android:layout_width="wrap_content" | ||
| 238 | + android:layout_height="wrap_content" | ||
| 239 | + android:layout_gravity="center_vertical" | ||
| 240 | + android:textColor="@color/res_color_common_C1_s2" | ||
| 241 | + android:textSize="@dimen/rmrb_dp14" | ||
| 242 | + android:layout_marginRight="@dimen/rmrb_dp4"/> | ||
| 243 | + | ||
| 244 | + <ImageView | ||
| 245 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 246 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 247 | + android:layout_gravity="center_vertical" | ||
| 248 | + android:background="@mipmap/icon_mine_next_gray" /> | ||
| 249 | + | ||
| 250 | + </LinearLayout> | ||
| 251 | + | ||
| 252 | + <View | ||
| 253 | + android:layout_width="match_parent" | ||
| 254 | + android:layout_height="@dimen/rmrb_dp0_5" | ||
| 255 | + android:layout_alignParentBottom="true" | ||
| 256 | + android:layout_marginLeft="@dimen/rmrb_dp16" | ||
| 257 | + android:layout_marginRight="@dimen/rmrb_dp16" | ||
| 258 | + android:background="@color/res_color_common_C6" /> | ||
| 259 | + </RelativeLayout> | ||
| 260 | + | ||
| 261 | + <!--我的奖品--> | ||
| 262 | + <RelativeLayout | ||
| 263 | + android:id="@+id/layout_my_prize" | ||
| 264 | + android:layout_width="match_parent" | ||
| 265 | + android:layout_height="@dimen/rmrb_dp56" | ||
| 266 | + android:visibility="gone"> | ||
| 267 | + | ||
| 268 | + <ImageView | ||
| 269 | + android:id="@+id/img_my_prize" | ||
| 270 | + android:layout_width="@dimen/rmrb_dp20" | ||
| 271 | + android:layout_height="@dimen/rmrb_dp20" | ||
| 272 | + android:layout_centerVertical="true" | ||
| 273 | + android:layout_marginLeft="@dimen/rmrb_dp14" | ||
| 274 | + android:background="@mipmap/icon_mine_my_prize" /> | ||
| 275 | + | ||
| 276 | + <TextView | ||
| 277 | + android:id="@+id/tv_my_prize" | ||
| 278 | + android:layout_width="wrap_content" | ||
| 279 | + android:layout_height="wrap_content" | ||
| 280 | + android:layout_centerVertical="true" | ||
| 281 | + android:layout_marginLeft="@dimen/rmrb_dp8" | ||
| 282 | + android:layout_toRightOf="@+id/img_my_prize" | ||
| 283 | + android:text="@string/res_str_my_prize" | ||
| 284 | + android:textColor="@color/res_color_common_C1" | ||
| 285 | + android:textSize="@dimen/rmrb_dp15" /> | ||
| 286 | + | ||
| 287 | + <LinearLayout | ||
| 288 | + android:layout_width="wrap_content" | ||
| 289 | + android:layout_height="wrap_content" | ||
| 290 | + android:layout_alignParentRight="true" | ||
| 291 | + android:layout_centerVertical="true" | ||
| 292 | + android:layout_marginRight="@dimen/rmrb_dp12" | ||
| 293 | + android:orientation="horizontal"> | ||
| 294 | + | ||
| 295 | + <TextView | ||
| 296 | + android:layout_width="wrap_content" | ||
| 297 | + android:layout_height="wrap_content" | ||
| 298 | + android:layout_gravity="center_vertical" | ||
| 299 | + android:text="@string/res_str_more" | ||
| 300 | + android:textColor="@color/res_color_common_C3" | ||
| 301 | + android:textSize="@dimen/rmrb_dp14" | ||
| 302 | + android:visibility="gone" /> | ||
| 303 | + | ||
| 304 | + <ImageView | ||
| 305 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 306 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 307 | + android:layout_gravity="center_vertical" | ||
| 308 | + android:background="@mipmap/icon_mine_next_gray" /> | ||
| 309 | + | ||
| 310 | + </LinearLayout> | ||
| 311 | + | ||
| 312 | + <View | ||
| 313 | + android:layout_width="match_parent" | ||
| 314 | + android:layout_height="@dimen/rmrb_dp0_5" | ||
| 315 | + android:layout_alignParentBottom="true" | ||
| 316 | + android:layout_marginLeft="@dimen/rmrb_dp16" | ||
| 317 | + android:layout_marginRight="@dimen/rmrb_dp16" | ||
| 318 | + android:background="@color/res_color_common_C6" /> | ||
| 319 | + </RelativeLayout> | ||
| 320 | + <!--意见反馈--> | ||
| 321 | + <RelativeLayout | ||
| 322 | + android:id="@+id/layout_feed_back" | ||
| 323 | + android:layout_width="match_parent" | ||
| 324 | + android:layout_height="@dimen/rmrb_dp56"> | ||
| 325 | + | ||
| 326 | + | ||
| 327 | + <ImageView | ||
| 328 | + android:id="@+id/img_feed_back" | ||
| 329 | + android:layout_width="@dimen/rmrb_dp20" | ||
| 330 | + android:layout_height="@dimen/rmrb_dp20" | ||
| 331 | + android:layout_centerVertical="true" | ||
| 332 | + android:layout_marginLeft="@dimen/rmrb_dp14" | ||
| 333 | + android:background="@mipmap/icon_mine_feedback" /> | ||
| 334 | + | ||
| 335 | + <TextView | ||
| 336 | + android:id="@+id/tv_feed_back" | ||
| 337 | + android:layout_width="wrap_content" | ||
| 338 | + android:layout_height="wrap_content" | ||
| 339 | + android:layout_centerVertical="true" | ||
| 340 | + android:layout_marginLeft="@dimen/rmrb_dp8" | ||
| 341 | + android:layout_toRightOf="@+id/img_feed_back" | ||
| 342 | + android:text="@string/res_str_feed_back" | ||
| 343 | + android:textColor="@color/res_color_common_C1" | ||
| 344 | + android:textSize="@dimen/rmrb_dp15" /> | ||
| 345 | + | ||
| 346 | + <LinearLayout | ||
| 347 | + android:layout_width="wrap_content" | ||
| 348 | + android:layout_height="wrap_content" | ||
| 349 | + android:layout_alignParentRight="true" | ||
| 350 | + android:layout_centerVertical="true" | ||
| 351 | + android:layout_marginRight="@dimen/rmrb_dp12" | ||
| 352 | + android:orientation="horizontal"> | ||
| 353 | + | ||
| 354 | + <TextView | ||
| 355 | + android:layout_width="wrap_content" | ||
| 356 | + android:layout_height="wrap_content" | ||
| 357 | + android:layout_gravity="center_vertical" | ||
| 358 | + android:text="@string/res_str_more" | ||
| 359 | + android:textColor="@color/res_color_common_C3" | ||
| 360 | + android:textSize="@dimen/rmrb_dp14" | ||
| 361 | + android:visibility="gone" /> | ||
| 362 | + | ||
| 363 | + <ImageView | ||
| 364 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 365 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 366 | + android:layout_gravity="center_vertical" | ||
| 367 | + android:background="@mipmap/icon_mine_next_gray" /> | ||
| 368 | + | ||
| 369 | + </LinearLayout> | ||
| 370 | + | ||
| 371 | + <View | ||
| 372 | + android:layout_width="match_parent" | ||
| 373 | + android:layout_height="@dimen/rmrb_dp0_5" | ||
| 374 | + android:layout_alignParentBottom="true" | ||
| 375 | + android:layout_marginLeft="@dimen/rmrb_dp16" | ||
| 376 | + android:layout_marginRight="@dimen/rmrb_dp16" | ||
| 377 | + android:background="@color/res_color_common_C6" /> | ||
| 378 | + </RelativeLayout> | ||
| 379 | + <!--设置--> | ||
| 380 | + <RelativeLayout | ||
| 381 | + android:id="@+id/layout_setting" | ||
| 382 | + android:layout_width="match_parent" | ||
| 383 | + android:layout_height="@dimen/rmrb_dp56"> | ||
| 384 | + | ||
| 385 | + | ||
| 386 | + <ImageView | ||
| 387 | + android:id="@+id/img_setting" | ||
| 388 | + android:layout_width="@dimen/rmrb_dp20" | ||
| 389 | + android:layout_height="@dimen/rmrb_dp20" | ||
| 390 | + android:layout_centerVertical="true" | ||
| 391 | + android:layout_marginLeft="@dimen/rmrb_dp14" | ||
| 392 | + android:background="@mipmap/icon_mine_setting" /> | ||
| 393 | + | ||
| 394 | + <TextView | ||
| 395 | + android:id="@+id/tv_setting" | ||
| 396 | + android:layout_width="wrap_content" | ||
| 397 | + android:layout_height="wrap_content" | ||
| 398 | + android:layout_centerVertical="true" | ||
| 399 | + android:layout_marginLeft="@dimen/rmrb_dp8" | ||
| 400 | + android:layout_toRightOf="@+id/img_setting" | ||
| 401 | + android:text="@string/res_str_setting" | ||
| 402 | + android:textColor="@color/res_color_common_C1" | ||
| 403 | + android:textSize="@dimen/rmrb_dp15" /> | ||
| 404 | + | ||
| 405 | + <LinearLayout | ||
| 406 | + android:layout_width="wrap_content" | ||
| 407 | + android:layout_height="wrap_content" | ||
| 408 | + android:layout_alignParentRight="true" | ||
| 409 | + android:layout_centerVertical="true" | ||
| 410 | + android:layout_marginRight="@dimen/rmrb_dp12" | ||
| 411 | + android:orientation="horizontal"> | ||
| 412 | + | ||
| 413 | + <TextView | ||
| 414 | + android:layout_width="wrap_content" | ||
| 415 | + android:layout_height="wrap_content" | ||
| 416 | + android:layout_gravity="center_vertical" | ||
| 417 | + android:text="@string/res_str_more" | ||
| 418 | + android:textColor="@color/res_color_common_C3" | ||
| 419 | + android:textSize="@dimen/rmrb_dp14" | ||
| 420 | + android:visibility="gone" /> | ||
| 421 | + | ||
| 422 | + <ImageView | ||
| 423 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 424 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 425 | + android:layout_gravity="center_vertical" | ||
| 426 | + android:background="@mipmap/icon_mine_next_gray" /> | ||
| 427 | + | ||
| 428 | + </LinearLayout> | ||
| 429 | + | ||
| 430 | + <View | ||
| 431 | + android:layout_width="match_parent" | ||
| 432 | + android:layout_height="@dimen/rmrb_dp0_5" | ||
| 433 | + android:layout_alignParentBottom="true" | ||
| 434 | + android:layout_marginLeft="@dimen/rmrb_dp16" | ||
| 435 | + android:layout_marginRight="@dimen/rmrb_dp16" | ||
| 436 | + android:background="@color/res_color_common_C6" /> | ||
| 437 | + </RelativeLayout> | ||
| 438 | + <!--关于--> | ||
| 439 | + <RelativeLayout | ||
| 440 | + android:id="@+id/layout_about" | ||
| 441 | + android:layout_width="match_parent" | ||
| 442 | + android:layout_height="@dimen/rmrb_dp56"> | ||
| 443 | + | ||
| 444 | + <ImageView | ||
| 445 | + android:id="@+id/img_about" | ||
| 446 | + android:layout_width="@dimen/rmrb_dp20" | ||
| 447 | + android:layout_height="@dimen/rmrb_dp20" | ||
| 448 | + android:layout_centerVertical="true" | ||
| 449 | + android:layout_marginLeft="@dimen/rmrb_dp14" | ||
| 450 | + android:background="@mipmap/icon_mine_about" /> | ||
| 451 | + | ||
| 452 | + <TextView | ||
| 453 | + android:id="@+id/tv_about" | ||
| 454 | + android:layout_width="wrap_content" | ||
| 455 | + android:layout_height="wrap_content" | ||
| 456 | + android:layout_centerVertical="true" | ||
| 457 | + android:layout_marginLeft="@dimen/rmrb_dp8" | ||
| 458 | + android:layout_toRightOf="@+id/img_about" | ||
| 459 | + android:text="@string/res_str_about" | ||
| 460 | + android:textColor="@color/res_color_common_C1" | ||
| 461 | + android:textSize="@dimen/rmrb_dp15" /> | ||
| 462 | + | ||
| 463 | + <LinearLayout | ||
| 464 | + android:layout_width="wrap_content" | ||
| 465 | + android:layout_height="wrap_content" | ||
| 466 | + android:layout_alignParentRight="true" | ||
| 467 | + android:layout_centerVertical="true" | ||
| 468 | + android:layout_marginRight="@dimen/rmrb_dp12" | ||
| 469 | + android:orientation="horizontal"> | ||
| 470 | + | ||
| 471 | + <TextView | ||
| 472 | + android:layout_width="wrap_content" | ||
| 473 | + android:layout_height="wrap_content" | ||
| 474 | + android:layout_gravity="center_vertical" | ||
| 475 | + android:text="@string/res_str_more" | ||
| 476 | + android:textColor="@color/res_color_common_C3" | ||
| 477 | + android:textSize="@dimen/rmrb_dp14" | ||
| 478 | + android:visibility="gone" /> | ||
| 479 | + | ||
| 480 | + <ImageView | ||
| 481 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 482 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 483 | + android:layout_gravity="center_vertical" | ||
| 484 | + android:background="@mipmap/icon_mine_next_gray" /> | ||
| 485 | + | ||
| 486 | + </LinearLayout> | ||
| 487 | + | ||
| 488 | + </RelativeLayout> | ||
| 489 | + | ||
| 490 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 4 | + android:id="@+id/mine_second_layout" | ||
| 5 | + android:layout_width="match_parent" | ||
| 6 | + android:layout_height="@dimen/rmrb_dp60" | ||
| 7 | + android:layout_gravity="center_horizontal" | ||
| 8 | + android:layout_marginTop="@dimen/rmrb_dp12" | ||
| 9 | + android:layout_marginHorizontal="@dimen/rmrb_dp12" | ||
| 10 | + android:visibility="gone" | ||
| 11 | + tools:visibility="visible"> | ||
| 12 | + | ||
| 13 | + <ImageView | ||
| 14 | + android:id="@+id/img_sec_left" | ||
| 15 | + android:layout_width="@dimen/rmrb_dp182" | ||
| 16 | + android:layout_height="match_parent" | ||
| 17 | + android:visibility="gone" | ||
| 18 | + tools:visibility="visible"/> | ||
| 19 | + | ||
| 20 | + <ImageView | ||
| 21 | + android:id="@+id/img_sec_right" | ||
| 22 | + android:layout_width="@dimen/rmrb_dp182" | ||
| 23 | + android:layout_height="match_parent" | ||
| 24 | + android:visibility="gone" | ||
| 25 | + tools:visibility="visible" | ||
| 26 | + android:layout_alignParentRight="true"/> | ||
| 27 | + | ||
| 28 | + <ImageView | ||
| 29 | + android:id="@+id/img_sec_single" | ||
| 30 | + android:layout_width="match_parent" | ||
| 31 | + android:layout_height="match_parent" | ||
| 32 | + android:visibility="gone" | ||
| 33 | + tools:visibility="visible"/> | ||
| 34 | + | ||
| 35 | +</RelativeLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + android:id="@+id/layout_mine_top_login" | ||
| 6 | + android:layout_width="match_parent" | ||
| 7 | + android:layout_height="wrap_content" | ||
| 8 | + android:layout_marginTop="@dimen/rmrb_dp46" | ||
| 9 | + android:orientation="vertical" | ||
| 10 | + android:visibility="gone" | ||
| 11 | + tools:visibility="visible"> | ||
| 12 | + | ||
| 13 | + <RelativeLayout | ||
| 14 | + android:layout_width="match_parent" | ||
| 15 | + android:layout_height="@dimen/rmrb_dp86"> | ||
| 16 | + | ||
| 17 | + <RelativeLayout | ||
| 18 | + android:id="@+id/layout_head" | ||
| 19 | + android:layout_width="@dimen/rmrb_dp86" | ||
| 20 | + android:layout_height="@dimen/rmrb_dp86" | ||
| 21 | + android:layout_marginLeft="@dimen/rmrb_dp11"> | ||
| 22 | + | ||
| 23 | + <com.wd.foundation.wdkit.view.CircleImageView | ||
| 24 | + android:id="@+id/img_head" | ||
| 25 | + android:layout_width="@dimen/rmrb_dp60" | ||
| 26 | + android:layout_height="@dimen/rmrb_dp60" | ||
| 27 | + android:layout_centerInParent="true" | ||
| 28 | + android:src="@mipmap/icon_default_head" /> | ||
| 29 | + | ||
| 30 | + <View | ||
| 31 | + android:layout_width="@dimen/rmrb_dp61" | ||
| 32 | + android:layout_height="@dimen/rmrb_dp61" | ||
| 33 | + android:layout_centerInParent="true" | ||
| 34 | + android:background="@drawable/shape_header_circle_000000_60" /> | ||
| 35 | + | ||
| 36 | + <!-- 人民号认证加V-个人中心--> | ||
| 37 | + <FrameLayout | ||
| 38 | + android:id="@+id/layout_vip" | ||
| 39 | + android:layout_width="wrap_content" | ||
| 40 | + android:layout_height="wrap_content" | ||
| 41 | + android:layout_alignBottom="@+id/img_head" | ||
| 42 | + android:layout_alignRight="@+id/img_head" | ||
| 43 | + android:visibility="gone"> | ||
| 44 | + | ||
| 45 | + <com.wd.foundation.wdkit.view.RoundImageView | ||
| 46 | + android:id="@+id/iv_vip" | ||
| 47 | + android:layout_width="@dimen/rmrb_dp20" | ||
| 48 | + android:layout_height="@dimen/rmrb_dp20" | ||
| 49 | + android:scaleType="fitXY" /> | ||
| 50 | + | ||
| 51 | + </FrameLayout> | ||
| 52 | + | ||
| 53 | + <ImageView | ||
| 54 | + android:id="@+id/img_avatar_frame" | ||
| 55 | + android:layout_width="match_parent" | ||
| 56 | + android:layout_height="match_parent" | ||
| 57 | + android:scaleType="fitXY" | ||
| 58 | + android:visibility="gone"/> | ||
| 59 | + | ||
| 60 | + </RelativeLayout> | ||
| 61 | + | ||
| 62 | + <LinearLayout | ||
| 63 | + android:layout_width="wrap_content" | ||
| 64 | + android:layout_height="wrap_content" | ||
| 65 | + android:layout_centerVertical="true" | ||
| 66 | + android:layout_toRightOf="@+id/layout_head" | ||
| 67 | + android:orientation="vertical"> | ||
| 68 | + | ||
| 69 | + <LinearLayout | ||
| 70 | + android:id="@+id/layout_name" | ||
| 71 | + android:layout_width="wrap_content" | ||
| 72 | + android:layout_height="wrap_content" | ||
| 73 | + android:gravity="center_vertical" | ||
| 74 | + android:orientation="horizontal"> | ||
| 75 | + | ||
| 76 | + <com.wd.foundation.wdkit.view.customtextview.StrokeWidthTextView | ||
| 77 | + android:id="@+id/tv_name" | ||
| 78 | + android:layout_width="wrap_content" | ||
| 79 | + android:layout_height="wrap_content" | ||
| 80 | + android:maxWidth="@dimen/rmrb_dp185" | ||
| 81 | + android:text="" | ||
| 82 | + android:textColor="@color/res_color_common_C1" | ||
| 83 | + android:textSize="@dimen/rmrb_dp20" | ||
| 84 | + app:text_stroke_width="1" | ||
| 85 | + android:maxLines="1" | ||
| 86 | + android:ellipsize="end"/> | ||
| 87 | + | ||
| 88 | + <ImageView | ||
| 89 | + android:id="@+id/tvNameArrow" | ||
| 90 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 91 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 92 | + android:src="@mipmap/icon_mine_next_black" /> | ||
| 93 | + | ||
| 94 | + </LinearLayout> | ||
| 95 | + | ||
| 96 | + <TextView | ||
| 97 | + android:id="@+id/tv_lv" | ||
| 98 | + android:layout_width="wrap_content" | ||
| 99 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 100 | + android:layout_marginTop="8dp" | ||
| 101 | + android:background="@mipmap/mine_lv_bg" | ||
| 102 | + android:gravity="center" | ||
| 103 | + android:paddingLeft="@dimen/rmrb_dp9" | ||
| 104 | + android:paddingRight="@dimen/rmrb_dp9" | ||
| 105 | + android:text="等级1" | ||
| 106 | + android:textColor="@color/res_color_common_C8_keep" | ||
| 107 | + android:textSize="@dimen/rmrb_dp10" | ||
| 108 | + android:textStyle="bold" | ||
| 109 | + android:visibility="gone" /> | ||
| 110 | + | ||
| 111 | + </LinearLayout> | ||
| 112 | + | ||
| 113 | + <FrameLayout | ||
| 114 | + android:id="@+id/layout_sign_in" | ||
| 115 | + android:layout_width="wrap_content" | ||
| 116 | + android:layout_height="wrap_content" | ||
| 117 | + android:layout_alignParentRight="true" | ||
| 118 | + android:layout_centerVertical="true"> | ||
| 119 | + | ||
| 120 | + <TextView | ||
| 121 | + android:id="@+id/tv_sign_in" | ||
| 122 | + android:layout_width="@dimen/rmrb_dp56" | ||
| 123 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 124 | + android:layout_gravity="center_vertical" | ||
| 125 | + android:layout_marginLeft="@dimen/rmrb_dp13" | ||
| 126 | + android:background="@mipmap/bg_sign_in" | ||
| 127 | + android:gravity="center" | ||
| 128 | + android:text="签到" | ||
| 129 | + android:textColor="@color/res_color_common_C14" | ||
| 130 | + android:textSize="@dimen/rmrb_dp13" | ||
| 131 | + android:textStyle="bold" /> | ||
| 132 | + | ||
| 133 | + <ImageView | ||
| 134 | + android:layout_width="@dimen/rmrb_dp26" | ||
| 135 | + android:layout_height="@dimen/rmrb_dp26" | ||
| 136 | + android:layout_gravity="center_vertical" | ||
| 137 | + android:layout_toLeftOf="@+id/tv_sign_in" | ||
| 138 | + android:background="@mipmap/icon_mine_sign_in" | ||
| 139 | + android:scaleType="fitXY" /> | ||
| 140 | + | ||
| 141 | + </FrameLayout> | ||
| 142 | + | ||
| 143 | + </RelativeLayout> | ||
| 144 | + | ||
| 145 | + <LinearLayout | ||
| 146 | + android:layout_width="match_parent" | ||
| 147 | + android:layout_height="@dimen/rmrb_dp61" | ||
| 148 | + android:layout_marginLeft="@dimen/rmrb_dp12" | ||
| 149 | + android:layout_marginRight="@dimen/rmrb_dp11" | ||
| 150 | + android:orientation="horizontal"> | ||
| 151 | + | ||
| 152 | + <FrameLayout | ||
| 153 | + android:id="@+id/layout_comment" | ||
| 154 | + android:layout_width="0dp" | ||
| 155 | + android:layout_height="match_parent" | ||
| 156 | + android:layout_weight="1"> | ||
| 157 | + | ||
| 158 | + <LinearLayout | ||
| 159 | + android:layout_width="wrap_content" | ||
| 160 | + android:layout_height="wrap_content" | ||
| 161 | + android:layout_gravity="center" | ||
| 162 | + android:orientation="vertical"> | ||
| 163 | + | ||
| 164 | + <ImageView | ||
| 165 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 166 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 167 | + android:layout_gravity="center_horizontal" | ||
| 168 | + android:src="@mipmap/icon_mine_comment" /> | ||
| 169 | + | ||
| 170 | + <TextView | ||
| 171 | + android:layout_width="wrap_content" | ||
| 172 | + android:layout_height="wrap_content" | ||
| 173 | + android:layout_gravity="center_horizontal" | ||
| 174 | + android:ellipsize="end" | ||
| 175 | + android:maxLines="1" | ||
| 176 | + android:text="@string/res_str_comment" | ||
| 177 | + android:textColor="@color/res_color_common_C1" | ||
| 178 | + android:textSize="@dimen/rmrb_dp12" | ||
| 179 | + android:layout_marginTop="@dimen/rmrb_dp4" /> | ||
| 180 | + | ||
| 181 | + </LinearLayout> | ||
| 182 | + | ||
| 183 | + </FrameLayout> | ||
| 184 | + | ||
| 185 | + <FrameLayout | ||
| 186 | + android:id="@+id/layout_attention" | ||
| 187 | + android:layout_width="0dp" | ||
| 188 | + android:layout_height="match_parent" | ||
| 189 | + android:layout_weight="1"> | ||
| 190 | + | ||
| 191 | + <View | ||
| 192 | + android:layout_width="1dp" | ||
| 193 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 194 | + android:layout_gravity="center_vertical" | ||
| 195 | + android:background="@color/res_color_general_222222_10" /> | ||
| 196 | + | ||
| 197 | + <LinearLayout | ||
| 198 | + android:layout_width="wrap_content" | ||
| 199 | + android:layout_height="wrap_content" | ||
| 200 | + android:layout_gravity="center" | ||
| 201 | + android:orientation="vertical"> | ||
| 202 | + | ||
| 203 | + <ImageView | ||
| 204 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 205 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 206 | + android:layout_gravity="center_horizontal" | ||
| 207 | + android:src="@mipmap/icon_mine_attention" /> | ||
| 208 | + | ||
| 209 | + <TextView | ||
| 210 | + android:layout_width="wrap_content" | ||
| 211 | + android:layout_height="wrap_content" | ||
| 212 | + android:layout_gravity="center_horizontal" | ||
| 213 | + android:ellipsize="end" | ||
| 214 | + android:maxLines="1" | ||
| 215 | + android:text="@string/res_str_attention" | ||
| 216 | + android:textColor="@color/res_color_common_C1" | ||
| 217 | + android:textSize="@dimen/rmrb_dp12" | ||
| 218 | + android:layout_marginTop="@dimen/rmrb_dp4" /> | ||
| 219 | + | ||
| 220 | + </LinearLayout> | ||
| 221 | + | ||
| 222 | + </FrameLayout> | ||
| 223 | + | ||
| 224 | + <FrameLayout | ||
| 225 | + android:id="@+id/layout_collect" | ||
| 226 | + android:layout_width="0dp" | ||
| 227 | + android:layout_height="match_parent" | ||
| 228 | + android:layout_weight="1"> | ||
| 229 | + | ||
| 230 | + <View | ||
| 231 | + android:layout_width="1dp" | ||
| 232 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 233 | + android:layout_gravity="center_vertical" | ||
| 234 | + android:background="@color/res_color_general_222222_10" /> | ||
| 235 | + | ||
| 236 | + <LinearLayout | ||
| 237 | + android:layout_width="wrap_content" | ||
| 238 | + android:layout_height="wrap_content" | ||
| 239 | + android:layout_gravity="center" | ||
| 240 | + android:orientation="vertical"> | ||
| 241 | + | ||
| 242 | + <ImageView | ||
| 243 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 244 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 245 | + android:layout_gravity="center_horizontal" | ||
| 246 | + android:src="@mipmap/icon_mine_collect" /> | ||
| 247 | + | ||
| 248 | + <TextView | ||
| 249 | + android:layout_width="wrap_content" | ||
| 250 | + android:layout_height="wrap_content" | ||
| 251 | + android:layout_gravity="center_horizontal" | ||
| 252 | + android:ellipsize="end" | ||
| 253 | + android:maxLines="1" | ||
| 254 | + android:text="@string/res_str_collect" | ||
| 255 | + android:textColor="@color/res_color_common_C1" | ||
| 256 | + android:textSize="@dimen/rmrb_dp12" | ||
| 257 | + android:layout_marginTop="@dimen/rmrb_dp4" /> | ||
| 258 | + | ||
| 259 | + </LinearLayout> | ||
| 260 | + | ||
| 261 | + </FrameLayout> | ||
| 262 | + | ||
| 263 | + <FrameLayout | ||
| 264 | + android:id="@+id/layout_history" | ||
| 265 | + android:layout_width="0dp" | ||
| 266 | + android:layout_height="match_parent" | ||
| 267 | + android:layout_weight="1"> | ||
| 268 | + | ||
| 269 | + <View | ||
| 270 | + android:layout_width="1dp" | ||
| 271 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 272 | + android:layout_gravity="center_vertical" | ||
| 273 | + android:background="@color/res_color_general_222222_10" /> | ||
| 274 | + | ||
| 275 | + <LinearLayout | ||
| 276 | + android:layout_width="wrap_content" | ||
| 277 | + android:layout_height="wrap_content" | ||
| 278 | + android:layout_gravity="center" | ||
| 279 | + android:orientation="vertical"> | ||
| 280 | + | ||
| 281 | + <ImageView | ||
| 282 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 283 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 284 | + android:layout_gravity="center_horizontal" | ||
| 285 | + android:src="@mipmap/icon_mine_history" /> | ||
| 286 | + | ||
| 287 | + <TextView | ||
| 288 | + android:layout_width="wrap_content" | ||
| 289 | + android:layout_height="wrap_content" | ||
| 290 | + android:layout_gravity="center_horizontal" | ||
| 291 | + android:ellipsize="end" | ||
| 292 | + android:maxLines="1" | ||
| 293 | + android:text="@string/res_str_history" | ||
| 294 | + android:textColor="@color/res_color_common_C1" | ||
| 295 | + android:textSize="@dimen/rmrb_dp12" | ||
| 296 | + android:layout_marginTop="@dimen/rmrb_dp4" /> | ||
| 297 | + | ||
| 298 | + </LinearLayout> | ||
| 299 | + | ||
| 300 | + </FrameLayout> | ||
| 301 | + | ||
| 302 | + </LinearLayout> | ||
| 303 | + | ||
| 304 | + <LinearLayout | ||
| 305 | + android:layout_width="match_parent" | ||
| 306 | + android:layout_height="@dimen/rmrb_dp61" | ||
| 307 | + android:layout_marginLeft="@dimen/rmrb_dp12" | ||
| 308 | + android:layout_marginRight="@dimen/rmrb_dp11" | ||
| 309 | + android:orientation="horizontal"> | ||
| 310 | + | ||
| 311 | + <FrameLayout | ||
| 312 | + android:id="@+id/layout_message" | ||
| 313 | + android:layout_width="0dp" | ||
| 314 | + android:layout_height="match_parent" | ||
| 315 | + android:layout_weight="1" | ||
| 316 | + android:visibility="visible"> | ||
| 317 | + | ||
| 318 | + <LinearLayout | ||
| 319 | + android:layout_width="wrap_content" | ||
| 320 | + android:layout_height="wrap_content" | ||
| 321 | + android:layout_gravity="center" | ||
| 322 | + android:orientation="vertical"> | ||
| 323 | + | ||
| 324 | + <RelativeLayout | ||
| 325 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 326 | + android:layout_height="wrap_content" | ||
| 327 | + android:layout_gravity="center_horizontal"> | ||
| 328 | + | ||
| 329 | + <ImageView | ||
| 330 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 331 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 332 | + android:src="@mipmap/icon_mine_message" /> | ||
| 333 | + | ||
| 334 | + <com.wd.foundation.wdkit.view.CircleImageView | ||
| 335 | + android:id="@+id/view_message_red" | ||
| 336 | + android:layout_width="@dimen/rmrb_dp8" | ||
| 337 | + android:layout_height="@dimen/rmrb_dp8" | ||
| 338 | + android:layout_alignParentRight="true" | ||
| 339 | + android:src="@color/res_color_common_C11" | ||
| 340 | + android:visibility="gone" | ||
| 341 | + app:civ_border_color="@color/res_color_common_C8" | ||
| 342 | + app:civ_border_overlay="true" | ||
| 343 | + app:civ_border_width="@dimen/rmrb_dp1" /> | ||
| 344 | + | ||
| 345 | + </RelativeLayout> | ||
| 346 | + | ||
| 347 | + <TextView | ||
| 348 | + android:layout_width="wrap_content" | ||
| 349 | + android:layout_height="wrap_content" | ||
| 350 | + android:layout_gravity="center_horizontal" | ||
| 351 | + android:ellipsize="end" | ||
| 352 | + android:maxLines="1" | ||
| 353 | + android:text="@string/res_str_message" | ||
| 354 | + android:textColor="@color/res_color_common_C1" | ||
| 355 | + android:textSize="@dimen/rmrb_dp12" | ||
| 356 | + android:layout_marginTop="@dimen/rmrb_dp4"/> | ||
| 357 | + | ||
| 358 | + </LinearLayout> | ||
| 359 | + | ||
| 360 | + </FrameLayout> | ||
| 361 | + | ||
| 362 | + <FrameLayout | ||
| 363 | + android:id="@+id/layout_ask_politics" | ||
| 364 | + android:layout_width="0dp" | ||
| 365 | + android:layout_height="match_parent" | ||
| 366 | + android:layout_weight="1" | ||
| 367 | + android:visibility="visible"> | ||
| 368 | + | ||
| 369 | + <View | ||
| 370 | + android:layout_width="1dp" | ||
| 371 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 372 | + android:layout_gravity="center_vertical" | ||
| 373 | + android:background="@color/res_color_general_222222_10" | ||
| 374 | + android:visibility="visible" /> | ||
| 375 | + | ||
| 376 | + <LinearLayout | ||
| 377 | + android:layout_width="wrap_content" | ||
| 378 | + android:layout_height="wrap_content" | ||
| 379 | + android:layout_gravity="center" | ||
| 380 | + android:orientation="vertical"> | ||
| 381 | + | ||
| 382 | + <RelativeLayout | ||
| 383 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 384 | + android:layout_height="wrap_content" | ||
| 385 | + android:layout_gravity="center_horizontal"> | ||
| 386 | + | ||
| 387 | + <ImageView | ||
| 388 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 389 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 390 | + android:layout_gravity="center_horizontal" | ||
| 391 | + android:src="@mipmap/icon_mine_ask_politics" /> | ||
| 392 | + | ||
| 393 | + <com.wd.foundation.wdkit.view.CircleImageView | ||
| 394 | + android:id="@+id/view_ask_red" | ||
| 395 | + android:layout_width="@dimen/rmrb_dp8" | ||
| 396 | + android:layout_height="@dimen/rmrb_dp8" | ||
| 397 | + android:layout_alignParentRight="true" | ||
| 398 | + android:src="@color/res_color_common_C11" | ||
| 399 | + android:visibility="gone" | ||
| 400 | + app:civ_border_color="@color/res_color_common_C8" | ||
| 401 | + app:civ_border_overlay="true" | ||
| 402 | + app:civ_border_width="@dimen/rmrb_dp1"/> | ||
| 403 | + | ||
| 404 | + </RelativeLayout> | ||
| 405 | + | ||
| 406 | + <TextView | ||
| 407 | + android:layout_width="wrap_content" | ||
| 408 | + android:layout_height="wrap_content" | ||
| 409 | + android:layout_gravity="center_horizontal" | ||
| 410 | + android:ellipsize="end" | ||
| 411 | + android:maxLines="1" | ||
| 412 | + android:text="@string/res_str_message_board" | ||
| 413 | + android:textColor="@color/res_color_common_C1" | ||
| 414 | + android:textSize="@dimen/rmrb_dp12" | ||
| 415 | + android:layout_marginTop="@dimen/rmrb_dp4" /> | ||
| 416 | + | ||
| 417 | + </LinearLayout> | ||
| 418 | + | ||
| 419 | + </FrameLayout> | ||
| 420 | + | ||
| 421 | + <FrameLayout | ||
| 422 | + android:id="@+id/layout_subscribe" | ||
| 423 | + android:layout_width="0dp" | ||
| 424 | + android:layout_height="match_parent" | ||
| 425 | + android:layout_weight="1"> | ||
| 426 | + | ||
| 427 | + <View | ||
| 428 | + android:layout_width="1dp" | ||
| 429 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 430 | + android:layout_gravity="center_vertical" | ||
| 431 | + android:background="@color/res_color_general_222222_10" | ||
| 432 | + android:visibility="visible" /> | ||
| 433 | + | ||
| 434 | + <LinearLayout | ||
| 435 | + android:layout_width="wrap_content" | ||
| 436 | + android:layout_height="wrap_content" | ||
| 437 | + android:layout_gravity="center" | ||
| 438 | + android:orientation="vertical"> | ||
| 439 | + | ||
| 440 | + <RelativeLayout | ||
| 441 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 442 | + android:layout_height="wrap_content" | ||
| 443 | + android:layout_gravity="center_horizontal"> | ||
| 444 | + | ||
| 445 | + <ImageView | ||
| 446 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 447 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 448 | + android:src="@mipmap/icon_mine_subscribe" /> | ||
| 449 | + | ||
| 450 | + <com.wd.foundation.wdkit.view.CircleImageView | ||
| 451 | + android:id="@+id/view_subscribe_red" | ||
| 452 | + android:layout_width="@dimen/rmrb_dp8" | ||
| 453 | + android:layout_height="@dimen/rmrb_dp8" | ||
| 454 | + android:layout_alignParentRight="true" | ||
| 455 | + android:src="@color/res_color_common_C11" | ||
| 456 | + android:visibility="gone" | ||
| 457 | + app:civ_border_color="@color/res_color_common_C8" | ||
| 458 | + app:civ_border_overlay="true" | ||
| 459 | + app:civ_border_width="@dimen/rmrb_dp1"/> | ||
| 460 | + | ||
| 461 | + </RelativeLayout> | ||
| 462 | + | ||
| 463 | + <TextView | ||
| 464 | + android:layout_width="wrap_content" | ||
| 465 | + android:layout_height="wrap_content" | ||
| 466 | + android:layout_gravity="center_horizontal" | ||
| 467 | + android:ellipsize="end" | ||
| 468 | + android:maxLines="1" | ||
| 469 | + android:text="@string/res_str_subscribe" | ||
| 470 | + android:textColor="@color/res_color_common_C1" | ||
| 471 | + android:textSize="@dimen/rmrb_dp12" | ||
| 472 | + android:layout_marginTop="@dimen/rmrb_dp4" /> | ||
| 473 | + | ||
| 474 | + </LinearLayout> | ||
| 475 | + | ||
| 476 | + </FrameLayout> | ||
| 477 | + | ||
| 478 | + <FrameLayout | ||
| 479 | + android:id="@+id/layout_event_submission" | ||
| 480 | + android:layout_width="0dp" | ||
| 481 | + android:layout_height="match_parent" | ||
| 482 | + android:layout_weight="1" | ||
| 483 | + android:visibility="invisible" | ||
| 484 | + tools:visibility="visible"> | ||
| 485 | + | ||
| 486 | + <View | ||
| 487 | + android:layout_width="1dp" | ||
| 488 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 489 | + android:layout_gravity="center_vertical" | ||
| 490 | + android:background="@color/res_color_general_222222_10" | ||
| 491 | + android:visibility="visible" /> | ||
| 492 | + | ||
| 493 | + <LinearLayout | ||
| 494 | + android:layout_width="wrap_content" | ||
| 495 | + android:layout_height="wrap_content" | ||
| 496 | + android:layout_gravity="center" | ||
| 497 | + android:orientation="vertical"> | ||
| 498 | + | ||
| 499 | + <RelativeLayout | ||
| 500 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 501 | + android:layout_height="wrap_content" | ||
| 502 | + android:layout_gravity="center_horizontal"> | ||
| 503 | + | ||
| 504 | + <ImageView | ||
| 505 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 506 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 507 | + android:src="@mipmap/icon_mine_event_submission" /> | ||
| 508 | + | ||
| 509 | + <com.wd.foundation.wdkit.view.CircleImageView | ||
| 510 | + android:id="@+id/view_event_submission_red" | ||
| 511 | + android:layout_width="@dimen/rmrb_dp8" | ||
| 512 | + android:layout_height="@dimen/rmrb_dp8" | ||
| 513 | + android:layout_alignParentRight="true" | ||
| 514 | + android:src="@color/res_color_common_C11" | ||
| 515 | + android:visibility="gone" | ||
| 516 | + app:civ_border_color="@color/res_color_common_C8" | ||
| 517 | + app:civ_border_overlay="true" | ||
| 518 | + app:civ_border_width="@dimen/rmrb_dp1"/> | ||
| 519 | + | ||
| 520 | + </RelativeLayout> | ||
| 521 | + | ||
| 522 | + <TextView | ||
| 523 | + android:layout_width="wrap_content" | ||
| 524 | + android:layout_height="wrap_content" | ||
| 525 | + android:layout_gravity="center_horizontal" | ||
| 526 | + android:ellipsize="end" | ||
| 527 | + android:maxLines="1" | ||
| 528 | + android:text="@string/res_str_event_submission" | ||
| 529 | + android:textColor="@color/res_color_common_C1" | ||
| 530 | + android:textSize="@dimen/rmrb_dp12" | ||
| 531 | + android:layout_marginTop="@dimen/rmrb_dp4" /> | ||
| 532 | + | ||
| 533 | + </LinearLayout> | ||
| 534 | + | ||
| 535 | + </FrameLayout> | ||
| 536 | + </LinearLayout> | ||
| 537 | + | ||
| 538 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 4 | + android:id="@+id/layout_mine_top_un_login" | ||
| 5 | + android:layout_width="match_parent" | ||
| 6 | + android:layout_height="wrap_content" | ||
| 7 | + android:orientation="vertical" | ||
| 8 | + android:layout_marginTop="@dimen/rmrb_dp46"> | ||
| 9 | + | ||
| 10 | + <RelativeLayout | ||
| 11 | + android:layout_width="match_parent" | ||
| 12 | + android:layout_height="@dimen/rmrb_dp86"> | ||
| 13 | + | ||
| 14 | + <RelativeLayout | ||
| 15 | + android:id="@+id/layout_head_un_login" | ||
| 16 | + android:layout_width="@dimen/rmrb_dp86" | ||
| 17 | + android:layout_height="@dimen/rmrb_dp86" | ||
| 18 | + android:layout_marginLeft="@dimen/rmrb_dp11"> | ||
| 19 | + | ||
| 20 | + <com.wd.foundation.wdkit.view.CircleImageView | ||
| 21 | + android:id="@+id/img_head_un_login" | ||
| 22 | + android:layout_width="@dimen/rmrb_dp60" | ||
| 23 | + android:layout_height="@dimen/rmrb_dp60" | ||
| 24 | + android:layout_centerInParent="true" | ||
| 25 | + android:src="@mipmap/icon_default_head" /> | ||
| 26 | + | ||
| 27 | + <View | ||
| 28 | + android:layout_width="@dimen/rmrb_dp61" | ||
| 29 | + android:layout_height="@dimen/rmrb_dp61" | ||
| 30 | + android:layout_centerInParent="true" | ||
| 31 | + android:background="@drawable/shape_header_circle_000000_60"/> | ||
| 32 | + | ||
| 33 | + </RelativeLayout> | ||
| 34 | + | ||
| 35 | + <LinearLayout | ||
| 36 | + android:id="@+id/layout_name_un_login" | ||
| 37 | + android:layout_width="wrap_content" | ||
| 38 | + android:layout_height="wrap_content" | ||
| 39 | + android:gravity="center_vertical" | ||
| 40 | + android:orientation="horizontal" | ||
| 41 | + android:layout_toRightOf="@+id/layout_head_un_login" | ||
| 42 | + android:layout_centerVertical="true"> | ||
| 43 | + | ||
| 44 | + <TextView | ||
| 45 | + android:id="@+id/tv_name_un_login" | ||
| 46 | + android:layout_width="wrap_content" | ||
| 47 | + android:layout_height="wrap_content" | ||
| 48 | + android:textSize="@dimen/rmrb_dp20" | ||
| 49 | + android:textColor="@color/res_color_common_C1" | ||
| 50 | + android:text="登录注册" | ||
| 51 | + android:textStyle="bold"/> | ||
| 52 | + | ||
| 53 | + <ImageView | ||
| 54 | + android:id="@+id/tv_name_un_login_arrow" | ||
| 55 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 56 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 57 | + android:src="@mipmap/icon_mine_next_black"/> | ||
| 58 | + | ||
| 59 | + </LinearLayout> | ||
| 60 | + | ||
| 61 | + <FrameLayout | ||
| 62 | + android:id="@+id/layout_sign_in__un_login" | ||
| 63 | + android:layout_width="wrap_content" | ||
| 64 | + android:layout_height="wrap_content" | ||
| 65 | + android:layout_alignParentRight="true" | ||
| 66 | + android:layout_centerVertical="true"> | ||
| 67 | + | ||
| 68 | + <TextView | ||
| 69 | + android:id="@+id/tv_sign_in_un_login" | ||
| 70 | + android:layout_width="@dimen/rmrb_dp56" | ||
| 71 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 72 | + android:text="签到" | ||
| 73 | + android:textStyle="bold" | ||
| 74 | + android:textSize="@dimen/rmrb_dp13" | ||
| 75 | + android:gravity="center" | ||
| 76 | + android:textColor="@color/res_color_common_C14" | ||
| 77 | + android:background="@mipmap/bg_sign_in" | ||
| 78 | + android:layout_gravity="center_vertical" | ||
| 79 | + android:layout_marginLeft="@dimen/rmrb_dp13"/> | ||
| 80 | + | ||
| 81 | + <ImageView | ||
| 82 | + android:layout_width="@dimen/rmrb_dp26" | ||
| 83 | + android:layout_height="@dimen/rmrb_dp26" | ||
| 84 | + android:background="@mipmap/icon_mine_sign_in" | ||
| 85 | + android:layout_toLeftOf="@+id/tv_sign_in" | ||
| 86 | + android:layout_gravity="center_vertical" | ||
| 87 | + android:scaleType="fitXY"/> | ||
| 88 | + | ||
| 89 | + </FrameLayout> | ||
| 90 | + | ||
| 91 | + </RelativeLayout> | ||
| 92 | + | ||
| 93 | + <LinearLayout | ||
| 94 | + android:layout_width="match_parent" | ||
| 95 | + android:layout_height="@dimen/rmrb_dp61" | ||
| 96 | + android:layout_marginLeft="@dimen/rmrb_dp12" | ||
| 97 | + android:layout_marginRight="@dimen/rmrb_dp11" | ||
| 98 | + android:orientation="horizontal"> | ||
| 99 | + | ||
| 100 | + <FrameLayout | ||
| 101 | + android:id="@+id/layout_comment_un_login" | ||
| 102 | + android:layout_width="0dp" | ||
| 103 | + android:layout_weight="1" | ||
| 104 | + android:layout_height="match_parent"> | ||
| 105 | + | ||
| 106 | + <LinearLayout | ||
| 107 | + android:layout_width="wrap_content" | ||
| 108 | + android:layout_height="wrap_content" | ||
| 109 | + android:orientation="vertical" | ||
| 110 | + android:layout_gravity="center"> | ||
| 111 | + | ||
| 112 | + <ImageView | ||
| 113 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 114 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 115 | + android:layout_gravity="center_horizontal" | ||
| 116 | + android:src="@mipmap/icon_mine_comment"/> | ||
| 117 | + | ||
| 118 | + <TextView | ||
| 119 | + android:layout_width="wrap_content" | ||
| 120 | + android:layout_height="wrap_content" | ||
| 121 | + android:maxLines="1" | ||
| 122 | + android:ellipsize="end" | ||
| 123 | + android:text="@string/res_str_comment" | ||
| 124 | + android:textSize="@dimen/rmrb_dp12" | ||
| 125 | + android:textColor="@color/res_color_common_C1" | ||
| 126 | + android:layout_gravity="center_horizontal" | ||
| 127 | + android:layout_marginTop="@dimen/rmrb_dp4" /> | ||
| 128 | + | ||
| 129 | + </LinearLayout> | ||
| 130 | + | ||
| 131 | + </FrameLayout> | ||
| 132 | + | ||
| 133 | + <FrameLayout | ||
| 134 | + android:id="@+id/layout_attention_un_login" | ||
| 135 | + android:layout_width="0dp" | ||
| 136 | + android:layout_weight="1" | ||
| 137 | + android:layout_height="match_parent"> | ||
| 138 | + | ||
| 139 | + <View | ||
| 140 | + android:layout_width="1dp" | ||
| 141 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 142 | + android:background="@color/res_color_general_222222_10" | ||
| 143 | + android:layout_gravity="center_vertical"/> | ||
| 144 | + | ||
| 145 | + <LinearLayout | ||
| 146 | + android:layout_width="wrap_content" | ||
| 147 | + android:layout_height="wrap_content" | ||
| 148 | + android:orientation="vertical" | ||
| 149 | + android:layout_gravity="center"> | ||
| 150 | + | ||
| 151 | + <ImageView | ||
| 152 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 153 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 154 | + android:layout_gravity="center_horizontal" | ||
| 155 | + android:src="@mipmap/icon_mine_attention"/> | ||
| 156 | + | ||
| 157 | + <TextView | ||
| 158 | + android:layout_width="wrap_content" | ||
| 159 | + android:layout_height="wrap_content" | ||
| 160 | + android:maxLines="1" | ||
| 161 | + android:ellipsize="end" | ||
| 162 | + android:text="@string/res_str_attention" | ||
| 163 | + android:textSize="@dimen/rmrb_dp12" | ||
| 164 | + android:textColor="@color/res_color_common_C1" | ||
| 165 | + android:layout_gravity="center_horizontal" | ||
| 166 | + android:layout_marginTop="@dimen/rmrb_dp4"/> | ||
| 167 | + | ||
| 168 | + </LinearLayout> | ||
| 169 | + | ||
| 170 | + </FrameLayout> | ||
| 171 | + | ||
| 172 | + <FrameLayout | ||
| 173 | + android:id="@+id/layout_collect_un_login" | ||
| 174 | + android:layout_width="0dp" | ||
| 175 | + android:layout_weight="1" | ||
| 176 | + android:layout_height="match_parent"> | ||
| 177 | + | ||
| 178 | + <View | ||
| 179 | + android:layout_width="1dp" | ||
| 180 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 181 | + android:background="@color/res_color_general_222222_10" | ||
| 182 | + android:layout_gravity="center_vertical"/> | ||
| 183 | + | ||
| 184 | + <LinearLayout | ||
| 185 | + android:layout_width="wrap_content" | ||
| 186 | + android:layout_height="wrap_content" | ||
| 187 | + android:orientation="vertical" | ||
| 188 | + android:layout_gravity="center"> | ||
| 189 | + | ||
| 190 | + <ImageView | ||
| 191 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 192 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 193 | + android:layout_gravity="center_horizontal" | ||
| 194 | + android:src="@mipmap/icon_mine_collect"/> | ||
| 195 | + | ||
| 196 | + <TextView | ||
| 197 | + android:layout_width="wrap_content" | ||
| 198 | + android:layout_height="wrap_content" | ||
| 199 | + android:maxLines="1" | ||
| 200 | + android:ellipsize="end" | ||
| 201 | + android:text="@string/res_str_collect" | ||
| 202 | + android:textSize="@dimen/rmrb_dp12" | ||
| 203 | + android:textColor="@color/res_color_common_C1" | ||
| 204 | + android:layout_gravity="center_horizontal" | ||
| 205 | + android:layout_marginTop="@dimen/rmrb_dp4"/> | ||
| 206 | + | ||
| 207 | + </LinearLayout> | ||
| 208 | + | ||
| 209 | + </FrameLayout> | ||
| 210 | + | ||
| 211 | + <FrameLayout | ||
| 212 | + android:id="@+id/layout_history_un_login" | ||
| 213 | + android:layout_width="0dp" | ||
| 214 | + android:layout_weight="1" | ||
| 215 | + android:layout_height="match_parent"> | ||
| 216 | + | ||
| 217 | + <View | ||
| 218 | + android:layout_width="1dp" | ||
| 219 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 220 | + android:background="@color/res_color_general_222222_10" | ||
| 221 | + android:layout_gravity="center_vertical"/> | ||
| 222 | + | ||
| 223 | + <LinearLayout | ||
| 224 | + android:layout_width="wrap_content" | ||
| 225 | + android:layout_height="wrap_content" | ||
| 226 | + android:orientation="vertical" | ||
| 227 | + android:layout_gravity="center"> | ||
| 228 | + | ||
| 229 | + <ImageView | ||
| 230 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 231 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 232 | + android:layout_gravity="center_horizontal" | ||
| 233 | + android:src="@mipmap/icon_mine_history"/> | ||
| 234 | + | ||
| 235 | + <TextView | ||
| 236 | + android:layout_width="wrap_content" | ||
| 237 | + android:layout_height="wrap_content" | ||
| 238 | + android:maxLines="1" | ||
| 239 | + android:ellipsize="end" | ||
| 240 | + android:text="@string/res_str_history" | ||
| 241 | + android:textSize="@dimen/rmrb_dp12" | ||
| 242 | + android:textColor="@color/res_color_common_C1" | ||
| 243 | + android:layout_gravity="center_horizontal" | ||
| 244 | + android:layout_marginTop="@dimen/rmrb_dp4" /> | ||
| 245 | + | ||
| 246 | + </LinearLayout> | ||
| 247 | + | ||
| 248 | + </FrameLayout> | ||
| 249 | + | ||
| 250 | + </LinearLayout> | ||
| 251 | + | ||
| 252 | + <LinearLayout | ||
| 253 | + android:layout_width="match_parent" | ||
| 254 | + android:layout_height="@dimen/rmrb_dp61" | ||
| 255 | + android:layout_marginLeft="@dimen/rmrb_dp12" | ||
| 256 | + android:layout_marginRight="@dimen/rmrb_dp11" | ||
| 257 | + android:orientation="horizontal"> | ||
| 258 | + | ||
| 259 | + <FrameLayout | ||
| 260 | + android:id="@+id/layout_message_un_login" | ||
| 261 | + android:layout_width="0dp" | ||
| 262 | + android:layout_weight="1" | ||
| 263 | + android:layout_height="match_parent" | ||
| 264 | + android:visibility="visible"> | ||
| 265 | + | ||
| 266 | + <LinearLayout | ||
| 267 | + android:layout_width="wrap_content" | ||
| 268 | + android:layout_height="wrap_content" | ||
| 269 | + android:orientation="vertical" | ||
| 270 | + android:layout_gravity="center"> | ||
| 271 | + | ||
| 272 | + <ImageView | ||
| 273 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 274 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 275 | + android:layout_gravity="center_horizontal" | ||
| 276 | + android:src="@mipmap/icon_mine_message" /> | ||
| 277 | + | ||
| 278 | + <TextView | ||
| 279 | + android:layout_width="wrap_content" | ||
| 280 | + android:layout_height="wrap_content" | ||
| 281 | + android:maxLines="1" | ||
| 282 | + android:ellipsize="end" | ||
| 283 | + android:text="@string/res_str_message" | ||
| 284 | + android:textSize="@dimen/rmrb_dp12" | ||
| 285 | + android:textColor="@color/res_color_common_C1" | ||
| 286 | + android:layout_gravity="center_horizontal" | ||
| 287 | + android:layout_marginTop="@dimen/rmrb_dp4" /> | ||
| 288 | + | ||
| 289 | + </LinearLayout> | ||
| 290 | + | ||
| 291 | + </FrameLayout> | ||
| 292 | + | ||
| 293 | + <FrameLayout | ||
| 294 | + android:id="@+id/layout_ask_politics_un_login" | ||
| 295 | + android:layout_width="0dp" | ||
| 296 | + android:layout_weight="1" | ||
| 297 | + android:layout_height="match_parent" | ||
| 298 | + android:visibility="visible"> | ||
| 299 | + | ||
| 300 | + <View | ||
| 301 | + android:layout_width="1dp" | ||
| 302 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 303 | + android:background="@color/res_color_general_222222_10" | ||
| 304 | + android:layout_gravity="center_vertical" | ||
| 305 | + android:visibility="visible"/> | ||
| 306 | + | ||
| 307 | + <LinearLayout | ||
| 308 | + android:layout_width="wrap_content" | ||
| 309 | + android:layout_height="wrap_content" | ||
| 310 | + android:orientation="vertical" | ||
| 311 | + android:layout_gravity="center"> | ||
| 312 | + | ||
| 313 | + <ImageView | ||
| 314 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 315 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 316 | + android:layout_gravity="center_horizontal" | ||
| 317 | + android:src="@mipmap/icon_mine_ask_politics"/> | ||
| 318 | + | ||
| 319 | + <TextView | ||
| 320 | + android:layout_width="wrap_content" | ||
| 321 | + android:layout_height="wrap_content" | ||
| 322 | + android:maxLines="1" | ||
| 323 | + android:ellipsize="end" | ||
| 324 | + android:text="@string/res_str_message_board" | ||
| 325 | + android:textSize="@dimen/rmrb_dp12" | ||
| 326 | + android:textColor="@color/res_color_common_C1" | ||
| 327 | + android:layout_gravity="center_horizontal" | ||
| 328 | + android:layout_marginTop="@dimen/rmrb_dp4" /> | ||
| 329 | + | ||
| 330 | + </LinearLayout> | ||
| 331 | + | ||
| 332 | + </FrameLayout> | ||
| 333 | + | ||
| 334 | + <FrameLayout | ||
| 335 | + android:id="@+id/layout_subscribe_un_login" | ||
| 336 | + android:layout_width="0dp" | ||
| 337 | + android:layout_weight="1" | ||
| 338 | + android:layout_height="match_parent"> | ||
| 339 | + | ||
| 340 | + <View | ||
| 341 | + android:layout_width="1dp" | ||
| 342 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 343 | + android:background="@color/res_color_general_222222_10" | ||
| 344 | + android:layout_gravity="center_vertical" | ||
| 345 | + android:visibility="visible"/> | ||
| 346 | + | ||
| 347 | + <LinearLayout | ||
| 348 | + android:layout_width="wrap_content" | ||
| 349 | + android:layout_height="wrap_content" | ||
| 350 | + android:orientation="vertical" | ||
| 351 | + android:layout_gravity="center"> | ||
| 352 | + | ||
| 353 | + <ImageView | ||
| 354 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 355 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 356 | + android:layout_gravity="center_horizontal" | ||
| 357 | + android:src="@mipmap/icon_mine_subscribe"/> | ||
| 358 | + | ||
| 359 | + <TextView | ||
| 360 | + android:layout_width="wrap_content" | ||
| 361 | + android:layout_height="wrap_content" | ||
| 362 | + android:maxLines="1" | ||
| 363 | + android:ellipsize="end" | ||
| 364 | + android:text="@string/res_str_subscribe" | ||
| 365 | + android:textSize="@dimen/rmrb_dp12" | ||
| 366 | + android:textColor="@color/res_color_common_C1" | ||
| 367 | + android:layout_gravity="center_horizontal" | ||
| 368 | + android:layout_marginTop="@dimen/rmrb_dp4"/> | ||
| 369 | + | ||
| 370 | + </LinearLayout> | ||
| 371 | + | ||
| 372 | + </FrameLayout> | ||
| 373 | + | ||
| 374 | + <FrameLayout | ||
| 375 | + android:id="@+id/layout_event_submission_un_login" | ||
| 376 | + android:layout_width="0dp" | ||
| 377 | + android:layout_weight="1" | ||
| 378 | + android:layout_height="match_parent" | ||
| 379 | + android:visibility="invisible" | ||
| 380 | + tools:visibility="visible"> | ||
| 381 | + | ||
| 382 | + <View | ||
| 383 | + android:layout_width="1dp" | ||
| 384 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 385 | + android:background="@color/res_color_general_222222_10" | ||
| 386 | + android:layout_gravity="center_vertical" | ||
| 387 | + android:visibility="visible"/> | ||
| 388 | + | ||
| 389 | + <LinearLayout | ||
| 390 | + android:layout_width="wrap_content" | ||
| 391 | + android:layout_height="wrap_content" | ||
| 392 | + android:orientation="vertical" | ||
| 393 | + android:layout_gravity="center"> | ||
| 394 | + | ||
| 395 | + <ImageView | ||
| 396 | + android:layout_width="@dimen/rmrb_dp24" | ||
| 397 | + android:layout_height="@dimen/rmrb_dp24" | ||
| 398 | + android:layout_gravity="center_horizontal" | ||
| 399 | + android:src="@mipmap/icon_mine_event_submission"/> | ||
| 400 | + | ||
| 401 | + <TextView | ||
| 402 | + android:layout_width="wrap_content" | ||
| 403 | + android:layout_height="wrap_content" | ||
| 404 | + android:maxLines="1" | ||
| 405 | + android:ellipsize="end" | ||
| 406 | + android:text="@string/res_str_event_submission" | ||
| 407 | + android:textSize="@dimen/rmrb_dp12" | ||
| 408 | + android:textColor="@color/res_color_common_C1" | ||
| 409 | + android:layout_gravity="center_horizontal" | ||
| 410 | + android:layout_marginTop="@dimen/rmrb_dp4"/> | ||
| 411 | + | ||
| 412 | + </LinearLayout> | ||
| 413 | + | ||
| 414 | + </FrameLayout> | ||
| 415 | + | ||
| 416 | + </LinearLayout> | ||
| 417 | + | ||
| 418 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| 4 | + android:id="@+id/cl_root" | ||
| 5 | + android:layout_width="wrap_content" | ||
| 6 | + android:layout_height="32dp" | ||
| 7 | + android:gravity="center"> | ||
| 8 | + | ||
| 9 | + <ImageView | ||
| 10 | + android:id="@+id/ivLeft" | ||
| 11 | + android:layout_width="10dp" | ||
| 12 | + android:layout_height="match_parent" | ||
| 13 | + android:scaleType="centerCrop" | ||
| 14 | + android:src="@mipmap/ic_collect_left_left" /> | ||
| 15 | + | ||
| 16 | + <TextView | ||
| 17 | + android:id="@+id/tv_tab_name" | ||
| 18 | + android:layout_width="wrap_content" | ||
| 19 | + android:layout_height="match_parent" | ||
| 20 | + android:background="@mipmap/ic_collect_mid" | ||
| 21 | + android:ellipsize="end" | ||
| 22 | + android:gravity="center" | ||
| 23 | + android:maxLength="10" | ||
| 24 | + android:maxLines="1" | ||
| 25 | + android:paddingHorizontal="@dimen/rmrb_dp6" | ||
| 26 | + android:text="" | ||
| 27 | + android:textColor="@color/res_color_common_C2" | ||
| 28 | + android:textSize="@dimen/rmrb_dp14" | ||
| 29 | + app:layout_constraintLeft_toLeftOf="parent" | ||
| 30 | + app:layout_constraintRight_toRightOf="parent" /> | ||
| 31 | + | ||
| 32 | + <ImageView | ||
| 33 | + android:id="@+id/ivRight" | ||
| 34 | + android:layout_width="18dp" | ||
| 35 | + android:layout_height="match_parent" | ||
| 36 | + android:scaleType="centerCrop" | ||
| 37 | + android:src="@mipmap/ic_collect_left_right" /> | ||
| 38 | + | ||
| 39 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:layout_width="@dimen/rmrb_dp115" | ||
| 4 | + android:layout_height="@dimen/rmrb_dp22" | ||
| 5 | + android:layout_marginBottom="@dimen/rmrb_dp16" | ||
| 6 | + android:background="@color/res_color_common_C8" | ||
| 7 | + android:orientation="vertical"> | ||
| 8 | + | ||
| 9 | + <CheckBox | ||
| 10 | + android:id="@+id/tv_suggest" | ||
| 11 | + android:layout_width="match_parent" | ||
| 12 | + android:layout_height="match_parent" | ||
| 13 | + android:background="@null" | ||
| 14 | + android:button="@drawable/feekback_checkbox" | ||
| 15 | + android:checked="false" | ||
| 16 | + android:paddingLeft="@dimen/rmrb_dp4" | ||
| 17 | + android:text="" | ||
| 18 | + android:textColor="@color/res_color_common_C1" | ||
| 19 | + android:textSize="@dimen/rmrb_dp14" /> | ||
| 20 | + | ||
| 21 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:layout_width="match_parent" | ||
| 4 | + android:layout_height="@dimen/rmrb_dp55" | ||
| 5 | + android:gravity="center" | ||
| 6 | + android:background="@color/res_color_common_C8" | ||
| 7 | + android:orientation="vertical"> | ||
| 8 | + | ||
| 9 | + <com.wd.foundation.wdkit.view.customtextview.RegularTextView | ||
| 10 | + android:id="@+id/tv_gender" | ||
| 11 | + android:layout_width="wrap_content" | ||
| 12 | + android:layout_height="wrap_content" | ||
| 13 | + android:text="Twitter" | ||
| 14 | + android:textColor="@color/rmrb_333333_light" | ||
| 15 | + android:textSize="@dimen/rmrb_dp16" /> | ||
| 16 | + | ||
| 17 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:layout_width="match_parent" | ||
| 4 | + android:layout_height="match_parent"> | ||
| 5 | + | ||
| 6 | + <TextView | ||
| 7 | + android:id="@+id/tv_level" | ||
| 8 | + android:layout_width="@dimen/rmrb_dp25" | ||
| 9 | + android:layout_height="@dimen/rmrb_dp25" | ||
| 10 | + android:layout_centerHorizontal="true" | ||
| 11 | + android:text="3" | ||
| 12 | + android:textStyle="bold" | ||
| 13 | + android:textSize="@dimen/rmrb_dp12" | ||
| 14 | + android:textColor="@color/res_color_common_C8" | ||
| 15 | + android:gravity="center" | ||
| 16 | + android:background="@mipmap/img_grade_two"/> | ||
| 17 | + | ||
| 18 | +</RelativeLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| 4 | + android:id="@+id/cl_root" | ||
| 5 | + android:layout_width="wrap_content" | ||
| 6 | + android:layout_height="@dimen/rmrb_dp32"> | ||
| 7 | + | ||
| 8 | + | ||
| 9 | + <TextView | ||
| 10 | + android:id="@+id/tv_tab_name" | ||
| 11 | + android:layout_width="wrap_content" | ||
| 12 | + android:layout_height="match_parent" | ||
| 13 | + android:gravity="center" | ||
| 14 | + android:maxLines="1" | ||
| 15 | + android:textSize="@dimen/rmrb_dp14" | ||
| 16 | + android:textColor="@color/res_color_common_C2" | ||
| 17 | + app:layout_constraintTop_toTopOf="parent" | ||
| 18 | + app:layout_constraintEnd_toEndOf="parent" | ||
| 19 | + app:layout_constraintStart_toStartOf="parent" | ||
| 20 | + app:layout_constraintBottom_toBottomOf="parent"/> | ||
| 21 | + | ||
| 22 | +</androidx.constraintlayout.widget.ConstraintLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| 4 | + android:id="@+id/cl_root" | ||
| 5 | + android:layout_width="wrap_content" | ||
| 6 | + android:layout_height="wrap_content"> | ||
| 7 | + | ||
| 8 | + <View | ||
| 9 | + android:id="@+id/tab_bag" | ||
| 10 | + android:layout_width="match_parent" | ||
| 11 | + android:layout_height="match_parent" | ||
| 12 | + android:background="@drawable/selector_tab_item_bag" | ||
| 13 | + android:visibility="gone" | ||
| 14 | + app:layout_constraintBottom_toBottomOf="parent" | ||
| 15 | + app:layout_constraintEnd_toEndOf="parent" | ||
| 16 | + app:layout_constraintStart_toStartOf="parent" | ||
| 17 | + app:layout_constraintTop_toTopOf="parent" /> | ||
| 18 | + | ||
| 19 | + <TextView | ||
| 20 | + android:id="@+id/tv_tab_name_not_self" | ||
| 21 | + android:layout_width="wrap_content" | ||
| 22 | + android:layout_height="wrap_content" | ||
| 23 | + android:gravity="center" | ||
| 24 | + android:text="" | ||
| 25 | + android:maxLines="1" | ||
| 26 | + android:textSize="@dimen/rmrb_dp18" | ||
| 27 | + android:textColor="@color/res_color_common_C2" | ||
| 28 | + app:layout_constraintBottom_toBottomOf="parent" | ||
| 29 | + app:layout_constraintEnd_toEndOf="parent" | ||
| 30 | + app:layout_constraintStart_toStartOf="parent" | ||
| 31 | + app:layout_constraintTop_toTopOf="parent" /> | ||
| 32 | + | ||
| 33 | + <View | ||
| 34 | + android:id="@+id/line_bottom" | ||
| 35 | + android:layout_width="@dimen/rmrb_dp16" | ||
| 36 | + android:layout_height="@dimen/rmrb_dp2" | ||
| 37 | + android:layout_marginTop="@dimen/rmrb_dp2" | ||
| 38 | + android:background="@drawable/selector_tab_item_line" | ||
| 39 | + android:visibility="visible" | ||
| 40 | + app:layout_constraintEnd_toEndOf="parent" | ||
| 41 | + app:layout_constraintStart_toStartOf="parent" | ||
| 42 | + app:layout_constraintTop_toBottomOf="@+id/tv_tab_name_not_self" /> | ||
| 43 | + | ||
| 44 | + | ||
| 45 | +</androidx.constraintlayout.widget.ConstraintLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:layout_width="wrap_content" | ||
| 4 | + android:layout_height="@dimen/rmrb_dp48" | ||
| 5 | + android:orientation="vertical"> | ||
| 6 | + | ||
| 7 | + <ImageView | ||
| 8 | + android:id="@+id/me_ivLogo" | ||
| 9 | + android:layout_width="@dimen/rmrb_dp48" | ||
| 10 | + android:layout_height="@dimen/rmrb_dp48" | ||
| 11 | + android:layout_marginRight="@dimen/rmrb_dp24" | ||
| 12 | + /> | ||
| 13 | + | ||
| 14 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:layout_width="@dimen/rmrb_dp100" | ||
| 4 | + android:layout_height="@dimen/rmrb_dp100" | ||
| 5 | + android:layout_marginRight="@dimen/rmrb_dp8" | ||
| 6 | + android:background="@drawable/collection_search_bar_bg" > | ||
| 7 | + | ||
| 8 | + <FrameLayout | ||
| 9 | + android:layout_gravity="center" | ||
| 10 | + android:layout_width="match_parent" | ||
| 11 | + android:layout_height="match_parent"> | ||
| 12 | + | ||
| 13 | + <LinearLayout | ||
| 14 | + android:layout_gravity="center" | ||
| 15 | + android:id="@+id/id_ll_show_add" | ||
| 16 | + android:layout_width="match_parent" | ||
| 17 | + android:layout_height="match_parent" | ||
| 18 | + android:gravity="center" | ||
| 19 | + android:orientation="vertical"> | ||
| 20 | + | ||
| 21 | + <ImageView | ||
| 22 | + android:layout_width="@dimen/rmrb_dp29" | ||
| 23 | + android:layout_height="@dimen/rmrb_dp27" | ||
| 24 | + android:scaleType="centerCrop" | ||
| 25 | + android:src="@drawable/feedback_icon_add_photos" /> | ||
| 26 | + <TextView | ||
| 27 | + android:id="@+id/tv_photo_num" | ||
| 28 | + android:layout_marginTop="@dimen/rmrb_dp6" | ||
| 29 | + android:text="0/3" | ||
| 30 | + android:textSize="@dimen/rmrb_dp12" | ||
| 31 | + android:gravity="center" | ||
| 32 | + android:textColor="@color/color_a6a6a6" | ||
| 33 | + android:layout_width="@dimen/rmrb_dp23" | ||
| 34 | + android:layout_height="@dimen/rmrb_dp17"/> | ||
| 35 | + </LinearLayout> | ||
| 36 | + | ||
| 37 | + <RelativeLayout | ||
| 38 | + android:id="@+id/id_rv_show_image" | ||
| 39 | + android:layout_width="match_parent" | ||
| 40 | + android:layout_height="match_parent" | ||
| 41 | + android:gravity="center" | ||
| 42 | + android:visibility="gone"> | ||
| 43 | + | ||
| 44 | + <ImageView | ||
| 45 | + android:id="@+id/iv_select_pic" | ||
| 46 | + android:layout_width="match_parent" | ||
| 47 | + android:layout_height="match_parent" | ||
| 48 | + android:scaleType="centerCrop" /> | ||
| 49 | + | ||
| 50 | + <ImageView | ||
| 51 | + android:id="@+id/id_iv_video" | ||
| 52 | + android:layout_width="@dimen/rmrb_dp30" | ||
| 53 | + android:layout_height="@dimen/rmrb_dp30" | ||
| 54 | + android:layout_centerInParent="true" | ||
| 55 | + /> | ||
| 56 | + </RelativeLayout> | ||
| 57 | + | ||
| 58 | + </FrameLayout> | ||
| 59 | + | ||
| 60 | + | ||
| 61 | + <ImageView | ||
| 62 | + android:id="@+id/iv_close_report" | ||
| 63 | + android:layout_width="@dimen/rmrb_dp16" | ||
| 64 | + android:layout_height="@dimen/rmrb_dp16" | ||
| 65 | + android:layout_gravity="top|right" | ||
| 66 | + android:src="@mipmap/close_black" /> | ||
| 67 | + | ||
| 68 | +</FrameLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:layout_width="wrap_content" | ||
| 4 | + android:layout_height="wrap_content" | ||
| 5 | + android:padding="@dimen/rmrb_dp8" | ||
| 6 | + android:id="@+id/rellayout" | ||
| 7 | + android:background="@color/rmrb_f8f8f8_light_background" | ||
| 8 | + > | ||
| 9 | + | ||
| 10 | + <ImageView | ||
| 11 | + android:id="@+id/user_img" | ||
| 12 | + android:layout_width="@dimen/rmrb_dp74" | ||
| 13 | + android:layout_height="@dimen/rmrb_dp74" | ||
| 14 | + android:scaleType="fitXY" /> | ||
| 15 | + | ||
| 16 | + <View | ||
| 17 | + android:id="@+id/user_backview" | ||
| 18 | + android:layout_width="@dimen/rmrb_dp74" | ||
| 19 | + android:layout_height="@dimen/rmrb_dp74" | ||
| 20 | + android:background="@drawable/bg_photo_66000000_136" | ||
| 21 | + android:visibility="gone" | ||
| 22 | + /> | ||
| 23 | + | ||
| 24 | + <ImageView | ||
| 25 | + android:id="@+id/user_img_ok" | ||
| 26 | + android:layout_width="@dimen/rmrb_dp18" | ||
| 27 | + android:layout_height="@dimen/rmrb_dp18" | ||
| 28 | + android:layout_centerInParent="true" | ||
| 29 | + android:src="@mipmap/icon_photo_ok" | ||
| 30 | + android:visibility="gone" | ||
| 31 | + android:scaleType="fitXY"/> | ||
| 32 | +</RelativeLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<androidx.constraintlayout.widget.ConstraintLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + android:layout_width="match_parent" | ||
| 5 | + android:layout_height="wrap_content" | ||
| 6 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| 7 | + android:background="@drawable/shape_pickview_bg"> | ||
| 8 | + | ||
| 9 | + <RelativeLayout | ||
| 10 | + android:id="@+id/rl_title" | ||
| 11 | + app:layout_constraintTop_toTopOf="parent" | ||
| 12 | + app:layout_constraintLeft_toLeftOf="parent" | ||
| 13 | + android:layout_width="match_parent" | ||
| 14 | + android:layout_height="@dimen/rmrb_dp50"> | ||
| 15 | + | ||
| 16 | + <TextView | ||
| 17 | + android:id="@+id/tv_cancle" | ||
| 18 | + android:layout_width="wrap_content" | ||
| 19 | + android:layout_height="wrap_content" | ||
| 20 | + android:text="取消" | ||
| 21 | + android:textColor="@color/res_color_common_C2" | ||
| 22 | + android:textSize="@dimen/rmrb_dp16" | ||
| 23 | + android:layout_alignParentLeft="true" | ||
| 24 | + android:layout_centerVertical="true" | ||
| 25 | + android:layout_marginLeft="@dimen/rmrb_dp15"/> | ||
| 26 | + | ||
| 27 | + <TextView | ||
| 28 | + android:layout_width="wrap_content" | ||
| 29 | + android:layout_height="wrap_content" | ||
| 30 | + android:text="修改地区" | ||
| 31 | + android:textColor="@color/res_color_general_333333" | ||
| 32 | + android:textSize="@dimen/rmrb_dp18" | ||
| 33 | + android:layout_centerInParent="true"/> | ||
| 34 | + | ||
| 35 | + <TextView | ||
| 36 | + android:id="@+id/tv_save" | ||
| 37 | + android:layout_width="wrap_content" | ||
| 38 | + android:layout_height="wrap_content" | ||
| 39 | + android:text="提交" | ||
| 40 | + android:textColor="@color/res_color_common_C11" | ||
| 41 | + android:textSize="@dimen/rmrb_dp16" | ||
| 42 | + android:layout_alignParentRight="true" | ||
| 43 | + android:layout_centerVertical="true" | ||
| 44 | + android:layout_marginRight="@dimen/rmrb_dp15"/> | ||
| 45 | + | ||
| 46 | + <View | ||
| 47 | + android:layout_width="match_parent" | ||
| 48 | + android:layout_height="@dimen/rmrb_dp1" | ||
| 49 | + android:background="@color/res_color_common_C7" | ||
| 50 | + android:layout_alignParentBottom="true"/> | ||
| 51 | + </RelativeLayout> | ||
| 52 | + | ||
| 53 | + <!--此部分需要完整复制过去,删减或者更改ID会导致初始化找不到内容而报空--> | ||
| 54 | + <LinearLayout | ||
| 55 | + android:id="@+id/optionspicker" | ||
| 56 | + app:layout_constraintTop_toBottomOf="@+id/rl_title" | ||
| 57 | + android:layout_width="match_parent" | ||
| 58 | + android:layout_height="@dimen/rmrb_dp228" | ||
| 59 | + android:gravity="center" | ||
| 60 | + android:minHeight="@dimen/rmrb_dp228" | ||
| 61 | + android:orientation="horizontal"> | ||
| 62 | + | ||
| 63 | + <com.contrarywind.view.WheelView | ||
| 64 | + android:id="@+id/options1" | ||
| 65 | + android:layout_width="@dimen/rmrb_dp125" | ||
| 66 | + android:layout_height="match_parent"/> | ||
| 67 | + | ||
| 68 | + <com.contrarywind.view.WheelView | ||
| 69 | + android:id="@+id/options2" | ||
| 70 | + android:layout_width="@dimen/rmrb_dp125" | ||
| 71 | + android:layout_height="match_parent"/> | ||
| 72 | + | ||
| 73 | + <com.contrarywind.view.WheelView | ||
| 74 | + android:id="@+id/options3" | ||
| 75 | + android:layout_width="@dimen/rmrb_dp125" | ||
| 76 | + android:layout_height="match_parent"/> | ||
| 77 | + </LinearLayout> | ||
| 78 | + | ||
| 79 | + <View | ||
| 80 | + android:layout_marginTop="@dimen/rmrb_dp92" | ||
| 81 | + app:layout_constraintTop_toBottomOf="@+id/rl_title" | ||
| 82 | + android:layout_width="match_parent" | ||
| 83 | + android:layout_height="@dimen/rmrb_dp0_5" | ||
| 84 | + android:background="@color/res_color_common_C7" /> | ||
| 85 | + <View | ||
| 86 | + android:layout_marginTop="@dimen/rmrb_dp136" | ||
| 87 | + app:layout_constraintTop_toBottomOf="@+id/rl_title" | ||
| 88 | + android:layout_width="match_parent" | ||
| 89 | + android:layout_height="@dimen/rmrb_dp0_5" | ||
| 90 | + android:background="@color/res_color_common_C7" /> | ||
| 91 | + | ||
| 92 | +</androidx.constraintlayout.widget.ConstraintLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:layout_width="match_parent" | ||
| 4 | + android:layout_height="wrap_content" | ||
| 5 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| 6 | + android:background="@drawable/shape_pickview_bg"> | ||
| 7 | + | ||
| 8 | + <RelativeLayout | ||
| 9 | + android:id="@+id/rl_title" | ||
| 10 | + app:layout_constraintTop_toTopOf="parent" | ||
| 11 | + app:layout_constraintLeft_toLeftOf="parent" | ||
| 12 | + android:layout_width="match_parent" | ||
| 13 | + android:layout_height="@dimen/rmrb_dp50"> | ||
| 14 | + | ||
| 15 | + <TextView | ||
| 16 | + android:id="@+id/tv_cancle" | ||
| 17 | + android:layout_width="wrap_content" | ||
| 18 | + android:layout_height="wrap_content" | ||
| 19 | + android:text="取消" | ||
| 20 | + android:textColor="@color/res_color_common_C2" | ||
| 21 | + android:textSize="@dimen/rmrb_dp16" | ||
| 22 | + android:layout_alignParentLeft="true" | ||
| 23 | + android:layout_centerVertical="true" | ||
| 24 | + android:layout_marginLeft="@dimen/rmrb_dp15"/> | ||
| 25 | + | ||
| 26 | + <TextView | ||
| 27 | + android:layout_width="wrap_content" | ||
| 28 | + android:layout_height="wrap_content" | ||
| 29 | + android:text="修改生日" | ||
| 30 | + android:textColor="@color/res_color_general_333333" | ||
| 31 | + android:textSize="@dimen/rmrb_dp18" | ||
| 32 | + android:layout_centerInParent="true"/> | ||
| 33 | + | ||
| 34 | + <TextView | ||
| 35 | + android:id="@+id/tv_save" | ||
| 36 | + android:layout_width="wrap_content" | ||
| 37 | + android:layout_height="wrap_content" | ||
| 38 | + android:text="提交" | ||
| 39 | + android:textColor="@color/res_color_common_C11" | ||
| 40 | + android:textSize="@dimen/rmrb_dp16" | ||
| 41 | + android:layout_alignParentRight="true" | ||
| 42 | + android:layout_centerVertical="true" | ||
| 43 | + android:layout_marginRight="@dimen/rmrb_dp15"/> | ||
| 44 | + | ||
| 45 | + <View | ||
| 46 | + android:layout_width="match_parent" | ||
| 47 | + android:layout_height="@dimen/rmrb_dp1" | ||
| 48 | + android:background="@color/res_color_common_C7" | ||
| 49 | + android:layout_alignParentBottom="true"/> | ||
| 50 | + | ||
| 51 | + </RelativeLayout> | ||
| 52 | + | ||
| 53 | + <!--此部分需要完整复制过去,删减或者更改ID会导致初始化找不到内容而报空--> | ||
| 54 | + <LinearLayout | ||
| 55 | + android:id="@+id/timepicker" | ||
| 56 | + app:layout_constraintTop_toBottomOf="@+id/rl_title" | ||
| 57 | + android:layout_width="match_parent" | ||
| 58 | + android:layout_height="@dimen/rmrb_dp228" | ||
| 59 | + android:gravity="center" | ||
| 60 | + android:minHeight="@dimen/rmrb_dp228" | ||
| 61 | + android:orientation="horizontal"> | ||
| 62 | + | ||
| 63 | + <com.contrarywind.view.WheelView | ||
| 64 | + android:id="@+id/year" | ||
| 65 | + android:layout_width="@dimen/rmrb_dp125" | ||
| 66 | + android:layout_height="match_parent"/> | ||
| 67 | + | ||
| 68 | + <com.contrarywind.view.WheelView | ||
| 69 | + android:id="@+id/month" | ||
| 70 | + android:layout_width="@dimen/rmrb_dp125" | ||
| 71 | + android:layout_height="match_parent"/> | ||
| 72 | + | ||
| 73 | + <com.contrarywind.view.WheelView | ||
| 74 | + android:id="@+id/day" | ||
| 75 | + android:layout_width="@dimen/rmrb_dp125" | ||
| 76 | + android:layout_height="match_parent"/> | ||
| 77 | + | ||
| 78 | + <com.contrarywind.view.WheelView | ||
| 79 | + android:id="@+id/hour" | ||
| 80 | + android:layout_width="0dp" | ||
| 81 | + android:layout_height="match_parent" | ||
| 82 | + android:layout_weight="1.1"/> | ||
| 83 | + | ||
| 84 | + <com.contrarywind.view.WheelView | ||
| 85 | + android:id="@+id/min" | ||
| 86 | + android:layout_width="0dp" | ||
| 87 | + android:layout_height="match_parent" | ||
| 88 | + android:layout_weight="1.1"/> | ||
| 89 | + | ||
| 90 | + <com.contrarywind.view.WheelView | ||
| 91 | + android:id="@+id/second" | ||
| 92 | + android:layout_width="0dp" | ||
| 93 | + android:layout_height="match_parent" | ||
| 94 | + android:layout_weight="1.1"/> | ||
| 95 | + </LinearLayout> | ||
| 96 | + | ||
| 97 | + <View | ||
| 98 | + android:layout_marginTop="@dimen/rmrb_dp92" | ||
| 99 | + app:layout_constraintTop_toBottomOf="@+id/rl_title" | ||
| 100 | + android:layout_width="match_parent" | ||
| 101 | + android:layout_height="@dimen/rmrb_dp0_5" | ||
| 102 | + android:background="@color/res_color_common_C7" /> | ||
| 103 | + <View | ||
| 104 | + android:layout_marginTop="@dimen/rmrb_dp136" | ||
| 105 | + app:layout_constraintTop_toBottomOf="@+id/rl_title" | ||
| 106 | + android:layout_width="match_parent" | ||
| 107 | + android:layout_height="@dimen/rmrb_dp0_5" | ||
| 108 | + android:background="@color/res_color_common_C7" /> | ||
| 109 | + | ||
| 110 | +</androidx.constraintlayout.widget.ConstraintLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
| 4 | + android:id="@+id/layout_follow_more_creator" | ||
| 5 | + android:layout_width="match_parent" | ||
| 6 | + android:layout_height="@dimen/rmrb_dp36" | ||
| 7 | + android:layout_marginHorizontal="@dimen/rmrb_dp16" | ||
| 8 | + android:layout_marginTop="@dimen/rmrb_dp10" | ||
| 9 | + android:layout_marginBottom="@dimen/rmrb_dp2" | ||
| 10 | + android:background="@drawable/shape_follow_header_bg" | ||
| 11 | + android:visibility="visible"> | ||
| 12 | + | ||
| 13 | + <TextView | ||
| 14 | + android:id="@+id/tv_more" | ||
| 15 | + android:layout_width="wrap_content" | ||
| 16 | + android:layout_height="wrap_content" | ||
| 17 | + android:text="@string/res_attention_more" | ||
| 18 | + android:textColor="@color/res_color_common_C1" | ||
| 19 | + android:textSize="@dimen/rmrb_dp14" | ||
| 20 | + app:layout_constraintBottom_toBottomOf="parent" | ||
| 21 | + app:layout_constraintEnd_toStartOf="@id/iv_more" | ||
| 22 | + app:layout_constraintHorizontal_chainStyle="packed" | ||
| 23 | + app:layout_constraintStart_toStartOf="parent" | ||
| 24 | + app:layout_constraintTop_toTopOf="parent" /> | ||
| 25 | + | ||
| 26 | + <ImageView | ||
| 27 | + android:id="@+id/iv_more" | ||
| 28 | + android:layout_width="@dimen/rmrb_dp15" | ||
| 29 | + android:layout_height="@dimen/rmrb_dp15" | ||
| 30 | + android:layout_marginLeft="@dimen/rmrb_dp2" | ||
| 31 | + android:scaleType="centerCrop" | ||
| 32 | + android:src="@mipmap/icon_setting_arrow" | ||
| 33 | + app:layout_constraintBottom_toBottomOf="parent" | ||
| 34 | + app:layout_constraintEnd_toEndOf="parent" | ||
| 35 | + app:layout_constraintStart_toEndOf="@id/tv_more" | ||
| 36 | + app:layout_constraintTop_toTopOf="parent" /> | ||
| 37 | + | ||
| 38 | +</androidx.constraintlayout.widget.ConstraintLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:layout_width="match_parent" | ||
| 4 | + android:layout_height="wrap_content" | ||
| 5 | + android:orientation="vertical" | ||
| 6 | + android:layout_marginHorizontal="@dimen/rmrb_dp16"> | ||
| 7 | + | ||
| 8 | + <RelativeLayout | ||
| 9 | + android:id="@+id/layout_tyro_task" | ||
| 10 | + android:layout_width="match_parent" | ||
| 11 | + android:layout_height="wrap_content" | ||
| 12 | + android:descendantFocusability="blocksDescendants" | ||
| 13 | + android:background="@drawable/shape_bag_white_radious4" | ||
| 14 | + android:layout_marginTop="@dimen/rmrb_dp12" | ||
| 15 | + android:visibility="gone"> | ||
| 16 | + | ||
| 17 | + <TextView | ||
| 18 | + android:id="@+id/tv_task_title_tyro" | ||
| 19 | + android:layout_width="wrap_content" | ||
| 20 | + android:layout_height="wrap_content" | ||
| 21 | + android:text="@string/res_tyro_task" | ||
| 22 | + android:textStyle="bold" | ||
| 23 | + android:textSize="@dimen/rmrb_dp18" | ||
| 24 | + android:textColor="@color/res_color_common_C1" | ||
| 25 | + android:layout_marginLeft="@dimen/rmrb_dp16" | ||
| 26 | + android:layout_marginTop="@dimen/rmrb_dp16"/> | ||
| 27 | + | ||
| 28 | + <androidx.recyclerview.widget.RecyclerView | ||
| 29 | + android:id="@+id/rv_task_tyro" | ||
| 30 | + android:layout_width="match_parent" | ||
| 31 | + android:layout_height="wrap_content" | ||
| 32 | + android:layout_below="@+id/tv_task_title_tyro" | ||
| 33 | + android:layout_marginHorizontal="@dimen/rmrb_dp16"/> | ||
| 34 | + | ||
| 35 | + </RelativeLayout> | ||
| 36 | + | ||
| 37 | + <RelativeLayout | ||
| 38 | + android:id="@+id/layout_daily" | ||
| 39 | + android:layout_width="match_parent" | ||
| 40 | + android:layout_height="wrap_content" | ||
| 41 | + android:descendantFocusability="blocksDescendants" | ||
| 42 | + android:background="@drawable/shape_bag_white_radious4" | ||
| 43 | + android:layout_marginTop="@dimen/rmrb_dp12" | ||
| 44 | + android:visibility="gone"> | ||
| 45 | + | ||
| 46 | + <TextView | ||
| 47 | + android:id="@+id/tv_task_title_daily" | ||
| 48 | + android:layout_width="wrap_content" | ||
| 49 | + android:layout_height="wrap_content" | ||
| 50 | + android:text="@string/res_daily_task" | ||
| 51 | + android:textStyle="bold" | ||
| 52 | + android:textSize="@dimen/rmrb_dp18" | ||
| 53 | + android:textColor="@color/res_color_common_C1" | ||
| 54 | + android:layout_marginLeft="@dimen/rmrb_dp16" | ||
| 55 | + android:layout_marginTop="@dimen/rmrb_dp24"/> | ||
| 56 | + | ||
| 57 | + <androidx.recyclerview.widget.RecyclerView | ||
| 58 | + android:id="@+id/rv_task_daily" | ||
| 59 | + android:layout_width="match_parent" | ||
| 60 | + android:layout_height="wrap_content" | ||
| 61 | + android:layout_below="@+id/tv_task_title_daily" | ||
| 62 | + android:layout_marginHorizontal="@dimen/rmrb_dp16"/> | ||
| 63 | + | ||
| 64 | + </RelativeLayout> | ||
| 65 | + | ||
| 66 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:id="@+id/layout_growth_task" | ||
| 4 | + android:layout_width="match_parent" | ||
| 5 | + android:layout_height="wrap_content" | ||
| 6 | + android:descendantFocusability="blocksDescendants" | ||
| 7 | + android:visibility="gone"> | ||
| 8 | + | ||
| 9 | + <TextView | ||
| 10 | + android:id="@+id/tv_task_title_growth" | ||
| 11 | + android:layout_width="wrap_content" | ||
| 12 | + android:layout_height="wrap_content" | ||
| 13 | + android:text="@string/res_growth_value_task" | ||
| 14 | + android:textStyle="bold" | ||
| 15 | + android:textSize="@dimen/rmrb_dp18" | ||
| 16 | + android:textColor="@color/res_color_common_C1" | ||
| 17 | + android:layout_marginLeft="@dimen/rmrb_dp16" | ||
| 18 | + android:layout_marginTop="@dimen/rmrb_dp16"/> | ||
| 19 | + | ||
| 20 | + <androidx.recyclerview.widget.RecyclerView | ||
| 21 | + android:id="@+id/rv_task_growth" | ||
| 22 | + android:layout_width="match_parent" | ||
| 23 | + android:layout_height="wrap_content" | ||
| 24 | + android:layout_below="@+id/tv_task_title_growth" | ||
| 25 | + android:layout_marginHorizontal="@dimen/rmrb_dp16"/> | ||
| 26 | + | ||
| 27 | +</RelativeLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:layout_width="match_parent" | ||
| 4 | + android:layout_height="wrap_content"> | ||
| 5 | + | ||
| 6 | + <LinearLayout | ||
| 7 | + android:id="@+id/module_integral_ll_check_in" | ||
| 8 | + android:layout_width="match_parent" | ||
| 9 | + android:layout_height="wrap_content" | ||
| 10 | + android:orientation="horizontal"> | ||
| 11 | + | ||
| 12 | + <RelativeLayout | ||
| 13 | + android:id="@+id/fl_integral_check_in_1" | ||
| 14 | + android:layout_width="wrap_content" | ||
| 15 | + android:layout_height="wrap_content" | ||
| 16 | + android:layout_weight="1"> | ||
| 17 | + | ||
| 18 | + <ImageView | ||
| 19 | + android:id="@+id/iv_double_1" | ||
| 20 | + android:layout_width="@dimen/rmrb_dp28" | ||
| 21 | + android:layout_height="@dimen/rmrb_dp16" | ||
| 22 | + android:layout_marginBottom="@dimen/rmrb_dp4" | ||
| 23 | + android:layout_marginLeft="@dimen/rmrb_dp3" | ||
| 24 | + android:gravity="center" | ||
| 25 | + android:src="@mipmap/icon_sign_double" | ||
| 26 | + android:visibility="invisible"/> | ||
| 27 | + | ||
| 28 | + <RelativeLayout | ||
| 29 | + android:id="@+id/rl_check_inz" | ||
| 30 | + android:layout_width="wrap_content" | ||
| 31 | + android:layout_height="wrap_content" | ||
| 32 | + android:layout_below="@+id/iv_double_1"> | ||
| 33 | + | ||
| 34 | + <FrameLayout | ||
| 35 | + android:id="@+id/fl_integral_checked_1" | ||
| 36 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 37 | + android:layout_height="@dimen/rmrb_dp32"> | ||
| 38 | + | ||
| 39 | + <TextView | ||
| 40 | + android:id="@+id/tv_integral_check_in_1" | ||
| 41 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 42 | + android:layout_height="@dimen/rmrb_dp32" | ||
| 43 | + android:gravity="center" | ||
| 44 | + android:layout_gravity="center" | ||
| 45 | + android:background="@mipmap/icon_sign_grey" | ||
| 46 | + android:textSize="@dimen/rmrb_dp12" | ||
| 47 | + android:textColor="@color/res_color_common_C8_keep"/> | ||
| 48 | + | ||
| 49 | + <ImageView | ||
| 50 | + android:id="@+id/iv_integral_checked_1" | ||
| 51 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 52 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 53 | + android:gravity="center" | ||
| 54 | + android:layout_gravity="bottom|right" | ||
| 55 | + android:visibility="gone"/> | ||
| 56 | + </FrameLayout> | ||
| 57 | + | ||
| 58 | + <TextView | ||
| 59 | + android:id="@+id/tv_check_in_dec_1" | ||
| 60 | + android:layout_width="wrap_content" | ||
| 61 | + android:layout_height="wrap_content" | ||
| 62 | + android:layout_below="@+id/fl_integral_checked_1" | ||
| 63 | + android:layout_centerHorizontal="true" | ||
| 64 | + android:layout_marginTop="@dimen/rmrb_dp4" | ||
| 65 | + android:textColor="@color/res_color_general_3D3D3D" | ||
| 66 | + android:textSize="@dimen/rmrb_dp12" | ||
| 67 | + android:text="1天" /> | ||
| 68 | + </RelativeLayout> | ||
| 69 | + </RelativeLayout> | ||
| 70 | + | ||
| 71 | + <RelativeLayout | ||
| 72 | + android:id="@+id/fl_integral_check_in_2" | ||
| 73 | + android:layout_width="wrap_content" | ||
| 74 | + android:layout_height="wrap_content" | ||
| 75 | + android:layout_weight="1"> | ||
| 76 | + | ||
| 77 | + <ImageView | ||
| 78 | + android:id="@+id/iv_double_2" | ||
| 79 | + android:layout_width="@dimen/rmrb_dp28" | ||
| 80 | + android:layout_height="@dimen/rmrb_dp16" | ||
| 81 | + android:layout_marginBottom="@dimen/rmrb_dp4" | ||
| 82 | + android:layout_marginLeft="@dimen/rmrb_dp3" | ||
| 83 | + android:gravity="center" | ||
| 84 | + android:src="@mipmap/icon_sign_double" | ||
| 85 | + android:visibility="invisible"/> | ||
| 86 | + | ||
| 87 | + <RelativeLayout | ||
| 88 | + android:layout_width="wrap_content" | ||
| 89 | + android:layout_height="wrap_content" | ||
| 90 | + android:layout_below="@+id/iv_double_2"> | ||
| 91 | + | ||
| 92 | + <FrameLayout | ||
| 93 | + android:id="@+id/fl_integral_checked_2" | ||
| 94 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 95 | + android:layout_height="@dimen/rmrb_dp32"> | ||
| 96 | + | ||
| 97 | + <TextView | ||
| 98 | + android:id="@+id/tv_integral_check_in_2" | ||
| 99 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 100 | + android:layout_height="@dimen/rmrb_dp32" | ||
| 101 | + android:gravity="center" | ||
| 102 | + android:layout_gravity="center" | ||
| 103 | + android:background="@mipmap/icon_sign_grey" | ||
| 104 | + android:textSize="@dimen/rmrb_dp12" | ||
| 105 | + android:textColor="@color/res_color_common_C8_keep"/> | ||
| 106 | + | ||
| 107 | + <ImageView | ||
| 108 | + android:id="@+id/iv_integral_checked_2" | ||
| 109 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 110 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 111 | + android:gravity="center" | ||
| 112 | + android:layout_gravity="bottom|right" | ||
| 113 | + android:visibility="gone"/> | ||
| 114 | + </FrameLayout> | ||
| 115 | + | ||
| 116 | + <TextView | ||
| 117 | + android:id="@+id/tv_check_in_dec_2" | ||
| 118 | + android:layout_width="wrap_content" | ||
| 119 | + android:layout_height="wrap_content" | ||
| 120 | + android:layout_below="@+id/fl_integral_checked_2" | ||
| 121 | + android:layout_centerHorizontal="true" | ||
| 122 | + android:layout_marginTop="@dimen/rmrb_dp4" | ||
| 123 | + android:textColor="@color/res_color_general_3D3D3D" | ||
| 124 | + android:textSize="@dimen/rmrb_dp12" | ||
| 125 | + android:text="2天" /> | ||
| 126 | + </RelativeLayout> | ||
| 127 | + </RelativeLayout> | ||
| 128 | + | ||
| 129 | + | ||
| 130 | + <RelativeLayout | ||
| 131 | + android:id="@+id/fl_integral_check_in_3" | ||
| 132 | + android:layout_width="wrap_content" | ||
| 133 | + android:layout_height="wrap_content" | ||
| 134 | + android:layout_weight="1"> | ||
| 135 | + | ||
| 136 | + <ImageView | ||
| 137 | + android:id="@+id/iv_double_3" | ||
| 138 | + android:layout_width="@dimen/rmrb_dp28" | ||
| 139 | + android:layout_height="@dimen/rmrb_dp16" | ||
| 140 | + android:layout_marginBottom="@dimen/rmrb_dp4" | ||
| 141 | + android:layout_marginLeft="@dimen/rmrb_dp3" | ||
| 142 | + android:gravity="center" | ||
| 143 | + android:src="@mipmap/icon_sign_double" | ||
| 144 | + android:visibility="invisible"/> | ||
| 145 | + | ||
| 146 | + <RelativeLayout | ||
| 147 | + android:layout_width="wrap_content" | ||
| 148 | + android:layout_height="wrap_content" | ||
| 149 | + android:layout_below="@+id/iv_double_3"> | ||
| 150 | + | ||
| 151 | + <FrameLayout | ||
| 152 | + android:id="@+id/fl_integral_checked_3" | ||
| 153 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 154 | + android:layout_height="@dimen/rmrb_dp32"> | ||
| 155 | + | ||
| 156 | + <TextView | ||
| 157 | + android:id="@+id/tv_integral_check_in_3" | ||
| 158 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 159 | + android:layout_height="@dimen/rmrb_dp32" | ||
| 160 | + android:gravity="center" | ||
| 161 | + android:layout_gravity="center" | ||
| 162 | + android:background="@mipmap/icon_sign_grey" | ||
| 163 | + android:textSize="@dimen/rmrb_dp12" | ||
| 164 | + android:textColor="@color/res_color_common_C8_keep"/> | ||
| 165 | + | ||
| 166 | + <ImageView | ||
| 167 | + android:id="@+id/iv_integral_checked_3" | ||
| 168 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 169 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 170 | + android:gravity="center" | ||
| 171 | + android:layout_gravity="bottom|right" | ||
| 172 | + android:visibility="gone"/> | ||
| 173 | + </FrameLayout> | ||
| 174 | + | ||
| 175 | + <TextView | ||
| 176 | + android:id="@+id/tv_check_in_dec_3" | ||
| 177 | + android:layout_width="wrap_content" | ||
| 178 | + android:layout_height="wrap_content" | ||
| 179 | + android:layout_below="@+id/fl_integral_checked_3" | ||
| 180 | + android:layout_centerHorizontal="true" | ||
| 181 | + android:layout_marginTop="@dimen/rmrb_dp4" | ||
| 182 | + android:textColor="@color/res_color_general_3D3D3D" | ||
| 183 | + android:textSize="@dimen/rmrb_dp12" | ||
| 184 | + android:text="3天" /> | ||
| 185 | + </RelativeLayout> | ||
| 186 | + </RelativeLayout> | ||
| 187 | + | ||
| 188 | + <RelativeLayout | ||
| 189 | + android:id="@+id/fl_integral_check_in_4" | ||
| 190 | + android:layout_width="wrap_content" | ||
| 191 | + android:layout_height="wrap_content" | ||
| 192 | + android:layout_weight="1"> | ||
| 193 | + | ||
| 194 | + <ImageView | ||
| 195 | + android:id="@+id/iv_double_4" | ||
| 196 | + android:layout_width="@dimen/rmrb_dp28" | ||
| 197 | + android:layout_height="@dimen/rmrb_dp16" | ||
| 198 | + android:layout_marginBottom="@dimen/rmrb_dp4" | ||
| 199 | + android:layout_marginLeft="@dimen/rmrb_dp3" | ||
| 200 | + android:gravity="center" | ||
| 201 | + android:src="@mipmap/icon_sign_double" | ||
| 202 | + android:visibility="invisible"/> | ||
| 203 | + | ||
| 204 | + <RelativeLayout | ||
| 205 | + android:layout_width="wrap_content" | ||
| 206 | + android:layout_height="wrap_content" | ||
| 207 | + android:layout_below="@+id/iv_double_4"> | ||
| 208 | + | ||
| 209 | + <FrameLayout | ||
| 210 | + android:id="@+id/fl_integral_checked_4" | ||
| 211 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 212 | + android:layout_height="@dimen/rmrb_dp32"> | ||
| 213 | + | ||
| 214 | + <TextView | ||
| 215 | + android:id="@+id/tv_integral_check_in_4" | ||
| 216 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 217 | + android:layout_height="@dimen/rmrb_dp32" | ||
| 218 | + android:gravity="center" | ||
| 219 | + android:layout_gravity="center" | ||
| 220 | + android:background="@mipmap/icon_sign_grey" | ||
| 221 | + android:textSize="@dimen/rmrb_dp12" | ||
| 222 | + android:textColor="@color/res_color_common_C8_keep"/> | ||
| 223 | + | ||
| 224 | + <ImageView | ||
| 225 | + android:id="@+id/iv_integral_checked_4" | ||
| 226 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 227 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 228 | + android:gravity="center" | ||
| 229 | + android:layout_gravity="bottom|right" | ||
| 230 | + android:visibility="gone"/> | ||
| 231 | + </FrameLayout> | ||
| 232 | + | ||
| 233 | + <TextView | ||
| 234 | + android:id="@+id/tv_check_in_dec_4" | ||
| 235 | + android:layout_width="wrap_content" | ||
| 236 | + android:layout_height="wrap_content" | ||
| 237 | + android:layout_below="@+id/fl_integral_checked_4" | ||
| 238 | + android:layout_centerHorizontal="true" | ||
| 239 | + android:layout_marginTop="@dimen/rmrb_dp4" | ||
| 240 | + android:textColor="@color/res_color_general_3D3D3D" | ||
| 241 | + android:textSize="@dimen/rmrb_dp12" | ||
| 242 | + android:text="4天" /> | ||
| 243 | + </RelativeLayout> | ||
| 244 | + </RelativeLayout> | ||
| 245 | + | ||
| 246 | + <RelativeLayout | ||
| 247 | + android:id="@+id/fl_integral_check_in_5" | ||
| 248 | + android:layout_width="wrap_content" | ||
| 249 | + android:layout_height="wrap_content" | ||
| 250 | + android:layout_weight="1"> | ||
| 251 | + | ||
| 252 | + <ImageView | ||
| 253 | + android:id="@+id/iv_double_5" | ||
| 254 | + android:layout_width="@dimen/rmrb_dp28" | ||
| 255 | + android:layout_height="@dimen/rmrb_dp16" | ||
| 256 | + android:layout_marginBottom="@dimen/rmrb_dp4" | ||
| 257 | + android:layout_marginLeft="@dimen/rmrb_dp3" | ||
| 258 | + android:gravity="center" | ||
| 259 | + android:src="@mipmap/icon_sign_double" | ||
| 260 | + android:visibility="invisible"/> | ||
| 261 | + | ||
| 262 | + <RelativeLayout | ||
| 263 | + android:layout_width="wrap_content" | ||
| 264 | + android:layout_height="wrap_content" | ||
| 265 | + android:layout_below="@+id/iv_double_5"> | ||
| 266 | + | ||
| 267 | + <FrameLayout | ||
| 268 | + android:id="@+id/fl_integral_checked_5" | ||
| 269 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 270 | + android:layout_height="@dimen/rmrb_dp32"> | ||
| 271 | + | ||
| 272 | + <TextView | ||
| 273 | + android:id="@+id/tv_integral_check_in_5" | ||
| 274 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 275 | + android:layout_height="@dimen/rmrb_dp32" | ||
| 276 | + android:gravity="center" | ||
| 277 | + android:layout_gravity="center" | ||
| 278 | + android:background="@mipmap/icon_sign_grey" | ||
| 279 | + android:textSize="@dimen/rmrb_dp12" | ||
| 280 | + android:textColor="@color/res_color_common_C8_keep"/> | ||
| 281 | + | ||
| 282 | + <ImageView | ||
| 283 | + android:id="@+id/iv_integral_checked_5" | ||
| 284 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 285 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 286 | + android:gravity="center" | ||
| 287 | + android:layout_gravity="bottom|right" | ||
| 288 | + android:visibility="gone" /> | ||
| 289 | + </FrameLayout> | ||
| 290 | + | ||
| 291 | + <TextView | ||
| 292 | + android:id="@+id/tv_check_in_dec_5" | ||
| 293 | + android:layout_width="wrap_content" | ||
| 294 | + android:layout_height="wrap_content" | ||
| 295 | + android:layout_below="@+id/fl_integral_checked_5" | ||
| 296 | + android:layout_centerHorizontal="true" | ||
| 297 | + android:layout_marginTop="@dimen/rmrb_dp4" | ||
| 298 | + android:textColor="@color/res_color_general_3D3D3D" | ||
| 299 | + android:textSize="@dimen/rmrb_dp12" | ||
| 300 | + android:text="5天" /> | ||
| 301 | + </RelativeLayout> | ||
| 302 | + </RelativeLayout> | ||
| 303 | + | ||
| 304 | + <RelativeLayout | ||
| 305 | + android:id="@+id/fl_integral_check_in_6" | ||
| 306 | + android:layout_width="wrap_content" | ||
| 307 | + android:layout_height="wrap_content" | ||
| 308 | + android:layout_weight="1"> | ||
| 309 | + | ||
| 310 | + <ImageView | ||
| 311 | + android:id="@+id/iv_double_6" | ||
| 312 | + android:layout_width="@dimen/rmrb_dp28" | ||
| 313 | + android:layout_height="@dimen/rmrb_dp16" | ||
| 314 | + android:layout_marginBottom="@dimen/rmrb_dp4" | ||
| 315 | + android:layout_marginLeft="@dimen/rmrb_dp3" | ||
| 316 | + android:gravity="center" | ||
| 317 | + android:src="@mipmap/icon_sign_double" | ||
| 318 | + android:visibility="invisible"/> | ||
| 319 | + | ||
| 320 | + <RelativeLayout | ||
| 321 | + android:layout_width="wrap_content" | ||
| 322 | + android:layout_height="wrap_content" | ||
| 323 | + android:layout_below="@+id/iv_double_6"> | ||
| 324 | + | ||
| 325 | + <FrameLayout | ||
| 326 | + android:id="@+id/fl_integral_checked_6" | ||
| 327 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 328 | + android:layout_height="@dimen/rmrb_dp32"> | ||
| 329 | + | ||
| 330 | + <TextView | ||
| 331 | + android:id="@+id/tv_integral_check_in_6" | ||
| 332 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 333 | + android:layout_height="@dimen/rmrb_dp32" | ||
| 334 | + android:gravity="center" | ||
| 335 | + android:layout_gravity="center" | ||
| 336 | + android:background="@mipmap/icon_sign_grey" | ||
| 337 | + android:textSize="@dimen/rmrb_dp12" | ||
| 338 | + android:textColor="@color/res_color_common_C8_keep"/> | ||
| 339 | + | ||
| 340 | + <ImageView | ||
| 341 | + android:id="@+id/iv_integral_checked_6" | ||
| 342 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 343 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 344 | + android:gravity="center" | ||
| 345 | + android:layout_gravity="bottom|right" | ||
| 346 | + android:visibility="gone"/> | ||
| 347 | + </FrameLayout> | ||
| 348 | + | ||
| 349 | + <TextView | ||
| 350 | + android:id="@+id/tv_check_in_dec_6" | ||
| 351 | + android:layout_width="wrap_content" | ||
| 352 | + android:layout_height="wrap_content" | ||
| 353 | + android:layout_below="@+id/fl_integral_checked_6" | ||
| 354 | + android:layout_centerHorizontal="true" | ||
| 355 | + android:layout_marginTop="@dimen/rmrb_dp4" | ||
| 356 | + android:textColor="@color/res_color_general_3D3D3D" | ||
| 357 | + android:textSize="@dimen/rmrb_dp12" | ||
| 358 | + android:text="6天" /> | ||
| 359 | + </RelativeLayout> | ||
| 360 | + </RelativeLayout> | ||
| 361 | + | ||
| 362 | + <RelativeLayout | ||
| 363 | + android:id="@+id/fl_integral_check_in_7" | ||
| 364 | + android:layout_width="wrap_content" | ||
| 365 | + android:layout_height="wrap_content"> | ||
| 366 | + | ||
| 367 | + <ImageView | ||
| 368 | + android:id="@+id/iv_double_7" | ||
| 369 | + android:layout_width="@dimen/rmrb_dp28" | ||
| 370 | + android:layout_height="@dimen/rmrb_dp16" | ||
| 371 | + android:layout_marginBottom="@dimen/rmrb_dp4" | ||
| 372 | + android:layout_marginLeft="@dimen/rmrb_dp3" | ||
| 373 | + android:gravity="center" | ||
| 374 | + android:src="@mipmap/icon_sign_double" | ||
| 375 | + android:visibility="invisible"/> | ||
| 376 | + | ||
| 377 | + <RelativeLayout | ||
| 378 | + android:layout_width="wrap_content" | ||
| 379 | + android:layout_height="wrap_content" | ||
| 380 | + android:layout_below="@+id/iv_double_7"> | ||
| 381 | + | ||
| 382 | + <FrameLayout | ||
| 383 | + android:id="@+id/fl_integral_checked_7" | ||
| 384 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 385 | + android:layout_height="@dimen/rmrb_dp32"> | ||
| 386 | + | ||
| 387 | + <TextView | ||
| 388 | + android:id="@+id/tv_integral_check_in_7" | ||
| 389 | + android:layout_width="@dimen/rmrb_dp32" | ||
| 390 | + android:layout_height="@dimen/rmrb_dp32" | ||
| 391 | + android:gravity="center" | ||
| 392 | + android:layout_gravity="center" | ||
| 393 | + android:background="@mipmap/icon_sign_grey" | ||
| 394 | + android:textSize="@dimen/rmrb_dp12" | ||
| 395 | + android:textColor="@color/res_color_common_C8_keep"/> | ||
| 396 | + | ||
| 397 | + <ImageView | ||
| 398 | + android:id="@+id/iv_integral_checked_7" | ||
| 399 | + android:layout_width="@dimen/rmrb_dp14" | ||
| 400 | + android:layout_height="@dimen/rmrb_dp14" | ||
| 401 | + android:gravity="center" | ||
| 402 | + android:layout_gravity="bottom|right" | ||
| 403 | + android:visibility="visible"/> | ||
| 404 | + </FrameLayout> | ||
| 405 | + | ||
| 406 | + <TextView | ||
| 407 | + android:id="@+id/tv_check_in_dec_7" | ||
| 408 | + android:layout_width="wrap_content" | ||
| 409 | + android:layout_height="wrap_content" | ||
| 410 | + android:layout_below="@+id/fl_integral_checked_7" | ||
| 411 | + android:layout_centerHorizontal="true" | ||
| 412 | + android:layout_marginTop="@dimen/rmrb_dp4" | ||
| 413 | + android:textColor="@color/res_color_general_3D3D3D" | ||
| 414 | + android:textSize="@dimen/rmrb_dp12" | ||
| 415 | + android:text="7天" /> | ||
| 416 | + </RelativeLayout> | ||
| 417 | + </RelativeLayout> | ||
| 418 | + </LinearLayout> | ||
| 419 | + | ||
| 420 | +</FrameLayout> |
No preview for this file type
No preview for this file type
No preview for this file type
660 Bytes
No preview for this file type
No preview for this file type
1.13 KB
3.45 KB
819 Bytes
No preview for this file type
710 Bytes
1.99 KB
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
809 Bytes
566 Bytes
No preview for this file type
9.32 KB
No preview for this file type
111 KB
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
36.8 KB
845 Bytes
2.06 KB
625 Bytes
1.99 KB
2.06 KB
1.99 KB
901 Bytes
No preview for this file type
No preview for this file type
No preview for this file type
5.06 KB
No preview for this file type
4.28 KB
3.74 KB
418 Bytes
4.03 KB
4.11 KB
4.03 KB
No preview for this file type
No preview for this file type
2.1 KB
No preview for this file type
No preview for this file type
No preview for this file type
1000 Bytes
No preview for this file type
No preview for this file type
967 Bytes
2.01 KB
3.07 KB
3.01 KB
No preview for this file type
713 Bytes
No preview for this file type
586 Bytes
1.77 KB
No preview for this file type
449 Bytes
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
3.35 KB
742 Bytes
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
546 Bytes
520 Bytes
No preview for this file type
No preview for this file type
No preview for this file type
1.85 KB
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
862 Bytes
26.7 KB
No preview for this file type
No preview for this file type
module_personalcenter/src/main/res/mipmap-xxhdpi/module_personal_center_login_input_bg.webp
0 → 100644
No preview for this file type
module_personalcenter/src/main/res/mipmap-xxhdpi/module_personal_center_login_tv_bg_n.webp
0 → 100644
No preview for this file type
module_personalcenter/src/main/res/mipmap-xxhdpi/module_personal_center_login_tv_bg_s.webp
0 → 100644
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<resources> | ||
| 3 | + <string-array name="channel_focus"> | ||
| 4 | + <item>我的关注</item> | ||
| 5 | + <item>推荐</item> | ||
| 6 | + <item>音乐</item> | ||
| 7 | + <item>搞笑</item> | ||
| 8 | + <item>社会</item> | ||
| 9 | + <item>小品</item> | ||
| 10 | + <item>生活</item> | ||
| 11 | + <item>影视</item> | ||
| 12 | + <item>娱乐</item> | ||
| 13 | + <item>呆萌</item> | ||
| 14 | + <item>游戏</item> | ||
| 15 | + <item>原创</item> | ||
| 16 | + <item>开眼</item> | ||
| 17 | + </string-array> | ||
| 18 | + <string-array name="channel_code_focus"> | ||
| 19 | + <item>subv_focus</item> | ||
| 20 | + <item>subv_recom</item> | ||
| 21 | + <item>subv_voice</item> | ||
| 22 | + <item>subv_funny</item> | ||
| 23 | + <item>subv_society</item> | ||
| 24 | + <item>subv_comedy</item> | ||
| 25 | + <item>subv_life</item> | ||
| 26 | + <item>subv_movie</item> | ||
| 27 | + <item>subv_entertainment</item> | ||
| 28 | + <item>subv_cute</item> | ||
| 29 | + <item>subv_game</item> | ||
| 30 | + <item>subv_boutique</item> | ||
| 31 | + <item>subv_broaden_view</item> | ||
| 32 | + </string-array> | ||
| 33 | + <string-array name="province_name"> | ||
| 34 | + <item>河北省</item> | ||
| 35 | + <item>山西省</item> | ||
| 36 | + <item>辽宁省</item> | ||
| 37 | + <item>吉林省</item> | ||
| 38 | + <item>黑龙江</item> | ||
| 39 | + <item>江苏省</item> | ||
| 40 | + <item>浙江省</item> | ||
| 41 | + <item>安徽省</item> | ||
| 42 | + <item>福建省</item> | ||
| 43 | + <item>江西省</item> | ||
| 44 | + <item>山东省</item> | ||
| 45 | + <item>河南省</item> | ||
| 46 | + <item>湖北省</item> | ||
| 47 | + <item>湖南省</item> | ||
| 48 | + <item>广东省</item> | ||
| 49 | + <item>海南省</item> | ||
| 50 | + <item>四川省</item> | ||
| 51 | + <item>贵州省</item> | ||
| 52 | + </string-array> | ||
| 53 | + | ||
| 54 | + | ||
| 55 | + | ||
| 56 | + <!-- 号主作品 --> | ||
| 57 | + <string-array name="menu_works"> | ||
| 58 | + <item>全部</item> | ||
| 59 | + <item>动态</item> | ||
| 60 | + <item>文章</item> | ||
| 61 | + <item>多图</item> | ||
| 62 | + <item>视频</item> | ||
| 63 | + <item>直播</item> | ||
| 64 | + </string-array> | ||
| 65 | +</resources> |
| 1 | +<resources xmlns:tools="http://schemas.android.com/tools"> | ||
| 2 | + <string name="feedback_comments" translatable="false">您的宝贵意见是我们前行的动力</string> | ||
| 3 | + <string name="feedback_email" translatable="false">期待您留下联系方式,我们将提供更好的服务</string> | ||
| 4 | + <string name="feedback_hideemail" translatable="false">请输入电话或者邮箱</string> | ||
| 5 | + <string name="feedback_mail" translatable="false">电话或者邮箱</string> | ||
| 6 | + <string name="submit" translatable="false">提交</string> | ||
| 7 | + <string name="cancellation_failure" translatable="false">用户刷新token为空</string> | ||
| 8 | + <string name="feedBackCommitSuccess" translatable="false">反馈成功</string> | ||
| 9 | + <string name="feedBackCommitFail" translatable="false">反馈失败</string> | ||
| 10 | + <string name="feedback_TypeFail" translatable="false">请选择问题类型</string> | ||
| 11 | + <string name="edit_history_cancel" translatable="false">取消</string> | ||
| 12 | + <string name="edit_history_edit" translatable="false">编辑</string> | ||
| 13 | + <string name="failed" translatable="false">设置失败</string> | ||
| 14 | + <string name="do_you_want_to_clear_your_browsing_history">是否确认清空?</string> | ||
| 15 | + <string name="do_you_want_to_empty_my_favorites">是否确认清空?</string> | ||
| 16 | + <string name="do_you_want_to_delete_the_selected_browsing_history">是否确认删除?</string> | ||
| 17 | + <string name="del_selected_browsing_history">确认删除%s条历史</string> | ||
| 18 | + <string name="del_the_selected_my_favorites">确认删除%s条收藏</string> | ||
| 19 | + <string name="remove_the_selected_my_favorites">确认移出%s条收藏</string> | ||
| 20 | + <string name="str_edit_profile_title">编辑资料</string> | ||
| 21 | + <string name="str_click_change_head_icon">点击更换头像</string> | ||
| 22 | + <string name="str_user_name">昵称</string> | ||
| 23 | + <string name="str_introduction">简介</string> | ||
| 24 | + <string name="str_address">地区</string> | ||
| 25 | + <string name="str_birthday">生日</string> | ||
| 26 | + <string name="str_sex">性别</string> | ||
| 27 | + <string name="str_under_review">审核中</string> | ||
| 28 | + <string name="str_to_improve">待完善</string> | ||
| 29 | + <string name="str_edit_nick_name_title">修改昵称</string> | ||
| 30 | + <string name="str_edit_nick_name_hint">请输入昵称</string> | ||
| 31 | + <string name="str_edit_nick_name_desc">1、账号中(头像、昵称等) 不允许含有违法违规内容; | ||
| 32 | + \n2、最多16个字,只能输入中文、数字、英文字母。</string> | ||
| 33 | + <string name="str_edit_nick_introduction_desc">1、账号中(头像、昵称等) 不允许含有违法违规内容; | ||
| 34 | + \n2、最多60个字,只能输入中文、数字、英文字母。</string> | ||
| 35 | + <string name="str_save">保存</string> | ||
| 36 | + <string name="toast_no_des_master">点击添加简介,让大家认识你</string> | ||
| 37 | + <string name="str_edit_introduction_title">修改简介</string> | ||
| 38 | + <string name="str_edit_introduction_hint">请输入简介</string> | ||
| 39 | + | ||
| 40 | + <string name="permission_not_allow">去设置</string> | ||
| 41 | + <string name="permission_albums">相册权限</string> | ||
| 42 | + <string name="permission_albums_description">用于拍摄照片和视频,发布视频,修改头像功能</string> | ||
| 43 | + <string name="permission_turn_on_personalized_recommendations">开启个性推荐</string> | ||
| 44 | + <string name="permission_turn_on_personalized_recommendations_description">关闭后,将不会使用你的偏好进行内容推荐</string> | ||
| 45 | + <string name="permission_turn_on_privacy_policy_authorization">隐私政策授权</string> | ||
| 46 | + <string name="permission_turn_on_privacy_policy_authorization_description">关闭后,我们将停止收集你的个人信息</string> | ||
| 47 | + <string name="permission_takephoto">相机权限</string> | ||
| 48 | + <string name="permission_takephoto_description">用于拍摄照片和视频、发布视频、扫一扫功能</string> | ||
| 49 | + <string name="permission_position">定位权限</string> | ||
| 50 | + <string name="permission_position_description">用于根据您的位置为您提供更准确的本地资讯、发布信息时展示位置信息功能</string> | ||
| 51 | + <string name="permission_microphone">麦克风权限</string> | ||
| 52 | + <string name="permission_microphone_description">用于语音输入、语音搜索、拍摄视频的语音交互功能</string> | ||
| 53 | + <string name="permission_set">设置前可查阅</string> | ||
| 54 | + <string name="permission_url">《隐私政策》</string> | ||
| 55 | + <string name="permission_url_rule">中相应权限使用规则</string> | ||
| 56 | + <string name="feedback_type1">产品建议</string> | ||
| 57 | + <string name="feedback_type2">功能故障</string> | ||
| 58 | + <string name="feedback_type3">其他问题</string> | ||
| 59 | + <string name="feedback_phone_hint">请填入手机号</string> | ||
| 60 | + <string name="feedback_phone">联系方式</string> | ||
| 61 | + <string name="feedback_type_tip">*</string> | ||
| 62 | + <string name="feedback_type">反馈类型</string> | ||
| 63 | + <string name="setting_logout">退出登录</string> | ||
| 64 | + <string name="setting_cancellations">注销账号</string> | ||
| 65 | + <string name="setting_private_permissions">隐私权限</string> | ||
| 66 | + <string name="setting_mine_password">设置密码</string> | ||
| 67 | + <string name="setting_bind_third_account">绑定第三方账号</string> | ||
| 68 | + <string name="logout_tip_title">为保证您的账号安全,在您提交的注销申请生效前,需同时满足以下几个条件:</string> | ||
| 69 | + <string name="logout_tip_text1">1. 账号处于安全状态</string> | ||
| 70 | + <string name="logout_tip_text1_sub">账号处于正常使用状态,无被盗风险。</string> | ||
| 71 | + <string name="logout_tip_text2">2. 账号权限解除</string> | ||
| 72 | + <string name="logout_tip_text2_sub">账号已解除与其他产品的授权登录或绑定关系。</string> | ||
| 73 | + <string name="logout_tip_text3">3. 账号无任何纠纷,包括举报投诉</string> | ||
| 74 | + <string name="user_name">昵称</string> | ||
| 75 | + <string name="user_name_hint">请输入昵称</string> | ||
| 76 | + <string name="user_des">简介</string> | ||
| 77 | + <string name="user_des_hint">爱生活 爱人民</string> | ||
| 78 | + <string name="user_sex">性别</string> | ||
| 79 | + <string name="user_birthday">生日</string> | ||
| 80 | + <string name="user_birthday_hint">请选择生日</string> | ||
| 81 | + <string name="user_area_hint">请选择所在地区</string> | ||
| 82 | + <string name="user_account_id">账号ID</string> | ||
| 83 | + <string name="user_authentication">认证</string> | ||
| 84 | + <string name="please_sel_sex">请选择性别</string> | ||
| 85 | + <string name="user_job">职业</string> | ||
| 86 | + <string name="user_job_hint">选择职业</string> | ||
| 87 | + | ||
| 88 | + <string name="str_privacy_policy_authorization_dialog_content">撤销隐私政策,将无法正常使用“人民日报客户端”,将会退出APP,需使用要重新打开APP即可,是否确认撤销?</string> | ||
| 89 | + <string name="str_dialog_btn_revoke">撤销</string> | ||
| 90 | + <string name="str_dialog_btn_continue">继续使用</string> | ||
| 91 | + | ||
| 92 | + <string name="setting_title">设置</string> | ||
| 93 | + <string name="setting_privacy_title">隐私权限</string> | ||
| 94 | + <string name="setting_logout_title">注销账号</string> | ||
| 95 | + <string name="upload_title">上传</string> | ||
| 96 | + <string name="person_info_title">编辑资料</string> | ||
| 97 | + <string name="feedback_hint_content">请输入(5-300字以内)</string> | ||
| 98 | + <string name="report_hint">请输入描述(必填)</string> | ||
| 99 | + <string name="feedback_success">问题反馈成功</string> | ||
| 100 | + <string name="feedback_fail">问题反馈失败</string> | ||
| 101 | + <string name="feedback_content_input">请输入正文描述您要反馈的问题</string> | ||
| 102 | + <string name="feedback_btn_name">意见/问题反馈</string> | ||
| 103 | + <string name="feedback_help_title">帮助与反馈</string> | ||
| 104 | + <string name="common_questions">常见问题</string> | ||
| 105 | + | ||
| 106 | + <string name="news_personal_suggestion_box_str">意见反馈</string> | ||
| 107 | + <string name="news_personal_wx_account">绑定微信</string> | ||
| 108 | + <string name="news_personal_wb_account">绑定新浪微博</string> | ||
| 109 | + <string name="news_personal_qq_account">绑定QQ</string> | ||
| 110 | + <string name="news_personal_unbind">立即绑定</string> | ||
| 111 | + <string name="news_personal_bind">已绑定</string> | ||
| 112 | + <string name="news_personal_account_and_safe">账户管理</string> | ||
| 113 | + <string name="news_personal_phone">更换手机号</string> | ||
| 114 | + <string name="known">我知道了</string> | ||
| 115 | + <string name="cancle">取消</string> | ||
| 116 | + <string name="edit_info">编辑资料</string> | ||
| 117 | + <string name="drafts_info">草稿箱</string> | ||
| 118 | + | ||
| 119 | + <string name="redact_personal">编辑</string> | ||
| 120 | + <string name="revocation_personal">撤回</string> | ||
| 121 | + <string name="unstick_personal">取消置顶</string> | ||
| 122 | + <string name="stick_personal">置顶</string> | ||
| 123 | + <string name="delete_personal">删除</string> | ||
| 124 | + <string name="cancel_personal">取消</string> | ||
| 125 | + <string name="module_personal_center_p_old_cipher_tip">请输入原密码</string> | ||
| 126 | + <string name="module_personal_center_p_new_cipher_tip">请输入新密码</string> | ||
| 127 | + <string name="module_personal_center_agin_sure_cipher">再次输入新密码</string> | ||
| 128 | + <string name="module_personal_center_b_sure">确认</string> | ||
| 129 | + <string name="module_personal_center_two_input_diverse">两次输入的密码不一致,请重新输入</string> | ||
| 130 | + <string name="module_personal_center_please_input_password">请输入密码</string> | ||
| 131 | + <string name="module_personal_center_login_success_tip">登录成功</string> | ||
| 132 | + <string name="module_personal_center_get_user_failed">获取用户信息失败</string> | ||
| 133 | + <string name="review_waiting">发布中,请耐心等待</string> | ||
| 134 | + <string name="toast_input_name">点击填写昵称</string> | ||
| 135 | + <string name="toast_person_info_bottom">完善基础资料编辑,可进一步认证创作者,\n并有效提升被关注的概率</string> | ||
| 136 | + <string name="module_personal_center_net_error">网络出小差了,请检查网络后重试</string> | ||
| 137 | + <string name="info_paste_success">信息已复制到粘贴板</string> | ||
| 138 | + | ||
| 139 | + <!-- 收银台--> | ||
| 140 | + <string name="wechat_pay">微信支付</string> | ||
| 141 | + <string name="ali_apy">支付宝支付</string> | ||
| 142 | + <string name="cashier_desk">收银台</string> | ||
| 143 | + <string name="real_amount">实付金额</string> | ||
| 144 | + <string name="go_pay">去支付</string> | ||
| 145 | + <string name="pay_count_down">支付截止时间  </string> | ||
| 146 | + <string name="order_pay_success">订单支付成功</string> | ||
| 147 | + <string name="order_pay_timeout">订单支付超时</string> | ||
| 148 | + <string name="order_pay_fail">订单支付失败</string> | ||
| 149 | + <string name="direct_sales">直营</string> | ||
| 150 | + <string name="inner_bug_system">内部采购系统</string> | ||
| 151 | + <string name="look_order">查看订单</string> | ||
| 152 | + <string name="mine_pay_finish">我已支付成功</string> | ||
| 153 | + <string name="pay_fail_retry">支付失败再试一次</string> | ||
| 154 | + <string name="pay_cancel">取消</string> | ||
| 155 | + <string name="order_unpay_retry">订单尚未支付,请重新支付</string> | ||
| 156 | + <string name="i_know">我知道了</string> | ||
| 157 | + <string name="money_flag">¥</string> | ||
| 158 | + <string name="count_end">00:00</string> | ||
| 159 | + <string name="pay_result_query_order">查询订单</string> | ||
| 160 | + <string name="cashier_pay_amount">订单金额:</string> | ||
| 161 | + <string name="money">¥%f</string> | ||
| 162 | + <string name="order_no">编号:%s</string> | ||
| 163 | + <string name="serial_number_no">付款流水号:%s</string> | ||
| 164 | + <string name="retry">重试</string> | ||
| 165 | + <string name="pay_close">关闭</string> | ||
| 166 | + <string name="order_unpay_repay">订单尚未支付,请重新支付</string> | ||
| 167 | + <string name="logout_tips" tools:ignore="ExtraTranslation">我已阅读并同意</string> | ||
| 168 | + <string name="logout_tips2" tools:ignore="ExtraTranslation">《用户注销协议》</string> | ||
| 169 | + <string name="confirm" tools:ignore="ExtraTranslation">确认</string> | ||
| 170 | + | ||
| 171 | + <string name="res_str_comment">评论</string> | ||
| 172 | + <string name="res_str_attention">关注</string> | ||
| 173 | + <string name="res_str_collect">收藏</string> | ||
| 174 | + <string name="res_str_history">历史</string> | ||
| 175 | + <string name="res_str_message">消息</string> | ||
| 176 | + <string name="res_str_ask_politics">问政</string> | ||
| 177 | + <string name="res_str_message_board">留言板</string> | ||
| 178 | + <string name="res_str_subscribe">预约</string> | ||
| 179 | + <string name="res_str_event_submission">活动投稿</string> | ||
| 180 | + | ||
| 181 | + <string name="res_str_creator_center">创作者中心</string> | ||
| 182 | + <string name="res_str_content_management">内容管理</string> | ||
| 183 | + <string name="res_str_publish_article">发布文章</string> | ||
| 184 | + <string name="res_str_publish_video">发布视频</string> | ||
| 185 | + <string name="res_str_publish_dynamic">发布动态</string> | ||
| 186 | + <string name="res_str_start_live">发起直播</string> | ||
| 187 | + <string name="res_str_publish_atlas">发布图集</string> | ||
| 188 | + | ||
| 189 | + <string name="res_str_more_functions">更多功能</string> | ||
| 190 | + <string name="res_str_night_mode">夜间模式</string> | ||
| 191 | + <string name="res_str_my_prize">我的奖品</string> | ||
| 192 | + <string name="res_str_feed_back">意见反馈</string> | ||
| 193 | + <string name="res_str_setting">设置</string> | ||
| 194 | + <string name="res_str_about">关于</string> | ||
| 195 | + <string name="res_str_more">更多</string> | ||
| 196 | + <string name="res_str_scan">扫一扫</string> | ||
| 197 | + <string name="res_str_widget">桌面小组件</string> | ||
| 198 | + | ||
| 199 | +<!-- 新加 --> | ||
| 200 | + <string name="trends_detail">动态详情</string> | ||
| 201 | + <string name="come_day_number">来到人民日报%d天</string> | ||
| 202 | + <string name="ip_address">IP归属地:%s</string> | ||
| 203 | + | ||
| 204 | + <string name="res_str_check">您的资料已保存,请稍候</string> | ||
| 205 | + <string name="res_str_change_num">本月修改次数已用完</string> | ||
| 206 | + <string name="res_str_update_success_creator">您的资料已提交</string> | ||
| 207 | + <string name="res_str_update_success">您的资料已提交</string> | ||
| 208 | + <string name="res_str_no_data_">- -</string> | ||
| 209 | + | ||
| 210 | + <string name="cancel_account_tips">请注意:注销后%s天内不能再次注册人民日报客户端,需要等到账号冷静期结束才能再次登录注册</string> | ||
| 211 | + <string name="cancel_account_sure_tips">注销后%s天内无法重新登录注册人民日报app,是否确认注销?</string> | ||
| 212 | + <string name="author_deactivated_sure_tips">您确认要注销账号吗? 请联系rmh@pdnews.cn邮箱</string> | ||
| 213 | + <string name="about_app_copyright">京ICP备16066560号-6A Copyright © 人民日报客户端\n all rights reserved.</string> | ||
| 214 | + | ||
| 215 | + <string name="message_comment_works">评论了你的作品</string> | ||
| 216 | + <string name="message_follow">关注了你</string> | ||
| 217 | + <string name="message_like_works">赞了你的作品</string> | ||
| 218 | + <string name="message_reply_comment">回复了你的评论</string> | ||
| 219 | + <string name="message_like_comment">赞了你的评论</string> | ||
| 220 | + <string name="message_like_forward">转发了您的作品</string> | ||
| 221 | + | ||
| 222 | + <string name="res_str_integral_sign_explain">1、7天为一个签到周期,断签会丢失连签资格 | ||
| 223 | + \n2、7连签达成以后的下一天,开始新的一轮签到 | ||
| 224 | + \n3、错过的签到不能补签 | ||
| 225 | + \n4、完成全部每日任务次数可以获得积分 | ||
| 226 | + \n5、每日任务每天凌晨00:00重置 | ||
| 227 | + \n6、常规任务积分只能获得一次</string> | ||
| 228 | + | ||
| 229 | + <string name="res_str_signed_in">已签到</string> | ||
| 230 | + <string name="res_cancel_edit_collect_tag">取消编辑</string> | ||
| 231 | + <string name="res_edit_collect_tag">编辑标签</string> | ||
| 232 | + <string name="res_create_collect_tag">新建标签</string> | ||
| 233 | + | ||
| 234 | + <string name="fragment_trends_1" >特别声明:本文为人民日报客户端用户参与活动上传并发布,仅代表作者观点。人民日报仅提供信息发布平台。</string> | ||
| 235 | + <string name="fragment_trends_2" >特别声明:本文为人民日报新媒体平台“人民号”作者上传并发布,仅代表作者观点。人民日报仅提供信息发布平台。</string> | ||
| 236 | + | ||
| 237 | + <string name="reservation_desc">你预约的直播即将开播</string> | ||
| 238 | + <string name="reservation_state_running">已开播</string> | ||
| 239 | + <string name="reservation_state_end">回放</string> | ||
| 240 | + | ||
| 241 | + | ||
| 242 | +</resources> |
| 1 | +<resources xmlns:tools="http://schemas.android.com/tools"> | ||
| 2 | + | ||
| 3 | + <style name="tab_normal_style"> | ||
| 4 | + <item name="android:textSize">15sp</item> | ||
| 5 | + <item name="android:textStyle">normal</item> | ||
| 6 | + <item name="android:textColor">@color/res_color_common_C3</item> | ||
| 7 | + </style> | ||
| 8 | + | ||
| 9 | + <style name="tab_select_style"> | ||
| 10 | + <item name="android:textSize">15sp</item> | ||
| 11 | + <item name="android:textStyle">bold</item> | ||
| 12 | + <item name="android:textColor">@color/black</item> | ||
| 13 | + </style> | ||
| 14 | + | ||
| 15 | +</resources> |
module_videoplayer/.gitignore
0 → 100644
| 1 | +/build |
module_videoplayer/build.gradle
0 → 100644
| 1 | +plugins { | ||
| 2 | + id 'com.android.library' | ||
| 3 | +} | ||
| 4 | + | ||
| 5 | +android { | ||
| 6 | + compileSdkVersion var.compileSdkVersion | ||
| 7 | + buildToolsVersion var.buildToolsVersion | ||
| 8 | + | ||
| 9 | + defaultConfig { | ||
| 10 | + minSdkVersion var.minSdkVersion | ||
| 11 | + targetSdkVersion var.targetSdkVersion | ||
| 12 | + versionCode var.versionCode | ||
| 13 | + versionName var.versionName | ||
| 14 | + | ||
| 15 | + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
| 16 | + consumerProguardFiles "consumer-rules.pro" | ||
| 17 | + javaCompileOptions { | ||
| 18 | + annotationProcessorOptions { | ||
| 19 | + arguments = [AROUTER_MODULE_NAME: project.getName()] | ||
| 20 | + } | ||
| 21 | + } | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + buildTypes { | ||
| 25 | + release { | ||
| 26 | + minifyEnabled false | ||
| 27 | + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
| 28 | + } | ||
| 29 | + } | ||
| 30 | + | ||
| 31 | + compileOptions { | ||
| 32 | + sourceCompatibility JavaVersion.VERSION_1_8 | ||
| 33 | + targetCompatibility JavaVersion.VERSION_1_8 | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + buildFeatures { | ||
| 37 | + viewBinding true | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + compileOptions { | ||
| 41 | +// //标志启用对新语言api的支持 | ||
| 42 | +// coreLibraryDesugaringEnabled true | ||
| 43 | + //Java兼容性设置为Java 8 | ||
| 44 | + sourceCompatibility JavaVersion.VERSION_1_8 | ||
| 45 | + targetCompatibility JavaVersion.VERSION_1_8 | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | +} | ||
| 49 | + | ||
| 50 | +dependencies { | ||
| 51 | + | ||
| 52 | + implementation project(path: ':wdlayout') | ||
| 53 | + annotationProcessor rootProject.ext.dependencies["arouter-compiler"] | ||
| 54 | + implementation rootProject.ext.dependencies["TagTextView"] | ||
| 55 | +// coreLibraryDesugaring rootProject.ext.dependencies["desugar_jdk_libs"] | ||
| 56 | +} |
module_videoplayer/consumer-rules.pro
0 → 100644
module_videoplayer/proguard-rules.pro
0 → 100644
| 1 | +# Add project specific ProGuard rules here. | ||
| 2 | +# You can control the set of applied configuration files using the | ||
| 3 | +# proguardFiles setting in build.gradle. | ||
| 4 | +# | ||
| 5 | +# For more details, see | ||
| 6 | +# http://developer.android.com/guide/developing/tools/proguard.html | ||
| 7 | + | ||
| 8 | +# If your project uses WebView with JS, uncomment the following | ||
| 9 | +# and specify the fully qualified class name to the JavaScript interface | ||
| 10 | +# class: | ||
| 11 | +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
| 12 | +# public *; | ||
| 13 | +#} | ||
| 14 | + | ||
| 15 | +# Uncomment this to preserve the line number information for | ||
| 16 | +# debugging stack traces. | ||
| 17 | +#-keepattributes SourceFile,LineNumberTable | ||
| 18 | + | ||
| 19 | +# If you keep the line number information, uncomment this to | ||
| 20 | +# hide the original source file name. | ||
| 21 | +#-renamesourcefileattribute SourceFile |
| 1 | +package com.wd.module_player; | ||
| 2 | + | ||
| 3 | +import android.content.res.Configuration; | ||
| 4 | +import android.os.Bundle; | ||
| 5 | +import android.text.TextUtils; | ||
| 6 | +import android.view.View; | ||
| 7 | +import android.view.WindowManager; | ||
| 8 | +import android.widget.FrameLayout; | ||
| 9 | + | ||
| 10 | +import androidx.annotation.NonNull; | ||
| 11 | +import androidx.annotation.Nullable; | ||
| 12 | +import androidx.lifecycle.Lifecycle; | ||
| 13 | + | ||
| 14 | +import com.alibaba.android.arouter.facade.annotation.Route; | ||
| 15 | +import com.people.module_player.R; | ||
| 16 | +import com.wd.base.log.Logger; | ||
| 17 | +import com.wd.capability.network.constant.EventConstants; | ||
| 18 | +import com.wd.common.base.BaseAutoLazyFragment; | ||
| 19 | +import com.wd.common.utils.ToolsUtil; | ||
| 20 | +import com.wd.foundation.bean.custom.video.VodDetailIntentBean; | ||
| 21 | +import com.wd.foundation.wdkit.constant.IntentConstants; | ||
| 22 | +import com.wd.foundation.wdkit.constant.RouterConstants; | ||
| 23 | +import com.wd.foundation.wdkit.utils.SafeBundleUtil; | ||
| 24 | +import com.wd.foundation.wdkitcore.livedata.LiveDataBus; | ||
| 25 | +import com.wd.foundation.wdkitcore.tools.JsonUtils; | ||
| 26 | + | ||
| 27 | +/** | ||
| 28 | + * Time:2023/5/18 | ||
| 29 | + * @author:ypf | ||
| 30 | + * Description:短视频 | ||
| 31 | + */ | ||
| 32 | +@Route(path = RouterConstants.PATH_SHORT_VIDEO) | ||
| 33 | +public class ShortVideoFragment extends BaseAutoLazyFragment { | ||
| 34 | + public boolean isStop = false; | ||
| 35 | + private static final String TAG = "ShortVideoFragment"; | ||
| 36 | + | ||
| 37 | +// private ContainerManager containerManager; | ||
| 38 | + | ||
| 39 | + public ViewHolder viewHolder; | ||
| 40 | + | ||
| 41 | + private VodDetailIntentBean intentBean; | ||
| 42 | + | ||
| 43 | + public static ShortVideoFragment newInstance() { | ||
| 44 | + return new ShortVideoFragment(); | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + @Override | ||
| 48 | + public void onCreate(@Nullable Bundle savedInstanceState) { | ||
| 49 | + super.onCreate(savedInstanceState); | ||
| 50 | + String params = SafeBundleUtil.getString(getArguments(), IntentConstants.PARAMS_VIDEO_DETAIL, ""); | ||
| 51 | + Logger.t(getLogTag()).i("params:" + params); | ||
| 52 | + if (TextUtils.isEmpty(params)) { | ||
| 53 | + return; | ||
| 54 | + } | ||
| 55 | + // 二级视频详情的参数 | ||
| 56 | + intentBean = JsonUtils.convertJsonToObject(params, VodDetailIntentBean.class); | ||
| 57 | +// // 设置缓存目录 | ||
| 58 | +// File externalCacheDir = activity.getExternalCacheDir(); | ||
| 59 | +// if (externalCacheDir != null) { | ||
| 60 | +// GlobalSettings.CACHE_DIR = externalCacheDir.getAbsolutePath() + File.separator + "Preload"; | ||
| 61 | +// } | ||
| 62 | + } | ||
| 63 | + | ||
| 64 | + @Override | ||
| 65 | + public void onStop() { | ||
| 66 | + isStop = true; | ||
| 67 | + super.onStop(); | ||
| 68 | + } | ||
| 69 | + | ||
| 70 | + @Override | ||
| 71 | + protected String getLogTag() { | ||
| 72 | + return "ShortVideoFragment"; | ||
| 73 | + } | ||
| 74 | + | ||
| 75 | + @Override | ||
| 76 | + protected int getLayout() { | ||
| 77 | + return R.layout.fragment_video_list; | ||
| 78 | + } | ||
| 79 | + | ||
| 80 | + @Override | ||
| 81 | + protected void initView(View rootView) { | ||
| 82 | + // 绑定控件 | ||
| 83 | + viewHolder = new ViewHolder(rootView); | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + @Override | ||
| 87 | + protected void lazyLoadData() { | ||
| 88 | + | ||
| 89 | + // 布局管理 | ||
| 90 | +// containerManager = new ContainerManager(this, intentBean); | ||
| 91 | +// | ||
| 92 | +// // 展示空页面 | ||
| 93 | +// if (NetworkUtil.isConnectNet()) { | ||
| 94 | +// containerManager.addTiles(); | ||
| 95 | +// }else { | ||
| 96 | +// containerManager.addBackTile(); | ||
| 97 | +// containerManager.showEmptyView(DefaultViewConstant.TYPE_NO_NETWORK, true, true); | ||
| 98 | +// } | ||
| 99 | +// | ||
| 100 | +// // 让内容管理感知lazyLoadData方法 | ||
| 101 | +// if (containerManager != null) { | ||
| 102 | +// containerManager.lazyLoadData(); | ||
| 103 | +// } | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + @Override | ||
| 107 | + public void onUserLeaveHint() { | ||
| 108 | + | ||
| 109 | +// if (BooleanIos.NO.equalsIgnoreCase(SpUtils.getPlayVideoWindowSwitchTag())) { | ||
| 110 | +// return; | ||
| 111 | +// } | ||
| 112 | +// | ||
| 113 | +// if (containerManager == null) { | ||
| 114 | +// return; | ||
| 115 | +// } | ||
| 116 | +// | ||
| 117 | +// VideoListTile videoListTile = containerManager.videoListTile; | ||
| 118 | +// if (videoListTile == null) { | ||
| 119 | +// return; | ||
| 120 | +// } | ||
| 121 | +// | ||
| 122 | +// LinkedList<NewsDetailBean> listVideoBean = videoListTile.mVideoBeanList; | ||
| 123 | +// if (listVideoBean.size() == 0) { | ||
| 124 | +// return; | ||
| 125 | +// } | ||
| 126 | +// | ||
| 127 | +// if (intentBean == null) { | ||
| 128 | +// return; | ||
| 129 | +// } | ||
| 130 | +// | ||
| 131 | +// // 分享弹窗弹出来不要进入小窗播放 | ||
| 132 | +// if (CommonVarUtils.isShowShareDialog){ | ||
| 133 | +// return; | ||
| 134 | +// } | ||
| 135 | +// | ||
| 136 | +// // 横屏下切到竖屏再进入小窗 | ||
| 137 | +// int orientation = activity.getRequestedOrientation(); | ||
| 138 | +// if (orientation == Configuration.ORIENTATION_LANDSCAPE){ | ||
| 139 | +// activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); | ||
| 140 | +// } | ||
| 141 | +// | ||
| 142 | +// // 判断页面类型 | ||
| 143 | +// int type = intentBean.getType(); | ||
| 144 | +// if (type == VodDetailIntentBean.Type.COMP) { | ||
| 145 | +// // 用于判断fragment真实展现 | ||
| 146 | +// if (isRealVisible()) { | ||
| 147 | +// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { | ||
| 148 | +// // 进入小窗 | ||
| 149 | +// containerManager.enterPictureInPictureMode(); | ||
| 150 | +// } | ||
| 151 | +// } | ||
| 152 | +// }else { | ||
| 153 | +// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { | ||
| 154 | +// // 进入小窗 | ||
| 155 | +// containerManager.enterPictureInPictureMode(); | ||
| 156 | +// } | ||
| 157 | +// } | ||
| 158 | + } | ||
| 159 | + | ||
| 160 | + @Override | ||
| 161 | + public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode) { | ||
| 162 | + super.onPictureInPictureModeChanged(isInPictureInPictureMode); | ||
| 163 | + // 监听点击关闭画中画 | ||
| 164 | + if (getLifecycle().getCurrentState() == Lifecycle.State.CREATED) { | ||
| 165 | + // 主动调用页面销毁 | ||
| 166 | + onDestroy(); | ||
| 167 | + // 关闭当前页面 | ||
| 168 | + activity.finish(); | ||
| 169 | + Logger.t(TAG).i("监听到小窗被关闭了"); | ||
| 170 | + return; | ||
| 171 | + } | ||
| 172 | + Logger.t(getLogTag()).i("onPictureInPictureModeChanged isInPictureInPictureMode:" + isInPictureInPictureMode); | ||
| 173 | +// if (containerManager != null) { | ||
| 174 | +// containerManager.onPictureInPictureModeChanged(isInPictureInPictureMode); | ||
| 175 | +// } | ||
| 176 | + } | ||
| 177 | + | ||
| 178 | + @Override | ||
| 179 | + public void onConfigurationChanged(@NonNull Configuration newConfig) { | ||
| 180 | + super.onConfigurationChanged(newConfig); | ||
| 181 | + | ||
| 182 | +// boolean inPictureInPictureMode = PipUtils.isInPictureInPictureMode(activity); | ||
| 183 | +// // 小窗模式 | ||
| 184 | +// if (inPictureInPictureMode) { | ||
| 185 | +// return; | ||
| 186 | +// } | ||
| 187 | + // 屏幕方向 | ||
| 188 | + int orientation = newConfig.orientation; | ||
| 189 | +// // 竖屏 | ||
| 190 | +// if (orientation == Configuration.ORIENTATION_PORTRAIT) { | ||
| 191 | +// // 让containerManager感知横竖屏 | ||
| 192 | +// if (containerManager != null) { | ||
| 193 | +// containerManager.onConfigurationChanged(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); | ||
| 194 | +// } | ||
| 195 | +// } else if (orientation == Configuration.ORIENTATION_LANDSCAPE) { | ||
| 196 | +// // 让containerManager感知横竖屏 | ||
| 197 | +// if (containerManager != null) { | ||
| 198 | +// containerManager.onConfigurationChanged(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); | ||
| 199 | +// } | ||
| 200 | +// } | ||
| 201 | + // 处理底部导航栏,横屏隐藏、竖屏展示 | ||
| 202 | + dealNavigationBar(); | ||
| 203 | + } | ||
| 204 | + | ||
| 205 | + @Override | ||
| 206 | + public void onResume() { | ||
| 207 | + super.onResume(); | ||
| 208 | + // 拦截画中画,这个拦截最好是点击底部tab去拦截 | ||
| 209 | +// ProcessUtils.interceptorPictureInPicture(); | ||
| 210 | +// | ||
| 211 | +// // 让内容管理感知onResume方法 | ||
| 212 | +// if (containerManager != null) { | ||
| 213 | +// containerManager.onResume(); | ||
| 214 | +// } | ||
| 215 | +// | ||
| 216 | +// // 短视频前后台切换事件 | ||
| 217 | +//// LiveDataBus.getInstance().with(EventConstants.SHORT_VIDEO_FOREGROUND).postValue(true); | ||
| 218 | +// if (FloatWindow.get() != null && FloatWindow.get().isShow()){ | ||
| 219 | +// LiveDataBus.getInstance().with(EventConstants.FLOW_AUDIO_FREQUENCY, Integer.class).postValue(1); | ||
| 220 | +// } | ||
| 221 | +// | ||
| 222 | +// //分享弹窗是否显示, | ||
| 223 | +// CommonVarUtils.isShowShareDialog = false; | ||
| 224 | +// | ||
| 225 | +// // 修改手机顶部状态,只支持白色和黑色 | ||
| 226 | +// ToolsUtil.setStatusBarStyle(StatusBarStyleEnum.FULLSCREEN_LIGHT_ENUM, Color.BLACK, getActivity()); | ||
| 227 | +// | ||
| 228 | +// // 保持屏幕常亮 | ||
| 229 | +// FragmentActivity fragmentActivity = getActivity(); | ||
| 230 | +// if (fragmentActivity != null) { | ||
| 231 | +// fragmentActivity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); | ||
| 232 | +// } | ||
| 233 | + } | ||
| 234 | + | ||
| 235 | + @Override | ||
| 236 | + public void onPause() { | ||
| 237 | + isStop = false; | ||
| 238 | + super.onPause(); | ||
| 239 | +// if (containerManager != null) { | ||
| 240 | +// containerManager.onPause(); | ||
| 241 | +// } | ||
| 242 | +// | ||
| 243 | +// if (FloatWindow.get() != null && !FloatWindow.get().isShow() && PlayerManagerUtils.isDataAvailable() && | ||
| 244 | +// !BaseConstants.isCloseMusicDialog) { | ||
| 245 | +// FloatWindow.get().setAudioFloatingIsShow(true); | ||
| 246 | +// } | ||
| 247 | +// // 音频控制 任务 | ||
| 248 | +// HandlerHelper.main().postDelayed(flowAudioFrequencyRunnable, 200); | ||
| 249 | +// | ||
| 250 | +// // 清除屏幕常亮 | ||
| 251 | +// FragmentActivity fragmentActivity = getActivity(); | ||
| 252 | +// if (fragmentActivity != null) { | ||
| 253 | +// fragmentActivity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); | ||
| 254 | +// } | ||
| 255 | + } | ||
| 256 | + | ||
| 257 | + /** | ||
| 258 | + * 音频控制 任务 | ||
| 259 | + */ | ||
| 260 | + private final Runnable flowAudioFrequencyRunnable = new Runnable() { | ||
| 261 | + @Override | ||
| 262 | + public void run() { | ||
| 263 | + | ||
| 264 | + if(!isStop){ | ||
| 265 | + LiveDataBus.getInstance().with(EventConstants.FLOW_AUDIO_FREQUENCY, Integer.class).postValue(2); | ||
| 266 | + } | ||
| 267 | + } | ||
| 268 | + }; | ||
| 269 | + | ||
| 270 | + @Override | ||
| 271 | + public void onDestroy() { | ||
| 272 | + super.onDestroy(); | ||
| 273 | + Logger.t(TAG).i("onDestroy"); | ||
| 274 | + | ||
| 275 | +// // 移除 音频控制 任务 | ||
| 276 | +// HandlerHelper.main().removeCallbacks(flowAudioFrequencyRunnable); | ||
| 277 | +// | ||
| 278 | +// if (containerManager != null) { | ||
| 279 | +// containerManager.onDestroy(); | ||
| 280 | +// } | ||
| 281 | + } | ||
| 282 | + | ||
| 283 | + /** | ||
| 284 | + * 点击 tab 页面下拉刷新 | ||
| 285 | + */ | ||
| 286 | + @Override | ||
| 287 | + public void clickTabAutoRefresh() { | ||
| 288 | +// // 页面下拉刷新 | ||
| 289 | +// if (containerManager != null) { | ||
| 290 | +// containerManager.autoRefresh(); | ||
| 291 | +// } | ||
| 292 | + } | ||
| 293 | + | ||
| 294 | + // 基类不支持ViewBinding,通过这种方式实现ViewBinding的效果 | ||
| 295 | + public static class ViewHolder { | ||
| 296 | + | ||
| 297 | + public FrameLayout flRoot; | ||
| 298 | + /** | ||
| 299 | + * 视频列表 | ||
| 300 | + */ | ||
| 301 | + public FrameLayout flVideoListContainer; | ||
| 302 | + /** | ||
| 303 | + * 空布局 | ||
| 304 | + */ | ||
| 305 | + public FrameLayout flEmptyViewContainer; | ||
| 306 | + public FrameLayout flToolbarContainer; | ||
| 307 | + public FrameLayout flReplayContainer; | ||
| 308 | + public FrameLayout flLoadingContainer; | ||
| 309 | + public FrameLayout flRefreshAnimContainer; | ||
| 310 | + public FrameLayout flBackContainer; | ||
| 311 | + public FrameLayout flItemContainer; | ||
| 312 | + public FrameLayout flAlbumDialogContainer; | ||
| 313 | + | ||
| 314 | + public ViewHolder(View rootView) { | ||
| 315 | + flRoot = rootView.findViewById(R.id.flRoot); | ||
| 316 | + flVideoListContainer = rootView.findViewById(R.id.flVideoListContainer); | ||
| 317 | + flEmptyViewContainer = rootView.findViewById(R.id.flEmptyViewContainer); | ||
| 318 | + flToolbarContainer = rootView.findViewById(R.id.flToolbarContainer); | ||
| 319 | + flReplayContainer = rootView.findViewById(R.id.flReplayContainer); | ||
| 320 | + flLoadingContainer = rootView.findViewById(R.id.flLoadingContainer); | ||
| 321 | + flRefreshAnimContainer = rootView.findViewById(R.id.flRefreshAnimContainer); | ||
| 322 | + flBackContainer = rootView.findViewById(R.id.flBackContainer); | ||
| 323 | + flItemContainer = rootView.findViewById(R.id.flItemContainer); | ||
| 324 | + flAlbumDialogContainer = rootView.findViewById(R.id.flAlbumDialogContainer); | ||
| 325 | + } | ||
| 326 | + } | ||
| 327 | + | ||
| 328 | + /** | ||
| 329 | + * 处理底部导航栏,横屏隐藏、竖屏展示 | ||
| 330 | + */ | ||
| 331 | + public void dealNavigationBar() { | ||
| 332 | + | ||
| 333 | + int orientation = getResources().getConfiguration().orientation; | ||
| 334 | + if (orientation == Configuration.ORIENTATION_PORTRAIT) { | ||
| 335 | + activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); | ||
| 336 | + viewHolder.flRoot.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE); | ||
| 337 | + } else if (orientation == Configuration.ORIENTATION_LANDSCAPE) { | ||
| 338 | + if (!ToolsUtil.isStrangePhone()) { | ||
| 339 | + activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); | ||
| 340 | + 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); | ||
| 341 | + } | ||
| 342 | + } | ||
| 343 | + } | ||
| 344 | + | ||
| 345 | +} |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:id="@+id/flRoot" | ||
| 4 | + android:layout_width="match_parent" | ||
| 5 | + android:layout_height="match_parent" | ||
| 6 | + android:background="@color/black"> | ||
| 7 | + | ||
| 8 | + <FrameLayout | ||
| 9 | + android:id="@+id/flVideoListContainer" | ||
| 10 | + android:layout_width="match_parent" | ||
| 11 | + android:layout_height="match_parent" /> | ||
| 12 | + | ||
| 13 | + <FrameLayout | ||
| 14 | + android:id="@+id/flItemContainer" | ||
| 15 | + android:layout_width="match_parent" | ||
| 16 | + android:layout_height="match_parent" /> | ||
| 17 | + | ||
| 18 | + <FrameLayout | ||
| 19 | + android:id="@+id/flEmptyViewContainer" | ||
| 20 | + android:layout_width="match_parent" | ||
| 21 | + android:layout_height="match_parent" | ||
| 22 | + android:visibility="gone" /> | ||
| 23 | + | ||
| 24 | + <FrameLayout | ||
| 25 | + android:id="@+id/flToolbarContainer" | ||
| 26 | + android:layout_width="match_parent" | ||
| 27 | + android:layout_marginTop="@dimen/rmrb_dp42" | ||
| 28 | + android:layout_height="@dimen/rmrb_dp44" /> | ||
| 29 | + | ||
| 30 | + <FrameLayout | ||
| 31 | + android:id="@+id/flReplayContainer" | ||
| 32 | + android:layout_width="@dimen/rmrb_dp36" | ||
| 33 | + android:layout_height="@dimen/margin_20" | ||
| 34 | + android:layout_marginStart="@dimen/rmrb_dp48" | ||
| 35 | + android:layout_marginTop="@dimen/rmrb_dp54" /> | ||
| 36 | + | ||
| 37 | + <FrameLayout | ||
| 38 | + android:id="@+id/flLoadingContainer" | ||
| 39 | + android:layout_width="@dimen/rmrb_dp167" | ||
| 40 | + android:layout_height="@dimen/rmrb_dp60" | ||
| 41 | + android:layout_gravity="center" | ||
| 42 | + android:visibility="gone" /> | ||
| 43 | + | ||
| 44 | + <FrameLayout | ||
| 45 | + android:id="@+id/flRefreshAnimContainer" | ||
| 46 | + android:layout_width="match_parent" | ||
| 47 | + android:layout_height="match_parent" /> | ||
| 48 | + | ||
| 49 | + <FrameLayout | ||
| 50 | + android:id="@+id/flBackContainer" | ||
| 51 | + android:layout_width="match_parent" | ||
| 52 | + android:layout_height="match_parent" /> | ||
| 53 | + | ||
| 54 | + <FrameLayout | ||
| 55 | + android:id="@+id/flAlbumDialogContainer" | ||
| 56 | + android:layout_width="match_parent" | ||
| 57 | + android:layout_height="match_parent" /> | ||
| 58 | + | ||
| 59 | +</FrameLayout> |
| @@ -12,23 +12,7 @@ include ':wdlayout' | @@ -12,23 +12,7 @@ include ':wdlayout' | ||
| 12 | include ':wdinterface' | 12 | include ':wdinterface' |
| 13 | include ':wdinterfaceimpl' | 13 | include ':wdinterfaceimpl' |
| 14 | include ':module_home' | 14 | include ':module_home' |
| 15 | -include ':lib_routermanager' | ||
| 16 | -include ':lib_entityclass' | 15 | +////视频播放器 |
| 16 | +include ':module_videoplayer' | ||
| 17 | +//个人中心 | ||
| 17 | include ':module_personalcenter' | 18 | include ':module_personalcenter' |
| 18 | -include ':aar_repo:lib_logger' | ||
| 19 | -include ':aar_repo:localaar_ability' | ||
| 20 | -include ':base_res' | ||
| 21 | -include ':lib_network' | ||
| 22 | -include ':aar_repo:localaar_weiboaar' | ||
| 23 | -include ':base_location' | ||
| 24 | -include ':aar_repo:lib_main' | ||
| 25 | -include ':aar_repo:localaar_framework' | ||
| 26 | -include ':base_share' | ||
| 27 | -include ':base_component' | ||
| 28 | -include ':lib_liveDataBus' | ||
| 29 | -include ':base_player' | ||
| 30 | -include ':base_interact' | ||
| 31 | -include ':lib_logutil' | ||
| 32 | -include ':wd_annotation' | ||
| 33 | -include ':lib_common' | ||
| 34 | -include ':lib_kittools' |
| 1 | -package com.wd.foundation.bean.response; | ||
| 2 | - | ||
| 3 | -import com.wd.foundation.bean.base.BaseBean; | ||
| 4 | - | ||
| 5 | -/** | ||
| 6 | - * 预约直播列表子项 | ||
| 7 | - * | ||
| 8 | - * @author wd | ||
| 9 | - * @version [V1.0.0] | ||
| 10 | - * @since V1.0.0 | ||
| 11 | - */ | ||
| 12 | -public class LiveSubscribeBean extends BaseBean { | ||
| 13 | - /** | ||
| 14 | - * // string [] 非必须 封面图 item 类型: string 非必须 | ||
| 15 | - * */ | ||
| 16 | - public String[] imageUrl; | ||
| 17 | - | ||
| 18 | - /** | ||
| 19 | - * // number 非必须 直播ID | ||
| 20 | - * */ | ||
| 21 | - public String liveId; | ||
| 22 | - | ||
| 23 | - /** | ||
| 24 | - * // string 非必须 计划开始时间 2023-05-31 10:12:59 | ||
| 25 | - * */ | ||
| 26 | - public String planStartTime; | ||
| 27 | - | ||
| 28 | - /** | ||
| 29 | - * // string 非必须 直播状态 wait是预约、runing 直播中、end结束 | ||
| 30 | - * */ | ||
| 31 | - public String status; | ||
| 32 | - | ||
| 33 | - /** | ||
| 34 | - * // string 非必须 直播标题 | ||
| 35 | - * */ | ||
| 36 | - public String title; | ||
| 37 | - | ||
| 38 | -// /** | ||
| 39 | -// * // string 非必须 App样式 1:小图卡,2:大图卡,3:无图卡,4:三图卡,5:头图卡,6:小视频卡,7:作者卡,8:单图卡 | ||
| 40 | -// * */ | ||
| 41 | -// public String appStyle; | ||
| 42 | -// | ||
| 43 | -// | ||
| 44 | -// /** | ||
| 45 | -// * // string 非必须 直播开始时间 | ||
| 46 | -// * */ | ||
| 47 | -// public String startTime; | ||
| 48 | - | ||
| 49 | - /** | ||
| 50 | - * 是否曝光过 false: 没有曝光;true: 曝光过 | ||
| 51 | - */ | ||
| 52 | - public boolean exposure = false; | ||
| 53 | - /** | ||
| 54 | - * fixme 待重新提供接口 | ||
| 55 | - * */ | ||
| 56 | - public boolean isSubscribe; | ||
| 57 | - | ||
| 58 | - /** | ||
| 59 | - * 关系ID | ||
| 60 | - */ | ||
| 61 | - public String relId; | ||
| 62 | - /** | ||
| 63 | - * 关联关系type | ||
| 64 | - */ | ||
| 65 | - public int relType; | ||
| 66 | - | ||
| 67 | - | ||
| 68 | -} |
| @@ -3,6 +3,7 @@ package com.wd.foundation.bean.response; | @@ -3,6 +3,7 @@ package com.wd.foundation.bean.response; | ||
| 3 | import java.util.List; | 3 | import java.util.List; |
| 4 | 4 | ||
| 5 | import com.wd.foundation.bean.base.BaseBean; | 5 | import com.wd.foundation.bean.base.BaseBean; |
| 6 | +import com.wd.foundation.bean.live.LiveSubscribeBean; | ||
| 6 | 7 | ||
| 7 | /** | 8 | /** |
| 8 | * 预约直播列表子项 | 9 | * 预约直播列表子项 |
| 1 | - | ||
| 2 | package com.wd.foundation.bean.response; | 1 | package com.wd.foundation.bean.response; |
| 3 | 2 | ||
| 4 | import android.text.TextUtils; | 3 | import android.text.TextUtils; |
| 5 | 4 | ||
| 6 | import com.wd.foundation.bean.custom.content.PeopleMasterBean; | 5 | import com.wd.foundation.bean.custom.content.PeopleMasterBean; |
| 6 | +import com.wd.foundation.wdkitcore.tools.StringUtils; | ||
| 7 | + | ||
| 7 | 8 | ||
| 8 | /** | 9 | /** |
| 9 | * @author ouyang | 10 | * @author ouyang |
| @@ -48,28 +49,31 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -48,28 +49,31 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 48 | private String isAttention; | 49 | private String isAttention; |
| 49 | 50 | ||
| 50 | /** | 51 | /** |
| 51 | - * 主页是否可见 0-不可以 1-可以 | ||
| 52 | - * 等同于父类的cnMainControl | 52 | + * 主页是否可见 0-不可以 1-可以 |
| 53 | + * 等同于父类的cnMainControl | ||
| 53 | */ | 54 | */ |
| 54 | private String mainControl; | 55 | private String mainControl; |
| 55 | - | ||
| 56 | /** | 56 | /** |
| 57 | * 分享地址 | 57 | * 分享地址 |
| 58 | */ | 58 | */ |
| 59 | private String shareUrl; | 59 | private String shareUrl; |
| 60 | - | ||
| 61 | /** | 60 | /** |
| 62 | - * 从我的页面调到个人主页的类型 1:评论 2:作品 | 61 | + * 从我的页面调到个人主页的类型 1:评论 2:作品 |
| 63 | */ | 62 | */ |
| 64 | private int fromMineType; | 63 | private int fromMineType; |
| 65 | 64 | ||
| 66 | /** | 65 | /** |
| 67 | - * 【同双端禁止发稿】账号是否被禁言 默认0,0:正常,1:禁言 | 66 | + * 【同双端禁止发稿】账号是否被禁言 默认0,0:正常,1:禁言 |
| 68 | * 0:正常,1:禁言 | 67 | * 0:正常,1:禁言 |
| 69 | */ | 68 | */ |
| 70 | private String speakControl; | 69 | private String speakControl; |
| 71 | 70 | ||
| 72 | /** | 71 | /** |
| 72 | + * 登录用户评论开关 0 正常,1 关闭 | ||
| 73 | + */ | ||
| 74 | + private String cnCommentAllowed; | ||
| 75 | + | ||
| 76 | + /** | ||
| 73 | * 直播权限 0 有 ,1 无 | 77 | * 直播权限 0 有 ,1 无 |
| 74 | */ | 78 | */ |
| 75 | private String liveSwitch; | 79 | private String liveSwitch; |
| @@ -98,22 +102,19 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -98,22 +102,19 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 98 | * 动态生产权限 默认1,0:正常,1:关闭 | 102 | * 动态生产权限 默认1,0:正常,1:关闭 |
| 99 | */ | 103 | */ |
| 100 | private String dynamicCreation; | 104 | private String dynamicCreation; |
| 101 | - | ||
| 102 | /** | 105 | /** |
| 103 | * 领域/官方认证信息 | 106 | * 领域/官方认证信息 |
| 104 | */ | 107 | */ |
| 105 | private String categoryAuth; | 108 | private String categoryAuth; |
| 106 | - | ||
| 107 | /** | 109 | /** |
| 108 | * 认证id:1蓝2黄 | 110 | * 认证id:1蓝2黄 |
| 109 | */ | 111 | */ |
| 110 | private int authId; | 112 | private int authId; |
| 111 | 113 | ||
| 112 | /** | 114 | /** |
| 113 | - * 中文版内容分发权限 0:正常,1:关闭 | 115 | + * 中文版内容分发权限 0:正常,1:关闭 |
| 114 | */ | 116 | */ |
| 115 | private String cnContentPublish = "0"; | 117 | private String cnContentPublish = "0"; |
| 116 | - | ||
| 117 | /** | 118 | /** |
| 118 | * 评论量 | 119 | * 评论量 |
| 119 | */ | 120 | */ |
| @@ -158,7 +159,6 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -158,7 +159,6 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 158 | * 最近登录用户IP归属地 | 159 | * 最近登录用户IP归属地 |
| 159 | */ | 160 | */ |
| 160 | private String region; | 161 | private String region; |
| 161 | - | ||
| 162 | /** | 162 | /** |
| 163 | * 身份认证 | 163 | * 身份认证 |
| 164 | */ | 164 | */ |
| @@ -184,6 +184,12 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -184,6 +184,12 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 184 | 184 | ||
| 185 | private String itemType; | 185 | private String itemType; |
| 186 | 186 | ||
| 187 | + /** | ||
| 188 | + * 性别 | ||
| 189 | + */ | ||
| 190 | + private String sex; | ||
| 191 | + | ||
| 192 | + | ||
| 187 | public String getAuthPersonal() { | 193 | public String getAuthPersonal() { |
| 188 | return authPersonal; | 194 | return authPersonal; |
| 189 | } | 195 | } |
| @@ -216,6 +222,8 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -216,6 +222,8 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 216 | this.sceneId = sceneId; | 222 | this.sceneId = sceneId; |
| 217 | } | 223 | } |
| 218 | 224 | ||
| 225 | + | ||
| 226 | + | ||
| 219 | public String getAttentionNum() { | 227 | public String getAttentionNum() { |
| 220 | return attentionNum; | 228 | return attentionNum; |
| 221 | } | 229 | } |
| @@ -224,6 +232,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -224,6 +232,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 224 | this.attentionNum = attentionNum; | 232 | this.attentionNum = attentionNum; |
| 225 | } | 233 | } |
| 226 | 234 | ||
| 235 | + | ||
| 227 | public String getCommentNum() { | 236 | public String getCommentNum() { |
| 228 | return commentNum; | 237 | return commentNum; |
| 229 | } | 238 | } |
| @@ -277,7 +286,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -277,7 +286,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 277 | } | 286 | } |
| 278 | 287 | ||
| 279 | private String getHeadPhotoUrl() { | 288 | private String getHeadPhotoUrl() { |
| 280 | - if (headPhotoUrl == null) { | 289 | + if(headPhotoUrl == null){ |
| 281 | return ""; | 290 | return ""; |
| 282 | } | 291 | } |
| 283 | return headPhotoUrl; | 292 | return headPhotoUrl; |
| @@ -296,7 +305,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -296,7 +305,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 296 | } | 305 | } |
| 297 | 306 | ||
| 298 | private String getUserName() { | 307 | private String getUserName() { |
| 299 | - return userName; | 308 | + return userName ; |
| 300 | } | 309 | } |
| 301 | 310 | ||
| 302 | public void setUserName(String userName) { | 311 | public void setUserName(String userName) { |
| @@ -323,6 +332,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -323,6 +332,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 323 | return traceInfo; | 332 | return traceInfo; |
| 324 | } | 333 | } |
| 325 | 334 | ||
| 335 | + | ||
| 326 | public int getFromMineType() { | 336 | public int getFromMineType() { |
| 327 | return fromMineType; | 337 | return fromMineType; |
| 328 | } | 338 | } |
| @@ -335,6 +345,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -335,6 +345,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 335 | this.traceInfo = traceInfo; | 345 | this.traceInfo = traceInfo; |
| 336 | } | 346 | } |
| 337 | 347 | ||
| 348 | + | ||
| 338 | public String getFollowStatus() { | 349 | public String getFollowStatus() { |
| 339 | return followStatus; | 350 | return followStatus; |
| 340 | } | 351 | } |
| @@ -388,7 +399,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -388,7 +399,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 388 | } | 399 | } |
| 389 | 400 | ||
| 390 | public boolean isAuthentication() { | 401 | public boolean isAuthentication() { |
| 391 | - return !isBlank(getCategoryAuth()) && !isBlank(getAuthIcon()); | 402 | + return !StringUtils.isBlank(getCategoryAuth())&&!StringUtils.isBlank(getAuthIcon()); |
| 392 | } | 403 | } |
| 393 | 404 | ||
| 394 | public String getRegistTime() { | 405 | public String getRegistTime() { |
| @@ -400,7 +411,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -400,7 +411,7 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 400 | } | 411 | } |
| 401 | 412 | ||
| 402 | private int getIsAttention() { | 413 | private int getIsAttention() { |
| 403 | - if (TextUtils.isEmpty(isAttention)) { | 414 | + if(TextUtils.isEmpty(isAttention)){ |
| 404 | return 1; | 415 | return 1; |
| 405 | } | 416 | } |
| 406 | try { | 417 | try { |
| @@ -430,6 +441,14 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -430,6 +441,14 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 430 | this.speakControl = speakControl; | 441 | this.speakControl = speakControl; |
| 431 | } | 442 | } |
| 432 | 443 | ||
| 444 | + public String getCnCommentAllowed() { | ||
| 445 | + return cnCommentAllowed; | ||
| 446 | + } | ||
| 447 | + | ||
| 448 | + public void setCnCommentAllowed(String cnCommentAllowed) { | ||
| 449 | + this.cnCommentAllowed = cnCommentAllowed; | ||
| 450 | + } | ||
| 451 | + | ||
| 433 | public String getPosterShareControl() { | 452 | public String getPosterShareControl() { |
| 434 | return posterShareControl; | 453 | return posterShareControl; |
| 435 | } | 454 | } |
| @@ -501,52 +520,52 @@ public class PersonalInfoBean extends PeopleMasterBean { | @@ -501,52 +520,52 @@ public class PersonalInfoBean extends PeopleMasterBean { | ||
| 501 | public void setCnContentPublish(String cnContentPublish) { | 520 | public void setCnContentPublish(String cnContentPublish) { |
| 502 | this.cnContentPublish = cnContentPublish; | 521 | this.cnContentPublish = cnContentPublish; |
| 503 | } | 522 | } |
| 504 | - | ||
| 505 | - /** *********************************一下是字段修正方法 */ | 523 | + /** *********************************一下是字段修正方法*/ |
| 506 | public String getRmhDesc() { | 524 | public String getRmhDesc() { |
| 507 | - if (TextUtils.isEmpty(rmhDesc)) { | 525 | + if(TextUtils.isEmpty(rmhDesc)){ |
| 508 | return getIntroduction(); | 526 | return getIntroduction(); |
| 509 | } | 527 | } |
| 510 | return rmhDesc; | 528 | return rmhDesc; |
| 511 | } | 529 | } |
| 512 | 530 | ||
| 513 | public String getRmhHeadUrl() { | 531 | public String getRmhHeadUrl() { |
| 514 | - if (rmhHeadUrl == null) { | 532 | + if (rmhHeadUrl == null){ |
| 515 | return getHeadPhotoUrl(); | 533 | return getHeadPhotoUrl(); |
| 516 | } | 534 | } |
| 517 | return rmhHeadUrl; | 535 | return rmhHeadUrl; |
| 518 | } | 536 | } |
| 519 | 537 | ||
| 520 | public String getRmhId() { | 538 | public String getRmhId() { |
| 521 | - if (TextUtils.isEmpty(rmhId)) { | 539 | + if(TextUtils.isEmpty(rmhId)){ |
| 522 | return getCreatorId(); | 540 | return getCreatorId(); |
| 523 | } | 541 | } |
| 524 | return rmhId; | 542 | return rmhId; |
| 525 | } | 543 | } |
| 526 | - | ||
| 527 | public String getRmhName() { | 544 | public String getRmhName() { |
| 528 | - if (TextUtils.isEmpty(rmhName)) { | 545 | + if(TextUtils.isEmpty(rmhName)){ |
| 529 | return getUserName(); | 546 | return getUserName(); |
| 530 | } | 547 | } |
| 531 | return rmhName; | 548 | return rmhName; |
| 532 | } | 549 | } |
| 533 | - | ||
| 534 | public int getCnIsAttention() { | 550 | public int getCnIsAttention() { |
| 535 | - if (TextUtils.isEmpty(cnIsAttention)) { | 551 | + if(TextUtils.isEmpty(cnIsAttention)){ |
| 536 | return getIsAttention(); | 552 | return getIsAttention(); |
| 537 | } | 553 | } |
| 538 | - // TODO 是否会死循环? | ||
| 539 | - return getCnIsAttention(); | 554 | + return 1; |
| 540 | } | 555 | } |
| 541 | 556 | ||
| 542 | public String getCnMainControl() { | 557 | public String getCnMainControl() { |
| 543 | - if (TextUtils.isEmpty(cnMainControl)) { | 558 | + if(TextUtils.isEmpty(cnMainControl)){ |
| 544 | return getMainControl(); | 559 | return getMainControl(); |
| 545 | } | 560 | } |
| 546 | return cnMainControl; | 561 | return cnMainControl; |
| 547 | } | 562 | } |
| 548 | 563 | ||
| 549 | - private static boolean isBlank(String value) { | ||
| 550 | - return null == value || 0 == value.length() || "".equals(value.trim()); | 564 | + public String getSex() { |
| 565 | + return sex; | ||
| 566 | + } | ||
| 567 | + | ||
| 568 | + public void setSex(String sex) { | ||
| 569 | + this.sex = sex; | ||
| 551 | } | 570 | } |
| 552 | } | 571 | } |
| @@ -100,9 +100,9 @@ public class CompServiceImpl implements ICompService { | @@ -100,9 +100,9 @@ public class CompServiceImpl implements ICompService { | ||
| 100 | 100 | ||
| 101 | @Override | 101 | @Override |
| 102 | public Fragment createShortVideoFragment(String pageId, int color) { | 102 | public Fragment createShortVideoFragment(String pageId, int color) { |
| 103 | - Fragment myFragment = (Fragment) WdRouterRule.getInstance().getFragment(RouterConstants.PATH_SHORT_VIDEO); | ||
| 104 | - Logger.e("CompServiceImpl", "myFragment:" + myFragment); | ||
| 105 | - if (myFragment != null) { | 103 | + Fragment shortVideoFragment = (Fragment) WdRouterRule.getInstance().getFragment(RouterConstants.PATH_SHORT_VIDEO); |
| 104 | + Logger.e("CompServiceImpl", "shortVideoFragment:" + shortVideoFragment); | ||
| 105 | + if (shortVideoFragment != null) { | ||
| 106 | VodDetailIntentBean intentBean = new VodDetailIntentBean(); | 106 | VodDetailIntentBean intentBean = new VodDetailIntentBean(); |
| 107 | intentBean.setType(VodDetailIntentBean.Type.COMP); | 107 | intentBean.setType(VodDetailIntentBean.Type.COMP); |
| 108 | intentBean.setPageId(pageId); | 108 | intentBean.setPageId(pageId); |
| @@ -110,8 +110,8 @@ public class CompServiceImpl implements ICompService { | @@ -110,8 +110,8 @@ public class CompServiceImpl implements ICompService { | ||
| 110 | intentBean.isImmerse = true; | 110 | intentBean.isImmerse = true; |
| 111 | Bundle bundle = new Bundle(); | 111 | Bundle bundle = new Bundle(); |
| 112 | bundle.putString(IntentConstants.PARAMS_VIDEO_DETAIL, JsonUtils.convertObjectToJson(intentBean)); | 112 | bundle.putString(IntentConstants.PARAMS_VIDEO_DETAIL, JsonUtils.convertObjectToJson(intentBean)); |
| 113 | - myFragment.setArguments(bundle); | ||
| 114 | - return myFragment; | 113 | + shortVideoFragment.setArguments(bundle); |
| 114 | + return shortVideoFragment; | ||
| 115 | } | 115 | } |
| 116 | return createDefaultFragment(); | 116 | return createDefaultFragment(); |
| 117 | } | 117 | } |
-
Please register or login to post a comment