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
12c51d15
Commit
12c51d15
authored
Mar 06, 2020
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020-3-6 首页改版 该发现入口为会员入口
parent
654c527c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
HomeFragment.java
...java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
+9
-5
icon_home_member.png
...le_home/src/main/res/drawable-xxhdpi/icon_home_member.png
+0
-0
fragment_home.xml
module_home/src/main/res/layout/fragment_home.xml
+3
-3
strings.xml
module_home/src/main/res/values/strings.xml
+1
-0
No files found.
module_home/src/main/java/com/rv/home/rv/module/ui/main/home/HomeFragment.java
View file @
12c51d15
...
@@ -2,6 +2,7 @@ package com.rv.home.rv.module.ui.main.home;
...
@@ -2,6 +2,7 @@ package com.rv.home.rv.module.ui.main.home;
import
android.Manifest
;
import
android.Manifest
;
import
android.annotation.SuppressLint
;
import
android.annotation.SuppressLint
;
import
android.app.Activity
;
import
android.app.AlertDialog
;
import
android.app.AlertDialog
;
import
android.content.ComponentName
;
import
android.content.ComponentName
;
import
android.content.Context
;
import
android.content.Context
;
...
@@ -123,8 +124,8 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -123,8 +124,8 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
LinearLayout
llCarTravel
;
LinearLayout
llCarTravel
;
@BindView
(
R2
.
id
.
ll_car_camp
)
@BindView
(
R2
.
id
.
ll_car_camp
)
LinearLayout
llCarCamp
;
LinearLayout
llCarCamp
;
@BindView
(
R2
.
id
.
ll_
car_discovery
)
@BindView
(
R2
.
id
.
ll_
member
)
LinearLayout
ll
CarDiscovery
;
LinearLayout
ll
Memeber
;
@BindView
(
R2
.
id
.
ll_car_buy
)
@BindView
(
R2
.
id
.
ll_car_buy
)
LinearLayout
llCarBuy
;
LinearLayout
llCarBuy
;
...
@@ -539,7 +540,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -539,7 +540,7 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
@OnClick
({
R2
.
id
.
tv_home_travel_city_layout
,
R2
.
id
.
ll_home_item_search
,
@OnClick
({
R2
.
id
.
tv_home_travel_city_layout
,
R2
.
id
.
ll_home_item_search
,
R2
.
id
.
ll_home_item_top
,
R2
.
id
.
iv_home_travel_server_image
,
R2
.
id
.
ll_home_item_activity_all
,
R2
.
id
.
tv_camp_more
R2
.
id
.
ll_home_item_top
,
R2
.
id
.
iv_home_travel_server_image
,
R2
.
id
.
ll_home_item_activity_all
,
R2
.
id
.
tv_camp_more
,
R2
.
id
.
tv_hot_travel_more
,
R2
.
id
.
ll_car_recent
,
R2
.
id
.
ll_car_buy
,
R2
.
id
.
ll_car_camp
,
R2
.
id
.
ll_
car_discovery
,
R2
.
id
.
ll_car_travel
})
,
R2
.
id
.
tv_hot_travel_more
,
R2
.
id
.
ll_car_recent
,
R2
.
id
.
ll_car_buy
,
R2
.
id
.
ll_car_camp
,
R2
.
id
.
ll_
member
,
R2
.
id
.
ll_car_travel
})
public
void
onViewClicked
(
View
view
)
{
public
void
onViewClicked
(
View
view
)
{
int
id
=
view
.
getId
();
int
id
=
view
.
getId
();
if
(
id
==
R
.
id
.
tv_home_travel_city_layout
)
{
if
(
id
==
R
.
id
.
tv_home_travel_city_layout
)
{
...
@@ -554,8 +555,11 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
...
@@ -554,8 +555,11 @@ public class HomeFragment extends BaseFragment<HomePresenter> implements Observa
SwitchFragment
.
sChangeFragment
.
changge
(
1
);
SwitchFragment
.
sChangeFragment
.
changge
(
1
);
}
else
if
(
id
==
R
.
id
.
ll_car_camp
)
{
}
else
if
(
id
==
R
.
id
.
ll_car_camp
)
{
SwitchFragment
.
sChangeFragment
.
changge
(
2
);
SwitchFragment
.
sChangeFragment
.
changge
(
2
);
}
else
if
(
id
==
R
.
id
.
ll_car_discovery
)
{
}
else
if
(
id
==
R
.
id
.
ll_member
)
{
SwitchFragment
.
sChangeFragment
.
changge
(
3
);
ComponentName
name
=
new
ComponentName
(
getContext
(),
"com.rv.member.MemberCenterActivity"
);
Intent
intent
=
new
Intent
();
intent
.
setComponent
(
name
);
startActivity
(
intent
);
}
else
if
(
id
==
R
.
id
.
ll_car_buy
)
{
}
else
if
(
id
==
R
.
id
.
ll_car_buy
)
{
ARouter
.
getInstance
()
ARouter
.
getInstance
()
.
build
(
Constance
.
ACTIVITY_URL_CARPURCHASELIST
)
.
build
(
Constance
.
ACTIVITY_URL_CARPURCHASELIST
)
...
...
module_home/src/main/res/drawable-xxhdpi/icon_home_member.png
0 → 100644
View file @
12c51d15
10.7 KB
module_home/src/main/res/layout/fragment_home.xml
View file @
12c51d15
...
@@ -222,7 +222,7 @@
...
@@ -222,7 +222,7 @@
</LinearLayout>
</LinearLayout>
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_
car_discovery
"
android:id=
"@+id/ll_
member
"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
...
@@ -232,13 +232,13 @@
...
@@ -232,13 +232,13 @@
<ImageView
<ImageView
android:layout_width=
"47dp"
android:layout_width=
"47dp"
android:layout_height=
"47dp"
android:layout_height=
"47dp"
android:src=
"@drawable/icon_home_
discovery
"
/>
android:src=
"@drawable/icon_home_
member
"
/>
<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=
"@dimen/size_15"
android:layout_marginTop=
"@dimen/size_15"
android:text=
"@string/rv_home_
discovery
"
android:text=
"@string/rv_home_
member
"
android:textColor=
"@color/textGray"
android:textColor=
"@color/textGray"
android:textSize=
"@dimen/sp_14"
/>
android:textSize=
"@dimen/sp_14"
/>
</LinearLayout>
</LinearLayout>
...
...
module_home/src/main/res/values/strings.xml
View file @
12c51d15
...
@@ -180,6 +180,7 @@
...
@@ -180,6 +180,7 @@
<string
name=
"rv_home_car_travel"
>
房车旅行
</string>
<string
name=
"rv_home_car_travel"
>
房车旅行
</string>
<string
name=
"rv_home_car_camp"
>
房车营地
</string>
<string
name=
"rv_home_car_camp"
>
房车营地
</string>
<string
name=
"rv_home_discovery"
>
发现
</string>
<string
name=
"rv_home_discovery"
>
发现
</string>
<string
name=
"rv_home_member"
>
会员
</string>
<string
name=
"rv_home_buy_car"
>
购房车
</string>
<string
name=
"rv_home_buy_car"
>
购房车
</string>
<string
name=
"rv_home_title_hot_travle"
>
热门旅行
</string>
<string
name=
"rv_home_title_hot_travle"
>
热门旅行
</string>
...
...
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