Commit 12c51d15 authored by jianglx's avatar jianglx

2020-3-6 首页改版 该发现入口为会员入口

parent 654c527c
...@@ -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 llCarDiscovery; LinearLayout llMemeber;
@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)
......
...@@ -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>
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment