Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vediosocial
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_vediosocial
Commits
8b1b7a54
Commit
8b1b7a54
authored
Jan 21, 2025
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
7815a1d6
Changes
56
Show whitespace changes
Inline
Side-by-side
Showing
56 changed files
with
637 additions
and
286 deletions
+637
-286
TUIC2CChatFragment.java
...oud/tuikit/tuichat/classicui/page/TUIC2CChatFragment.java
+1
-1
TUIConversationService.java
...qcloud/tuikit/tuiconversation/TUIConversationService.java
+14
-10
TUIConversationFragment.java
...iconversation/classicui/page/TUIConversationFragment.java
+5
-0
ConversationPresenter.java
...ikit/tuiconversation/presenter/ConversationPresenter.java
+3
-0
AndroidManifest.xml
video/app/src/main/AndroidManifest.xml
+3
-1
GlideUtils.kt
...o/app/src/main/java/com/duben/library/utils/GlideUtils.kt
+25
-3
FaceVerifyHelper.kt
...in/java/com/duben/roseplaylet/manager/FaceVerifyHelper.kt
+1
-1
IMHelper.kt
...p/src/main/java/com/duben/roseplaylet/manager/IMHelper.kt
+55
-7
UserHelper.kt
...src/main/java/com/duben/roseplaylet/manager/UserHelper.kt
+6
-2
HallList.java
...c/main/java/com/duben/roseplaylet/mvp/model/HallList.java
+9
-0
IMBean.kt
...p/src/main/java/com/duben/roseplaylet/mvp/model/IMBean.kt
+5
-0
InvitePresenter.kt
...a/com/duben/roseplaylet/mvp/presenters/InvitePresenter.kt
+36
-0
InviteView.kt
...c/main/java/com/duben/roseplaylet/mvp/views/InviteView.kt
+3
-0
BasicUserProfileActivity.kt
...uben/roseplaylet/ui/activitys/BasicUserProfileActivity.kt
+4
-0
C2CIMActivity.kt
.../java/com/duben/roseplaylet/ui/activitys/C2CIMActivity.kt
+16
-9
EditProfileActivity.kt
...com/duben/roseplaylet/ui/activitys/EditProfileActivity.kt
+31
-26
MainActivity.kt
...n/java/com/duben/roseplaylet/ui/activitys/MainActivity.kt
+52
-1
ShareActivity.kt
.../java/com/duben/roseplaylet/ui/activitys/ShareActivity.kt
+19
-1
UserProfileActivity.kt
...com/duben/roseplaylet/ui/activitys/UserProfileActivity.kt
+9
-0
BaseActivity.java
...com/duben/roseplaylet/ui/activitys/base/BaseActivity.java
+6
-2
SquareAdapter.kt
...in/java/com/duben/roseplaylet/ui/adapter/SquareAdapter.kt
+26
-11
SquareImageAdapter.java
.../com/duben/roseplaylet/ui/adapter/SquareImageAdapter.java
+51
-0
CustomConversationFragment.kt
...ben/roseplaylet/ui/fragment/CustomConversationFragment.kt
+16
-1
MessageFragment.kt
...java/com/duben/roseplaylet/ui/fragment/MessageFragment.kt
+1
-0
MyFragment.kt
...main/java/com/duben/roseplaylet/ui/fragment/MyFragment.kt
+9
-3
SquareFragment.kt
.../java/com/duben/roseplaylet/ui/fragment/SquareFragment.kt
+24
-21
SquareListFragment.kt
...a/com/duben/roseplaylet/ui/fragment/SquareListFragment.kt
+11
-13
ShareDialog.kt
...main/java/com/duben/roseplaylet/ui/widgets/ShareDialog.kt
+2
-13
ShareImageDialog.kt
...java/com/duben/roseplaylet/ui/widgets/ShareImageDialog.kt
+16
-45
QRCodeUtil.java
...src/main/java/com/duben/roseplaylet/utils/QRCodeUtil.java
+6
-6
shape_chat_bubble_left.xml
video/app/src/main/res/drawable/shape_chat_bubble_left.xml
+9
-0
shape_chat_bubble_right.xml
video/app/src/main/res/drawable/shape_chat_bubble_right.xml
+9
-0
shape_share.xml
video/app/src/main/res/drawable/shape_share.xml
+1
-1
shape_toast_bg.xml
video/app/src/main/res/drawable/shape_toast_bg.xml
+1
-1
activity_im.xml
video/app/src/main/res/layout/activity_im.xml
+2
-1
activity_main.xml
video/app/src/main/res/layout/activity_main.xml
+51
-31
activity_real_auth.xml
video/app/src/main/res/layout/activity_real_auth.xml
+5
-9
activity_user_profile.xml
video/app/src/main/res/layout/activity_user_profile.xml
+2
-1
banner_image.xml
video/app/src/main/res/layout/banner_image.xml
+11
-0
dialog_real_auth.xml
video/app/src/main/res/layout/dialog_real_auth.xml
+3
-3
dialog_see_wechat.xml
video/app/src/main/res/layout/dialog_see_wechat.xml
+4
-3
dialog_share.xml
video/app/src/main/res/layout/dialog_share.xml
+17
-7
dialog_share_image.xml
video/app/src/main/res/layout/dialog_share_image.xml
+8
-17
fragment_main_message.xml
video/app/src/main/res/layout/fragment_main_message.xml
+4
-2
fragment_main_my.xml
video/app/src/main/res/layout/fragment_main_my.xml
+2
-2
item_share_view.xml
video/app/src/main/res/layout/item_share_view.xml
+17
-9
item_square.xml
video/app/src/main/res/layout/item_square.xml
+19
-17
toast_view.xml
video/app/src/main/res/layout/toast_view.xml
+4
-4
ic_default_avatar_rect.png
.../app/src/main/res/mipmap-xhdpi/ic_default_avatar_rect.png
+0
-0
ic_my_avat.png
video/app/src/main/res/mipmap-xhdpi/ic_my_avat.png
+0
-0
ic_share_moment.png
video/app/src/main/res/mipmap-xhdpi/ic_share_moment.png
+0
-0
ic_share_wechat.png
video/app/src/main/res/mipmap-xhdpi/ic_share_wechat.png
+0
-0
bg_banner1.png
video/app/src/main/res/mipmap-xxhdpi/bg_banner1.png
+0
-0
bg_banner2.png
video/app/src/main/res/mipmap-xxhdpi/bg_banner2.png
+0
-0
bg_banner3.png
video/app/src/main/res/mipmap-xxhdpi/bg_banner3.png
+0
-0
colors.xml
video/app/src/main/res/values/colors.xml
+3
-1
No files found.
TUIKit/TUIChat/tuichat/src/main/java/com/tencent/qcloud/tuikit/tuichat/classicui/page/TUIC2CChatFragment.java
View file @
8b1b7a54
...
@@ -47,7 +47,7 @@ public class TUIC2CChatFragment extends TUIBaseChatFragment {
...
@@ -47,7 +47,7 @@ public class TUIC2CChatFragment extends TUIBaseChatFragment {
initView
();
initView
();
TUIChatConfigClassic
.
hideItemsWhenLongPressMessage
(
TUIChatConfigClassic
.
SELECT
);
//
TUIChatConfigClassic.hideItemsWhenLongPressMessage(TUIChatConfigClassic.SELECT);
return
baseView
;
return
baseView
;
}
}
...
...
TUIKit/TUIConversation/tuiconversation/src/main/java/com/tencent/qcloud/tuikit/tuiconversation/TUIConversationService.java
View file @
8b1b7a54
...
@@ -3,6 +3,7 @@ package com.tencent.qcloud.tuikit.tuiconversation;
...
@@ -3,6 +3,7 @@ package com.tencent.qcloud.tuikit.tuiconversation;
import
android.content.Context
;
import
android.content.Context
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
com.google.auto.service.AutoService
;
import
com.google.auto.service.AutoService
;
import
com.tencent.imsdk.v2.V2TIMConversation
;
import
com.tencent.imsdk.v2.V2TIMConversation
;
import
com.tencent.imsdk.v2.V2TIMConversationListener
;
import
com.tencent.imsdk.v2.V2TIMConversationListener
;
...
@@ -28,6 +29,7 @@ import com.tencent.qcloud.tuikit.tuiconversation.commonutil.TUIConversationLog;
...
@@ -28,6 +29,7 @@ import com.tencent.qcloud.tuikit.tuiconversation.commonutil.TUIConversationLog;
import
com.tencent.qcloud.tuikit.tuiconversation.interfaces.ConversationEventListener
;
import
com.tencent.qcloud.tuikit.tuiconversation.interfaces.ConversationEventListener
;
import
com.tencent.qcloud.tuikit.tuiconversation.interfaces.ConversationGroupNotifyListener
;
import
com.tencent.qcloud.tuikit.tuiconversation.interfaces.ConversationGroupNotifyListener
;
import
com.tencent.qcloud.tuikit.tuiconversation.presenter.ConversationPresenter
;
import
com.tencent.qcloud.tuikit.tuiconversation.presenter.ConversationPresenter
;
import
java.lang.ref.SoftReference
;
import
java.lang.ref.SoftReference
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -131,10 +133,12 @@ public class TUIConversationService implements TUIInitializer, ITUIService, ITUI
...
@@ -131,10 +133,12 @@ public class TUIConversationService implements TUIInitializer, ITUIService, ITUI
if
(!
TextUtils
.
isEmpty
(
chatId
))
{
if
(!
TextUtils
.
isEmpty
(
chatId
))
{
conversationEventListener
.
setConversationTop
(
chatId
,
isTop
,
new
IUIKitCallback
<
Void
>()
{
conversationEventListener
.
setConversationTop
(
chatId
,
isTop
,
new
IUIKitCallback
<
Void
>()
{
@Override
@Override
public
void
onSuccess
(
Void
data
)
{}
public
void
onSuccess
(
Void
data
)
{
}
@Override
@Override
public
void
onError
(
String
module
,
int
errCode
,
String
errMsg
)
{}
public
void
onError
(
String
module
,
int
errCode
,
String
errMsg
)
{
}
});
});
}
}
}
else
if
(
TextUtils
.
equals
(
TUIConstants
.
TUIConversation
.
METHOD_GET_TOTAL_UNREAD_COUNT
,
method
))
{
}
else
if
(
TextUtils
.
equals
(
TUIConstants
.
TUIConversation
.
METHOD_GET_TOTAL_UNREAD_COUNT
,
method
))
{
...
...
TUIKit/TUIConversation/tuiconversation/src/main/java/com/tencent/qcloud/tuikit/tuiconversation/classicui/page/TUIConversationFragment.java
View file @
8b1b7a54
...
@@ -63,6 +63,11 @@ public class TUIConversationFragment extends Fragment {
...
@@ -63,6 +63,11 @@ public class TUIConversationFragment extends Fragment {
return
presenter
;
return
presenter
;
}
}
protected
ConversationPresenter
getProvider
()
{
return
presenter
;
}
@Nullable
@Nullable
@Override
@Override
public
View
onCreateView
(
LayoutInflater
inflater
,
@Nullable
ViewGroup
container
,
Bundle
savedInstanceState
)
{
public
View
onCreateView
(
LayoutInflater
inflater
,
@Nullable
ViewGroup
container
,
Bundle
savedInstanceState
)
{
...
...
TUIKit/TUIConversation/tuiconversation/src/main/java/com/tencent/qcloud/tuikit/tuiconversation/presenter/ConversationPresenter.java
View file @
8b1b7a54
...
@@ -208,6 +208,9 @@ public class ConversationPresenter {
...
@@ -208,6 +208,9 @@ public class ConversationPresenter {
}
}
protected
void
onLoadConversationCompleted
(
List
<
ConversationInfo
>
conversationInfoList
)
{
protected
void
onLoadConversationCompleted
(
List
<
ConversationInfo
>
conversationInfoList
)
{
for
(
ConversationInfo
conversationInfo
:
conversationInfoList
)
{
System
.
out
.
println
(
"AAAAAAAAAA"
+
conversationInfo
.
getConversationId
());
}
onNewConversation
(
conversationInfoList
,
false
);
onNewConversation
(
conversationInfoList
,
false
);
if
(
adapter
!=
null
)
{
if
(
adapter
!=
null
)
{
adapter
.
onLoadingStateChanged
(
false
);
adapter
.
onLoadingStateChanged
(
false
);
...
...
video/app/src/main/AndroidManifest.xml
View file @
8b1b7a54
...
@@ -272,7 +272,9 @@
...
@@ -272,7 +272,9 @@
<activity
<activity
android:name=
".ui.activitys.C2CIMActivity"
android:name=
".ui.activitys.C2CIMActivity"
android:exported=
"false"
android:exported=
"false"
android:screenOrientation=
"portrait"
/>
android:launchMode=
"singleTask"
android:screenOrientation=
"portrait"
android:windowSoftInputMode=
"adjustNothing|stateHidden"
/>
<activity
<activity
android:name=
".ui.activitys.CommonDataActivity"
android:name=
".ui.activitys.CommonDataActivity"
...
...
video/app/src/main/java/com/duben/library/utils/GlideUtils.kt
View file @
8b1b7a54
...
@@ -15,6 +15,7 @@ import com.bumptech.glide.request.RequestOptions
...
@@ -15,6 +15,7 @@ import com.bumptech.glide.request.RequestOptions
import
com.bumptech.glide.request.target.SimpleTarget
import
com.bumptech.glide.request.target.SimpleTarget
import
com.bumptech.glide.request.transition.Transition
import
com.bumptech.glide.request.transition.Transition
import
com.bumptech.glide.signature.ObjectKey
import
com.bumptech.glide.signature.ObjectKey
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.utils.BubbleUtils
import
com.duben.roseplaylet.utils.BubbleUtils
import
jp.wasabeef.glide.transformations.BlurTransformation
import
jp.wasabeef.glide.transformations.BlurTransformation
...
@@ -230,15 +231,36 @@ object GlideUtils {
...
@@ -230,15 +231,36 @@ object GlideUtils {
}
}
fun
loadThumbImageView
(
context
:
Context
,
path
:
String
?,
mImageView
:
ImageView
)
{
fun
loadThumbImageView
(
context
:
Context
,
path
:
String
?,
mImageView
:
ImageView
)
{
Glide
.
with
(
context
).
load
(
"$path?x-oss-process=image/resize,p_20"
).
into
(
mImageView
)
Glide
.
with
(
context
).
load
(
"$path?x-oss-process=image/resize,p_20"
)
.
apply
(
RequestOptions
().
placeholder
(
R
.
mipmap
.
ic_my_avat
)
.
error
(
R
.
mipmap
.
ic_my_avat
)
).
into
(
mImageView
)
}
}
//默认加载
//默认加载
fun
loadThumbRoundImageView
(
mContext
:
Context
,
path
:
String
?,
mImageView
:
ImageView
)
{
fun
loadThumbRoundImageView
(
mContext
:
Context
,
path
:
String
?,
mImageView
:
ImageView
,
defaultImage
:
Int
=
R
.
mipmap
.
ic_my_avat
)
{
Glide
.
with
(
mContext
).
load
(
"$path?x-oss-process=image/resize,p_20"
).
apply
(
Glide
.
with
(
mContext
).
load
(
"$path?x-oss-process=image/resize,p_20"
).
apply
(
RequestOptions
().
transform
(
CenterCrop
(),
RoundedCorners
(
BubbleUtils
.
dp2px
(
10
))
).
placeholder
(
defaultImage
)
.
error
(
defaultImage
)
).
dontAnimate
().
into
(
mImageView
)
}
//默认加载
fun
loadHighRoundImageView
(
mContext
:
Context
,
path
:
String
?,
mImageView
:
ImageView
)
{
Glide
.
with
(
mContext
).
load
(
path
).
apply
(
RequestOptions
().
transform
(
RequestOptions
().
transform
(
CenterCrop
(),
RoundedCorners
(
BubbleUtils
.
dp2px
(
10
))
CenterCrop
(),
RoundedCorners
(
BubbleUtils
.
dp2px
(
10
))
)
).
placeholder
(
R
.
mipmap
.
ic_my_avat
)
.
error
(
R
.
mipmap
.
ic_my_avat
)
).
dontAnimate
().
into
(
mImageView
)
).
dontAnimate
().
into
(
mImageView
)
}
}
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/roseplaylet/manager/FaceVerifyHelper.kt
View file @
8b1b7a54
...
@@ -66,7 +66,7 @@ class FaceVerifyHelper private constructor() {
...
@@ -66,7 +66,7 @@ class FaceVerifyHelper private constructor() {
data
.
putString
(
WbCloudFaceContant
.
COMPARE_TYPE
,
WbCloudFaceContant
.
ID_CARD
)
data
.
putString
(
WbCloudFaceContant
.
COMPARE_TYPE
,
WbCloudFaceContant
.
ID_CARD
)
//sdk log开关,默认关闭,debug调试sdk问题的时候可以打开,打开日志开关需要外部存储权限
//sdk log开关,默认关闭,debug调试sdk问题的时候可以打开,打开日志开关需要外部存储权限
//【特别注意】上线前请务必关闭sdk log开关!!!
//【特别注意】上线前请务必关闭sdk log开关!!!
data
.
putBoolean
(
WbCloudFaceContant
.
IS_ENABLE_LOG
,
tru
e
)
data
.
putBoolean
(
WbCloudFaceContant
.
IS_ENABLE_LOG
,
fals
e
)
Log
.
d
(
TAG
,
"WbCloudFaceVerifySdk initSdk"
)
Log
.
d
(
TAG
,
"WbCloudFaceVerifySdk initSdk"
)
//【特别注意】请使用activity context拉起sdk
//【特别注意】请使用activity context拉起sdk
//【特别注意】请在主线程拉起sdk!
//【特别注意】请在主线程拉起sdk!
...
...
video/app/src/main/java/com/duben/roseplaylet/manager/IMHelper.kt
View file @
8b1b7a54
...
@@ -5,17 +5,22 @@ import android.graphics.Color
...
@@ -5,17 +5,22 @@ import android.graphics.Color
import
android.graphics.drawable.ColorDrawable
import
android.graphics.drawable.ColorDrawable
import
android.view.LayoutInflater
import
android.view.LayoutInflater
import
android.widget.TextView
import
android.widget.TextView
import
androidx.core.content.ContextCompat
import
com.duben.library.net.neterror.BaseSubscriber
import
com.duben.library.net.neterror.BaseSubscriber
import
com.duben.library.net.neterror.Throwable
import
com.duben.library.net.neterror.Throwable
import
com.duben.roseplaylet.MintsApplication
import
com.duben.roseplaylet.MintsApplication
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.mvp.model.BaseResponse
import
com.duben.roseplaylet.mvp.model.BaseResponse
import
com.duben.roseplaylet.mvp.model.IM_MSG
import
com.duben.roseplaylet.ui.activitys.C2CIMActivity
import
com.duben.roseplaylet.ui.activitys.C2CIMActivity
import
com.duben.roseplaylet.utils.LogUtil
import
com.duben.roseplaylet.utils.LogUtil
import
com.duben.roseplaylet.utils.RxBus
import
com.duben.roseplaylet.utils.ToastUtil
import
com.duben.roseplaylet.utils.ToastUtil
import
com.duben.roseplaylet.utils.UcropUtils
import
com.duben.roseplaylet.utils.UcropUtils
import
com.google.gson.JsonObject
import
com.google.gson.JsonObject
import
com.tencent.imsdk.v2.V2TIMConversation
import
com.tencent.imsdk.v2.V2TIMConversation
import
com.tencent.imsdk.v2.V2TIMManagerImpl
import
com.tencent.imsdk.v2.V2TIMValueCallback
import
com.tencent.qcloud.tuicore.TUIConfig
import
com.tencent.qcloud.tuicore.TUIConfig
import
com.tencent.qcloud.tuicore.TUIConstants
import
com.tencent.qcloud.tuicore.TUIConstants
import
com.tencent.qcloud.tuicore.interfaces.TUICallback
import
com.tencent.qcloud.tuicore.interfaces.TUICallback
...
@@ -68,13 +73,18 @@ class IMHelper private constructor() {
...
@@ -68,13 +73,18 @@ class IMHelper private constructor() {
val
appContext
=
MintsApplication
.
getContext
()
val
appContext
=
MintsApplication
.
getContext
()
//隐藏更多菜单中选项(全局)
//隐藏更多菜单中选项(全局)
TUIChatConfigClassic
.
hideItemsInMoreMenu
(
TUIChatConfigClassic
.
CUSTOM
)
TUIChatConfigClassic
.
hideItemsInMoreMenu
(
TUIChatConfigClassic
.
CUSTOM
,
TUIChatConfigClassic
.
FILE
)
//设置会话列表、cell 背景色
//设置会话列表、cell 背景色
TUIConversationConfigClassic
.
setListBackground
(
ColorDrawable
(
appContext
.
resources
.
getColor
(
R
.
color
.
color_07060C
)))
TUIConversationConfigClassic
.
setListBackground
(
ColorDrawable
(
appContext
.
resources
.
getColor
(
R
.
color
.
color_07060C
)))
TUIConversationConfigClassic
.
setCellBackground
(
ColorDrawable
(
appContext
.
resources
.
getColor
(
R
.
color
.
color_07060C
)))
TUIConversationConfigClassic
.
setCellBackground
(
ColorDrawable
(
appContext
.
resources
.
getColor
(
R
.
color
.
color_07060C
)))
TUIConversationConfigClassic
.
setPinnedCellBackground
(
TUIConversationConfigClassic
.
setPinnedCellBackground
(
ColorDrawable
(
appContext
.
resources
.
getColor
(
R
.
color
.
color_07060C
))
ColorDrawable
(
appContext
.
resources
.
getColor
(
R
.
color
.
color_07060C
))
)
)
// 设置会话列表、圆角半径
TUIConversationConfigClassic
.
setAvatarCornerRadius
(
100
)
//展示在线状态 -旗舰版能用
//展示在线状态 -旗舰版能用
//TUIConversationConfigClassic.setShowUserOnlineStatusIcon(true)
//TUIConversationConfigClassic.setShowUserOnlineStatusIcon(true)
//展示未读红点
//展示未读红点
...
@@ -84,18 +94,40 @@ class IMHelper private constructor() {
...
@@ -84,18 +94,40 @@ class IMHelper private constructor() {
// TUIChatConfigClassic.setMessageReadReceiptNeeded(true)
// TUIChatConfigClassic.setMessageReadReceiptNeeded(true)
//设置系统通知消息文字的字体、颜色和背景色,针对所有系统通知消息生效
//设置系统通知消息文字的字体、颜色和背景色,针对所有系统通知消息生效
TUIChatConfigClassic
.
setSystemMessageTextColor
(
Color
.
WHITE
)
TUIChatConfigClassic
.
setSystemMessageTextColor
(
Color
.
WHITE
)
TUIChatConfigClassic
.
setSystemMessageFontSize
(
2
3
)
TUIChatConfigClassic
.
setSystemMessageFontSize
(
2
2
)
TUIChatConfigClassic
.
setSystemMessageBackground
(
TUIChatConfigClassic
.
setSystemMessageBackground
(
ColorDrawable
(
appContext
.
resources
.
getColor
(
R
.
color
.
color_07060C
))
ColorDrawable
(
appContext
.
resources
.
getColor
(
R
.
color
.
color_07060C
))
)
)
// 用户头像大小、圆角半径
TUIConfigClassic
.
setMessageListAvatarSize
(
120
)
TUIConfigClassic
.
setMessageListAvatarRadius
(
120
)
// 聊天界面背景色
// 聊天界面背景色
TUIChatConfigClassic
.
setBackground
(
ColorDrawable
(
appContext
.
resources
.
getColor
(
R
.
color
.
color_07060C
)))
TUIChatConfigClassic
.
setBackground
(
ColorDrawable
(
appContext
.
resources
.
getColor
(
R
.
color
.
color_07060C
)))
TUIConfigClassic
.
setSendBubbleBackground
(
appContext
.
resources
.
getDrawable
(
R
.
drawable
.
shape_bg_market
))
TUIConfigClassic
.
setSendBubbleBackground
(
TUIConfigClassic
.
setReceiveBubbleBackground
(
appContext
.
resources
.
getDrawable
(
R
.
drawable
.
shape_bg_market
))
ContextCompat
.
getDrawable
(
appContext
,
R
.
drawable
.
shape_chat_bubble_right
)
TUIChatConfigClassic
.
setSendTextMessageColor
(
Color
.
WHITE
)
)
TUIChatConfigClassic
.
setReceiveTextMessageColor
(
Color
.
BLACK
)
TUIConfigClassic
.
setReceiveBubbleBackground
(
ContextCompat
.
getDrawable
(
appContext
,
R
.
drawable
.
shape_chat_bubble_left
)
)
TUIChatConfigClassic
.
setSendTextMessageColor
(
ContextCompat
.
getColor
(
appContext
,
R
.
color
.
color_F9F9F9
)
)
TUIChatConfigClassic
.
setReceiveTextMessageColor
(
ContextCompat
.
getColor
(
appContext
,
R
.
color
.
color_15141A
)
)
TUIChatConfigClassic
.
hideItemsWhenLongPressMessage
(
TUIChatConfigClassic
.
REPLY
,
TUIChatConfigClassic
.
QUOTE
,
TUIChatConfigClassic
.
EMOJI_REACTION
,
TUIChatConfigClassic
.
PIN
,
TUIChatConfigClassic
.
RECALL
,
TUIChatConfigClassic
.
TRANSLATE
,
TUIChatConfigClassic
.
CONVERT
,
TUIChatConfigClassic
.
FORWARD
,
TUIChatConfigClassic
.
SELECT
,
TUIChatConfigClassic
.
SPEAKER_MODE_SWITCH
)
setCustomTopView
(
""
)
setCustomTopView
(
""
)
}
}
...
@@ -115,6 +147,7 @@ class IMHelper private constructor() {
...
@@ -115,6 +147,7 @@ class IMHelper private constructor() {
object
:
TUICallback
()
{
object
:
TUICallback
()
{
override
fun
onSuccess
()
{
override
fun
onSuccess
()
{
LogUtil
.
i
(
"LoginWrapper "
,
"imLogin onSuccess"
)
LogUtil
.
i
(
"LoginWrapper "
,
"imLogin onSuccess"
)
getUnreadMsgCount
()
}
}
override
fun
onError
(
errorCode
:
Int
,
errorMessage
:
String
)
{
override
fun
onError
(
errorCode
:
Int
,
errorMessage
:
String
)
{
...
@@ -126,6 +159,21 @@ class IMHelper private constructor() {
...
@@ -126,6 +159,21 @@ class IMHelper private constructor() {
})
})
}
}
fun
getUnreadMsgCount
()
{
V2TIMManagerImpl
.
getConversationManager
()
.
getTotalUnreadMessageCount
(
object
:
V2TIMValueCallback
<
Long
>
{
override
fun
onSuccess
(
t
:
Long
?)
{
val
imMsg
=
IM_MSG
()
imMsg
.
unReadMsgCount
=
t
RxBus
.
getDefault
().
post
(
imMsg
)
}
override
fun
onError
(
code
:
Int
,
desc
:
String
?)
{
}
})
}
private
fun
setCustomTopView
(
wxCode
:
String
)
{
private
fun
setCustomTopView
(
wxCode
:
String
)
{
val
tipsView
=
LayoutInflater
.
from
(
MintsApplication
.
getContext
())
val
tipsView
=
LayoutInflater
.
from
(
MintsApplication
.
getContext
())
.
inflate
(
R
.
layout
.
custom_tips_view
,
null
)
.
inflate
(
R
.
layout
.
custom_tips_view
,
null
)
...
...
video/app/src/main/java/com/duben/roseplaylet/manager/UserHelper.kt
View file @
8b1b7a54
package
com.duben.roseplaylet.manager
package
com.duben.roseplaylet.manager
import
android.content.Intent
import
android.content.Intent
import
android.os.Handler
import
android.os.Looper
import
com.duben.roseplaylet.MintsApplication
import
com.duben.roseplaylet.MintsApplication
import
com.duben.roseplaylet.ui.activitys.BasicUserProfileActivity
import
com.duben.roseplaylet.ui.activitys.BasicUserProfileActivity
import
com.duben.roseplaylet.ui.activitys.VipActivity
import
com.duben.roseplaylet.ui.widgets.RealAuthDialog
import
com.duben.roseplaylet.ui.widgets.RealAuthDialog
import
com.duben.roseplaylet.utils.ToastUtil
import
com.duben.roseplaylet.utils.ToastUtil
...
@@ -45,8 +46,11 @@ class UserHelper private constructor() {
...
@@ -45,8 +46,11 @@ class UserHelper private constructor() {
}
}
fun
showRealAuthDialog
()
{
fun
showRealAuthDialog
()
{
Handler
(
Looper
.
getMainLooper
()).
post
{
// 主线程
RealAuthDialog
(
ActivityPageManager
.
getInstance
().
currentActivity
).
show
()
RealAuthDialog
(
ActivityPageManager
.
getInstance
().
currentActivity
).
show
()
}
}
}
fun
receiveErrorCode
(
code
:
Int
)
{
fun
receiveErrorCode
(
code
:
Int
)
{
val
appContext
=
MintsApplication
.
getContext
()
val
appContext
=
MintsApplication
.
getContext
()
...
...
video/app/src/main/java/com/duben/roseplaylet/mvp/model/HallList.java
View file @
8b1b7a54
...
@@ -46,6 +46,15 @@ public class HallList implements Serializable {
...
@@ -46,6 +46,15 @@ public class HallList implements Serializable {
private
int
likeStatus
;
private
int
likeStatus
;
private
boolean
vip
;
private
boolean
vip
;
private
boolean
online
;
private
boolean
online
;
private
String
tagsCommon
;
public
String
getTagsCommon
()
{
return
tagsCommon
;
}
public
void
setTagsCommon
(
String
tagsCommon
)
{
this
.
tagsCommon
=
tagsCommon
;
}
public
boolean
isOnline
()
{
public
boolean
isOnline
()
{
return
online
;
return
online
;
...
...
video/app/src/main/java/com/duben/roseplaylet/mvp/model/IMBean.kt
0 → 100644
View file @
8b1b7a54
package
com.duben.roseplaylet.mvp.model
data class
IM_MSG
(
var
unReadMsgCount
:
Long
?
=
0L
)
video/app/src/main/java/com/duben/roseplaylet/mvp/presenters/InvitePresenter.kt
View file @
8b1b7a54
...
@@ -8,6 +8,7 @@ import com.duben.roseplaylet.mvp.model.SharePageMsg
...
@@ -8,6 +8,7 @@ import com.duben.roseplaylet.mvp.model.SharePageMsg
import
com.duben.roseplaylet.mvp.model.ShareRankList
import
com.duben.roseplaylet.mvp.model.ShareRankList
import
com.duben.roseplaylet.mvp.views.InviteView
import
com.duben.roseplaylet.mvp.views.InviteView
import
com.google.gson.JsonObject
import
com.google.gson.JsonObject
import
java.util.HashMap
class
InvitePresenter
:
BasePresenter
<
InviteView
>()
{
class
InvitePresenter
:
BasePresenter
<
InviteView
>()
{
...
@@ -44,6 +45,41 @@ class InvitePresenter : BasePresenter<InviteView>() {
...
@@ -44,6 +45,41 @@ class InvitePresenter : BasePresenter<InviteView>() {
})
})
}
}
fun
updateRuserShareCode
(
shareCode
:
String
)
{
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"shareCode"
]
=
shareCode
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
updateRuserShareCode
(
vo
),
object
:
BaseSubscriber
<
BaseResponse
<
JsonObject
>>()
{
override
fun
onCompleted
()
{
if
(
isLinkView
)
return
}
override
fun
onError
(
e
:
Throwable
)
{
if
(
isLinkView
)
return
view
.
showToast
(
e
.
message
)
view
.
updateRuserShareCodeFail
()
}
override
fun
onNext
(
baseResponse
:
BaseResponse
<
JsonObject
>)
{
if
(
isLinkView
)
return
val
code
=
baseResponse
.
status
val
message
=
baseResponse
.
message
when
(
code
)
{
200
->
{
view
.
updateRuserShareCodeSuc
()
}
else
->
{
view
.
showToast
(
message
)
view
.
updateRuserShareCodeFail
()
}
}
}
})
}
fun
getShareOrders
()
{
fun
getShareOrders
()
{
AppHttpManager
.
getInstance
(
loanApplication
)
AppHttpManager
.
getInstance
(
loanApplication
)
...
...
video/app/src/main/java/com/duben/roseplaylet/mvp/views/InviteView.kt
View file @
8b1b7a54
...
@@ -16,4 +16,7 @@ interface InviteView : BaseView {
...
@@ -16,4 +16,7 @@ interface InviteView : BaseView {
fun
getRuserShareCodeSuc
(
data
:
Any
)
fun
getRuserShareCodeSuc
(
data
:
Any
)
fun
getRuserShareCodeSucFail
()
fun
getRuserShareCodeSucFail
()
fun
updateRuserShareCodeSuc
()
fun
updateRuserShareCodeFail
()
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/BasicUserProfileActivity.kt
View file @
8b1b7a54
...
@@ -115,6 +115,10 @@ class BasicUserProfileActivity : BaseActivity(), View.OnClickListener, BasicUser
...
@@ -115,6 +115,10 @@ class BasicUserProfileActivity : BaseActivity(), View.OnClickListener, BasicUser
return
return
}
}
if
(
avatarUrl
.
isNullOrEmpty
())
{
avatarUrl
=
""
}
basicUserProfilePresenter
.
initBasicInfo
(
"$age-1-1"
,
nickname
,
sex
,
avatarUrl
!!
)
basicUserProfilePresenter
.
initBasicInfo
(
"$age-1-1"
,
nickname
,
sex
,
avatarUrl
!!
)
}
}
}
}
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/C2CIMActivity.kt
View file @
8b1b7a54
...
@@ -75,14 +75,6 @@ class C2CIMActivity : TUIBaseChatActivity() {
...
@@ -75,14 +75,6 @@ class C2CIMActivity : TUIBaseChatActivity() {
chatView
.
viewline
.
visibility
=
View
.
GONE
chatView
.
viewline
.
visibility
=
View
.
GONE
chatView
.
inputView
.
setBgColor
(
resources
.
getColor
(
R
.
color
.
color_171619
))
chatView
.
inputView
.
setBgColor
(
resources
.
getColor
(
R
.
color
.
color_171619
))
if
(
UserManager
.
getInstance
().
userSex
==
1
)
{
// 默认不能聊天
chatView
.
inputView
.
setInterceptTouchEvent
(
true
)
chatView
.
inputView
.
setOnClickListener
{
showUnlockWechatDialog
()
}
}
val
titleBarLayout
=
chatView
.
titleBar
val
titleBarLayout
=
chatView
.
titleBar
titleBarLayout
.
setBgColor
(
resources
.
getColor
(
R
.
color
.
color_15141A
))
titleBarLayout
.
setBgColor
(
resources
.
getColor
(
R
.
color
.
color_15141A
))
titleBarLayout
.
middleTitle
.
setTextColor
(
Color
.
WHITE
)
titleBarLayout
.
middleTitle
.
setTextColor
(
Color
.
WHITE
)
...
@@ -115,12 +107,18 @@ class C2CIMActivity : TUIBaseChatActivity() {
...
@@ -115,12 +107,18 @@ class C2CIMActivity : TUIBaseChatActivity() {
}
}
else
->
{
else
->
{
setCustomTopView
(
"****"
)
setCustomTopView
(
"****"
)
setUserCanChat
(
false
)
}
}
}
}
}
}
override
fun
onError
(
e
:
Throwable
?)
{}
override
fun
onError
(
e
:
Throwable
?)
{
setUserCanChat
(
false
)
}
})
})
}
else
{
// 女性用户和男性聊天
hideCustomView
()
}
}
}
}
...
@@ -150,6 +148,7 @@ class C2CIMActivity : TUIBaseChatActivity() {
...
@@ -150,6 +148,7 @@ class C2CIMActivity : TUIBaseChatActivity() {
}
}
private
fun
setUserCanChat
(
canChat
:
Boolean
)
{
private
fun
setUserCanChat
(
canChat
:
Boolean
)
{
if
(
UserManager
.
getInstance
().
userSex
==
2
)
return
val
chatView
=
chatFragment
.
chatView
val
chatView
=
chatFragment
.
chatView
if
(!
canChat
)
{
if
(!
canChat
)
{
// 不能聊天
// 不能聊天
...
@@ -162,6 +161,14 @@ class C2CIMActivity : TUIBaseChatActivity() {
...
@@ -162,6 +161,14 @@ class C2CIMActivity : TUIBaseChatActivity() {
}
}
}
}
private
fun
hideCustomView
()
{
val
customNoticeLayout
=
TUIChatConfigs
.
getNoticeLayoutConfig
().
customNoticeLayout
val
tvInfo
=
customNoticeLayout
.
findViewById
<
TextView
>(
R
.
id
.
tv_info
)
val
rlWxInfo
=
customNoticeLayout
.
findViewById
<
RelativeLayout
>(
R
.
id
.
rl_wx_info
)
rlWxInfo
.
visibility
=
View
.
GONE
tvInfo
.
visibility
=
View
.
GONE
}
private
fun
setCustomTopView
(
wxCode
:
String
)
{
private
fun
setCustomTopView
(
wxCode
:
String
)
{
val
customNoticeLayout
=
TUIChatConfigs
.
getNoticeLayoutConfig
().
customNoticeLayout
val
customNoticeLayout
=
TUIChatConfigs
.
getNoticeLayoutConfig
().
customNoticeLayout
val
tvWxNo
=
customNoticeLayout
.
findViewById
<
TextView
>(
R
.
id
.
tv_wx_no
)
val
tvWxNo
=
customNoticeLayout
.
findViewById
<
TextView
>(
R
.
id
.
tv_wx_no
)
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/EditProfileActivity.kt
View file @
8b1b7a54
...
@@ -6,6 +6,7 @@ import android.content.Intent
...
@@ -6,6 +6,7 @@ import android.content.Intent
import
android.content.pm.ActivityInfo
import
android.content.pm.ActivityInfo
import
android.graphics.Color
import
android.graphics.Color
import
android.os.Bundle
import
android.os.Bundle
import
android.text.InputType
import
android.text.TextUtils
import
android.text.TextUtils
import
android.view.View
import
android.view.View
import
android.widget.EditText
import
android.widget.EditText
...
@@ -54,7 +55,7 @@ import java.io.File
...
@@ -54,7 +55,7 @@ import java.io.File
class
EditProfileActivity
:
BaseActivity
(),
View
.
OnClickListener
,
EditProfileView
{
class
EditProfileActivity
:
BaseActivity
(),
View
.
OnClickListener
,
EditProfileView
{
private
lateinit
var
ivAvatar
:
ImageView
private
lateinit
var
ivAvatar
:
ImageView
private
lateinit
var
tv
Nickname
:
EditText
private
lateinit
var
et
Nickname
:
EditText
private
lateinit
var
tvSign
:
TextView
private
lateinit
var
tvSign
:
TextView
private
lateinit
var
tvAge
:
TextView
private
lateinit
var
tvAge
:
TextView
private
lateinit
var
tvJob
:
TextView
private
lateinit
var
tvJob
:
TextView
...
@@ -164,7 +165,13 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -164,7 +165,13 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
xhdnstzAdapter
?.
setNewInstance
(
tagsList
.
toCollection
(
ArrayList
()))
xhdnstzAdapter
?.
setNewInstance
(
tagsList
.
toCollection
(
ArrayList
()))
}
}
GlideUtils
.
loadThumbImageView
(
this
@EditProfileActivity
,
it
.
headerUrl
,
ivAvatar
)
GlideUtils
.
loadThumbImageView
(
this
@EditProfileActivity
,
it
.
headerUrl
,
ivAvatar
)
tvNickname
.
setText
(
""
+
it
.
nickName
)
if
(!
it
.
nickName
.
isNullOrEmpty
())
{
etNickname
.
setText
(
""
+
it
.
nickName
)
etNickname
.
setSelection
(
it
.
nickName
!!
.
length
)
}
else
{
etNickname
.
hint
=
"请填写您的昵称"
etNickname
.
setText
(
""
)
}
tvSign
.
text
=
it
.
introduce
tvSign
.
text
=
it
.
introduce
tvAge
.
text
=
it
.
birthday
tvAge
.
text
=
it
.
birthday
tvJob
.
text
=
it
.
career
tvJob
.
text
=
it
.
career
...
@@ -179,8 +186,11 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -179,8 +186,11 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
layout_wechat
.
visibility
=
View
.
VISIBLE
layout_wechat
.
visibility
=
View
.
VISIBLE
layout_wechat
.
findViewById
<
TextView
>(
R
.
id
.
label_start
).
text
=
"微信账号"
layout_wechat
.
findViewById
<
TextView
>(
R
.
id
.
label_start
).
text
=
"微信账号"
etWechat
=
layout_wechat
.
findViewById
(
R
.
id
.
label_et
)
etWechat
=
layout_wechat
.
findViewById
(
R
.
id
.
label_et
)
if
(!
TextUtils
.
isEmpty
(
""
))
{
etWechat
.
inputType
=
InputType
.
TYPE_TEXT_VARIATION_VISIBLE_PASSWORD
etWechat
.
setText
(
""
)
if
(!
TextUtils
.
isEmpty
(
userProfileData
?.
infoWechat
))
{
etWechat
.
setText
(
userProfileData
?.
infoWechat
)
etWechat
.
setText
(
""
+
userProfileData
?.
infoWechat
)
etWechat
.
setSelection
(
userProfileData
?.
infoWechat
!!
.
length
)
}
else
{
}
else
{
etWechat
.
hint
=
"请填写您的微信号"
etWechat
.
hint
=
"请填写您的微信号"
etWechat
.
setText
(
""
)
etWechat
.
setText
(
""
)
...
@@ -190,8 +200,8 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -190,8 +200,8 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
layout_sx
.
visibility
=
View
.
VISIBLE
layout_sx
.
visibility
=
View
.
VISIBLE
layout_sx
.
findViewById
<
TextView
>(
R
.
id
.
label_start
).
text
=
UserProfile
.
PROFILE_SX
.
str
layout_sx
.
findViewById
<
TextView
>(
R
.
id
.
label_start
).
text
=
UserProfile
.
PROFILE_SX
.
str
tvSx
=
layout_sx
.
findViewById
(
R
.
id
.
label_tv
)
tvSx
=
layout_sx
.
findViewById
(
R
.
id
.
label_tv
)
if
(!
TextUtils
.
isEmpty
(
""
))
{
if
(!
TextUtils
.
isEmpty
(
userProfileData
?.
appearance
))
{
tvSx
.
text
=
""
tvSx
.
text
=
userProfileData
?.
appearance
}
else
{
}
else
{
tvSx
.
text
=
"请选择您的身形"
tvSx
.
text
=
"请选择您的身形"
}
}
...
@@ -204,7 +214,7 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -204,7 +214,7 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
layout_jyjm
.
findViewById
<
TextView
>(
R
.
id
.
label_start
).
text
=
UserProfile
.
PROFILE_JYJM
.
str
layout_jyjm
.
findViewById
<
TextView
>(
R
.
id
.
label_start
).
text
=
UserProfile
.
PROFILE_JYJM
.
str
tvJyjm
=
layout_jyjm
.
findViewById
(
R
.
id
.
label_tv
)
tvJyjm
=
layout_jyjm
.
findViewById
(
R
.
id
.
label_tv
)
if
(!
TextUtils
.
isEmpty
(
userProfileData
?.
interest
))
{
if
(!
TextUtils
.
isEmpty
(
userProfileData
?.
interest
))
{
tvJyjm
.
text
=
""
tvJyjm
.
text
=
userProfileData
?.
interest
}
else
{
}
else
{
tvJyjm
.
text
=
"请选择您的交友节目"
tvJyjm
.
text
=
"请选择您的交友节目"
}
}
...
@@ -253,11 +263,11 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -253,11 +263,11 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
// 昵称
// 昵称
layout_nickname
.
findViewById
<
TextView
>(
R
.
id
.
label_start
).
text
=
"昵称"
layout_nickname
.
findViewById
<
TextView
>(
R
.
id
.
label_start
).
text
=
"昵称"
tv
Nickname
=
layout_nickname
.
findViewById
(
R
.
id
.
label_et
)
et
Nickname
=
layout_nickname
.
findViewById
(
R
.
id
.
label_et
)
if
(!
TextUtils
.
isEmpty
(
""
))
{
if
(!
TextUtils
.
isEmpty
(
""
))
{
tv
Nickname
.
setText
(
""
)
et
Nickname
.
setText
(
""
)
}
else
{
}
else
{
tv
Nickname
.
hint
=
"请填写您的昵称"
et
Nickname
.
hint
=
"请填写您的昵称"
}
}
// 个性签名
// 个性签名
...
@@ -548,9 +558,17 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -548,9 +558,17 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
R
.
id
.
iv_left_icon
->
finish
()
R
.
id
.
iv_left_icon
->
finish
()
R
.
id
.
tv_save
->
{
R
.
id
.
tv_save
->
{
// 保存资料
// 保存资料
userProfileData
?.
let
{
editProfilePresenter
.
setUserInfo
(
it
)
}
userProfileData
?.
let
{
if
(
etWechat
.
text
.
toString
().
isNotEmpty
())
{
it
.
infoWechat
=
etWechat
.
text
.
toString
()
}
if
(
etNickname
.
text
.
toString
().
isNotEmpty
())
{
it
.
nickName
=
etNickname
.
text
.
toString
()
}
}
editProfilePresenter
.
setUserInfo
(
it
)
}
}
R
.
id
.
layout_xhdnstz
->
{
R
.
id
.
layout_xhdnstz
->
{
val
bundle
=
Bundle
()
val
bundle
=
Bundle
()
bundle
.
putBoolean
(
Constant
.
IS_LIKE_FEMALE_LABEL
,
true
)
bundle
.
putBoolean
(
Constant
.
IS_LIKE_FEMALE_LABEL
,
true
)
...
@@ -560,16 +578,13 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -560,16 +578,13 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
bundle
bundle
)
)
}
}
R
.
id
.
layout_avatar
->
{
R
.
id
.
layout_avatar
->
{
showAlbum
()
showAlbum
()
}
}
R
.
id
.
layout_gxqm
->
{
R
.
id
.
layout_gxqm
->
{
// 个性签名
// 个性签名
readyGoForResult
(
WriteSignatureActivity
::
class
.
java
,
Constant
.
EDIT_PROFILE_CODE
)
readyGoForResult
(
WriteSignatureActivity
::
class
.
java
,
Constant
.
EDIT_PROFILE_CODE
)
}
}
R
.
id
.
layout_nl
->
{
R
.
id
.
layout_nl
->
{
val
defaultValue
=
if
(
TextUtils
.
isEmpty
(
userProfileData
?.
age
))
{
val
defaultValue
=
if
(
TextUtils
.
isEmpty
(
userProfileData
?.
age
))
{
"2000"
"2000"
...
@@ -578,11 +593,9 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -578,11 +593,9 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
}
}
showPickDialog
(
UserProfile
.
PROFILE_NL
.
str
,
defaultValue
)
showPickDialog
(
UserProfile
.
PROFILE_NL
.
str
,
defaultValue
)
}
}
R
.
id
.
layout_zy
->
{
R
.
id
.
layout_zy
->
{
showJobPick
()
showJobPick
()
}
}
R
.
id
.
layout_sg
->
{
R
.
id
.
layout_sg
->
{
val
defaultValue
=
if
(
TextUtils
.
isEmpty
(
userProfileData
?.
userHeight
))
{
val
defaultValue
=
if
(
TextUtils
.
isEmpty
(
userProfileData
?.
userHeight
))
{
"165CM"
"165CM"
...
@@ -591,7 +604,6 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -591,7 +604,6 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
}
}
showPickDialog
(
UserProfile
.
PROFILE_SG
.
str
,
defaultValue
)
showPickDialog
(
UserProfile
.
PROFILE_SG
.
str
,
defaultValue
)
}
}
R
.
id
.
layout_tz
->
{
R
.
id
.
layout_tz
->
{
val
defaultValue
=
if
(
TextUtils
.
isEmpty
(
userProfileData
?.
bodyWeight
))
{
val
defaultValue
=
if
(
TextUtils
.
isEmpty
(
userProfileData
?.
bodyWeight
))
{
"50KG"
"50KG"
...
@@ -600,19 +612,15 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -600,19 +612,15 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
}
}
showPickDialog
(
UserProfile
.
PROFILE_TZ
.
str
,
defaultValue
)
showPickDialog
(
UserProfile
.
PROFILE_TZ
.
str
,
defaultValue
)
}
}
R
.
id
.
layout_sx
->
{
R
.
id
.
layout_sx
->
{
showPickDialog
(
UserProfile
.
PROFILE_SX
.
str
,
userProfileData
?.
appearance
)
showPickDialog
(
UserProfile
.
PROFILE_SX
.
str
,
userProfileData
?.
appearance
)
}
}
R
.
id
.
layout_jyfw
->
{
R
.
id
.
layout_jyfw
->
{
showAddressDialog
()
showAddressDialog
()
}
}
R
.
id
.
layout_jyjm
->
{
R
.
id
.
layout_jyjm
->
{
showPickDialog
(
UserProfile
.
PROFILE_JYJM
.
str
,
userProfileData
?.
findCity
)
showPickDialog
(
UserProfile
.
PROFILE_JYJM
.
str
,
userProfileData
?.
findCity
)
}
}
R
.
id
.
layout_gxbq
->
{
R
.
id
.
layout_gxbq
->
{
readyGoForResult
(
UserLabelActivity
::
class
.
java
,
Constant
.
USER_LABEL_REQUEST_CODE
)
readyGoForResult
(
UserLabelActivity
::
class
.
java
,
Constant
.
USER_LABEL_REQUEST_CODE
)
}
}
...
@@ -722,6 +730,7 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -722,6 +730,7 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
}
}
avatarUrl
=
imgPath
!!
avatarUrl
=
imgPath
!!
GlideUtils
.
loadThumbImageView
(
mContext
,
avatarUrl
,
ivAvatar
)
GlideUtils
.
loadThumbImageView
(
mContext
,
avatarUrl
,
ivAvatar
)
userProfileData
?.
headerUrl
=
avatarUrl
}
}
}
}
})
})
...
@@ -749,11 +758,9 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -749,11 +758,9 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
}
}
}
}
}
}
UCrop
.
RESULT_ERROR
->
{
UCrop
.
RESULT_ERROR
->
{
showToast
(
"裁剪失败,请再试一下"
)
showToast
(
"裁剪失败,请再试一下"
)
}
}
Constant
.
USER_LABEL_REQUEST_CODE
->
{
Constant
.
USER_LABEL_REQUEST_CODE
->
{
val
sbLabel
=
data
?.
getStringExtra
(
Constant
.
USER_LABEL_DATA
)
val
sbLabel
=
data
?.
getStringExtra
(
Constant
.
USER_LABEL_DATA
)
userProfileData
?.
tagsCommon
=
sbLabel
userProfileData
?.
tagsCommon
=
sbLabel
...
@@ -763,7 +770,6 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -763,7 +770,6 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
gxbqAdapter
?.
setNewInstance
(
tagsList
.
toCollection
(
ArrayList
()))
gxbqAdapter
?.
setNewInstance
(
tagsList
.
toCollection
(
ArrayList
()))
}
}
}
}
Constant
.
LIKE_FEMALE_LABEL_REQUEST_CODE
->
{
Constant
.
LIKE_FEMALE_LABEL_REQUEST_CODE
->
{
val
sbLabel
=
data
?.
getStringExtra
(
Constant
.
USER_LABEL_DATA
)
val
sbLabel
=
data
?.
getStringExtra
(
Constant
.
USER_LABEL_DATA
)
userProfileData
?.
findDescribe
=
sbLabel
userProfileData
?.
findDescribe
=
sbLabel
...
@@ -773,7 +779,6 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
...
@@ -773,7 +779,6 @@ class EditProfileActivity : BaseActivity(), View.OnClickListener, EditProfileVie
xhdnstzAdapter
?.
setNewInstance
(
tagsList
.
toCollection
(
ArrayList
()))
xhdnstzAdapter
?.
setNewInstance
(
tagsList
.
toCollection
(
ArrayList
()))
}
}
}
}
Constant
.
EDIT_PROFILE_CODE
->
{
Constant
.
EDIT_PROFILE_CODE
->
{
val
signature
=
data
?.
getStringExtra
(
Constant
.
EDIT_PROFILE_SIGNATURE_STR
)
val
signature
=
data
?.
getStringExtra
(
Constant
.
EDIT_PROFILE_SIGNATURE_STR
)
userProfileData
?.
introduce
=
signature
userProfileData
?.
introduce
=
signature
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/MainActivity.kt
View file @
8b1b7a54
package
com.duben.roseplaylet.ui.activitys
package
com.duben.roseplaylet.ui.activitys
import
android.content.BroadcastReceiver
import
android.content.Context
import
android.content.Context
import
android.content.Intent
import
android.content.Intent
import
android.content.IntentFilter
import
android.media.AudioManager
import
android.media.AudioManager
import
android.net.Uri
import
android.net.Uri
import
android.os.Bundle
import
android.os.Bundle
...
@@ -9,14 +11,21 @@ import android.view.KeyEvent
...
@@ -9,14 +11,21 @@ import android.view.KeyEvent
import
android.view.View
import
android.view.View
import
androidx.fragment.app.Fragment
import
androidx.fragment.app.Fragment
import
androidx.fragment.app.FragmentTransaction
import
androidx.fragment.app.FragmentTransaction
import
androidx.localbroadcastmanager.content.LocalBroadcastManager
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.common.AppConfig
import
com.duben.roseplaylet.common.AppConfig
import
com.duben.roseplaylet.common.Constant
import
com.duben.roseplaylet.common.Constant
import
com.duben.roseplaylet.manager.UserHelper
import
com.duben.roseplaylet.manager.UserHelper
import
com.duben.roseplaylet.mvp.model.IM_MSG
import
com.duben.roseplaylet.ui.activitys.base.BaseActivity
import
com.duben.roseplaylet.ui.activitys.base.BaseActivity
import
com.duben.roseplaylet.ui.fragment.*
import
com.duben.roseplaylet.ui.fragment.FirstFragment
import
com.duben.roseplaylet.ui.fragment.MessageFragment
import
com.duben.roseplaylet.ui.fragment.MyFragment
import
com.duben.roseplaylet.ui.fragment.SquareFragment
import
com.duben.roseplaylet.ui.widgets.DialogListener
import
com.duben.roseplaylet.ui.widgets.DialogListener
import
com.duben.roseplaylet.ui.widgets.PhoneDialog
import
com.duben.roseplaylet.ui.widgets.PhoneDialog
import
com.duben.roseplaylet.utils.RxBus
import
com.tencent.qcloud.tuicore.TUIConstants
import
kotlinx.android.synthetic.main.activity_main.*
import
kotlinx.android.synthetic.main.activity_main.*
/**
/**
...
@@ -63,6 +72,8 @@ class MainActivity : BaseActivity(), View.OnClickListener {
...
@@ -63,6 +72,8 @@ class MainActivity : BaseActivity(), View.OnClickListener {
tab_tv_video
.
isSelected
=
true
tab_tv_video
.
isSelected
=
true
// tab_iv_invite.isSelected = true
// tab_iv_invite.isSelected = true
// tab_tv_invite.isSelected = true
// tab_tv_invite.isSelected = true
initUnreadCountReceiver
()
}
}
override
fun
isApplyKitKatTranslucency
():
Boolean
{
override
fun
isApplyKitKatTranslucency
():
Boolean
{
...
@@ -71,6 +82,14 @@ class MainActivity : BaseActivity(), View.OnClickListener {
...
@@ -71,6 +82,14 @@ class MainActivity : BaseActivity(), View.OnClickListener {
override
fun
onDestroy
()
{
override
fun
onDestroy
()
{
super
.
onDestroy
()
super
.
onDestroy
()
if
(
unreadCountReceiver
!=
null
)
{
LocalBroadcastManager
.
getInstance
(
this
).
unregisterReceiver
(
unreadCountReceiver
!!
)
unreadCountReceiver
=
null
}
currentFragment
=
null
currentFragment
=
null
audioManager
=
null
audioManager
=
null
}
}
...
@@ -255,4 +274,36 @@ class MainActivity : BaseActivity(), View.OnClickListener {
...
@@ -255,4 +274,36 @@ class MainActivity : BaseActivity(), View.OnClickListener {
phoneDialog
!!
.
show
()
phoneDialog
!!
.
show
()
}
}
private
var
unreadCountReceiver
:
BroadcastReceiver
?
=
null
private
fun
initUnreadCountReceiver
()
{
unreadCountReceiver
=
object
:
BroadcastReceiver
()
{
override
fun
onReceive
(
context
:
Context
,
intent
:
Intent
)
{
setUnreadView
(
intent
.
getLongExtra
(
TUIConstants
.
UNREAD_COUNT_EXTRA
,
0
))
}
}
val
unreadCountFilter
=
IntentFilter
()
unreadCountFilter
.
addAction
(
TUIConstants
.
CONVERSATION_UNREAD_COUNT_ACTION
)
LocalBroadcastManager
.
getInstance
(
this
)
.
registerReceiver
(
unreadCountReceiver
!!
,
unreadCountFilter
)
RxBus
.
getDefault
().
toObservable
(
IM_MSG
::
class
.
java
)
.
subscribe
{
setUnreadView
(
it
.
unReadMsgCount
)
}
}
private
fun
setUnreadView
(
count
:
Long
?)
{
if
(
count
==
null
)
return
if
(
count
>
99
)
{
unread_view
.
visibility
=
View
.
VISIBLE
unread_view
.
text
=
"99+"
}
else
if
(
count
>
0
)
{
unread_view
.
visibility
=
View
.
VISIBLE
unread_view
.
text
=
""
+
count
}
else
{
unread_view
.
visibility
=
View
.
GONE
}
}
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/ShareActivity.kt
View file @
8b1b7a54
...
@@ -95,6 +95,13 @@ class ShareActivity : BaseActivity(), View.OnClickListener, InviteView {
...
@@ -95,6 +95,13 @@ class ShareActivity : BaseActivity(), View.OnClickListener, InviteView {
when
(
v
?.
id
)
{
when
(
v
?.
id
)
{
R
.
id
.
iv_left_icon
->
finish
()
R
.
id
.
iv_left_icon
->
finish
()
R
.
id
.
tv_bind
->
{
if
(
TextUtils
.
isEmpty
(
et_code
.
text
))
{
showToast
(
"请填写邀请码!"
)
return
}
invitePresenter
.
updateRuserShareCode
(
et_code
.
text
.
toString
())
}
R
.
id
.
tv_share_img
->
{
R
.
id
.
tv_share_img
->
{
shareImgDialog
()
shareImgDialog
()
}
}
...
@@ -110,6 +117,7 @@ class ShareActivity : BaseActivity(), View.OnClickListener, InviteView {
...
@@ -110,6 +117,7 @@ class ShareActivity : BaseActivity(), View.OnClickListener, InviteView {
private
fun
initListener
()
{
private
fun
initListener
()
{
iv_left_icon
.
setOnClickListener
(
this
)
iv_left_icon
.
setOnClickListener
(
this
)
tv_bind
.
setOnClickListener
(
this
)
tv_copy
.
setOnClickListener
(
this
)
tv_copy
.
setOnClickListener
(
this
)
tv_share_img
.
setOnClickListener
(
this
)
tv_share_img
.
setOnClickListener
(
this
)
tv_share_url
.
setOnClickListener
(
this
)
tv_share_url
.
setOnClickListener
(
this
)
...
@@ -135,7 +143,6 @@ class ShareActivity : BaseActivity(), View.OnClickListener, InviteView {
...
@@ -135,7 +143,6 @@ class ShareActivity : BaseActivity(), View.OnClickListener, InviteView {
shareDialog
.
setOnShareOKListener
(
object
:
ShareImageDialog
.
OnShareOKListener
{
shareDialog
.
setOnShareOKListener
(
object
:
ShareImageDialog
.
OnShareOKListener
{
override
fun
onShareOk
()
{}
override
fun
onShareOk
()
{}
})
})
shareDialog
.
setShareAvatar
(
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_my_coin.png"
)
shareDialog
.
show
()
shareDialog
.
show
()
}
}
...
@@ -198,4 +205,15 @@ class ShareActivity : BaseActivity(), View.OnClickListener, InviteView {
...
@@ -198,4 +205,15 @@ class ShareActivity : BaseActivity(), View.OnClickListener, InviteView {
override
fun
getRuserShareCodeSucFail
()
{
override
fun
getRuserShareCodeSucFail
()
{
}
}
override
fun
updateRuserShareCodeSuc
()
{
showToast
(
"绑定邀请码成功!"
)
et_code
.
isEnabled
=
false
}
override
fun
updateRuserShareCodeFail
()
{
et_code
.
isEnabled
=
true
et_code
.
setText
(
""
)
showToast
(
"绑定邀请码失败!"
)
}
}
}
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/UserProfileActivity.kt
View file @
8b1b7a54
...
@@ -152,6 +152,12 @@ class UserProfileActivity : BaseActivity(), View.OnClickListener, UserProfileVie
...
@@ -152,6 +152,12 @@ class UserProfileActivity : BaseActivity(), View.OnClickListener, UserProfileVie
val
bundle
=
Bundle
()
val
bundle
=
Bundle
()
bundle
.
putString
(
VipActivity
.
OTHER_USER_ID
,
""
+
it
.
uid
)
bundle
.
putString
(
VipActivity
.
OTHER_USER_ID
,
""
+
it
.
uid
)
readyGo
(
VipActivity
::
class
.
java
,
bundle
)
readyGo
(
VipActivity
::
class
.
java
,
bundle
)
return
}
if
(
UserManager
.
getInstance
().
userSex
==
2
&&
UserManager
.
getInstance
().
idcardStatus
==
2
)
{
showToast
(
"正在认证审核中"
)
return
}
}
var
toLikeStatus
=
0
var
toLikeStatus
=
0
...
@@ -178,6 +184,9 @@ class UserProfileActivity : BaseActivity(), View.OnClickListener, UserProfileVie
...
@@ -178,6 +184,9 @@ class UserProfileActivity : BaseActivity(), View.OnClickListener, UserProfileVie
if
(
UserManager
.
getInstance
().
idcardStatus
==
1
)
{
if
(
UserManager
.
getInstance
().
idcardStatus
==
1
)
{
// 直接聊
// 直接聊
IMHelper
.
instance
.
startChatActivity
(
""
+
it
.
uid
)
IMHelper
.
instance
.
startChatActivity
(
""
+
it
.
uid
)
}
else
if
(
UserManager
.
getInstance
().
idcardStatus
==
2
)
{
showToast
(
"正在认证审核中"
)
return
}
else
{
}
else
{
// 女性 弹出认证弹框
// 女性 弹出认证弹框
UserHelper
.
instance
.
showRealAuthDialog
()
UserHelper
.
instance
.
showRealAuthDialog
()
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/activitys/base/BaseActivity.java
View file @
8b1b7a54
...
@@ -21,6 +21,7 @@ import android.view.WindowManager;
...
@@ -21,6 +21,7 @@ import android.view.WindowManager;
import
android.view.inputmethod.InputMethodManager
;
import
android.view.inputmethod.InputMethodManager
;
import
android.widget.EditText
;
import
android.widget.EditText
;
import
com.duben.roseplaylet.utils.StatusBarUtil
;
import
com.gyf.barlibrary.ImmersionBar
;
import
com.gyf.barlibrary.ImmersionBar
;
import
com.duben.roseplaylet.MintsApplication
;
import
com.duben.roseplaylet.MintsApplication
;
import
com.duben.roseplaylet.R
;
import
com.duben.roseplaylet.R
;
...
@@ -52,13 +53,16 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Base
...
@@ -52,13 +53,16 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Base
}
else
if
(
}
else
if
(
TextUtils
.
equals
(
getClass
().
getSimpleName
(),
"VideoActivity"
)
TextUtils
.
equals
(
getClass
().
getSimpleName
(),
"VideoActivity"
)
)
{
)
{
setLightStatusBar
();
StatusBarUtil
.
transparencyBar
(
this
);
//设置状态栏全透明
// setLightStatusBar();
}
else
{
}
else
{
// setDarkStatusBar();
// setDarkStatusBar();
StatusBarUtil
.
transparencyBar
(
this
);
//设置状态栏全透明
StatusBarUtil
.
StatusBarLightMode
(
this
);
//设置白底黑字
}
}
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
Q
)
{
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
Q
)
{
getWindow
().
setNavigationBarColor
(
Color
.
TRANSPARENT
);
getWindow
().
setNavigationBarColor
(
Color
.
BLACK
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/adapter/SquareAdapter.kt
View file @
8b1b7a54
...
@@ -32,14 +32,16 @@ class SquareAdapter : BaseQuickAdapter<HallList.ListDTO, BaseViewHolder>(R.layou
...
@@ -32,14 +32,16 @@ class SquareAdapter : BaseQuickAdapter<HallList.ListDTO, BaseViewHolder>(R.layou
override
fun
convert
(
holder
:
BaseViewHolder
,
item
:
HallList
.
ListDTO
)
{
override
fun
convert
(
holder
:
BaseViewHolder
,
item
:
HallList
.
ListDTO
)
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_name
).
text
=
item
.
nickName
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_name
).
text
=
item
.
nickName
if
(
item
.
distance
.
is
Empty
())
{
if
(
!
item
.
distance
.
isNullOr
Empty
())
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_location
).
text
=
""
+
item
.
distance
+
"km"
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_location
).
text
=
""
+
item
.
distance
+
"km"
}
else
{
}
else
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_location
).
text
=
"
无
"
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_location
).
text
=
"
未知
"
}
}
if
(
UserManager
.
getInstance
().
userSex
==
2
)
{
if
(
UserManager
.
getInstance
().
userSex
==
2
)
{
// 用户是男的,看的只有女的
// 用户是女的,看的只有男的
holder
.
getView
<
LinearLayout
>(
R
.
id
.
ll_recommend_root
)
.
setBackgroundResource
(
R
.
drawable
.
shape_bg_black2
)
if
(
item
.
isVip
)
{
if
(
item
.
isVip
)
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_vip
).
visibility
=
View
.
VISIBLE
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_vip
).
visibility
=
View
.
VISIBLE
}
else
{
}
else
{
...
@@ -55,19 +57,31 @@ class SquareAdapter : BaseQuickAdapter<HallList.ListDTO, BaseViewHolder>(R.layou
...
@@ -55,19 +57,31 @@ class SquareAdapter : BaseQuickAdapter<HallList.ListDTO, BaseViewHolder>(R.layou
GlideUtils
.
loadThumbRoundImageView
(
GlideUtils
.
loadThumbRoundImageView
(
holder
.
itemView
.
context
,
holder
.
itemView
.
context
,
item
.
headerUrl
,
item
.
headerUrl
,
holder
.
getView
(
R
.
id
.
iv_recommend_header
)
holder
.
getView
(
R
.
id
.
iv_recommend_header
),
R
.
mipmap
.
ic_default_avatar_rect
)
)
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_age
).
visibility
=
View
.
VISIBLE
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_age
).
visibility
=
View
.
VISIBLE
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_age
).
text
=
""
+
item
.
age
+
"岁"
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_label1
).
text
=
item
.
birthday
// if (item.)
if
(
item
.
career
.
isEmpty
())
{
if
(!
item
.
age
.
isNullOrEmpty
())
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_age
).
text
=
""
+
item
.
age
+
"岁"
}
else
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_age
).
text
=
"未知"
}
if
(!
item
.
tagsCommon
.
isNullOrEmpty
())
{
val
array
:
Array
<
String
>
=
gson
.
fromJson
(
item
.
tagsCommon
,
Array
<
String
>
::
class
.
java
)
if
(
array
.
isNotEmpty
())
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_label1
).
text
=
array
[
0
]
}
else
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_label1
).
visibility
=
View
.
INVISIBLE
}
}
else
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_label1
).
visibility
=
View
.
INVISIBLE
}
if
(!
item
.
career
.
isNullOrEmpty
())
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_label2
).
text
=
item
.
career
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_label2
).
text
=
item
.
career
}
else
{
}
else
{
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_label2
).
text
=
"无"
holder
.
getView
<
TextView
>(
R
.
id
.
tv_recommend_label2
).
visibility
=
View
.
INVISIBLE
}
}
}
else
{
}
else
{
if
(
isBlur
)
{
if
(
isBlur
)
{
...
@@ -85,7 +99,8 @@ class SquareAdapter : BaseQuickAdapter<HallList.ListDTO, BaseViewHolder>(R.layou
...
@@ -85,7 +99,8 @@ class SquareAdapter : BaseQuickAdapter<HallList.ListDTO, BaseViewHolder>(R.layou
GlideUtils
.
loadThumbRoundImageView
(
GlideUtils
.
loadThumbRoundImageView
(
holder
.
itemView
.
context
,
holder
.
itemView
.
context
,
item
.
headerUrl
,
item
.
headerUrl
,
holder
.
getView
(
R
.
id
.
iv_recommend_header
)
holder
.
getView
(
R
.
id
.
iv_recommend_header
),
R
.
mipmap
.
ic_default_avatar_rect
)
)
holder
.
getView
<
LinearLayout
>(
R
.
id
.
ll_album
).
visibility
=
View
.
VISIBLE
holder
.
getView
<
LinearLayout
>(
R
.
id
.
ll_album
).
visibility
=
View
.
VISIBLE
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/adapter/SquareImageAdapter.java
0 → 100644
View file @
8b1b7a54
package
com
.
duben
.
roseplaylet
.
ui
.
adapter
;
import
android.content.Context
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.ImageView
;
import
androidx.annotation.NonNull
;
import
androidx.recyclerview.widget.RecyclerView
;
import
com.duben.library.utils.GlideUtils
;
import
com.duben.roseplaylet.R
;
import
com.youth.banner.adapter.BannerAdapter
;
import
java.util.List
;
/**
* 自定义布局,图片+标题
*/
public
class
SquareImageAdapter
extends
BannerAdapter
<
Integer
,
SquareImageAdapter
.
ImageHolder
>
{
private
Context
context
;
public
SquareImageAdapter
(
List
<
Integer
>
mDatas
)
{
super
(
mDatas
);
}
@Override
public
ImageHolder
onCreateHolder
(
ViewGroup
parent
,
int
viewType
)
{
context
=
parent
.
getContext
();
return
new
ImageHolder
(
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
banner_image
,
parent
,
false
));
}
@Override
public
void
onBindView
(
ImageHolder
holder
,
Integer
data
,
int
position
,
int
size
)
{
GlideUtils
.
INSTANCE
.
loadImageViewNoAnim
(
context
,
data
,
holder
.
imageView
);
}
public
class
ImageHolder
extends
RecyclerView
.
ViewHolder
{
public
ImageView
imageView
;
public
ImageHolder
(
@NonNull
View
view
)
{
super
(
view
);
imageView
=
view
.
findViewById
(
R
.
id
.
image
);
}
}
}
video/app/src/main/java/com/duben/roseplaylet/ui/fragment/CustomConversationFragment.kt
View file @
8b1b7a54
package
com.duben.roseplaylet.ui.fragment
package
com.duben.roseplaylet.ui.fragment
import
com.tencent.imsdk.v2.*
import
com.tencent.qcloud.tuikit.tuiconversation.classicui.page.TUIConversationFragment
import
com.tencent.qcloud.tuikit.tuiconversation.classicui.page.TUIConversationFragment
class
CustomConversationFragment
:
TUIConversationFragment
()
{
class
CustomConversationFragment
:
TUIConversationFragment
()
{
...
@@ -7,6 +8,20 @@ class CustomConversationFragment : TUIConversationFragment() {
...
@@ -7,6 +8,20 @@ class CustomConversationFragment : TUIConversationFragment() {
override
fun
setCustomSetting
()
{
override
fun
setCustomSetting
()
{
super
.
setCustomSetting
()
super
.
setCustomSetting
()
// V2TIMManager.getInstance()
// .getUsersInfo(
// listOf("2502118394201300019", "2502113523501101196", "2501415013401700043"),
// object : V2TIMValueCallback<List<V2TIMUserFullInfo>> {
// override fun onSuccess(v2TIMUserFullInfos: List<V2TIMUserFullInfo>) {
//// val result = v2TIMUserFullInfos[0]
// v2TIMUserFullInfos.forEach {
// println("AAAAAAAAAA" + it.faceUrl)
// }
// }
//
// override fun onError(code: Int, desc: String) {
// }
// })
}
}
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/roseplaylet/ui/fragment/MessageFragment.kt
View file @
8b1b7a54
...
@@ -11,6 +11,7 @@ import com.duben.roseplaylet.common.AppConfig
...
@@ -11,6 +11,7 @@ import com.duben.roseplaylet.common.AppConfig
import
com.duben.roseplaylet.common.Constant
import
com.duben.roseplaylet.common.Constant
import
com.duben.roseplaylet.ui.adapter.MsgPageAdapter
import
com.duben.roseplaylet.ui.adapter.MsgPageAdapter
import
com.duben.roseplaylet.ui.fragment.base.LazyLoadBaseFragment
import
com.duben.roseplaylet.ui.fragment.base.LazyLoadBaseFragment
import
com.duben.roseplaylet.utils.LogUtil
import
com.google.android.material.tabs.TabLayout
import
com.google.android.material.tabs.TabLayout
import
com.google.android.material.tabs.TabLayoutMediator
import
com.google.android.material.tabs.TabLayoutMediator
import
kotlinx.android.synthetic.main.fragment_main_message.*
import
kotlinx.android.synthetic.main.fragment_main_message.*
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/fragment/MyFragment.kt
View file @
8b1b7a54
...
@@ -132,8 +132,14 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
...
@@ -132,8 +132,14 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
override
fun
getBaseMsgSuc
(
data
:
UserBean
)
{
override
fun
getBaseMsgSuc
(
data
:
UserBean
)
{
toUid
=
data
.
idcode
toUid
=
data
.
idcode
tv_my_nickname
.
text
=
data
.
nickName
tv_my_nickname
.
text
=
data
.
nickName
tv_my_label
.
text
=
""
+
data
.
age
+
" "
+
data
.
city
if
(!
data
.
age
.
isNullOrEmpty
())
{
tv_my_label
.
text
=
""
+
data
.
age
}
if
(!
data
.
city
.
isNullOrEmpty
())
{
tv_my_label
.
text
=
tv_my_label
.
text
.
toString
()
+
""
+
data
.
city
}
tv_my_id
.
text
=
"ID:"
+
data
.
idcode
tv_my_id
.
text
=
"ID:"
+
data
.
idcode
GlideUtils
.
loadThumbImageView
(
requireContext
(),
data
.
headerUrl
,
civ_my_avatar
)
GlideUtils
.
loadThumbImageView
(
requireContext
(),
data
.
headerUrl
,
civ_my_avatar
)
if
(
data
.
expireTime
>
0
)
{
if
(
data
.
expireTime
>
0
)
{
...
@@ -146,8 +152,8 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
...
@@ -146,8 +152,8 @@ class MyFragment : LazyLoadBaseFragment(), MyView, View.OnClickListener {
"到期时间 ${TimeRender.formatDate(data.expireTime, TimeRender.DEFAULT_FORMAT)}"
"到期时间 ${TimeRender.formatDate(data.expireTime, TimeRender.DEFAULT_FORMAT)}"
}
}
}
else
{
}
else
{
rl_my_vip
.
visibility
=
View
.
VISIBL
E
rl_my_vip
.
visibility
=
View
.
GON
E
iv_my_vip
.
visibility
=
View
.
GON
E
iv_my_vip
.
visibility
=
View
.
VISIBL
E
}
}
if
(
data
.
sex
==
1
)
{
if
(
data
.
sex
==
1
)
{
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/fragment/SquareFragment.kt
View file @
8b1b7a54
...
@@ -19,9 +19,11 @@ import com.duben.roseplaylet.MintsApplication
...
@@ -19,9 +19,11 @@ import com.duben.roseplaylet.MintsApplication
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.common.AppConfig
import
com.duben.roseplaylet.common.AppConfig
import
com.duben.roseplaylet.common.Constant
import
com.duben.roseplaylet.common.Constant
import
com.duben.roseplaylet.manager.UserManager
import
com.duben.roseplaylet.mvp.model.*
import
com.duben.roseplaylet.mvp.model.*
import
com.duben.roseplaylet.mvp.presenters.SquarePresenter
import
com.duben.roseplaylet.mvp.presenters.SquarePresenter
import
com.duben.roseplaylet.mvp.views.SquareView
import
com.duben.roseplaylet.mvp.views.SquareView
import
com.duben.roseplaylet.ui.activitys.VipActivity
import
com.duben.roseplaylet.ui.adapter.*
import
com.duben.roseplaylet.ui.adapter.*
import
com.duben.roseplaylet.ui.fragment.base.LazyLoadBaseFragment
import
com.duben.roseplaylet.ui.fragment.base.LazyLoadBaseFragment
import
com.duben.roseplaylet.utils.AppPreferencesManager
import
com.duben.roseplaylet.utils.AppPreferencesManager
...
@@ -42,7 +44,7 @@ class SquareFragment : LazyLoadBaseFragment(), SquareView, View.OnClickListener
...
@@ -42,7 +44,7 @@ class SquareFragment : LazyLoadBaseFragment(), SquareView, View.OnClickListener
private
val
squarePresenter
by
lazy
{
SquarePresenter
()
}
private
val
squarePresenter
by
lazy
{
SquarePresenter
()
}
private
val
bannerList
=
mutableListOf
<
BannerBean
>()
private
val
bannerList
=
mutableListOf
<
Int
>()
private
val
tabsData
=
mutableListOf
<
String
>()
private
val
tabsData
=
mutableListOf
<
String
>()
private
var
vpAdapter
:
SquarePageAdapter
?
=
null
private
var
vpAdapter
:
SquarePageAdapter
?
=
null
...
@@ -50,10 +52,26 @@ class SquareFragment : LazyLoadBaseFragment(), SquareView, View.OnClickListener
...
@@ -50,10 +52,26 @@ class SquareFragment : LazyLoadBaseFragment(), SquareView, View.OnClickListener
override
fun
initViewsAndEvents
()
{
override
fun
initViewsAndEvents
()
{
initVp
()
initVp
()
initBanner
()
initLocation
()
initLocation
()
tv_location
.
setOnClickListener
(
this
)
tv_location
.
setOnClickListener
(
this
)
}
}
private
fun
initBanner
()
{
bannerList
.
add
(
R
.
mipmap
.
bg_banner1
)
bannerList
.
add
(
R
.
mipmap
.
bg_banner2
)
bannerList
.
add
(
R
.
mipmap
.
bg_banner3
)
banner
.
addBannerLifecycleObserver
(
this
)
.
setAdapter
(
SquareImageAdapter
(
bannerList
))
.
setOnBannerListener
{
data
,
position
->
if
(
position
==
0
&&
!
UserManager
.
getInstance
().
vipFlag
)
{
readyGo
(
VipActivity
::
class
.
java
)
}
else
{
}
}
}
override
fun
onFragmentFirstVisible
()
{
override
fun
onFragmentFirstVisible
()
{
super
.
onFragmentFirstVisible
()
super
.
onFragmentFirstVisible
()
squarePresenter
.
attachView
(
this
)
squarePresenter
.
attachView
(
this
)
...
@@ -63,10 +81,14 @@ class SquareFragment : LazyLoadBaseFragment(), SquareView, View.OnClickListener
...
@@ -63,10 +81,14 @@ class SquareFragment : LazyLoadBaseFragment(), SquareView, View.OnClickListener
super
.
onFragmentResume
()
super
.
onFragmentResume
()
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_TWO
)
{
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_TWO
)
{
banner
?.
start
()
banner
?.
start
()
// squarePresenter.topTabs()
}
}
}
}
override
fun
onFragmentPause
()
{
super
.
onFragmentPause
()
banner
?.
stop
()
}
override
fun
onDestroy
()
{
override
fun
onDestroy
()
{
super
.
onDestroy
()
super
.
onDestroy
()
mLocationClient
?.
stopLocation
()
mLocationClient
?.
stopLocation
()
...
@@ -135,25 +157,6 @@ class SquareFragment : LazyLoadBaseFragment(), SquareView, View.OnClickListener
...
@@ -135,25 +157,6 @@ class SquareFragment : LazyLoadBaseFragment(), SquareView, View.OnClickListener
}
}
override
fun
topTabsSuc
(
data
:
BannerList
?)
{
override
fun
topTabsSuc
(
data
:
BannerList
?)
{
if
(
data
!=
null
&&
data
.
list
!=
null
&&
data
.
list
.
size
>
0
)
{
bannerList
.
clear
()
for
(
i
in
0
until
data
.
list
.
size
)
{
val
bean
=
BannerBean
()
bean
.
title
=
data
.
list
[
i
].
topTabsReamrk
bean
.
imageRes
=
data
.
list
[
i
].
typeImg
bannerList
.
add
(
bean
)
}
banner
.
addBannerLifecycleObserver
(
this
)
.
setAdapter
(
ImageTitleAdapter
(
bannerList
))
.
setOnBannerListener
{
data2
,
position
->
val
banner
=
data
.
list
[
position
]
if
(
banner
.
createType
==
4
)
{
}
else
{
// TODO
}
}
}
}
}
private
fun
initLocation
()
{
private
fun
initLocation
()
{
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/fragment/SquareListFragment.kt
View file @
8b1b7a54
...
@@ -16,9 +16,11 @@ import com.duben.roseplaylet.mvp.presenters.SquarePresenter
...
@@ -16,9 +16,11 @@ import com.duben.roseplaylet.mvp.presenters.SquarePresenter
import
com.duben.roseplaylet.mvp.views.SquareView
import
com.duben.roseplaylet.mvp.views.SquareView
import
com.duben.roseplaylet.ui.activitys.UserProfileActivity
import
com.duben.roseplaylet.ui.activitys.UserProfileActivity
import
com.duben.roseplaylet.ui.adapter.SquareAdapter
import
com.duben.roseplaylet.ui.adapter.SquareAdapter
import
com.scwang.smartrefresh.layout.listener.OnRefreshListener
import
kotlinx.android.synthetic.main.fragment_square_list.*
import
kotlinx.android.synthetic.main.fragment_square_list.*
class
SquareListFragment
:
LazyLoadBaseFragment
(),
SquareView
,
OnLoadMoreListener
{
class
SquareListFragment
:
LazyLoadBaseFragment
(),
SquareView
,
OnLoadMoreListener
,
OnRefreshListener
{
companion
object
{
companion
object
{
private
const
val
SQUARE_TYPE
=
"SQUARE_TYPE"
private
const
val
SQUARE_TYPE
=
"SQUARE_TYPE"
...
@@ -57,17 +59,7 @@ class SquareListFragment : LazyLoadBaseFragment(), SquareView, OnLoadMoreListene
...
@@ -57,17 +59,7 @@ class SquareListFragment : LazyLoadBaseFragment(), SquareView, OnLoadMoreListene
override
fun
onFragmentFirstVisible
()
{
override
fun
onFragmentFirstVisible
()
{
super
.
onFragmentFirstVisible
()
super
.
onFragmentFirstVisible
()
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_TWO
)
{
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_TWO
)
{
hotPage
=
1
srl_square
.
autoRefresh
()
srl_square
.
resetNoMoreData
()
squarePresenter
.
getHallList
(
mType
,
hotPage
,
hotPageSize
)
}
}
fun
onRefresh
()
{
if
(
AppConfig
.
fragmentClickFlag
==
Constant
.
FRAGMENT_CLICK_TWO
)
{
hotPage
=
1
srl_square
.
resetNoMoreData
()
squarePresenter
.
getHallList
(
mType
,
hotPage
,
hotPageSize
)
}
}
}
}
...
@@ -104,7 +96,8 @@ class SquareListFragment : LazyLoadBaseFragment(), SquareView, OnLoadMoreListene
...
@@ -104,7 +96,8 @@ class SquareListFragment : LazyLoadBaseFragment(), SquareView, OnLoadMoreListene
}
}
private
fun
initListener
()
{
private
fun
initListener
()
{
srl_square
.
setEnableRefresh
(
false
)
srl_square
.
setEnableRefresh
(
true
)
srl_square
.
setOnRefreshListener
(
this
)
srl_square
.
setOnLoadMoreListener
(
this
)
srl_square
.
setOnLoadMoreListener
(
this
)
}
}
...
@@ -140,4 +133,9 @@ class SquareListFragment : LazyLoadBaseFragment(), SquareView, OnLoadMoreListene
...
@@ -140,4 +133,9 @@ class SquareListFragment : LazyLoadBaseFragment(), SquareView, OnLoadMoreListene
}
}
override
fun
getHallListFail
()
{}
override
fun
getHallListFail
()
{}
override
fun
onRefresh
(
refreshLayout
:
RefreshLayout
)
{
hotPage
=
1
squarePresenter
.
getHallList
(
mType
,
hotPage
,
hotPageSize
)
}
}
}
\ No newline at end of file
video/app/src/main/java/com/duben/roseplaylet/ui/widgets/ShareDialog.kt
View file @
8b1b7a54
...
@@ -3,7 +3,6 @@ package com.duben.roseplaylet.ui.widgets
...
@@ -3,7 +3,6 @@ package com.duben.roseplaylet.ui.widgets
import
android.app.Dialog
import
android.app.Dialog
import
android.content.Context
import
android.content.Context
import
android.view.*
import
android.view.*
import
android.widget.ImageView
import
android.widget.LinearLayout
import
android.widget.LinearLayout
import
android.widget.TextView
import
android.widget.TextView
import
cn.sharesdk.framework.Platform
import
cn.sharesdk.framework.Platform
...
@@ -16,8 +15,6 @@ import com.duben.library.utils.ConstantUtil
...
@@ -16,8 +15,6 @@ import com.duben.library.utils.ConstantUtil
import
com.duben.roseplaylet.MintsApplication
import
com.duben.roseplaylet.MintsApplication
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.common.Constant
import
com.duben.roseplaylet.common.Constant
import
com.duben.roseplaylet.utils.LogUtil
import
com.duben.roseplaylet.utils.QRCodeUtil
import
com.duben.roseplaylet.utils.ToastUtil
import
com.duben.roseplaylet.utils.ToastUtil
import
java.util.*
import
java.util.*
import
kotlin.concurrent.schedule
import
kotlin.concurrent.schedule
...
@@ -60,15 +57,6 @@ class ShareDialog(context: Context, private val shareUrl: String) :
...
@@ -60,15 +57,6 @@ class ShareDialog(context: Context, private val shareUrl: String) :
tvDialogShareNext
=
findViewById
<
View
>(
R
.
id
.
tvDialogShareNext
)
as
TextView
tvDialogShareNext
=
findViewById
<
View
>(
R
.
id
.
tvDialogShareNext
)
as
TextView
tvDialogShareTips
=
findViewById
<
View
>(
R
.
id
.
tvDialogShareTips
)
as
TextView
tvDialogShareTips
=
findViewById
<
View
>(
R
.
id
.
tvDialogShareTips
)
as
TextView
val
QRCode
=
QRCodeUtil
.
createQRCode
(
shareUrl
,
50
)
val
inflater
=
LayoutInflater
.
from
(
context
)
val
view1
=
inflater
.
inflate
(
R
.
layout
.
item_share_view
,
null
)
val
view2
=
inflater
.
inflate
(
R
.
layout
.
item_share_view
,
null
)
view1
.
findViewById
<
View
>(
R
.
id
.
item_iv_bg
).
setBackgroundResource
(
R
.
mipmap
.
bg_share_1
)
view2
.
findViewById
<
View
>(
R
.
id
.
item_iv_bg
).
setBackgroundResource
(
R
.
mipmap
.
bg_share_2
)
view1
.
findViewById
<
ImageView
>(
R
.
id
.
item_iv_qrcode
).
setImageBitmap
(
QRCode
)
view2
.
findViewById
<
ImageView
>(
R
.
id
.
item_iv_qrcode
).
setImageBitmap
(
QRCode
)
llDialogShareWx
.
setOnClickListener
{
llDialogShareWx
.
setOnClickListener
{
shareWechat
()
shareWechat
()
}
}
...
@@ -101,7 +89,8 @@ class ShareDialog(context: Context, private val shareUrl: String) :
...
@@ -101,7 +89,8 @@ class ShareDialog(context: Context, private val shareUrl: String) :
private
fun
shareWechat
()
{
private
fun
shareWechat
()
{
val
wechatSp
=
ShareParams
()
val
wechatSp
=
ShareParams
()
wechatSp
.
shareType
=
Platform
.
SHARE_WEBPAGE
wechatSp
.
shareType
=
Platform
.
SHARE_WEBPAGE
wechatSp
.
text
=
Constant
.
MINTS_APP_NAME
wechatSp
.
title
=
Constant
.
MINTS_APP_NAME
+
"APP"
wechatSp
.
comment
=
"同城看剧高端小圈子"
wechatSp
.
url
=
shareUrl
wechatSp
.
url
=
shareUrl
if
(
ConstantUtil
.
isInstall
(
context
,
"com.tencent.mm"
))
{
if
(
ConstantUtil
.
isInstall
(
context
,
"com.tencent.mm"
))
{
wechat
.
platformActionListener
=
object
:
PlatformActionListener
{
wechat
.
platformActionListener
=
object
:
PlatformActionListener
{
...
...
video/app/src/main/java/com/duben/roseplaylet/ui/widgets/ShareImageDialog.kt
View file @
8b1b7a54
...
@@ -3,7 +3,6 @@ package com.duben.roseplaylet.ui.widgets
...
@@ -3,7 +3,6 @@ package com.duben.roseplaylet.ui.widgets
import
android.app.Dialog
import
android.app.Dialog
import
android.content.Context
import
android.content.Context
import
android.graphics.Bitmap
import
android.graphics.Bitmap
import
android.text.TextUtils
import
android.view.*
import
android.view.*
import
android.widget.ImageView
import
android.widget.ImageView
import
android.widget.LinearLayout
import
android.widget.LinearLayout
...
@@ -17,7 +16,6 @@ import cn.sharesdk.wechat.friends.Wechat
...
@@ -17,7 +16,6 @@ import cn.sharesdk.wechat.friends.Wechat
import
cn.sharesdk.wechat.moments.WechatMoments
import
cn.sharesdk.wechat.moments.WechatMoments
import
com.duben.library.utils.ConstantUtil
import
com.duben.library.utils.ConstantUtil
import
com.duben.library.utils.GlideUtils
import
com.duben.library.utils.GlideUtils
import
com.duben.roseplaylet.BuildConfig
import
com.duben.roseplaylet.MintsApplication
import
com.duben.roseplaylet.MintsApplication
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.R
import
com.duben.roseplaylet.ui.adapter.SharePagerAdapter
import
com.duben.roseplaylet.ui.adapter.SharePagerAdapter
...
@@ -33,10 +31,13 @@ class ShareImageDialog(
...
@@ -33,10 +31,13 @@ class ShareImageDialog(
shareCode
:
String
,
shareCode
:
String
,
)
:
Dialog
(
context
,
R
.
style
.
dialog
)
{
)
:
Dialog
(
context
,
R
.
style
.
dialog
)
{
companion
object
{
const
val
IMG_BG_URL
=
"https://mints-web.mints-id.com/web/app/rose/share1.jpg"
}
private
val
llDialogShareWx
:
LinearLayout
private
val
llDialogShareWx
:
LinearLayout
private
val
llDialogShareQq
:
LinearLayout
private
val
llDialogShareQq
:
LinearLayout
private
val
tvDialogShareNext
:
TextView
private
val
tvDialogShareNext
:
TextView
private
val
tvDialogShareTips
:
TextView
private
var
mOnShareOKListener
:
OnShareOKListener
?
=
null
private
var
mOnShareOKListener
:
OnShareOKListener
?
=
null
private
var
mOnShareCompleteListener
:
OnShareCompleteListener
?
=
null
private
var
mOnShareCompleteListener
:
OnShareCompleteListener
?
=
null
...
@@ -70,7 +71,6 @@ class ShareImageDialog(
...
@@ -70,7 +71,6 @@ class ShareImageDialog(
llDialogShareWx
=
findViewById
<
View
>(
R
.
id
.
llDialogShareWx
)
as
LinearLayout
llDialogShareWx
=
findViewById
<
View
>(
R
.
id
.
llDialogShareWx
)
as
LinearLayout
llDialogShareQq
=
findViewById
<
View
>(
R
.
id
.
llDialogShareQq
)
as
LinearLayout
llDialogShareQq
=
findViewById
<
View
>(
R
.
id
.
llDialogShareQq
)
as
LinearLayout
tvDialogShareNext
=
findViewById
<
View
>(
R
.
id
.
tvDialogShareNext
)
as
TextView
tvDialogShareNext
=
findViewById
<
View
>(
R
.
id
.
tvDialogShareNext
)
as
TextView
tvDialogShareTips
=
findViewById
<
View
>(
R
.
id
.
tvDialogShareTips
)
as
TextView
viewPager
=
findViewById
(
R
.
id
.
view_pager
)
viewPager
=
findViewById
(
R
.
id
.
view_pager
)
viewPager
.
pageMargin
=
BubbleUtils
.
dp2px
(
30
)
viewPager
.
pageMargin
=
BubbleUtils
.
dp2px
(
30
)
...
@@ -78,23 +78,22 @@ class ShareImageDialog(
...
@@ -78,23 +78,22 @@ class ShareImageDialog(
val
QRCode
=
QRCodeUtil
.
createQRCode
(
shareUrl
,
50
)
val
QRCode
=
QRCodeUtil
.
createQRCode
(
shareUrl
,
50
)
val
inflater
=
LayoutInflater
.
from
(
context
)
val
inflater
=
LayoutInflater
.
from
(
context
)
val
view1
=
inflater
.
inflate
(
R
.
layout
.
item_share_view
,
null
)
val
view1
=
inflater
.
inflate
(
R
.
layout
.
item_share_view
,
null
)
// val view2 = inflater.inflate(R.layout.item_share_view, null)
view1
.
findViewById
<
View
>(
R
.
id
.
item_iv_bg
).
setBackgroundResource
(
R
.
mipmap
.
bg_share_1
)
GlideUtils
.
loadHighRoundImageView
(
// view2.findViewById<View>(R.id.item_iv_bg).setBackgroundResource(R.mipmap.bg_share_2)
context
,
IMG_BG_URL
,
view1
.
findViewById
(
R
.
id
.
item_iv_bg
)
)
view1
.
findViewById
<
ImageView
>(
R
.
id
.
item_iv_qrcode
).
setImageBitmap
(
QRCode
)
view1
.
findViewById
<
ImageView
>(
R
.
id
.
item_iv_qrcode
).
setImageBitmap
(
QRCode
)
view1
.
findViewById
<
ImageView
>(
R
.
id
.
item_iv_avatar
)
.
setImageResource
(
R
.
mipmap
.
ic_launcher_main
)
view1
.
findViewById
<
TextView
>(
R
.
id
.
tv_share_code
).
text
=
"邀请码:${shareCode}"
view1
.
findViewById
<
TextView
>(
R
.
id
.
tv_share_code
).
text
=
"邀请码:${shareCode}"
// view2.findViewById<ImageView>(R.id.item_iv_qrcode).setImageBitmap(QRCode)
mViews
=
arrayListOf
()
mViews
=
arrayListOf
()
mViews
.
add
(
view1
)
mViews
.
add
(
view1
)
// mViews.add(view2)
pagerAdapter
=
SharePagerAdapter
(
mViews
)
pagerAdapter
=
SharePagerAdapter
(
mViews
)
viewPager
.
adapter
=
pagerAdapter
viewPager
.
adapter
=
pagerAdapter
// val cb2 = view2.findViewById<CheckBox>(R.id.item_cb_check)
// val cb1 = view1.findViewById<CheckBox>(R.id.item_cb_check)
// cb1.isChecked = true
viewPager
.
addOnPageChangeListener
(
object
:
ViewPager
.
OnPageChangeListener
{
viewPager
.
addOnPageChangeListener
(
object
:
ViewPager
.
OnPageChangeListener
{
override
fun
onPageScrolled
(
override
fun
onPageScrolled
(
position
:
Int
,
position
:
Int
,
...
@@ -103,15 +102,7 @@ class ShareImageDialog(
...
@@ -103,15 +102,7 @@ class ShareImageDialog(
)
{
)
{
}
}
override
fun
onPageSelected
(
position
:
Int
)
{
override
fun
onPageSelected
(
position
:
Int
)
{}
// if (position == 0) {
// cb1.isChecked = true
// cb2.isChecked = false
// } else {
// cb1.isChecked = false
// cb2.isChecked = true
// }
}
override
fun
onPageScrollStateChanged
(
state
:
Int
)
{}
override
fun
onPageScrollStateChanged
(
state
:
Int
)
{}
...
@@ -146,35 +137,15 @@ class ShareImageDialog(
...
@@ -146,35 +137,15 @@ class ShareImageDialog(
fun
onShareComplete
()
fun
onShareComplete
()
}
}
fun
setShareAvatar
(
imgSrc
:
String
)
{
mViews
.
forEach
{
val
avatar
=
it
.
findViewById
<
ImageView
>(
R
.
id
.
item_iv_avatar
)
GlideUtils
.
loadImageViewLoding
(
context
,
imgSrc
,
avatar
,
R
.
mipmap
.
ic_launcher_main
,
R
.
mipmap
.
ic_launcher_main
)
}
}
fun
setShareWithNoWechatFavoiter
(
flag
:
Boolean
)
{
fun
setShareWithNoWechatFavoiter
(
flag
:
Boolean
)
{
if
(
flag
)
{
if
(
flag
)
{
llDialogShareWx
.
visibility
=
View
.
GONE
llDialogShareWx
.
visibility
=
View
.
GONE
}
}
}
}
fun
setShareTips
(
tips
:
String
)
{
if
(!
TextUtils
.
isEmpty
(
tips
))
{
tvDialogShareTips
.
visibility
=
View
.
VISIBLE
tvDialogShareTips
.
text
=
tips
}
}
private
fun
shareWechat
()
{
private
fun
shareWechat
()
{
val
currentItem
=
viewPager
.
currentItem
val
currentItem
=
viewPager
.
currentItem
val
child
=
mViews
[
currentItem
].
findViewById
<
View
>(
R
.
id
.
item_
iv_bg
)
val
child
=
mViews
[
currentItem
].
findViewById
<
View
>(
R
.
id
.
item_
container
)
child
.
isDrawingCacheEnabled
=
true
child
.
isDrawingCacheEnabled
=
true
child
.
drawingCacheQuality
=
View
.
DRAWING_CACHE_QUALITY_HIGH
child
.
drawingCacheQuality
=
View
.
DRAWING_CACHE_QUALITY_HIGH
child
.
buildDrawingCache
()
child
.
buildDrawingCache
()
...
@@ -210,7 +181,7 @@ class ShareImageDialog(
...
@@ -210,7 +181,7 @@ class ShareImageDialog(
private
fun
shareWechatFavoite
()
{
private
fun
shareWechatFavoite
()
{
val
currentItem
=
viewPager
.
currentItem
val
currentItem
=
viewPager
.
currentItem
val
child
=
mViews
[
currentItem
].
findViewById
<
View
>(
R
.
id
.
item_
iv_bg
)
val
child
=
mViews
[
currentItem
].
findViewById
<
View
>(
R
.
id
.
item_
container
)
child
.
isDrawingCacheEnabled
=
true
child
.
isDrawingCacheEnabled
=
true
child
.
drawingCacheQuality
=
View
.
DRAWING_CACHE_QUALITY_HIGH
child
.
drawingCacheQuality
=
View
.
DRAWING_CACHE_QUALITY_HIGH
child
.
buildDrawingCache
()
child
.
buildDrawingCache
()
...
...
video/app/src/main/java/com/duben/roseplaylet/utils/QRCodeUtil.java
View file @
8b1b7a54
...
@@ -25,8 +25,8 @@ public class QRCodeUtil {
...
@@ -25,8 +25,8 @@ public class QRCodeUtil {
try
{
try
{
Hashtable
<
EncodeHintType
,
Object
>
hints
=
new
Hashtable
<>();
Hashtable
<
EncodeHintType
,
Object
>
hints
=
new
Hashtable
<>();
hints
.
put
(
EncodeHintType
.
CHARACTER_SET
,
"utf-8"
);
hints
.
put
(
EncodeHintType
.
CHARACTER_SET
,
"utf-8"
);
hints
.
put
(
EncodeHintType
.
ERROR_CORRECTION
,
ErrorCorrectionLevel
.
H
);
hints
.
put
(
EncodeHintType
.
ERROR_CORRECTION
,
ErrorCorrectionLevel
.
Q
);
hints
.
put
(
EncodeHintType
.
MARGIN
,
1
);
hints
.
put
(
EncodeHintType
.
MARGIN
,
0
);
BitMatrix
bitMatrix
=
new
QRCodeWriter
().
encode
(
text
,
BitMatrix
bitMatrix
=
new
QRCodeWriter
().
encode
(
text
,
BarcodeFormat
.
QR_CODE
,
size
,
size
,
hints
);
BarcodeFormat
.
QR_CODE
,
size
,
size
,
hints
);
...
@@ -41,11 +41,11 @@ public class QRCodeUtil {
...
@@ -41,11 +41,11 @@ public class QRCodeUtil {
}
}
}
}
Bitmap
bitmap
=
Bitmap
.
createBitmap
(
size
,
size
,
Bitmap
bitmap
=
Bitmap
.
createBitmap
(
size
,
size
,
Bitmap
.
Config
.
RGB_565
);
Bitmap
.
Config
.
ARGB_8888
);
bitmap
.
setPixels
(
pixels
,
0
,
size
,
0
,
0
,
size
,
size
);
bitmap
.
setPixels
(
pixels
,
0
,
size
,
0
,
0
,
size
,
size
);
//
Bitmap zoomBitmap = zoomBitmap(bitmap, size, size);
Bitmap
zoomBitmap
=
zoomBitmap
(
bitmap
,
size
,
size
);
//
bitmap.recycle();
bitmap
.
recycle
();
return
b
itmap
;
return
zoomB
itmap
;
}
catch
(
WriterException
e
)
{
}
catch
(
WriterException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
return
null
;
return
null
;
...
...
video/app/src/main/res/drawable/shape_chat_bubble_left.xml
0 → 100644
View file @
8b1b7a54
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:bottomLeftRadius=
"10dp"
android:bottomRightRadius=
"10dp"
android:topLeftRadius=
"0dp"
android:topRightRadius=
"10dp"
/>
<solid
android:color=
"@color/color_F9F9F9"
/>
</shape>
\ No newline at end of file
video/app/src/main/res/drawable/shape_chat_bubble_right.xml
0 → 100644
View file @
8b1b7a54
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:bottomLeftRadius=
"10dp"
android:bottomRightRadius=
"10dp"
android:topLeftRadius=
"10dp"
android:topRightRadius=
"0dp"
/>
<solid
android:color=
"@color/color_ebcfad"
/>
</shape>
\ No newline at end of file
video/app/src/main/res/drawable/shape_share.xml
View file @
8b1b7a54
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
android:shape=
"rectangle"
>
<!-- 实心 -->
<!-- 实心 -->
<solid
android:color=
"@color/
black
"
/>
<solid
android:color=
"@color/
color_252429
"
/>
<corners
<corners
android:topLeftRadius=
"20dp"
android:topLeftRadius=
"20dp"
android:topRightRadius=
"20dp"
/>
android:topRightRadius=
"20dp"
/>
...
...
video/app/src/main/res/drawable/shape_toast_bg.xml
View file @
8b1b7a54
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
android:shape=
"rectangle"
>
<solid
android:color=
"
#aa0c224b
"
/>
<solid
android:color=
"
@color/white
"
/>
<!-- 边缘线的宽度和颜色 -->
<!-- 边缘线的宽度和颜色 -->
<stroke
<stroke
...
...
video/app/src/main/res/layout/activity_im.xml
View file @
8b1b7a54
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/white"
>
android:background=
"@color/color_15141A"
android:fitsSystemWindows=
"true"
>
<FrameLayout
<FrameLayout
android:id=
"@+id/chat_fragment_container"
android:id=
"@+id/chat_fragment_container"
...
...
video/app/src/main/res/layout/activity_main.xml
View file @
8b1b7a54
...
@@ -28,19 +28,18 @@
...
@@ -28,19 +28,18 @@
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<
Linear
Layout
<
Relative
Layout
android:id=
"@+id/tab_rl_video"
android:id=
"@+id/tab_rl_video"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1.0"
android:layout_weight=
"1.0"
>
android:gravity=
"center"
android:orientation=
"vertical"
>
<ImageView
<ImageView
android:id=
"@+id/tab_iv_video"
android:id=
"@+id/tab_iv_video"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"2dp"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"10dp"
android:contentDescription=
"@null"
android:contentDescription=
"@null"
android:src=
"@drawable/selector_tab_video"
/>
android:src=
"@drawable/selector_tab_video"
/>
...
@@ -48,49 +47,51 @@
...
@@ -48,49 +47,51 @@
android:id=
"@+id/tab_tv_video"
android:id=
"@+id/tab_tv_video"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tab_iv_video"
android:layout_centerHorizontal=
"true"
android:text=
"剧场"
android:text=
"剧场"
android:textColor=
"@color/item_text_sel"
android:textColor=
"@color/item_text_sel"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</
Linear
Layout>
</
Relative
Layout>
<
Linear
Layout
<
Relative
Layout
android:id=
"@+id/tab_rl_square"
android:id=
"@+id/tab_rl_square"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1.0"
android:layout_weight=
"1.0"
>
android:gravity=
"center"
android:orientation=
"vertical"
>
<ImageView
<ImageView
android:id=
"@+id/tab_iv_square"
android:id=
"@+id/tab_iv_square"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"2dp"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"10dp"
android:contentDescription=
"@null"
android:contentDescription=
"@null"
android:src=
"@drawable/selector_tab_s
h
are"
/>
android:src=
"@drawable/selector_tab_s
qu
are"
/>
<TextView
<TextView
android:id=
"@+id/tab_tv_square"
android:id=
"@+id/tab_tv_square"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tab_iv_square"
android:layout_centerHorizontal=
"true"
android:text=
"广场"
android:text=
"广场"
android:textColor=
"@color/item_text_sel"
android:textColor=
"@color/item_text_sel"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</
Linear
Layout>
</
Relative
Layout>
<
Linear
Layout
<
Relative
Layout
android:id=
"@+id/tab_rl_invite"
android:id=
"@+id/tab_rl_invite"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1.0"
android:layout_weight=
"1.0"
>
android:gravity=
"center"
android:orientation=
"vertical"
>
<ImageView
<ImageView
android:id=
"@+id/tab_iv_invite"
android:id=
"@+id/tab_iv_invite"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"2dp"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"10dp"
android:contentDescription=
"@null"
android:contentDescription=
"@null"
android:src=
"@drawable/selector_tab_share"
/>
android:src=
"@drawable/selector_tab_share"
/>
...
@@ -98,24 +99,26 @@
...
@@ -98,24 +99,26 @@
android:id=
"@+id/tab_tv_invite"
android:id=
"@+id/tab_tv_invite"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tab_iv_invite"
android:layout_centerHorizontal=
"true"
android:text=
"邀请有奖"
android:text=
"邀请有奖"
android:textColor=
"@color/item_text_sel"
android:textColor=
"@color/item_text_sel"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</
Linear
Layout>
</
Relative
Layout>
<LinearLayout
<RelativeLayout
android:id=
"@+id/tab_rl_msg"
android:id=
"@+id/tab_rl_msg"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1.0"
android:layout_weight=
"1"
>
android:gravity=
"center"
android:orientation=
"vertical"
>
<ImageView
<ImageView
android:id=
"@+id/tab_iv_msg"
android:id=
"@+id/tab_iv_msg"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"2dp"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"10dp"
android:contentDescription=
"@null"
android:contentDescription=
"@null"
android:src=
"@drawable/selector_tab_msg"
/>
android:src=
"@drawable/selector_tab_msg"
/>
...
@@ -123,24 +126,39 @@
...
@@ -123,24 +126,39 @@
android:id=
"@+id/tab_tv_msg"
android:id=
"@+id/tab_tv_msg"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tab_iv_msg"
android:layout_centerHorizontal=
"true"
android:text=
"消息"
android:text=
"消息"
android:textColor=
"@color/item_text_sel"
android:textColor=
"@color/item_text_sel"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</LinearLayout>
<LinearLayout
<com.tencent.qcloud.tuikit.timcommon.component.UnreadCountTextView
android:id=
"@+id/unread_view"
android:layout_width=
"15dp"
android:layout_height=
"15dp"
android:layout_alignTop=
"@id/tab_iv_msg"
android:layout_marginTop=
"-5dp"
android:layout_toEndOf=
"@id/tab_iv_msg"
android:gravity=
"center"
android:minWidth=
"15dp"
android:minHeight=
"15dp"
android:textColor=
"@color/white"
android:textSize=
"12sp"
android:visibility=
"gone"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/tab_rl_my"
android:id=
"@+id/tab_rl_my"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_weight=
"1.0"
android:layout_weight=
"1.0"
>
android:gravity=
"center"
android:orientation=
"vertical"
>
<ImageView
<ImageView
android:id=
"@+id/tab_iv_my"
android:id=
"@+id/tab_iv_my"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"2dp"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"10dp"
android:contentDescription=
"@null"
android:contentDescription=
"@null"
android:src=
"@drawable/selector_tab_my"
/>
android:src=
"@drawable/selector_tab_my"
/>
...
@@ -148,10 +166,12 @@
...
@@ -148,10 +166,12 @@
android:id=
"@+id/tab_tv_my"
android:id=
"@+id/tab_tv_my"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tab_iv_my"
android:layout_centerHorizontal=
"true"
android:text=
"我的"
android:text=
"我的"
android:textColor=
"@color/item_text_sel"
android:textColor=
"@color/item_text_sel"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</
Linear
Layout>
</
Relative
Layout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
...
...
video/app/src/main/res/layout/activity_real_auth.xml
View file @
8b1b7a54
...
@@ -21,11 +21,10 @@
...
@@ -21,11 +21,10 @@
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_step_progress"
android:id=
"@+id/ll_step_progress"
android:layout_width=
"
match_par
ent"
android:layout_width=
"
wrap_cont
ent"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:layout_
marginStart=
"60dp
"
android:layout_
centerHorizontal=
"true
"
android:layout_marginTop=
"30dp"
android:layout_marginTop=
"30dp"
android:layout_marginEnd=
"60dp"
android:gravity=
"center_vertical"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
...
@@ -40,11 +39,10 @@
...
@@ -40,11 +39,10 @@
android:textSize=
"18sp"
/>
android:textSize=
"18sp"
/>
<View
<View
android:layout_width=
"
0
dp"
android:layout_width=
"
15
dp"
android:layout_height=
"1dp"
android:layout_height=
"1dp"
android:layout_marginStart=
"15dp"
android:layout_marginStart=
"15dp"
android:layout_marginEnd=
"15dp"
android:layout_marginEnd=
"15dp"
android:layout_weight=
"1"
android:background=
"@color/color_818181"
/>
android:background=
"@color/color_818181"
/>
<TextView
<TextView
...
@@ -58,11 +56,10 @@
...
@@ -58,11 +56,10 @@
android:textSize=
"18sp"
/>
android:textSize=
"18sp"
/>
<View
<View
android:layout_width=
"
0
dp"
android:layout_width=
"
15
dp"
android:layout_height=
"1dp"
android:layout_height=
"1dp"
android:layout_marginStart=
"15dp"
android:layout_marginStart=
"15dp"
android:layout_marginEnd=
"15dp"
android:layout_marginEnd=
"15dp"
android:layout_weight=
"1"
android:background=
"@color/color_818181"
/>
android:background=
"@color/color_818181"
/>
<TextView
<TextView
...
@@ -76,11 +73,10 @@
...
@@ -76,11 +73,10 @@
android:textSize=
"18sp"
/>
android:textSize=
"18sp"
/>
<View
<View
android:layout_width=
"
0
dp"
android:layout_width=
"
15
dp"
android:layout_height=
"1dp"
android:layout_height=
"1dp"
android:layout_marginStart=
"15dp"
android:layout_marginStart=
"15dp"
android:layout_marginEnd=
"15dp"
android:layout_marginEnd=
"15dp"
android:layout_weight=
"1"
android:background=
"@color/color_818181"
/>
android:background=
"@color/color_818181"
/>
<TextView
<TextView
...
...
video/app/src/main/res/layout/activity_user_profile.xml
View file @
8b1b7a54
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
android:background=
"@color/color_232122"
>
<androidx.coordinatorlayout.widget.CoordinatorLayout
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
...
...
video/app/src/main/res/layout/banner_image.xml
0 → 100644
View file @
8b1b7a54
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<ImageView
android:id=
"@+id/image"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:scaleType=
"fitXY"
/>
</RelativeLayout>
\ No newline at end of file
video/app/src/main/res/layout/dialog_real_auth.xml
View file @
8b1b7a54
...
@@ -12,15 +12,15 @@
...
@@ -12,15 +12,15 @@
<ImageView
<ImageView
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
40
0dp"
android:layout_height=
"
36
0dp"
android:src=
"@mipmap/bg_real_auth"
/>
android:src=
"@mipmap/bg_real_auth"
/>
<TextView
<TextView
android:id=
"@+id/tv_to_auth"
android:id=
"@+id/tv_to_auth"
android:layout_width=
"2
6
0dp"
android:layout_width=
"2
2
0dp"
android:layout_height=
"45dp"
android:layout_height=
"45dp"
android:layout_gravity=
"center_horizontal|bottom"
android:layout_gravity=
"center_horizontal|bottom"
android:layout_marginBottom=
"
3
0dp"
android:layout_marginBottom=
"
2
0dp"
android:background=
"@drawable/shape_profile_chat"
android:background=
"@drawable/shape_profile_chat"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"真人认证"
android:text=
"真人认证"
...
...
video/app/src/main/res/layout/dialog_see_wechat.xml
View file @
8b1b7a54
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
android:layout_below=
"@id/iv_avatar"
android:layout_below=
"@id/iv_avatar"
android:background=
"@drawable/shape_bg_profile_count"
android:background=
"@drawable/shape_bg_profile_count"
android:gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
android:paddingBottom=
"30dp"
>
<TextView
<TextView
android:id=
"@+id/tv_nickname"
android:id=
"@+id/tv_nickname"
...
@@ -84,13 +85,13 @@
...
@@ -84,13 +85,13 @@
android:layout_width=
"260dp"
android:layout_width=
"260dp"
android:layout_height=
"45dp"
android:layout_height=
"45dp"
android:layout_marginTop=
"20dp"
android:layout_marginTop=
"20dp"
android:layout_marginBottom=
"30dp"
android:background=
"@drawable/shape_bg_hall_btn2"
android:background=
"@drawable/shape_bg_hall_btn2"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"发送我的社交账号给TA"
android:text=
"发送我的社交账号给TA"
android:textColor=
"@color/color_9F6A32"
android:textColor=
"@color/color_9F6A32"
android:textSize=
"16sp"
android:textSize=
"16sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
...
...
video/app/src/main/res/layout/dialog_share.xml
View file @
8b1b7a54
...
@@ -7,6 +7,15 @@
...
@@ -7,6 +7,15 @@
android:background=
"@drawable/shape_share"
android:background=
"@drawable/shape_share"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"20dp"
android:text=
"分享到"
android:textColor=
"@color/white"
android:textSize=
"20sp"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"110dp"
android:layout_height=
"110dp"
...
@@ -24,14 +33,14 @@
...
@@ -24,14 +33,14 @@
<ImageView
<ImageView
android:layout_width=
"50dp"
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:layout_height=
"50dp"
android:src=
"@mipmap/ic_share_w
x
"
/>
android:src=
"@mipmap/ic_share_w
echat
"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"
6
dp"
android:layout_marginTop=
"
10
dp"
android:text=
"微信"
android:text=
"微信"
android:textColor=
"@color/
white
"
android:textColor=
"@color/
color_929297
"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -47,14 +56,14 @@
...
@@ -47,14 +56,14 @@
android:layout_width=
"50dp"
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:layout_height=
"50dp"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:src=
"@mipmap/ic_
wx_friends
"
/>
android:src=
"@mipmap/ic_
share_moment
"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"
6
dp"
android:layout_marginTop=
"
10
dp"
android:text=
"朋友圈"
android:text=
"朋友圈"
android:textColor=
"@color/
white
"
android:textColor=
"@color/
color_929297
"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
...
@@ -72,7 +81,8 @@
...
@@ -72,7 +81,8 @@
<TextView
<TextView
android:id=
"@+id/tvDialogShareNext"
android:id=
"@+id/tvDialogShareNext"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"40dp"
android:layout_height=
"50dp"
android:background=
"@color/color_2D2D2D"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"取消"
android:text=
"取消"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
...
...
video/app/src/main/res/layout/dialog_share_image.xml
View file @
8b1b7a54
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<LinearLayout
<LinearLayout
android:id=
"@+id/linearLayout"
android:id=
"@+id/linearLayout"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"1
5
0dp"
android:layout_height=
"1
6
0dp"
android:background=
"@drawable/shape_share"
android:background=
"@drawable/shape_share"
android:orientation=
"vertical"
android:orientation=
"vertical"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
...
@@ -44,14 +44,14 @@
...
@@ -44,14 +44,14 @@
<ImageView
<ImageView
android:layout_width=
"50dp"
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:layout_height=
"50dp"
android:src=
"@mipmap/ic_share_w
x
"
/>
android:src=
"@mipmap/ic_share_w
echat
"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"
6
dp"
android:layout_marginTop=
"
10
dp"
android:text=
"微信"
android:text=
"微信"
android:textColor=
"@color/
white
"
android:textColor=
"@color/
color_929297
"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
...
@@ -72,29 +72,20 @@
...
@@ -72,29 +72,20 @@
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"
6
dp"
android:layout_marginTop=
"
10
dp"
android:text=
"朋友圈"
android:text=
"朋友圈"
android:textColor=
"@color/
white
"
android:textColor=
"@color/
color_929297
"
android:textSize=
"14sp"
/>
android:textSize=
"14sp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<TextView
android:id=
"@+id/tvDialogShareTips"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"10dp"
android:gravity=
"center"
android:text=
"取消"
android:textSize=
"12sp"
android:visibility=
"gone"
/>
<TextView
<TextView
android:id=
"@+id/tvDialogShareNext"
android:id=
"@+id/tvDialogShareNext"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
4
0dp"
android:layout_height=
"
5
0dp"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"取消"
android:text=
"取消"
android:background=
"@color/color_2D2D2D"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"18sp"
/>
android:textSize=
"18sp"
/>
...
...
video/app/src/main/res/layout/fragment_main_message.xml
View file @
8b1b7a54
...
@@ -32,14 +32,16 @@
...
@@ -32,14 +32,16 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentEnd=
"true"
android:layout_alignParentEnd=
"true"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
android:paddingEnd=
"20dp"
>
<TextView
<TextView
android:id=
"@+id/tv_clear_noread"
android:id=
"@+id/tv_clear_noread"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"清除未读"
android:text=
"清除未读"
android:textColor=
"@color/white"
/>
android:textColor=
"@color/white"
android:visibility=
"gone"
/>
<TextView
<TextView
android:id=
"@+id/tv_clear_list"
android:id=
"@+id/tv_clear_list"
...
...
video/app/src/main/res/layout/fragment_main_my.xml
View file @
8b1b7a54
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
<com.duben.roseplaylet.ui.widgets.CircleImageView
<com.duben.roseplaylet.ui.widgets.CircleImageView
android:id=
"@+id/civ_my_avatar"
android:id=
"@+id/civ_my_avatar"
android:layout_width=
"
match_parent
"
android:layout_width=
"
70dp
"
android:layout_height=
"
match_parent
"
android:layout_height=
"
70dp
"
android:src=
"@mipmap/ic_my_avat"
/>
android:src=
"@mipmap/ic_my_avat"
/>
<TextView
<TextView
...
...
video/app/src/main/res/layout/item_share_view.xml
View file @
8b1b7a54
...
@@ -5,12 +5,18 @@
...
@@ -5,12 +5,18 @@
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<com.duben.roseplaylet.ui.widgets.CornerView
<com.duben.roseplaylet.ui.widgets.CornerView
android:id=
"@+id/item_
iv_bg
"
android:id=
"@+id/item_
container
"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
<ImageView
android:id=
"@+id/item_iv_bg"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:scaleType=
"fitXY"
/>
<RelativeLayout
<RelativeLayout
android:layout_width=
"
15
0dp"
android:layout_width=
"
20
0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom|center_horizontal"
android:layout_gravity=
"bottom|center_horizontal"
android:layout_marginBottom=
"20dp"
android:layout_marginBottom=
"20dp"
...
@@ -21,21 +27,22 @@
...
@@ -21,21 +27,22 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginBottom=
"
1
0dp"
android:layout_marginBottom=
"
2
0dp"
android:textColor=
"@color/color_F6DA8F"
android:textColor=
"@color/color_F6DA8F"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
<ImageView
<ImageView
android:id=
"@+id/item_iv_qrcode"
android:id=
"@+id/item_iv_qrcode"
android:layout_width=
"
6
0dp"
android:layout_width=
"
7
0dp"
android:layout_height=
"
6
0dp"
android:layout_height=
"
7
0dp"
android:layout_below=
"@id/tv_share_code"
android:layout_below=
"@id/tv_share_code"
android:
src=
"@mipmap/ic_launcher_main
"
/>
android:
padding=
"1dp
"
/>
<ImageView
<ImageView
android:id=
"@+id/item_iv_avatar"
android:id=
"@+id/item_iv_avatar"
android:layout_width=
"
6
0dp"
android:layout_width=
"
7
0dp"
android:layout_height=
"
6
0dp"
android:layout_height=
"
7
0dp"
android:layout_below=
"@id/tv_share_code"
android:layout_below=
"@id/tv_share_code"
android:layout_alignParentEnd=
"true"
android:layout_alignParentEnd=
"true"
android:src=
"@mipmap/ic_launcher_main"
/>
android:src=
"@mipmap/ic_launcher_main"
/>
...
@@ -47,11 +54,11 @@
...
@@ -47,11 +54,11 @@
android:layout_alignStart=
"@id/item_iv_qrcode"
android:layout_alignStart=
"@id/item_iv_qrcode"
android:layout_alignEnd=
"@id/item_iv_qrcode"
android:layout_alignEnd=
"@id/item_iv_qrcode"
android:layout_marginTop=
"5dp"
android:layout_marginTop=
"5dp"
android:gravity=
"center"
android:text=
"扫码下载"
android:text=
"扫码下载"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -59,6 +66,7 @@
...
@@ -59,6 +66,7 @@
android:layout_alignStart=
"@id/item_iv_avatar"
android:layout_alignStart=
"@id/item_iv_avatar"
android:layout_alignEnd=
"@id/item_iv_avatar"
android:layout_alignEnd=
"@id/item_iv_avatar"
android:layout_marginTop=
"5dp"
android:layout_marginTop=
"5dp"
android:gravity=
"center"
android:text=
"@string/app_name"
android:text=
"@string/app_name"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
/>
...
...
video/app/src/main/res/layout/item_square.xml
View file @
8b1b7a54
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
<ImageView
<ImageView
android:id=
"@+id/iv_recommend_header"
android:id=
"@+id/iv_recommend_header"
android:layout_width=
"1
0
0dp"
android:layout_width=
"1
2
0dp"
android:layout_height=
"1
3
0dp"
android:layout_height=
"1
2
0dp"
android:src=
"@mipmap/ic_my_avat"
/>
android:src=
"@mipmap/ic_my_avat"
/>
<TextView
<TextView
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
android:textSize=
"12sp"
android:textSize=
"12sp"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
</FrameLayout>
</FrameLayout>
<FrameLayout
<FrameLayout
...
@@ -47,7 +46,7 @@
...
@@ -47,7 +46,7 @@
<LinearLayout
<LinearLayout
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"1
3
0dp"
android:layout_height=
"1
2
0dp"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<RelativeLayout
<RelativeLayout
...
@@ -128,7 +127,8 @@
...
@@ -128,7 +127,8 @@
android:paddingLeft=
"8dp"
android:paddingLeft=
"8dp"
android:paddingRight=
"8dp"
android:paddingRight=
"8dp"
android:textColor=
"@color/color_DB6572"
android:textColor=
"@color/color_DB6572"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
android:visibility=
"invisible"
/>
<TextView
<TextView
android:id=
"@+id/tv_recommend_label2"
android:id=
"@+id/tv_recommend_label2"
...
@@ -141,7 +141,8 @@
...
@@ -141,7 +141,8 @@
android:paddingRight=
"8dp"
android:paddingRight=
"8dp"
android:singleLine=
"true"
android:singleLine=
"true"
android:textColor=
"@color/color_DB6572"
android:textColor=
"@color/color_DB6572"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
android:visibility=
"invisible"
/>
</LinearLayout>
</LinearLayout>
...
@@ -170,7 +171,7 @@
...
@@ -170,7 +171,7 @@
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_album"
android:id=
"@+id/ll_album"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"
4
6dp"
android:layout_height=
"
3
6dp"
android:layout_marginStart=
"10dp"
android:layout_marginStart=
"10dp"
android:layout_marginTop=
"6dp"
android:layout_marginTop=
"6dp"
android:orientation=
"horizontal"
android:orientation=
"horizontal"
...
@@ -178,25 +179,25 @@
...
@@ -178,25 +179,25 @@
<ImageView
<ImageView
android:id=
"@+id/iv_photo1"
android:id=
"@+id/iv_photo1"
android:layout_width=
"
4
6dp"
android:layout_width=
"
3
6dp"
android:layout_height=
"
4
6dp"
/>
android:layout_height=
"
3
6dp"
/>
<ImageView
<ImageView
android:id=
"@+id/iv_photo2"
android:id=
"@+id/iv_photo2"
android:layout_width=
"
4
6dp"
android:layout_width=
"
3
6dp"
android:layout_height=
"
4
6dp"
android:layout_height=
"
3
6dp"
android:layout_marginStart=
"4dp"
/>
android:layout_marginStart=
"4dp"
/>
<FrameLayout
<FrameLayout
android:id=
"@+id/fl_photo_more"
android:id=
"@+id/fl_photo_more"
android:layout_width=
"
4
6dp"
android:layout_width=
"
3
6dp"
android:layout_height=
"
4
6dp"
android:layout_height=
"
3
6dp"
android:layout_marginStart=
"4dp"
>
android:layout_marginStart=
"4dp"
>
<ImageView
<ImageView
android:id=
"@+id/iv_photo_more"
android:id=
"@+id/iv_photo_more"
android:layout_width=
"
4
6dp"
android:layout_width=
"
3
6dp"
android:layout_height=
"
4
6dp"
/>
android:layout_height=
"
3
6dp"
/>
<TextView
<TextView
android:id=
"@+id/tv_more"
android:id=
"@+id/tv_more"
...
@@ -212,9 +213,10 @@
...
@@ -212,9 +213,10 @@
android:id=
"@+id/tv_status"
android:id=
"@+id/tv_status"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"46dp"
android:layout_height=
"46dp"
android:gravity=
"
center_vertical
|end"
android:gravity=
"
bottom
|end"
android:text=
"近日活跃"
android:text=
"近日活跃"
android:textColor=
"@color/color_E4C46C"
/>
android:textColor=
"@color/color_E4C46C"
android:textSize=
"10sp"
/>
</LinearLayout>
</LinearLayout>
...
...
video/app/src/main/res/layout/toast_view.xml
View file @
8b1b7a54
...
@@ -7,12 +7,12 @@
...
@@ -7,12 +7,12 @@
android:background=
"@drawable/shape_toast_bg"
android:background=
"@drawable/shape_toast_bg"
android:gravity=
"center"
android:gravity=
"center"
android:minWidth=
"200dp"
android:minWidth=
"200dp"
android:paddingBottom=
"10dp"
android:paddingLeft=
"20dp"
android:paddingLeft=
"20dp"
android:paddingRight=
"20dp"
android:paddingTop=
"10dp"
android:paddingTop=
"10dp"
android:textColor=
"@color/white"
android:paddingRight=
"20dp"
android:textSize=
"14sp"
>
android:paddingBottom=
"10dp"
android:textColor=
"@color/black"
android:textSize=
"16sp"
>
</TextView>
</TextView>
\ No newline at end of file
video/app/src/main/res/mipmap-xhdpi/ic_default_avatar_rect.png
0 → 100644
View file @
8b1b7a54
4.63 KB
video/app/src/main/res/mipmap-xhdpi/ic_my_avat.png
View replaced file @
7815a1d6
View file @
8b1b7a54
7.37 KB
|
W:
|
H:
4.38 KB
|
W:
|
H:
2-up
Swipe
Onion skin
video/app/src/main/res/mipmap-xhdpi/ic_share_moment.png
0 → 100644
View file @
8b1b7a54
4.8 KB
video/app/src/main/res/mipmap-xhdpi/ic_share_wechat.png
0 → 100644
View file @
8b1b7a54
3.61 KB
video/app/src/main/res/mipmap-xxhdpi/bg_banner1.png
0 → 100644
View file @
8b1b7a54
204 KB
video/app/src/main/res/mipmap-xxhdpi/bg_banner2.png
0 → 100644
View file @
8b1b7a54
173 KB
video/app/src/main/res/mipmap-xxhdpi/bg_banner3.png
0 → 100644
View file @
8b1b7a54
198 KB
video/app/src/main/res/values/colors.xml
View file @
8b1b7a54
...
@@ -103,7 +103,9 @@
...
@@ -103,7 +103,9 @@
<color
name=
"color_FFE9CF"
>
#FFE9CF
</color>
<color
name=
"color_FFE9CF"
>
#FFE9CF
</color>
<color
name=
"color_929297"
>
#929297
</color>
<color
name=
"color_929297"
>
#929297
</color>
<color
name=
"color_1F1F1E"
>
#1F1F1E
</color>
<color
name=
"color_1F1F1E"
>
#1F1F1E
</color>
<color
name=
"color_323334"
>
#323334
</color>
<color
name=
"color_ebcfad"
>
#ebcfad
</color>
<color
name=
"color_2D2D2D"
>
#2D2D2D
</color>
<color
name=
"color_252429"
>
#252429
</color>
<color
name=
"color_252429"
>
#252429
</color>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment