Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
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
1
Merge Requests
1
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
lify
RvApp
Commits
1f09bb8e
Commit
1f09bb8e
authored
Sep 29, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Im 会员中心初次修改
parent
b55d27fc
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
239 additions
and
495 deletions
+239
-495
build.gradle
RvClient/build.gradle
+2
-2
WelcomeActivity.java
RvClient/src/main/java/com/xxfc/rv/WelcomeActivity.java
+29
-8
BaseActivity.java
...rc/main/java/com/ruiwenliu/wrapper/base/BaseActivity.java
+2
-9
OkHttpCreate.java
...rc/main/java/com/ruiwenliu/wrapper/http/OkHttpCreate.java
+0
-1
MemberCenterActivity.java
...ber/src/main/java/com/rv.member/MemberCenterActivity.java
+77
-76
shape_rv_bg_circle_white.xml
...member/src/main/res/drawable/shape_rv_bg_circle_white.xml
+5
-0
shape_rv_bg_top_unlogin.xml
..._member/src/main/res/drawable/shape_rv_bg_top_unlogin.xml
+10
-0
activity_member.xml
plugin_member/src/main/res/layout/activity_member.xml
+114
-399
No files found.
RvClient/build.gradle
View file @
1f09bb8e
...
...
@@ -8,8 +8,8 @@ android {
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
flavorDimensions
"default"
versionCode
1
46
versionName
"1.
4.6
"
versionCode
1
53
versionName
"1.
5.3
"
multiDexEnabled
true
...
...
RvClient/src/main/java/com/xxfc/rv/WelcomeActivity.java
View file @
1f09bb8e
...
...
@@ -7,6 +7,8 @@ import android.os.Bundle;
import
android.support.annotation.Nullable
;
import
android.text.TextUtils
;
import
android.view.View
;
import
com.base.utils.tools.android.NetworkUtil
;
import
com.ruiwenliu.wrapper.SPConstance
;
import
com.ruiwenliu.wrapper.base.BaseActivity
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
...
...
@@ -20,7 +22,9 @@ import com.rv.im.AppConfig;
import
com.rv.im.bean.ImConfig
;
import
com.rv.im.bean.ImConfigBean
;
import
com.yuyife.okgo.OkGoUtil
;
import
java.util.concurrent.TimeUnit
;
import
io.reactivex.Flowable
;
import
io.reactivex.android.schedulers.AndroidSchedulers
;
import
io.reactivex.annotations.NonNull
;
...
...
@@ -30,6 +34,8 @@ import io.reactivex.functions.Consumer;
public
class
WelcomeActivity
extends
BaseActivity
<
CommonPresenter
>
{
private
Disposable
mDisposable
=
null
;
private
boolean
isImInitOk
=
false
;
@Override
public
void
onShowResult
(
int
requestType
,
BaseBean
result
)
{
if
(
requestType
==
0
)
{
...
...
@@ -37,6 +43,7 @@ public class WelcomeActivity extends BaseActivity<CommonPresenter> {
ImConfig
config
;
if
(
bean
!=
null
&&
bean
.
resultCode
==
1
&&
((
ImConfigBean
)
result
).
getData
()
!=
null
)
{
LogUtil
.
e
(
"zq"
,
"获取网络配置成功,使用服务端返回的配置并更新本地配置"
);
isImInitOk
=
true
;
config
=
bean
.
getData
();
AppConfig
appConfig
=
AppConfig
.
initConfig
(
config
);
RvCache
.
getInstance
().
save
(
appConfig
,
CacheEnum
.
IM_CONFIG
);
...
...
@@ -44,6 +51,18 @@ public class WelcomeActivity extends BaseActivity<CommonPresenter> {
}
}
@Override
public
void
onShowError
(
String
errorMsg
,
int
errorType
)
{
AppConfig
appConfig
=
(
AppConfig
)
RvCache
.
getInstance
().
get
(
CacheEnum
.
IM_CONFIG
);
if
(
appConfig
==
null
)
{
if
(!
NetworkUtil
.
isNetworkAvailable
(
getApplicationContext
()))
{
showToast
(
"网络异常,im初始化失败,请退出重进"
);
}
return
;
}
isImInitOk
=
true
;
}
@Override
protected
int
setLayout
()
{
return
R
.
layout
.
rv_act_weclome
;
...
...
@@ -97,15 +116,17 @@ public class WelcomeActivity extends BaseActivity<CommonPresenter> {
e
.
printStackTrace
();
}
SharedPreferences
preferences
=
getSharedPreferences
(
"first_open"
,
MODE_PRIVATE
);
if
(
preferences
.
getBoolean
(
"first"
,
true
))
{
preferences
.
edit
().
putBoolean
(
"first"
,
false
).
commit
();
startActivity
(
GuideActivity
.
getIntent
(
mActivity
));
}
else
{
startActivity
(
MainActivity
.
getIntent
(
mActivity
));
if
(
isImInitOk
)
{
SharedPreferences
preferences
=
getSharedPreferences
(
"first_open"
,
MODE_PRIVATE
);
if
(
preferences
.
getBoolean
(
"first"
,
true
))
{
preferences
.
edit
().
putBoolean
(
"first"
,
false
).
commit
();
startActivity
(
GuideActivity
.
getIntent
(
mActivity
));
}
else
{
startActivity
(
MainActivity
.
getIntent
(
mActivity
));
}
mDisposable
.
dispose
();
finish
();
}
mDisposable
.
dispose
();
finish
();
}
});
...
...
RvWrapper/src/main/java/com/ruiwenliu/wrapper/base/BaseActivity.java
View file @
1f09bb8e
...
...
@@ -29,7 +29,6 @@ import java.lang.reflect.ParameterizedType;
public
abstract
class
BaseActivity
<
P
extends
MvpPresenter
>
extends
BaseWrapperActivity
implements
BaseView
,
NetWorkReceiver
.
NetChangListener
{
protected
P
mPresenter
;
private
LoadingDialog
mLoadingDialog
;
private
boolean
isLoadData
=
false
;
@Override
protected
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
...
...
@@ -45,10 +44,7 @@ public abstract class BaseActivity<P extends MvpPresenter> extends BaseWrapperAc
}
mPresenter
.
attachView
(
this
);
mLoadingDialog
=
createLoadingDialog
();
if
(
NetworkUtil
.
isNetworkAvailable
(
mActivity
))
{
isLoadData
=
true
;
loadData
(
savedInstanceState
,
getIntent
());
}
loadData
(
savedInstanceState
,
getIntent
());
NetWorkReceiver
.
getInstance
().
register
(
this
);
}
...
...
@@ -123,10 +119,7 @@ public abstract class BaseActivity<P extends MvpPresenter> extends BaseWrapperAc
@Override
public
void
netAvailable
()
{
if
(!
isLoadData
)
{
loadData
(
null
,
getIntent
());
isLoadData
=
true
;
}
loadData
(
null
,
getIntent
());
}
@Override
...
...
RvWrapper/src/main/java/com/ruiwenliu/wrapper/http/OkHttpCreate.java
View file @
1f09bb8e
package
com
.
ruiwenliu
.
wrapper
.
http
;
import
android.os.Build
;
import
android.os.Environment
;
import
com.ruiwenliu.wrapper.BuildConfig
;
...
...
plugin_member/src/main/java/com/rv.member/MemberCenterActivity.java
View file @
1f09bb8e
...
...
@@ -12,6 +12,7 @@ import android.util.Log;
import
android.view.View
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.RelativeLayout
;
import
android.widget.TextView
;
import
com.alibaba.android.arouter.launcher.ARouter
;
...
...
@@ -26,6 +27,7 @@ import com.frame.base.url.Constance;
import
com.frame.rv.config.RvFrameConfig
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseStatusActivity
;
import
com.ruiwenliu.wrapper.statusbar.StatusBarUtil
;
import
com.ruiwenliu.wrapper.util.ViewHolder
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
...
...
@@ -72,12 +74,8 @@ public class MemberCenterActivity extends BaseStatusActivity<MemberPresenter> {
RoundImageView
ivAvatar
;
@BindView
(
R2
.
id
.
tv_nickname
)
TextView
tvNickname
;
@BindView
(
R2
.
id
.
iv_member
)
ImageView
ivMember
;
@BindView
(
R2
.
id
.
tv_login
)
TextView
tvLogin
;
@BindView
(
R2
.
id
.
tv_verified
)
TextView
tvVerified
;
@BindView
(
R2
.
id
.
recyclerView
)
RecyclerView
recyclerView
;
@BindView
(
R2
.
id
.
tv_consume_record
)
...
...
@@ -86,8 +84,12 @@ public class MemberCenterActivity extends BaseStatusActivity<MemberPresenter> {
TextView
tvFreeDay
;
@BindView
(
R2
.
id
.
tv_purchase_record
)
TextView
tvPurchaseRecord
;
@BindView
(
R2
.
id
.
tv_member
)
TextView
tvMember
;
@BindView
(
R2
.
id
.
rl_unlogin
)
RelativeLayout
rlUnLogin
;
@BindView
(
R2
.
id
.
ll_login
)
LinearLayout
llLogin
;
@BindView
(
R2
.
id
.
iv_member_level
)
ImageView
ivMember
;
private
MemberListAdapter
adapter
;
private
UserInfoBean
.
UserInfo
info
;
...
...
@@ -108,17 +110,14 @@ public class MemberCenterActivity extends BaseStatusActivity<MemberPresenter> {
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
// EnvUtils.setEnv(EnvUtils.EnvEnum.SANDBOX);
// StatusBarUtil.setRootViewFitsSystemWindows(mActivity, false);
StatusBarUtil
.
setRootViewFitsSystemWindows
(
mActivity
,
false
);
}
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
setTitle
(
"会员中心"
);
api
=
WXAPIFactory
.
createWXAPI
(
this
,
RvFrameConfig
.
APP_ID
);
titleView
.
setVisibility
(
View
.
GONE
);
recyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
this
,
LinearLayout
.
VERTICAL
,
false
));
// MemberListBean listBean = MemberCache.getInstance(MemberCenterActivity.this).get();
MemberListBean
listBean
=
(
MemberListBean
)
RvCache
.
getInstance
().
get
(
CacheEnum
.
MEMBER
);
if
(
listBean
!=
null
&&
listBean
.
getData
()
!=
null
)
{
adapter
=
new
MemberListAdapter
(
listBean
.
getData
(),
memberLevel
,
freeUseDay
,
MemberCenterActivity
.
this
,
payListener
);
...
...
@@ -193,7 +192,6 @@ public class MemberCenterActivity extends BaseStatusActivity<MemberPresenter> {
MemberListBean
listBean
=
(
MemberListBean
)
result
;
if
(
listBean
!=
null
&&
listBean
.
isRel
()
&&
listBean
.
getData
()
!=
null
&&
!
listBean
.
getData
().
isEmpty
())
{
RvCache
.
getInstance
().
save
(
listBean
,
CacheEnum
.
MEMBER
);
// MemberCache.getInstance(getApplicationContext()).save(listBean);
if
(
adapter
==
null
)
{
adapter
=
new
MemberListAdapter
(
listBean
.
getData
(),
memberLevel
,
freeUseDay
,
MemberCenterActivity
.
this
,
payListener
);
recyclerView
.
setAdapter
(
adapter
);
...
...
@@ -220,7 +218,7 @@ public class MemberCenterActivity extends BaseStatusActivity<MemberPresenter> {
}
@OnClick
({
R2
.
id
.
iv_avatar
,
R2
.
id
.
tv_login
,
R2
.
id
.
tv_
verified
,
R2
.
id
.
iv_title
,
R2
.
id
.
tv_
consume_record
,
R2
.
id
.
tv_purchase_record
,
R2
.
id
.
tv_free_day
})
@OnClick
({
R2
.
id
.
iv_avatar
,
R2
.
id
.
tv_login
,
R2
.
id
.
tv_consume_record
,
R2
.
id
.
tv_purchase_record
,
R2
.
id
.
tv_free_day
})
public
void
onViewClicked
(
View
view
)
{
int
id
=
view
.
getId
();
if
(
id
==
R
.
id
.
iv_avatar
)
{
...
...
@@ -228,13 +226,6 @@ public class MemberCenterActivity extends BaseStatusActivity<MemberPresenter> {
if
(!
isLogin
())
return
;
}
else
if
(
id
==
R
.
id
.
tv_login
)
{
if
(!
isLogin
())
return
;
}
else
if
(
id
==
R
.
id
.
tv_verified
)
{
//实名认证
if
(!
isLogin
())
return
;
ARouter
.
getInstance
().
build
(
Constance
.
ACTIVITY_URL_IDCARDCERTIFICATION
)
.
navigation
(
this
,
REQUEST_VERIFIED
);
}
else
if
(
id
==
R
.
id
.
iv_title
)
{
finish
();
}
else
if
(
id
==
R
.
id
.
tv_consume_record
)
{
startActivity
(
new
Intent
(
MemberCenterActivity
.
this
,
ConsumeRecordActivity
.
class
));
}
else
if
(
id
==
R
.
id
.
tv_purchase_record
)
{
...
...
@@ -292,74 +283,84 @@ public class MemberCenterActivity extends BaseStatusActivity<MemberPresenter> {
}
private
void
setUserInfoData
(
UserInfoBean
infoBean
)
{
if
(
infoBean
!=
null
)
{
info
=
infoBean
.
getData
();
if
(
info
!=
null
)
{
GlideManager
.
getInstance
(
this
).
loadImage
(
info
.
getHeadimgurl
(),
ivAvatar
);
tvNickname
.
setText
(!
TextUtils
.
isEmpty
(
info
.
getNickname
())
?
info
.
getNickname
()
:
info
.
getUsername
());
if
(
info
.
getCertificationStatus
()
==
0
)
{
//实名认证状态:0-未认证,1-已认证
verified
=
false
;
tvVerified
.
setText
(
"未实名认证"
);
tvVerified
.
setEnabled
(
true
);
}
else
if
(
info
.
getCertificationStatus
()
==
1
)
{
verified
=
true
;
tvVerified
.
setText
(
"已实名认证"
);
tvVerified
.
setEnabled
(
false
);
}
if
(
TextUtils
.
isEmpty
(
OkGoUtil
.
getToken
()))
{
rlUnLogin
.
setVisibility
(
View
.
VISIBLE
);
llLogin
.
setVisibility
(
View
.
GONE
);
}
else
{
rlUnLogin
.
setVisibility
(
View
.
GONE
);
llLogin
.
setVisibility
(
View
.
VISIBLE
);
if
(
infoBean
!=
null
)
{
info
=
infoBean
.
getData
();
if
(
info
!=
null
)
{
tvConsumeRecord
.
setText
(
info
.
getPayCount
()
+
"\n 消费记录"
);
tvFreeDay
.
setText
(
info
.
getRentFreeDays
()
+
"\n 可免费租车 (天)"
);
tvPurchaseRecord
.
setText
(
info
.
getBuyCount
()
+
"\n 购买记录 (次)"
);
switch
(
info
.
getMemberLevel
())
{
case
1
:
// tvMember.setText("普通会员");
break
;
case
2
:
// tvMember.setText("黄金会员");
break
;
case
3
:
// tvMember.setText("钻石会员");
break
;
default
:
break
;
}
GlideManager
.
getInstance
(
this
).
loadImage
(
info
.
getHeadimgurl
(),
ivAvatar
);
tvNickname
.
setText
(!
TextUtils
.
isEmpty
(
info
.
getNickname
())
?
info
.
getNickname
()
:
info
.
getUsername
());
tvConsumeRecord
.
setText
(
info
.
getPayCount
()
+
"\n 消费记录"
);
tvFreeDay
.
setText
(
info
.
getRentFreeDays
()
+
"\n 可免费租车 (天)"
);
tvPurchaseRecord
.
setText
(
info
.
getBuyCount
()
+
"\n 购买记录 (次)"
);
if
(!
TextUtils
.
isEmpty
(
info
.
getIcon
()))
GlideManager
.
getInstance
(
getApplicationContext
()).
loadImage
(
info
.
getIcon
(),
ivMember
);
}
}
if
(
TextUtils
.
isEmpty
(
OkGoUtil
.
getToken
()))
{
tvNickname
.
setVisibility
(
View
.
GONE
);
((
View
)
ivMember
.
getParent
()).
setVisibility
(
View
.
GONE
);
// ivMember.setVisibility(View.GONE);
tvLogin
.
setVisibility
(
View
.
VISIBLE
);
tvVerified
.
setVisibility
(
View
.
GONE
);
}
else
{
tvNickname
.
setVisibility
(
View
.
VISIBLE
);
tvLogin
.
setVisibility
(
View
.
GONE
);
tvVerified
.
setVisibility
(
View
.
VISIBLE
);
if
(
info
!=
null
)
{
((
View
)
ivMember
.
getParent
()).
setVisibility
(
View
.
VISIBLE
);
}
if
(
infoBean
!=
null
)
{
if
(
info
!=
null
)
{
((
View
)
ivMember
.
getParent
()).
setVisibility
(
View
.
VISIBLE
);
// ivMember.setVisibility(View.VISIBLE);
if
(!
TextUtils
.
isEmpty
(
info
.
getIcon
()))
GlideManager
.
getInstance
(
getApplicationContext
()).
loadImage
(
info
.
getIcon
(),
ivMember
);
freeUseDay
=
info
.
getRentFreeDays
();
if
(
info
.
getIsMember
()
==
0
)
{
memberLevel
=
0
;
if
(
adapter
!=
null
)
{
adapter
.
setMemberLevel
(
memberLevel
,
freeUseDay
);
}
tvMember
.
setText
(
"普通用户"
);
freeUseDay
=
info
.
getRentFreeDays
();
if
(
info
.
getIsMember
()
==
0
)
{
memberLevel
=
0
;
if
(
adapter
!=
null
)
{
adapter
.
setMemberLevel
(
memberLevel
,
freeUseDay
);
}
tvMember
.
setText
(
"普通用户"
);
// ivMember.setImageResource(R.drawable.mycenter_icon_goldmembership_1);
}
else
{
memberLevel
=
info
.
getMemberLevel
();
if
(
adapter
!=
null
)
{
adapter
.
setMemberLevel
(
memberLevel
,
freeUseDay
);
}
switch
(
info
.
getMemberLevel
())
{
case
1
:
tvMember
.
setText
(
"普通会员"
);
break
;
case
2
:
tvMember
.
setText
(
"黄金会员"
);
break
;
case
3
:
tvMember
.
setText
(
"钻石会员"
);
break
;
default
:
break
;
}
}
else
{
memberLevel
=
info
.
getMemberLevel
();
if
(
adapter
!=
null
)
{
adapter
.
setMemberLevel
(
memberLevel
,
freeUseDay
);
}
switch
(
info
.
getMemberLevel
())
{
case
1
:
tvMember
.
setText
(
"普通会员"
);
break
;
case
2
:
tvMember
.
setText
(
"黄金会员"
);
break
;
case
3
:
tvMember
.
setText
(
"钻石会员"
);
break
;
default
:
break
;
}
}
}
}
}
}
@Override
protected
void
onActivityResult
(
int
requestCode
,
int
resultCode
,
@Nullable
Intent
data
)
{
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
);
...
...
plugin_member/src/main/res/drawable/shape_rv_bg_circle_white.xml
0 → 100644
View file @
1f09bb8e
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"@dimen/size_30"
/>
<solid
android:color=
"@color/white"
/>
</shape>
\ No newline at end of file
plugin_member/src/main/res/drawable/shape_rv_bg_top_unlogin.xml
0 → 100644
View file @
1f09bb8e
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"5dp"
/>
<gradient
android:startColor=
"#E5B895"
android:endColor=
"#F8D3B8"
android:angle=
"90"
/>
</shape>
\ No newline at end of file
plugin_member/src/main/res/layout/activity_member.xml
View file @
1f09bb8e
...
...
@@ -4,177 +4,153 @@
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_50"
android:background=
"@color/colorMain"
android:minHeight=
"@dimen/size_45"
>
<ImageView
android:id=
"@+id/iv_title"
android:layout_width=
"@dimen/dp_40"
android:layout_height=
"@dimen/dp_40"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/size_5"
android:padding=
"@dimen/size_10"
android:src=
"@drawable/rv_common_icon_back_dark"
/>
<TextView
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:ellipsize=
"end"
android:gravity=
"center"
android:maxWidth=
"320dp"
android:maxLines=
"1"
android:text=
"@string/tv_title_member_center"
android:textColor=
"@color/white"
android:textSize=
"@dimen/text_20"
/>
</RelativeLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"100dp"
android:background=
"@color/colorMain"
android:gravity=
"center"
>
<LinearLayout
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginTop=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/dp_10"
android:layout_marginBottom=
"13dp"
android:orientation=
"vertical"
>
<RelativeLayout
android:id=
"@+id/rl_unlogin"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/size_60"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginRight=
"@dimen/size_15"
android:gravity=
"center_vertical"
android:layout_height=
"100dp"
android:background=
"@drawable/shape_rv_bg_top_unlogin"
android:gravity=
"center"
android:orientation=
"horizontal"
>
<com.base.utils.ui.image.round.RoundImageView
android:id=
"@+id/iv_avatar"
android:id=
"@+id/iv_avatar
_default
"
android:layout_width=
"@dimen/size_60"
android:layout_height=
"@dimen/size_60"
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
android:layout_marginLeft=
"@dimen/size_15"
android:src=
"@drawable/common_icon_avatar_default"
/>
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_weight=
"1"
android:gravity=
"center_vertical"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tv_login"
android:layout_width=
"@dimen/size_100"
android:layout_height=
"33.33dp"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_gravity=
"center"
android:layout_marginRight=
"@dimen/size_15"
android:background=
"@drawable/shape_rv_bg_circle_white"
android:gravity=
"center"
android:text=
"@string/tv_login"
android:textColor=
"@color/colorYellow"
android:textSize=
"@dimen/text_14"
/>
</RelativeLayout>
<LinearLayout
android:id=
"@+id/ll_login"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/shape_rv_bg_top_unlogin"
android:gravity=
"center"
android:orientation=
"vertical"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<com.base.utils.ui.image.round.RoundImageView
android:id=
"@+id/iv_avatar"
android:layout_width=
"@dimen/size_60"
android:layout_height=
"@dimen/size_60"
android:layout_alignParentLeft=
"true"
android:layout_centerVertical=
"true"
android:layout_margin=
"@dimen/dp_10"
android:src=
"@drawable/common_icon_avatar_default"
/>
<TextView
android:id=
"@+id/tv_nickname"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
android:layout_toRightOf=
"@id/iv_avatar"
android:ellipsize=
"end"
android:maxLength=
"10"
android:textColor=
"@color/colorYellow"
android:textSize=
"@dimen/text_16"
android:visibility=
"gone"
/>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/text_10"
android:orientation=
"horizontal"
android:visibility=
"gone"
>
android:text=
"xxxxxx"
android:textColor=
"@color/white"
android:textSize=
"@dimen/text_16"
/>
<ImageView
android:id=
"@+id/iv_member"
android:layout_width=
"@dimen/size_15"
android:layout_height=
"@dimen/size_15"
/>
<ImageView
android:id=
"@+id/iv_member_level"
android:layout_width=
"@dimen/size_60"
android:layout_height=
"@dimen/size_60"
android:layout_alignParentRight=
"true"
android:layout_marginRight=
"@dimen/dp_40"
/>
<TextView
android:id=
"@+id/tv_member"
android:layout_width=
"wrap_content"
android:layout_height=
"@dimen/size_15"
android:layout_marginLeft=
"@dimen/size_2"
android:gravity=
"center"
android:textColor=
"@color/gray_f5f5f5"
android:textSize=
"@dimen/text_10"
/>
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/dp_10"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:paddingLeft=
"@dimen/size_15"
android:paddingRight=
"@dimen/size_15"
>
<ImageView
android:id=
"@+id/wrap"
android:layout_width=
"@dimen/size_60"
android:layout_height=
"@dimen/size_20"
android:layout_marginTop=
"@dimen/text_10"
android:src=
"@drawable/mycenter_icon_goldmembership"
android:visibility=
"gone"
/>
<TextView
android:id=
"@+id/tv_consume_record"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:layout_weight=
"1"
android:gravity=
"center"
android:lines=
"2"
android:text=
"0 \n 消费记录 "
android:textColor=
"@color/white"
android:textSize=
"@dimen/sp_14"
/>
<View
android:layout_width=
"1px"
android:layout_height=
"match_parent"
android:background=
"@color/white"
/>
<TextView
android:id=
"@+id/tv_
login
"
android:layout_width=
"
@dimen/size_150
"
android:layout_height=
"
@dimen/size_40
"
android:layout_
gravity=
"center
"
android:
background=
"@drawable/shape_rv_bg_btn_yellow
"
android:id=
"@+id/tv_
free_day
"
android:layout_width=
"
0dp
"
android:layout_height=
"
wrap_content
"
android:layout_
centerInParent=
"true
"
android:
layout_weight=
"1
"
android:gravity=
"center"
android:text=
"@string/tv_login"
android:textColor=
"@color/colorYellow"
android:textSize=
"@dimen/text_14"
/>
android:lines=
"2"
android:text=
"0 \n 可免费租车 (天) "
android:textColor=
"@color/white"
android:textSize=
"@dimen/sp_14"
/>
<View
android:layout_width=
"1px"
android:layout_height=
"match_parent"
android:background=
"@color/white"
/>
<TextView
android:id=
"@+id/tv_purchase_record"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:layout_weight=
"1"
android:gravity=
"center_horizontal|bottom"
android:lines=
"2"
android:text=
"0 \n 购买记录 (次)"
android:textColor=
"@color/white"
android:textSize=
"@dimen/sp_14"
/>
</LinearLayout>
<TextView
android:id=
"@+id/tv_verified"
android:layout_width=
"@dimen/size_80"
android:layout_height=
"27dp"
android:background=
"@drawable/shape_rv_bg_btn_yellow"
android:gravity=
"center"
android:text=
"未实名认证"
android:textColor=
"@color/colorYellow"
android:textSize=
"@dimen/text_12"
android:visibility=
"gone"
/>
</LinearLayout>
</LinearLayout>
<!-- 记录模块 -->
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/colorWrite"
android:orientation=
"horizontal"
android:paddingLeft=
"@dimen/size_15"
android:paddingRight=
"@dimen/size_15"
>
<TextView
android:id=
"@+id/tv_consume_record"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:gravity=
"center"
android:lines=
"2"
android:text=
"0 \n 消费记录 "
android:textColor=
"@color/gray_50000000"
android:textSize=
"@dimen/sp_14"
/>
<TextView
android:id=
"@+id/tv_free_day"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerInParent=
"true"
android:gravity=
"center"
android:lines=
"2"
android:text=
"0 \n 可免费租车 (天) "
android:textColor=
"@color/gray_50000000"
android:textSize=
"@dimen/sp_14"
/>
<TextView
android:id=
"@+id/tv_purchase_record"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:gravity=
"center_horizontal|bottom"
android:lines=
"2"
android:text=
"0 \n 购买记录 (次)"
android:textColor=
"@color/gray_50000000"
android:textSize=
"@dimen/sp_14"
/>
</RelativeLayout>
<View
android:layout_width=
"match_parent"
...
...
@@ -182,267 +158,6 @@
android:layout_marginTop=
"@dimen/dp_10"
android:background=
"@color/colorGray"
/>
<!--<!–会员特权–>-->
<!--<LinearLayout-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--android:background="@color/colorWrite"-->
<!--android:gravity="center_horizontal"-->
<!--android:orientation="vertical"-->
<!--android:paddingLeft="@dimen/size_15"-->
<!--android:paddingTop="@dimen/size_15"-->
<!--android:paddingRight="@dimen/size_15">-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:text="会员特权"-->
<!--android:textColor="@color/colorMain"-->
<!--android:textSize="@dimen/text_16" />-->
<!--<GridView-->
<!--android:id="@+id/grid_member"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginTop="@dimen/size_30"-->
<!--android:layout_marginBottom="@dimen/size_15"-->
<!--android:numColumns="3" />-->
<!--<!– 协议 –>-->
<!--<TextView-->
<!--android:id="@+id/tv_agreement"-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:drawableLeft="@drawable/selector_rv_check"-->
<!--android:textSize="@dimen/sp_14" />-->
<!--<Button-->
<!--android:id="@+id/btn_ok"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="@dimen/size_60"-->
<!--android:layout_marginLeft="@dimen/size_50"-->
<!--android:layout_marginTop="@dimen/size_30"-->
<!--android:layout_marginRight="@dimen/size_50"-->
<!--android:background="@drawable/shape_rv_bg_dark_yellow"-->
<!--android:gravity="center"-->
<!--android:text="@string/tv_open_membership"-->
<!--android:textColor="@color/white"-->
<!--android:textSize="@dimen/size_18" />-->
<!--</LinearLayout>-->
<!--<LinearLayout-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_marginTop="@dimen/size_15"-->
<!--android:background="@color/colorWrite"-->
<!--android:orientation="horizontal"-->
<!--android:paddingTop="@dimen/size_25"-->
<!--android:paddingBottom="@dimen/size_15">-->
<!--<RelativeLayout-->
<!--android:id="@+id/rl_item_my_release"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="@dimen/size_60"-->
<!--android:layout_weight="1"-->
<!--android:orientation="vertical">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:src="@drawable/mycenter_icon_myrelease" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_alignParentBottom="true"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:layout_marginTop="@dimen/size_18"-->
<!--android:text="@string/tv_my_release"-->
<!--android:textColor="@color/colorMain"-->
<!--android:textSize="@dimen/size_12" />-->
<!--</RelativeLayout>-->
<!--<RelativeLayout-->
<!--android:id="@+id/rl_item_collection"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="@dimen/size_60"-->
<!--android:layout_weight="1"-->
<!--android:orientation="vertical">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:src="@drawable/mycenter_icon_collect" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_alignParentBottom="true"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:layout_marginTop="@dimen/size_18"-->
<!--android:text="@string/tv_collection"-->
<!--android:textColor="@color/colorMain"-->
<!--android:textSize="@dimen/size_12" />-->
<!--</RelativeLayout>-->
<!--<RelativeLayout-->
<!--android:id="@+id/rl_item_personal_information"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="@dimen/size_60"-->
<!--android:layout_weight="1"-->
<!--android:orientation="vertical">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:src="@drawable/mycenter_icon_personal_data" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_alignParentBottom="true"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:layout_marginTop="@dimen/size_18"-->
<!--android:text="@string/tv_personal_information"-->
<!--android:textColor="@color/colorMain"-->
<!--android:textSize="@dimen/size_12" />-->
<!--</RelativeLayout>-->
<!--<RelativeLayout-->
<!--android:id="@+id/rl_item_setting"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="@dimen/size_60"-->
<!--android:layout_weight="1"-->
<!--android:orientation="vertical">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:src="@drawable/mycenter_icon_notes" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_alignParentBottom="true"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:layout_marginTop="@dimen/size_18"-->
<!--android:text="@string/tv_setting"-->
<!--android:textColor="@color/colorMain"-->
<!--android:textSize="@dimen/size_12" />-->
<!--</RelativeLayout>-->
<!--<RelativeLayout-->
<!--android:id="@+id/rl_item_driver"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="@dimen/size_60"-->
<!--android:layout_weight="1"-->
<!--android:orientation="vertical">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:src="@drawable/mycenter_icon_driver" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_alignParentBottom="true"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:layout_marginTop="@dimen/size_18"-->
<!--android:text="@string/tv_driver"-->
<!--android:textColor="@color/colorMain"-->
<!--android:textSize="@dimen/size_12" />-->
<!--</RelativeLayout>-->
<!--</LinearLayout>-->
<!--<LinearLayout-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content"-->
<!--android:background="@color/colorWrite"-->
<!--android:orientation="horizontal"-->
<!--android:paddingTop="@dimen/size_3"-->
<!--android:paddingBottom="@dimen/size_15">-->
<!--<RelativeLayout-->
<!--android:id="@+id/rl_item_traveler"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="@dimen/size_60"-->
<!--android:layout_weight="1"-->
<!--android:orientation="vertical">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:src="@drawable/mycenter_icon_traveler" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_alignParentBottom="true"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:layout_marginTop="@dimen/size_18"-->
<!--android:text="@string/tv_traveler"-->
<!--android:textColor="@color/colorMain"-->
<!--android:textSize="@dimen/size_12" />-->
<!--</RelativeLayout>-->
<!--<RelativeLayout-->
<!--android:id="@+id/rl_item_my_pat"-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="@dimen/size_60"-->
<!--android:layout_weight="1"-->
<!--android:orientation="vertical">-->
<!--<ImageView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:src="@drawable/mycenter_icon_mypat" />-->
<!--<TextView-->
<!--android:layout_width="wrap_content"-->
<!--android:layout_height="wrap_content"-->
<!--android:layout_alignParentBottom="true"-->
<!--android:layout_centerHorizontal="true"-->
<!--android:layout_marginTop="@dimen/size_18"-->
<!--android:text="我的拍拍"-->
<!--android:textColor="@color/colorMain"-->
<!--android:textSize="@dimen/size_12" />-->
<!--</RelativeLayout>-->
<!--<RelativeLayout-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="@dimen/size_60"-->
<!--android:layout_weight="1"-->
<!--android:orientation="vertical"></RelativeLayout>-->
<!--<RelativeLayout-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="@dimen/size_60"-->
<!--android:layout_weight="1"-->
<!--android:orientation="vertical"></RelativeLayout>-->
<!--<RelativeLayout-->
<!--android:layout_width="0dp"-->
<!--android:layout_height="@dimen/size_60"-->
<!--android:layout_weight="1"-->
<!--android:orientation="vertical"></RelativeLayout>-->
<!--</LinearLayout>-->
<!--<com.yuyife.banner.Banner-->
<!--android:id="@+id/mine_banner"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="@dimen/size_100"-->
<!--android:layout_marginTop="@dimen/size_15" />-->
<android.support.v7.widget.RecyclerView
android:id=
"@+id/recyclerView"
...
...
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