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
43112fbb
Commit
43112fbb
authored
Jul 13, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
ac7d1ed2
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
233 additions
and
111 deletions
+233
-111
rv_common_icon_search.png
...me/src/main/res/drawable-xxhdpi/rv_common_icon_search.png
+0
-0
rv_common_icon_search2.png
...e/src/main/res/drawable-xxhdpi/rv_common_icon_search2.png
+0
-0
rv_common_icon_up_arrow2.png
...src/main/res/drawable-xxhdpi/rv_common_icon_up_arrow2.png
+0
-0
BasePopupWindow.java
...in/java/com/ruiwenliu/wrapper/dialog/BasePopupWindow.java
+1
-1
colors.xml
RvWrapper/src/main/res/values/colors.xml
+1
-0
DiscoveryFragment.java
...y/src/main/java/com/xxfc/discovery/DiscoveryFragment.java
+38
-19
AddDiscoveryContentPw.java
...com/xxfc/discovery/popupwindow/AddDiscoveryContentPw.java
+27
-11
icon_pop_add_discovery_content_bg.png
.../res/drawable-xhdpi/icon_pop_add_discovery_content_bg.png
+0
-0
pop_add_discovery_content.xml
...scovery/src/main/res/layout/pop_add_discovery_content.xml
+45
-10
CarRentalListActivity.java
...rv/home/rv/module/ui/main/home/CarRentalListActivity.java
+10
-5
DrivingUploadActivity.java
...rv/home/rv/module/ui/main/home/DrivingUploadActivity.java
+11
-0
HomeFragment.java
...java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
+14
-7
SelectLocationActivity.java
...v/home/rv/module/ui/main/home/SelectLocationActivity.java
+2
-1
ShopShowActivity.java
.../com/rv/home/rv/module/ui/main/home/ShopShowActivity.java
+0
-2
fragment_home.xml
module_home/src/main/res/layout/fragment_home.xml
+7
-6
rv_act_car_rental_list.xml
module_home/src/main/res/layout/rv_act_car_rental_list.xml
+7
-0
rv_item_driving_list.xml
module_home/src/main/res/layout/rv_item_driving_list.xml
+70
-49
No files found.
RvFrame/src/main/res/
mipmap
-xxhdpi/rv_common_icon_search.png
→
RvFrame/src/main/res/
drawable
-xxhdpi/rv_common_icon_search.png
View file @
43112fbb
File moved
RvFrame/src/main/res/drawable-xxhdpi/rv_common_icon_search2.png
0 → 100644
View file @
43112fbb
515 Bytes
RvFrame/src/main/res/drawable-xxhdpi/rv_common_icon_up_arrow2.png
0 → 100644
View file @
43112fbb
188 Bytes
RvWrapper/src/main/java/com/ruiwenliu/wrapper/dialog/BasePopupWindow.java
View file @
43112fbb
...
@@ -37,7 +37,7 @@ public abstract class BasePopupWindow extends PopupWindow implements OnViewHolde
...
@@ -37,7 +37,7 @@ public abstract class BasePopupWindow extends PopupWindow implements OnViewHolde
setClippingEnabled
(
false
);
setClippingEnabled
(
false
);
setOutsideTouchable
(
false
);
setOutsideTouchable
(
false
);
setFocusable
(
false
);
setFocusable
(
false
);
setBackgroundDrawable
(
new
ColorDrawable
(
ContextCompat
.
getColor
(
getDialogContext
(),
R
.
color
.
bgAlpha
)));
setBackgroundDrawable
(
new
ColorDrawable
(
ContextCompat
.
getColor
(
getDialogContext
(),
R
.
color
.
gray_50ffffff
)));
setContentView
(
getHelperView
(
null
,
getViewLayout
(),
this
));
setContentView
(
getHelperView
(
null
,
getViewLayout
(),
this
));
}
}
...
...
RvWrapper/src/main/res/values/colors.xml
View file @
43112fbb
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
<color
name=
"gray_FFB74B"
>
#FFB74B
</color>
<color
name=
"gray_FFB74B"
>
#FFB74B
</color>
<color
name=
"gray_F96363"
>
#F96363
</color>
<color
name=
"gray_F96363"
>
#F96363
</color>
<color
name=
"gray_50ffffff"
>
#50ffffff
</color>
<color
name=
"gray_50ffffff"
>
#50ffffff
</color>
<color
name=
"gray_60ffffff"
>
#60ffffff
</color>
<color
name=
"gray_707070"
>
#707070
</color>
<color
name=
"gray_707070"
>
#707070
</color>
<color
name=
"gray_50000000"
>
#50000000
</color>
<color
name=
"gray_50000000"
>
#50000000
</color>
<color
name=
"gray_EEEEEE"
>
#EEEEEE
</color>
<color
name=
"gray_EEEEEE"
>
#EEEEEE
</color>
...
...
module_discovery/src/main/java/com/xxfc/discovery/DiscoveryFragment.java
View file @
43112fbb
package
com
.
xxfc
.
discovery
;
package
com
.
xxfc
.
discovery
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.graphics.drawable.BitmapDrawable
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.support.annotation.Nullable
;
import
android.support.annotation.Nullable
;
import
android.support.v4.view.ViewPager
;
import
android.support.v4.view.ViewPager
;
import
android.support.v7.widget.GridLayoutManager
;
import
android.support.v7.widget.GridLayoutManager
;
import
android.support.v7.widget.RecyclerView
;
import
android.support.v7.widget.RecyclerView
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.widget.ImageView
;
import
android.widget.PopupWindow
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.ruiwenliu.wrapper.adapter.TabAdapter
;
import
com.ruiwenliu.wrapper.adapter.TabAdapter
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
...
@@ -20,13 +22,13 @@ import com.xxfc.discovery.fragment.PatFragment;
...
@@ -20,13 +22,13 @@ import com.xxfc.discovery.fragment.PatFragment;
import
com.xxfc.discovery.fragment.QuestionAndAnswerFragment
;
import
com.xxfc.discovery.fragment.QuestionAndAnswerFragment
;
import
com.xxfc.discovery.fragment.RecommendFragment
;
import
com.xxfc.discovery.fragment.RecommendFragment
;
import
com.xxfc.discovery.fragment.ShortVideoFragment
;
import
com.xxfc.discovery.fragment.ShortVideoFragment
;
import
com.xxfc.discovery.popupwindow.AddDiscoveryContentPw
;
import
com.xxfc.discovery.presenter.DiscoveryPresenter
;
import
com.xxfc.discovery.presenter.DiscoveryPresenter
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
butterknife.BindView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
import
butterknife.OnClick
;
import
butterknife.Unbinder
;
import
butterknife.Unbinder
;
...
@@ -40,6 +42,8 @@ public class DiscoveryFragment extends BaseFragment<DiscoveryPresenter> {
...
@@ -40,6 +42,8 @@ public class DiscoveryFragment extends BaseFragment<DiscoveryPresenter> {
@BindView
(
R2
.
id
.
order_viewPager
)
@BindView
(
R2
.
id
.
order_viewPager
)
ViewPager
mViewPager
;
ViewPager
mViewPager
;
Unbinder
unbinder
;
Unbinder
unbinder
;
@BindView
(
R2
.
id
.
iv_discovery_content_add
)
ImageView
ivDiscoveryContentAdd
;
private
DiscoveryMenuAdapter
menuAdapter
;
private
DiscoveryMenuAdapter
menuAdapter
;
private
TabAdapter
mAdapter
;
private
TabAdapter
mAdapter
;
...
@@ -49,6 +53,9 @@ public class DiscoveryFragment extends BaseFragment<DiscoveryPresenter> {
...
@@ -49,6 +53,9 @@ public class DiscoveryFragment extends BaseFragment<DiscoveryPresenter> {
public
final
static
int
TYPE_QUESTION_AND_ANSWER
=
3
;
//问题
public
final
static
int
TYPE_QUESTION_AND_ANSWER
=
3
;
//问题
private
int
menuPosition
;
private
int
menuPosition
;
private
AddDiscoveryContentPw
mPop
;
private
boolean
isShow
=
true
;
public
static
DiscoveryFragment
getInstance
(
int
type
)
{
public
static
DiscoveryFragment
getInstance
(
int
type
)
{
Bundle
bundl
=
new
Bundle
();
Bundle
bundl
=
new
Bundle
();
...
@@ -80,7 +87,6 @@ public class DiscoveryFragment extends BaseFragment<DiscoveryPresenter> {
...
@@ -80,7 +87,6 @@ public class DiscoveryFragment extends BaseFragment<DiscoveryPresenter> {
}
}
/**
/**
* 初始化RecyclerView
* 初始化RecyclerView
*/
*/
...
@@ -160,26 +166,13 @@ public class DiscoveryFragment extends BaseFragment<DiscoveryPresenter> {
...
@@ -160,26 +166,13 @@ public class DiscoveryFragment extends BaseFragment<DiscoveryPresenter> {
}
}
};
};
@Override
public
View
onCreateView
(
LayoutInflater
inflater
,
ViewGroup
container
,
Bundle
savedInstanceState
)
{
// TODO: inflate a fragment view
View
rootView
=
super
.
onCreateView
(
inflater
,
container
,
savedInstanceState
);
unbinder
=
ButterKnife
.
bind
(
this
,
rootView
);
return
rootView
;
}
@Override
public
void
onDestroyView
()
{
super
.
onDestroyView
();
unbinder
.
unbind
();
}
@OnClick
({
R2
.
id
.
iv_discovery_content_add
})
@OnClick
({
R2
.
id
.
iv_discovery_content_add
})
public
void
onViewClicked
(
View
view
)
{
public
void
onViewClicked
(
View
view
)
{
int
id
=
view
.
getId
();
int
id
=
view
.
getId
();
if
(
id
==
R
.
id
.
iv_discovery_content_add
){
if
(
id
==
R
.
id
.
iv_discovery_content_add
)
{
//添加
//添加
showPopupWindow
(
ivDiscoveryContentAdd
);
}
}
}
}
...
@@ -190,4 +183,30 @@ public class DiscoveryFragment extends BaseFragment<DiscoveryPresenter> {
...
@@ -190,4 +183,30 @@ public class DiscoveryFragment extends BaseFragment<DiscoveryPresenter> {
void
switchTab
(
int
position
);
void
switchTab
(
int
position
);
}
}
/**
* 展示menu属性 窗体
*/
private
void
showPopupWindow
(
final
View
view
)
{
if
(
mPop
==
null
)
{
mPop
=
new
AddDiscoveryContentPw
(
_mActivity
);
}
mPop
.
setTouchable
(
true
);
// 设置popupwindow可点击
mPop
.
setBackgroundDrawable
(
new
BitmapDrawable
());
mPop
.
setOutsideTouchable
(
true
);
mPop
.
update
();
if
(
isShow
)
{
mPop
.
showPopupWindow
(
view
);
}
else
{
mPop
.
dismiss
();
}
isShow
=
!
isShow
;
mPop
.
setOnDismissListener
(
new
PopupWindow
.
OnDismissListener
()
{
@Override
public
void
onDismiss
()
{
isShow
=
true
;
}
});
}
}
}
module_discovery/src/main/java/com/xxfc/discovery/popupwindow/AddDiscoveryContentPw.java
View file @
43112fbb
...
@@ -4,9 +4,8 @@ import android.app.Activity;
...
@@ -4,9 +4,8 @@ import android.app.Activity;
import
android.graphics.Rect
;
import
android.graphics.Rect
;
import
android.os.Build
;
import
android.os.Build
;
import
android.support.annotation.NonNull
;
import
android.support.annotation.NonNull
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.RecyclerView
;
import
android.view.View
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
com.ruiwenliu.wrapper.dialog.BasePopupWindow
;
import
com.ruiwenliu.wrapper.dialog.BasePopupWindow
;
import
com.ruiwenliu.wrapper.util.ViewHolder
;
import
com.ruiwenliu.wrapper.util.ViewHolder
;
...
@@ -19,7 +18,9 @@ public class AddDiscoveryContentPw extends BasePopupWindow {
...
@@ -19,7 +18,9 @@ public class AddDiscoveryContentPw extends BasePopupWindow {
public
AddDiscoveryContentPw
(
@NonNull
Activity
context
)
{
public
AddDiscoveryContentPw
(
@NonNull
Activity
context
)
{
super
(
context
);
super
(
context
);
setOutsideTouchable
(
false
);
setOutsideTouchable
(
true
);
setHeight
(
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
);
setWidth
(
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
);
}
}
@Override
@Override
...
@@ -30,14 +31,29 @@ public class AddDiscoveryContentPw extends BasePopupWindow {
...
@@ -30,14 +31,29 @@ public class AddDiscoveryContentPw extends BasePopupWindow {
@Override
@Override
public
void
helper
(
ViewHolder
helper
)
{
public
void
helper
(
ViewHolder
helper
)
{
super
.
helper
(
helper
);
super
.
helper
(
helper
);
helper
.
setOnClickListener
(
R
.
id
.
fl_dismiss
,
new
View
.
OnClickListener
()
{
//拍拍
helper
.
setOnClickListener
(
R
.
id
.
tv_pat
,
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
dismiss
();
dismiss
();
}
});
//短视频
helper
.
setOnClickListener
(
R
.
id
.
tv_short_video
,
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
dismiss
();
}
});
//去提问
helper
.
setOnClickListener
(
R
.
id
.
tv_ask_questions
,
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
dismiss
();
}
}
});
});
RecyclerView
recyclerView
=
helper
.
getView
(
R
.
id
.
recyclerView
);
recyclerView
.
setLayoutManager
(
new
LinearLayoutManager
(
getDialogContext
()));
}
}
/**
/**
...
@@ -48,11 +64,11 @@ public class AddDiscoveryContentPw extends BasePopupWindow {
...
@@ -48,11 +64,11 @@ public class AddDiscoveryContentPw extends BasePopupWindow {
if
(
Build
.
VERSION
.
SDK_INT
>=
24
)
{
if
(
Build
.
VERSION
.
SDK_INT
>=
24
)
{
Rect
visibleFrame
=
new
Rect
();
Rect
visibleFrame
=
new
Rect
();
anchor
.
getGlobalVisibleRect
(
visibleFrame
);
anchor
.
getGlobalVisibleRect
(
visibleFrame
);
int
height
=
anchor
.
getResources
().
getDisplayMetrics
().
heightPixels
-
visibleFrame
.
bottom
;
//
int height = anchor.getResources().getDisplayMetrics().heightPixels - visibleFrame.bottom;
this
.
setHeight
(
height
);
//
this.setHeight(height);
this
.
showAsDropDown
(
anchor
,
0
,
0
);
this
.
showAsDropDown
(
anchor
,
-
17
0
,
0
);
}
else
{
}
else
{
this
.
showAsDropDown
(
anchor
,
0
,
0
);
this
.
showAsDropDown
(
anchor
,
-
17
0
,
0
);
}
}
}
}
...
...
module_discovery/src/main/res/drawable-xhdpi/icon_pop_add_discovery_content_bg.png
0 → 100644
View file @
43112fbb
2.38 KB
module_discovery/src/main/res/layout/pop_add_discovery_content.xml
View file @
43112fbb
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"
match_par
ent"
android:layout_width=
"
wrap_cont
ent"
android:layout_height=
"
match_par
ent"
android:layout_height=
"
wrap_cont
ent"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<FrameLayout
<FrameLayout
android:layout_width=
"match_parent"
android:background=
"@drawable/icon_pop_add_discovery_content_bg"
android:layout_width=
"@dimen/size_130"
android:layout_height=
"wrap_content"
>
android:layout_height=
"wrap_content"
>
<LinearLayout
<LinearLayout
android:layout_width=
"
wrap_cont
ent"
android:layout_width=
"
match_par
ent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"@dimen/size_10"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tv_pat"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/text_16"
android:gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:textColor=
"@color/textGray"
android:paddingTop=
"@dimen/size_10"
android:paddingBottom=
"@dimen/size_10"
android:text=
"拍 拍"
/>
</LinearLayout>
<include
layout=
"@layout/common_line"
/>
</FrameLayout>
<TextView
android:id=
"@+id/tv_short_video"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/text_16"
android:layout_gravity=
"center_horizontal"
android:gravity=
"center_horizontal"
android:paddingTop=
"@dimen/size_10"
android:paddingBottom=
"@dimen/size_10"
android:textColor=
"@color/textGray"
android:text=
"短视频"
/>
<View
<include
layout=
"@layout/common_line"
/>
android:id=
"@+id/fl_dismiss"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
<TextView
android:id=
"@+id/tv_ask_questions"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingTop=
"@dimen/size_10"
android:paddingBottom=
"@dimen/size_10"
android:gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:textSize=
"@dimen/text_16"
android:textColor=
"@color/textGray"
android:text=
"去提问"
/>
</LinearLayout>
</FrameLayout>
</LinearLayout>
</LinearLayout>
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/CarRentalListActivity.java
View file @
43112fbb
...
@@ -21,6 +21,8 @@ import com.ruiwenliu.wrapper.base.BaseBean;
...
@@ -21,6 +21,8 @@ import com.ruiwenliu.wrapper.base.BaseBean;
import
com.ruiwenliu.wrapper.util.TimeManager
;
import
com.ruiwenliu.wrapper.util.TimeManager
;
import
com.ruiwenliu.wrapper.util.ViewHolder
;
import
com.ruiwenliu.wrapper.util.ViewHolder
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.ruiwenliu.wrapper.weight.TitleView
;
import
com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout
;
import
com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshView
;
import
com.rv.component.utils.DateUtils
;
import
com.rv.component.utils.DateUtils
;
import
com.rv.home.R
;
import
com.rv.home.R
;
import
com.rv.home.R2
;
import
com.rv.home.R2
;
...
@@ -51,7 +53,7 @@ import butterknife.OnClick;
...
@@ -51,7 +53,7 @@ import butterknife.OnClick;
* Date: 2019/5/16.
* Date: 2019/5/16.
* Desc:租车列表
* Desc:租车列表
*/
*/
public
class
CarRentalListActivity
extends
BaseStatusActivity
<
CommonPresenter
>
implements
BaseQuickAdapter
.
RequestLoadMoreListener
{
public
class
CarRentalListActivity
extends
BaseStatusActivity
<
CommonPresenter
>
implements
BaseQuickAdapter
.
RequestLoadMoreListener
,
SimpleRefreshLayout
.
OnSimpleRefreshListener
{
@BindView
(
R2
.
id
.
recyclerView
)
@BindView
(
R2
.
id
.
recyclerView
)
RecyclerView
recyclerView
;
RecyclerView
recyclerView
;
@BindView
(
R2
.
id
.
ll_head_menu
)
@BindView
(
R2
.
id
.
ll_head_menu
)
...
@@ -64,6 +66,8 @@ public class CarRentalListActivity extends BaseStatusActivity<CommonPresenter> i
...
@@ -64,6 +66,8 @@ public class CarRentalListActivity extends BaseStatusActivity<CommonPresenter> i
TextView
tvGetAddress
;
TextView
tvGetAddress
;
@BindView
(
R2
.
id
.
tv_out_address
)
@BindView
(
R2
.
id
.
tv_out_address
)
TextView
tvOutAddress
;
TextView
tvOutAddress
;
@BindView
(
R2
.
id
.
refresh
)
SimpleRefreshLayout
mSimpleRefreshLayout
;
public
CarRentalListAdapter
mAdapter
;
public
CarRentalListAdapter
mAdapter
;
private
int
countPage
;
private
int
countPage
;
...
@@ -103,6 +107,8 @@ public class CarRentalListActivity extends BaseStatusActivity<CommonPresenter> i
...
@@ -103,6 +107,8 @@ public class CarRentalListActivity extends BaseStatusActivity<CommonPresenter> i
@Override
@Override
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
protected
void
initView
(
Bundle
savedInstanceState
,
TitleView
titleView
,
Intent
intent
)
{
titleView
.
setTitle
(
mActivity
.
getString
(
R
.
string
.
rv_select_car
));
titleView
.
setTitle
(
mActivity
.
getString
(
R
.
string
.
rv_select_car
));
mSimpleRefreshLayout
.
setHeaderView
(
new
SimpleRefreshView
(
mActivity
));
mSimpleRefreshLayout
.
setOnSimpleRefreshListener
(
this
);
begDate
=
intent
.
getStringExtra
(
"startTime"
);
begDate
=
intent
.
getStringExtra
(
"startTime"
);
endDate
=
intent
.
getStringExtra
(
"endTime"
);
endDate
=
intent
.
getStringExtra
(
"endTime"
);
dataBean
=
(
OrderDataBean
)
intent
.
getSerializableExtra
(
"bean"
);
dataBean
=
(
OrderDataBean
)
intent
.
getSerializableExtra
(
"bean"
);
...
@@ -152,6 +158,7 @@ public class CarRentalListActivity extends BaseStatusActivity<CommonPresenter> i
...
@@ -152,6 +158,7 @@ public class CarRentalListActivity extends BaseStatusActivity<CommonPresenter> i
@Override
@Override
public
void
onShowResult
(
int
requestType
,
BaseBean
result
)
{
public
void
onShowResult
(
int
requestType
,
BaseBean
result
)
{
mSimpleRefreshLayout
.
onRefreshComplete
();
switch
(
requestType
)
{
switch
(
requestType
)
{
case
0
:
case
0
:
initData
((
CarAttributeListBean
)
result
);
initData
((
CarAttributeListBean
)
result
);
...
@@ -446,9 +453,7 @@ public class CarRentalListActivity extends BaseStatusActivity<CommonPresenter> i
...
@@ -446,9 +453,7 @@ public class CarRentalListActivity extends BaseStatusActivity<CommonPresenter> i
}
}
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
public
void
onRefresh
()
{
super
.
onCreate
(
savedInstanceState
);
onFresh
();
// TODO: add setContentView(...) invocation
ButterKnife
.
bind
(
this
);
}
}
}
}
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/DrivingUploadActivity.java
View file @
43112fbb
...
@@ -111,11 +111,22 @@ public class DrivingUploadActivity extends BaseStatusActivity<PickerPresenter> {
...
@@ -111,11 +111,22 @@ public class DrivingUploadActivity extends BaseStatusActivity<PickerPresenter> {
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_phone_hint
));
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_phone_hint
));
return
;
return
;
}
}
if
(
getDrivingPhone
().
length
()
!=
11
){
showToast
(
"请输入正确手机号"
);
return
;
}
if
(
TextUtils
.
isEmpty
(
getDrivingIdCard
()))
{
if
(
TextUtils
.
isEmpty
(
getDrivingIdCard
()))
{
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_id_card_hint
));
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_id_card_hint
));
return
;
return
;
}
}
if
(
getDrivingIdCard
().
length
()
!=
18
){
showToast
(
"请输入正确身份证号"
);
return
;
}
if
(
TextUtils
.
isEmpty
(
strCard
))
{
if
(
TextUtils
.
isEmpty
(
strCard
))
{
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_upload_driving_toast
));
showToast
(
mActivity
.
getString
(
R
.
string
.
rv_upload_driving_toast
));
return
;
return
;
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
View file @
43112fbb
...
@@ -12,7 +12,6 @@ import android.support.annotation.Nullable;
...
@@ -12,7 +12,6 @@ import android.support.annotation.Nullable;
import
android.support.v7.widget.GridLayoutManager
;
import
android.support.v7.widget.GridLayoutManager
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.LinearLayoutManager
;
import
android.support.v7.widget.RecyclerView
;
import
android.support.v7.widget.RecyclerView
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
android.util.Log
;
import
android.view.LayoutInflater
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.view.View
;
...
@@ -34,7 +33,6 @@ import com.baidu.mapapi.search.geocode.GeoCodeResult;
...
@@ -34,7 +33,6 @@ import com.baidu.mapapi.search.geocode.GeoCodeResult;
import
com.baidu.mapapi.search.geocode.GeoCoder
;
import
com.baidu.mapapi.search.geocode.GeoCoder
;
import
com.baidu.mapapi.search.geocode.OnGetGeoCoderResultListener
;
import
com.baidu.mapapi.search.geocode.OnGetGeoCoderResultListener
;
import
com.baidu.mapapi.search.geocode.ReverseGeoCodeResult
;
import
com.baidu.mapapi.search.geocode.ReverseGeoCodeResult
;
import
com.base.utils.ui.datetime.selector.util.DateUtil
;
import
com.base.utils.ui.datetime.selector.util.TextUtil
;
import
com.base.utils.ui.datetime.selector.util.TextUtil
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.frame.base.url.Constance
;
import
com.frame.base.url.Constance
;
...
@@ -43,7 +41,6 @@ import com.google.gson.Gson;
...
@@ -43,7 +41,6 @@ import com.google.gson.Gson;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseBean
;
import
com.ruiwenliu.wrapper.base.BaseFragment
;
import
com.ruiwenliu.wrapper.base.BaseFragment
;
import
com.ruiwenliu.wrapper.util.LocationManager
;
import
com.ruiwenliu.wrapper.util.LocationManager
;
import
com.ruiwenliu.wrapper.util.TimeManager
;
import
com.ruiwenliu.wrapper.util.UtilsManager
;
import
com.ruiwenliu.wrapper.util.UtilsManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.glide.GlideManager
;
import
com.ruiwenliu.wrapper.util.listener.SwitchFragment
;
import
com.ruiwenliu.wrapper.util.listener.SwitchFragment
;
...
@@ -68,11 +65,11 @@ import com.rv.home.rv.module.ui.main.home.bean.HomePopularBrigade;
...
@@ -68,11 +65,11 @@ import com.rv.home.rv.module.ui.main.home.bean.HomePopularBrigade;
import
com.rv.home.rv.module.ui.main.home.bean.ListsBean
;
import
com.rv.home.rv.module.ui.main.home.bean.ListsBean
;
import
com.rv.home.rv.module.ui.main.home.bean.OrderDataBean
;
import
com.rv.home.rv.module.ui.main.home.bean.OrderDataBean
;
import
com.rv.home.rv.module.ui.main.home.bean.ShopListBean
;
import
com.rv.home.rv.module.ui.main.home.bean.ShopListBean
;
import
com.rv.plugin.calendar.CalendarActivity
;
import
com.yuyife.banner.Banner
;
import
com.yuyife.banner.Banner
;
import
com.yuyife.banner.BannerConfig
;
import
com.yuyife.banner.BannerConfig
;
import
com.yuyife.banner.listener.OnBannerListener
;
import
com.yuyife.banner.listener.OnBannerListener
;
import
com.yuyife.banner.loader.ImageLoader
;
import
com.yuyife.banner.loader.ImageLoader
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.LinkedHashMap
;
import
java.util.LinkedHashMap
;
...
@@ -182,6 +179,10 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
...
@@ -182,6 +179,10 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
TextView
tvHotEntertainmentHint
;
TextView
tvHotEntertainmentHint
;
@BindView
(
R2
.
id
.
tv_hot_car_rental_hint
)
@BindView
(
R2
.
id
.
tv_hot_car_rental_hint
)
TextView
tvHotCarRentalHint
;
TextView
tvHotCarRentalHint
;
@BindView
(
R2
.
id
.
iv_travel_city_text_hint
)
ImageView
ivTravelCityTextHint
;
@BindView
(
R2
.
id
.
iv_search_input_hint
)
ImageView
ivSearchInputHint
;
private
ArrayList
<
String
>
images
=
new
ArrayList
<>();
//图片(默认采用网络地址)
private
ArrayList
<
String
>
images
=
new
ArrayList
<>();
//图片(默认采用网络地址)
...
@@ -903,7 +904,7 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
...
@@ -903,7 +904,7 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
* @param bean
* @param bean
*/
*/
private
void
processData
(
ShopListBean
bean
)
{
private
void
processData
(
ShopListBean
bean
)
{
if
(
bean
.
getData
()
!=
null
&&
bean
.
getData
().
getTotalCount
()
>
0
)
{
if
(
bean
.
getData
()
!=
null
&&
bean
.
getData
().
getTotalCount
()
>
0
)
{
if
(
headTvGetShop
!=
null
)
{
if
(
headTvGetShop
!=
null
)
{
headTvGetShop
.
setText
(
bean
.
getData
().
getData
().
get
(
0
).
getName
());
headTvGetShop
.
setText
(
bean
.
getData
().
getData
().
get
(
0
).
getName
());
headTvGetShop
.
setTextColor
(
_mActivity
.
getResources
().
getColor
(
R
.
color
.
colorMain
));
headTvGetShop
.
setTextColor
(
_mActivity
.
getResources
().
getColor
(
R
.
color
.
colorMain
));
...
@@ -917,7 +918,7 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
...
@@ -917,7 +918,7 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
outLatitude
=
bean
.
getData
().
getData
().
get
(
0
).
getLatitude
();
outLatitude
=
bean
.
getData
().
getData
().
get
(
0
).
getLatitude
();
outLongitude
=
bean
.
getData
().
getData
().
get
(
0
).
getLongitude
();
outLongitude
=
bean
.
getData
().
getData
().
get
(
0
).
getLongitude
();
}
}
}
else
{
}
else
{
headTvGetShop
.
setText
(
""
);
headTvGetShop
.
setText
(
""
);
latLatitude
=
0
;
latLatitude
=
0
;
lonLongitude
=
0
;
lonLongitude
=
0
;
...
@@ -1014,6 +1015,9 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
...
@@ -1014,6 +1015,9 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
llItemSearch
.
setBackground
(
getResources
().
getDrawable
(
R
.
drawable
.
shape_rv_textview_home_translucent
));
llItemSearch
.
setBackground
(
getResources
().
getDrawable
(
R
.
drawable
.
shape_rv_textview_home_translucent
));
travelCityText
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
colorWrite
));
travelCityText
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
colorWrite
));
travelServerImage
.
setImageResource
(
R
.
drawable
.
rv_rentingcar_icon_service_white
);
travelServerImage
.
setImageResource
(
R
.
drawable
.
rv_rentingcar_icon_service_white
);
ivTravelCityTextHint
.
setImageResource
(
R
.
drawable
.
rv_common_icon_up_arrow2
);
ivSearchInputHint
.
setImageResource
(
R
.
drawable
.
rv_common_icon_search2
);
searchInput
.
setHintTextColor
(
getResources
().
getColor
(
R
.
color
.
colorWrite
));
if
(
y
<=
3
)
{
if
(
y
<=
3
)
{
llItemTitle
.
setBackgroundColor
(
Color
.
argb
(
0
,
0
,
0
,
0
));
llItemTitle
.
setBackgroundColor
(
Color
.
argb
(
0
,
0
,
0
,
0
));
}
else
{
}
else
{
...
@@ -1024,6 +1028,9 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
...
@@ -1024,6 +1028,9 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
llItemSearch
.
setBackground
(
getResources
().
getDrawable
(
R
.
drawable
.
shape_rv_textview_home_search
));
llItemSearch
.
setBackground
(
getResources
().
getDrawable
(
R
.
drawable
.
shape_rv_textview_home_search
));
travelServerImage
.
setImageResource
(
R
.
drawable
.
rentingcar_icon_service_orangeorange
);
travelServerImage
.
setImageResource
(
R
.
drawable
.
rentingcar_icon_service_orangeorange
);
travelCityText
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
colorMain
));
travelCityText
.
setTextColor
(
getResources
().
getColor
(
R
.
color
.
colorMain
));
ivTravelCityTextHint
.
setImageResource
(
R
.
drawable
.
rv_common_icon_up_arrow
);
ivSearchInputHint
.
setImageResource
(
R
.
drawable
.
rv_common_icon_search
);
searchInput
.
setHintTextColor
(
getResources
().
getColor
(
R
.
color
.
text_Gray
));
llItemTitle
.
setBackgroundColor
(
Color
.
argb
(
255
,
255
,
255
,
255
));
llItemTitle
.
setBackgroundColor
(
Color
.
argb
(
255
,
255
,
255
,
255
));
}
}
}
}
...
@@ -1119,7 +1126,7 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
...
@@ -1119,7 +1126,7 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
latLatitude
=
location
.
getLatitude
();
latLatitude
=
location
.
getLatitude
();
lonLongitude
=
location
.
getLongitude
();
lonLongitude
=
location
.
getLongitude
();
mLatLng
=
new
LatLng
(
location
.
getLatitude
(),
location
.
getLongitude
());
mLatLng
=
new
LatLng
(
location
.
getLatitude
(),
location
.
getLongitude
());
getCityId
=
0
;
getCityId
=
0
;
outCityId
=
0
;
outCityId
=
0
;
headTvGetCity
.
setText
(
location
.
getCity
());
headTvGetCity
.
setText
(
location
.
getCity
());
headTvOutCity
.
setText
(
location
.
getCity
());
headTvOutCity
.
setText
(
location
.
getCity
());
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/SelectLocationActivity.java
View file @
43112fbb
...
@@ -197,7 +197,6 @@ public class SelectLocationActivity extends BaseStatusActivity<CommonPresenter>
...
@@ -197,7 +197,6 @@ public class SelectLocationActivity extends BaseStatusActivity<CommonPresenter>
}
}
;
/**
/**
* 初始化百度
* 初始化百度
...
@@ -285,6 +284,8 @@ public class SelectLocationActivity extends BaseStatusActivity<CommonPresenter>
...
@@ -285,6 +284,8 @@ public class SelectLocationActivity extends BaseStatusActivity<CommonPresenter>
getIntent
().
putExtra
(
"type"
,
locationType
);
getIntent
().
putExtra
(
"type"
,
locationType
);
getIntent
().
putExtra
(
"latitude"
,
searchBean
.
getLatLng
().
latitude
);
getIntent
().
putExtra
(
"latitude"
,
searchBean
.
getLatLng
().
latitude
);
getIntent
().
putExtra
(
"longitude"
,
searchBean
.
getLatLng
().
longitude
);
getIntent
().
putExtra
(
"longitude"
,
searchBean
.
getLatLng
().
longitude
);
getIntent
().
putExtra
(
"city"
,
selectCity
);
getIntent
().
putExtra
(
"cityId"
,
mCityId
);
setResult
(
RESULT_OK
,
getIntent
());
setResult
(
RESULT_OK
,
getIntent
());
finish
();
finish
();
...
...
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/ShopShowActivity.java
View file @
43112fbb
...
@@ -153,8 +153,6 @@ public class ShopShowActivity extends BaseStatusActivity<CommonPresenter> {
...
@@ -153,8 +153,6 @@ public class ShopShowActivity extends BaseStatusActivity<CommonPresenter> {
if
(
selectBean
!=
null
)
{
if
(
selectBean
!=
null
)
{
showPickerDialog
(
new
LatLng
(
selectBean
.
getLatitude
(),
selectBean
.
getLongitude
()),
selectBean
.
getAddrDetail
());
showPickerDialog
(
new
LatLng
(
selectBean
.
getLatitude
(),
selectBean
.
getLongitude
()),
selectBean
.
getAddrDetail
());
}
}
}
}
}
}
...
...
module_home/src/main/res/layout/fragment_home.xml
View file @
43112fbb
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
android:background=
"@color/colorLine"
android:background=
"@color/colorLine"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/refresh"
android:id=
"@+id/refresh"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
android:layout_height=
"match_parent"
>
...
@@ -905,7 +906,6 @@
...
@@ -905,7 +906,6 @@
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
...
@@ -1105,12 +1105,12 @@
...
@@ -1105,12 +1105,12 @@
android:textSize=
"@dimen/_ui_text_size_h6"
/>
android:textSize=
"@dimen/_ui_text_size_h6"
/>
<ImageView
<ImageView
android:id=
"@+id/iv_travel_city_text_hint"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:src=
"@drawable/rv_common_icon_up_arrow"
/>
android:src=
"@drawable/rv_common_icon_up_arrow
2
"
/>
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_item_search"
android:id=
"@+id/ll_item_search"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
...
@@ -1123,11 +1123,12 @@
...
@@ -1123,11 +1123,12 @@
<ImageView
<ImageView
android:id=
"@+id/iv_search_input_hint"
android:layout_width=
"15dp"
android:layout_width=
"15dp"
android:layout_height=
"15dp"
android:layout_height=
"15dp"
android:layout_marginLeft=
"@dimen/ui_dimen_margin_h1"
android:layout_marginLeft=
"@dimen/ui_dimen_margin_h1"
android:layout_marginRight=
"@dimen/ui_dimen_common_small"
android:layout_marginRight=
"@dimen/ui_dimen_common_small"
android:src=
"@
mipmap/rv_common_icon_search
"
/>
android:src=
"@
drawable/rv_common_icon_search2
"
/>
<TextView
<TextView
android:id=
"@+id/search_input"
android:id=
"@+id/search_input"
...
@@ -1140,7 +1141,7 @@
...
@@ -1140,7 +1141,7 @@
android:paddingLeft=
"@dimen/ui_dimen_common"
android:paddingLeft=
"@dimen/ui_dimen_common"
android:paddingRight=
"@dimen/ui_dimen_padding_h1"
android:paddingRight=
"@dimen/ui_dimen_padding_h1"
android:textColor=
"@color/colorTextH1"
android:textColor=
"@color/colorTextH1"
android:textColorHint=
"@color/color
TextH3
"
android:textColorHint=
"@color/color
Write
"
android:textSize=
"@dimen/_ui_text_size_h7"
/>
android:textSize=
"@dimen/_ui_text_size_h7"
/>
</LinearLayout>
</LinearLayout>
...
...
module_home/src/main/res/layout/rv_act_car_rental_list.xml
View file @
43112fbb
...
@@ -171,9 +171,16 @@
...
@@ -171,9 +171,16 @@
android:layout_height=
"@dimen/size_half"
android:layout_height=
"@dimen/size_half"
android:background=
"@color/colorLine"
/>
android:background=
"@color/colorLine"
/>
<com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout
android:id=
"@+id/refresh"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/recyclerView"
android:id=
"@+id/recyclerView"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
android:layout_height=
"match_parent"
/>
</com.ruiwenliu.wrapper.weight.refresh.SimpleRefreshLayout>
</LinearLayout>
</LinearLayout>
module_home/src/main/res/layout/rv_item_driving_list.xml
View file @
43112fbb
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/colorWrite"
android:background=
"@color/colorWrite"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:paddingLeft=
"@dimen/size_15"
android:paddingLeft=
"@dimen/size_15"
android:paddingTop=
"@dimen/size_15"
android:paddingTop=
"@dimen/size_15"
android:paddingRight=
"@dimen/size_15"
android:paddingRight=
"@dimen/size_15"
>
android:layout_height=
"wrap_content"
>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_driving"
android:id=
"@+id/ll_driving"
android:orientation=
"horizontal"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/size_15"
android:layout_marginBottom=
"@dimen/size_15"
android:layout_height=
"wrap_content"
>
android:orientation=
"horizontal"
>
<CheckBox
<CheckBox
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:id=
"@+id/cb_driving"
android:id=
"@+id/cb_driving"
android:layout_gravity=
"center_vertical"
/>
<TextView
android:layout_marginLeft=
"@dimen/size_15"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/textMain"
android:layout_gravity=
"center_vertical"
/>
android:textSize=
"@dimen/text_16"
android:text=
""
<LinearLayout
android:id=
"@+id/tv_name"
android:layout_width=
"match_parent"
/>
android:layout_height=
"wrap_content"
<RelativeLayout
android:layout_marginLeft=
"@dimen/size_15"
android:layout_marginLeft=
"@dimen/size_15"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:orientation=
"vertical"
>
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<LinearLayout
<TextView
android:layout_width=
"match_parent"
android:textSize=
"@dimen/text_14"
android:layout_height=
"wrap_content"
android:textColor=
"@color/textGray"
android:orientation=
"horizontal"
>
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
<TextView
android:id=
"@+id/tv_phone"
android:id=
"@+id/tv_name"
android:text=
""
android:layout_width=
"wrap_content"
/>
android:layout_height=
"wrap_content"
<TextView
android:text=
""
android:layout_below=
"@id/tv_phone"
android:textColor=
"@color/textMain"
android:textSize=
"@dimen/text_14"
android:textSize=
"@dimen/text_16"
/>
android:textColor=
"@color/textGray"
android:layout_width=
"wrap_content"
<TextView
android:layout_height=
"wrap_content"
android:id=
"@+id/tv_phone"
android:id=
"@+id/tv_id_card"
android:layout_width=
"wrap_content"
android:text=
""
android:layout_height=
"wrap_content"
/>
android:text=
""
</RelativeLayout>
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_14"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"身份证号"
android:textColor=
"@color/textMain"
android:textSize=
"@dimen/text_16"
/>
<TextView
android:id=
"@+id/tv_id_card"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tv_phone"
android:text=
""
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_14"
/>
</LinearLayout>
</LinearLayout>
<View
<View
android:layout_marginRight=
"@dimen/size_5"
android:layout_gravity=
"center_vertical"
android:layout_width=
"@dimen/size_half"
android:layout_width=
"@dimen/size_half"
android:layout_height=
"@dimen/size_25"
android:layout_height=
"@dimen/size_25"
android:background=
"@color/colorGray"
android:layout_gravity=
"center_vertical"
/>
android:layout_marginRight=
"@dimen/size_5"
android:background=
"@color/colorGray"
/>
<TextView
<TextView
android:layout_below=
"@id/tv_phone"
android:id=
"@+id/tv_edit"
android:textSize=
"@dimen/text_14"
android:textColor=
"@color/textGray"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical
"
android:layout_below=
"@id/tv_phone
"
android:
id=
"@+id/tv_edit
"
android:
layout_gravity=
"center_vertical
"
android:text=
"@string/rv_edit"
android:text=
"@string/rv_edit"
/>
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/text_14"
/>
</LinearLayout>
</LinearLayout>
<include
layout=
"@layout/common_line"
/>
<include
layout=
"@layout/common_line"
/>
</LinearLayout>
</LinearLayout>
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