Commit 29607acf authored by linfeng's avatar linfeng

bug修复

parent 72d1ceac
...@@ -7,8 +7,8 @@ android { ...@@ -7,8 +7,8 @@ android {
applicationId "com.test.rv" applicationId "com.test.rv"
minSdkVersion rootProject.ext.minSdkVersion minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 102 versionCode 101
versionName "1.0.2" versionName "1.0.1"
multiDexEnabled true multiDexEnabled true
//新版Gradle 是 implementation 为了兼容compile,写上这句话 //新版Gradle 是 implementation 为了兼容compile,写上这句话
......
...@@ -22,7 +22,7 @@ public interface RvFrameConfig extends RvFrameConstant { ...@@ -22,7 +22,7 @@ public interface RvFrameConfig extends RvFrameConstant {
String VEHICLE_CAMPLIST = HOST + "/api/campsite/"; String VEHICLE_CAMPLIST = HOST + "/api/campsite/";
String APP_ID = "wx9c9d978e5698d00f";//微信注册ID String APP_ID = "wx9ed5e51251cf7c61";//微信注册ID
class RvFrameInfo { class RvFrameInfo {
public static int TYPE_LOGIN = 0;//登录类型0、token过期、1、租车 public static int TYPE_LOGIN = 0;//登录类型0、token过期、1、租车
......
...@@ -145,7 +145,6 @@ public class PickerPresenter extends CommonPresenter { ...@@ -145,7 +145,6 @@ public class PickerPresenter extends CommonPresenter {
} }
/** /**
* 获取图片存储地址 * 获取图片存储地址
* @return * @return
...@@ -185,7 +184,6 @@ public class PickerPresenter extends CommonPresenter { ...@@ -185,7 +184,6 @@ public class PickerPresenter extends CommonPresenter {
} }
public int calculateInSampleSize(BitmapFactory.Options options, public int calculateInSampleSize(BitmapFactory.Options options,
int reqWidth, int reqHeight) { int reqWidth, int reqHeight) {
final int height = options.outHeight; final int height = options.outHeight;
......
...@@ -56,7 +56,6 @@ import com.rv.home.R2; ...@@ -56,7 +56,6 @@ import com.rv.home.R2;
import com.rv.home.rv.module.ApiConfig; import com.rv.home.rv.module.ApiConfig;
import com.rv.home.rv.module.basic.presenter.CommonPresenter; import com.rv.home.rv.module.basic.presenter.CommonPresenter;
import com.rv.home.rv.module.ui.main.home.adapter.HotCarTypeAdapter; import com.rv.home.rv.module.ui.main.home.adapter.HotCarTypeAdapter;
import com.rv.home.rv.module.ui.main.home.adapter.RVEnthusiastAdapter;
import com.rv.home.rv.module.ui.main.home.adapter.RVTourListAdapter; import com.rv.home.rv.module.ui.main.home.adapter.RVTourListAdapter;
import com.rv.home.rv.module.ui.main.home.adapter.RVTourListLabelAdapter; import com.rv.home.rv.module.ui.main.home.adapter.RVTourListLabelAdapter;
import com.rv.home.rv.module.ui.main.home.adapter.SelectedEventsAdapter; import com.rv.home.rv.module.ui.main.home.adapter.SelectedEventsAdapter;
...@@ -131,8 +130,8 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser ...@@ -131,8 +130,8 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
RecyclerView recyclerViewRvtourlist; RecyclerView recyclerViewRvtourlist;
@BindView(R2.id.recyclerView_rvtourlist_title) @BindView(R2.id.recyclerView_rvtourlist_title)
RecyclerView recyclerViewRvtourlistTitle; RecyclerView recyclerViewRvtourlistTitle;
@BindView(R2.id.recyclerView_rv_enthusiast) // @BindView(R2.id.recyclerView_rv_enthusiast)
RecyclerView recyclerViewRvEnthusiast; // RecyclerView recyclerViewRvEnthusiast;
@BindView(R2.id.travel_city_text) @BindView(R2.id.travel_city_text)
TextView travelCityText; TextView travelCityText;
@BindView(R2.id.travel_city_layout) @BindView(R2.id.travel_city_layout)
...@@ -177,6 +176,12 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser ...@@ -177,6 +176,12 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
LinearLayout llItemHotEntertainmentCamp; LinearLayout llItemHotEntertainmentCamp;
@BindView(R2.id.ll_item_hot_car_rental) @BindView(R2.id.ll_item_hot_car_rental)
LinearLayout llItemHotCarRental; LinearLayout llItemHotCarRental;
@BindView(R2.id.tv_hot_rvtour_hint)
TextView tvHotRvtourHint;
@BindView(R2.id.tv_hot_entertainment_hint)
TextView tvHotEntertainmentHint;
@BindView(R2.id.tv_hot_car_rental_hint)
TextView tvHotCarRentalHint;
private ArrayList<String> images = new ArrayList<>(); //图片(默认采用网络地址) private ArrayList<String> images = new ArrayList<>(); //图片(默认采用网络地址)
...@@ -221,7 +226,7 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser ...@@ -221,7 +226,7 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
private HotCarTypeAdapter mAdapter; private HotCarTypeAdapter mAdapter;
private SelectedEventsAdapter mActivityAdapter; private SelectedEventsAdapter mActivityAdapter;
private RVEnthusiastAdapter mRvEnthusiast; // private RVEnthusiastAdapter mRvEnthusiast;
private RVTourListAdapter mRvTourAdapter; private RVTourListAdapter mRvTourAdapter;
private RVTourListLabelAdapter mRvTourLabelAdapter; private RVTourListLabelAdapter mRvTourLabelAdapter;
...@@ -257,7 +262,8 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser ...@@ -257,7 +262,8 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
llItemHotRvtour.setSelected(true); llItemHotRvtour.setSelected(true);
tvItemRvTour.setSelected(true); tvItemRvTour.setSelected(true);
tvHotRvtour.setTextColor(getResources().getColor(R.color.text_Main)); tvHotRvtourHint.setTextColor(getResources().getColor(R.color.colorWrite));
tvHotRvtour.setTextColor(getResources().getColor(R.color.colorWrite));
tvHotRvtour.getPaint().setFakeBoldText(true); tvHotRvtour.getPaint().setFakeBoldText(true);
ViewTreeObserver observer = rlItemLayout.getViewTreeObserver(); ViewTreeObserver observer = rlItemLayout.getViewTreeObserver();
...@@ -265,9 +271,8 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser ...@@ -265,9 +271,8 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
@Override @Override
public void onGlobalLayout() { public void onGlobalLayout() {
rlItemLayout.getViewTreeObserver().removeGlobalOnLayoutListener(this); rlItemLayout.getViewTreeObserver().removeGlobalOnLayoutListener(this);
height = rlItemLayout.getHeight(); height = rlItemLayout.getHeight()-120;
rlItemLayout.getWidth(); rlItemLayout.getWidth();
scrollview.setScrollViewListener(HomeFragment.this); scrollview.setScrollViewListener(HomeFragment.this);
} }
}); });
...@@ -287,12 +292,12 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser ...@@ -287,12 +292,12 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
recyclerViewActivity.setAdapter(mActivityAdapter); recyclerViewActivity.setAdapter(mActivityAdapter);
//房车发烧友 //房车发烧友
mRvEnthusiast = new RVEnthusiastAdapter(); // mRvEnthusiast = new RVEnthusiastAdapter();
recyclerViewRvEnthusiast.setLayoutManager(new GridLayoutManager(getContext(), 2)); // recyclerViewRvEnthusiast.setLayoutManager(new GridLayoutManager(getContext(), 2));
// recyclerViewRvEnthusiast.addItemDecoration(new AbSpacesItemDecoration(10));// 分割线。 // recyclerViewRvEnthusiast.addItemDecoration(new AbSpacesItemDecoration(10));// 分割线。
recyclerViewRvEnthusiast.addItemDecoration(new flow(10)); // recyclerViewRvEnthusiast.addItemDecoration(new flow(10));
recyclerViewRvEnthusiast.setNestedScrollingEnabled(false); // recyclerViewRvEnthusiast.setNestedScrollingEnabled(false);
recyclerViewRvEnthusiast.setAdapter(mRvEnthusiast); // recyclerViewRvEnthusiast.setAdapter(mRvEnthusiast);
//房车游榜单 //房车游榜单
mRvTourAdapter = new RVTourListAdapter(); mRvTourAdapter = new RVTourListAdapter();
...@@ -406,10 +411,10 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser ...@@ -406,10 +411,10 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
@Override @Override
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
super.getItemOffsets(outRect,view,parent,state); super.getItemOffsets(outRect, view, parent, state);
if (parent.getChildAdapterPosition(view) % 2 ==0){ if (parent.getChildAdapterPosition(view) % 2 == 0) {
outRect.top = 40; outRect.top = 40;
}else { } else {
outRect.top = space; outRect.top = space;
} }
...@@ -426,7 +431,7 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser ...@@ -426,7 +431,7 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
list.add("https://xxtest.upyuns.com/image/app/ENRq748FQTq86R8R77J88YEWhnPeZ3.png"); list.add("https://xxtest.upyuns.com/image/app/ENRq748FQTq86R8R77J88YEWhnPeZ3.png");
} }
mActivityAdapter.setNewData(list); mActivityAdapter.setNewData(list);
mRvEnthusiast.setNewData(list); // mRvEnthusiast.setNewData(list);
} }
@Override @Override
...@@ -654,9 +659,11 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser ...@@ -654,9 +659,11 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
llItemHotRvtour.setSelected(true); llItemHotRvtour.setSelected(true);
llItemHotEntertainmentCamp.setSelected(false); llItemHotEntertainmentCamp.setSelected(false);
llItemHotCarRental.setSelected(false); llItemHotCarRental.setSelected(false);
tvHotRvtourHint.setTextColor(getResources().getColor(R.color.colorWrite));
tvHotRvtour.setTextColor(getResources().getColor(R.color.text_Main)); tvHotRvtour.setTextColor(getResources().getColor(R.color.colorWrite));
tvHotEntertainmentHint.setTextColor(getResources().getColor(R.color.textGray));
tvHotEntertainmentCamp.setTextColor(getResources().getColor(R.color.textGray)); tvHotEntertainmentCamp.setTextColor(getResources().getColor(R.color.textGray));
tvHotCarRentalHint.setTextColor(getResources().getColor(R.color.textGray));
tvHotCarRental.setTextColor(getResources().getColor(R.color.textGray)); tvHotCarRental.setTextColor(getResources().getColor(R.color.textGray));
tvHotRvtour.getPaint().setFakeBoldText(true); tvHotRvtour.getPaint().setFakeBoldText(true);
...@@ -672,8 +679,11 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser ...@@ -672,8 +679,11 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
llItemHotRvtour.setSelected(false); llItemHotRvtour.setSelected(false);
llItemHotEntertainmentCamp.setSelected(true); llItemHotEntertainmentCamp.setSelected(true);
llItemHotCarRental.setSelected(false); llItemHotCarRental.setSelected(false);
tvHotRvtourHint.setTextColor(getResources().getColor(R.color.textGray));
tvHotRvtour.setTextColor(getResources().getColor(R.color.textGray)); tvHotRvtour.setTextColor(getResources().getColor(R.color.textGray));
tvHotEntertainmentCamp.setTextColor(getResources().getColor(R.color.text_Main)); tvHotEntertainmentHint.setTextColor(getResources().getColor(R.color.colorWrite));
tvHotEntertainmentCamp.setTextColor(getResources().getColor(R.color.colorWrite));
tvHotCarRentalHint.setTextColor(getResources().getColor(R.color.textGray));
tvHotCarRental.setTextColor(getResources().getColor(R.color.textGray)); tvHotCarRental.setTextColor(getResources().getColor(R.color.textGray));
tvHotRvtour.getPaint().setFakeBoldText(false); tvHotRvtour.getPaint().setFakeBoldText(false);
...@@ -688,9 +698,12 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser ...@@ -688,9 +698,12 @@ public class HomeFragment extends BaseFragment<CommonPresenter> implements Obser
llItemHotRvtour.setSelected(false); llItemHotRvtour.setSelected(false);
llItemHotEntertainmentCamp.setSelected(false); llItemHotEntertainmentCamp.setSelected(false);
llItemHotCarRental.setSelected(true); llItemHotCarRental.setSelected(true);
tvHotRvtourHint.setTextColor(getResources().getColor(R.color.textGray));
tvHotRvtour.setTextColor(getResources().getColor(R.color.textGray)); tvHotRvtour.setTextColor(getResources().getColor(R.color.textGray));
tvHotEntertainmentHint.setTextColor(getResources().getColor(R.color.textGray));
tvHotEntertainmentCamp.setTextColor(getResources().getColor(R.color.textGray)); tvHotEntertainmentCamp.setTextColor(getResources().getColor(R.color.textGray));
tvHotCarRental.setTextColor(getResources().getColor(R.color.text_Main)); tvHotCarRentalHint.setTextColor(getResources().getColor(R.color.colorWrite));
tvHotCarRental.setTextColor(getResources().getColor(R.color.colorWrite));
tvHotRvtour.getPaint().setFakeBoldText(false); tvHotRvtour.getPaint().setFakeBoldText(false);
tvHotEntertainmentCamp.getPaint().setFakeBoldText(false); tvHotEntertainmentCamp.getPaint().setFakeBoldText(false);
......
...@@ -14,9 +14,9 @@ import com.ruiwenliu.wrapper.base.BaseStatusActivity; ...@@ -14,9 +14,9 @@ import com.ruiwenliu.wrapper.base.BaseStatusActivity;
import com.ruiwenliu.wrapper.weight.TitleView; import com.ruiwenliu.wrapper.weight.TitleView;
import com.rv.home.R; import com.rv.home.R;
import com.rv.home.R2; import com.rv.home.R2;
import com.rv.home.rv.module.ApiConfig;
import com.rv.home.rv.module.basic.presenter.PickerPresenter; import com.rv.home.rv.module.basic.presenter.PickerPresenter;
import butterknife.BindView; import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick; import butterknife.OnClick;
/** /**
...@@ -41,6 +41,8 @@ public class MemberOrderDetailsActivity extends BaseStatusActivity<PickerPresent ...@@ -41,6 +41,8 @@ public class MemberOrderDetailsActivity extends BaseStatusActivity<PickerPresent
@Override @Override
protected void initView(Bundle savedInstanceState, TitleView titleView, Intent intent) { protected void initView(Bundle savedInstanceState, TitleView titleView, Intent intent) {
showTitle(false); showTitle(false);
// webUrl = ApiConfig.HTTP_URL_CAR_TYPE_TRAVELORDERDETAIL + "?no=" + no;
} }
@Override @Override
......
...@@ -112,7 +112,6 @@ public class TravelOrderDetailsActivity extends BaseStatusActivity<PickerPresent ...@@ -112,7 +112,6 @@ public class TravelOrderDetailsActivity extends BaseStatusActivity<PickerPresent
} }
// mWebView.addJavascriptInterface(new AndroidJs(),"AndroidJs"); // mWebView.addJavascriptInterface(new AndroidJs(),"AndroidJs");
mWebView.destroy();// 生命周期销毁 mWebView.destroy();// 生命周期销毁
} }
......
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
<ImageView <ImageView
android:layout_width="@dimen/size_15" android:layout_width="@dimen/size_15"
android:layout_height="@dimen/size_15" android:layout_height="@dimen/size_15"
android:padding="@dimen/size_1"
android:src="@drawable/aa_icon_like" /> android:src="@drawable/aa_icon_like" />
<TextView <TextView
......
...@@ -44,4 +44,6 @@ dependencies { ...@@ -44,4 +44,6 @@ dependencies {
implementation 'top.zibin:Luban:1.1.3' implementation 'top.zibin:Luban:1.1.3'
implementation project(':plugin_member') implementation project(':plugin_member')
api project(':plugin_version') api project(':plugin_version')
//动态权限申请库
implementation 'pub.devrel:easypermissions:1.3.0'
} }
...@@ -45,6 +45,7 @@ import io.reactivex.functions.Consumer; ...@@ -45,6 +45,7 @@ import io.reactivex.functions.Consumer;
import okhttp3.MediaType; import okhttp3.MediaType;
import okhttp3.MultipartBody; import okhttp3.MultipartBody;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import pub.devrel.easypermissions.EasyPermissions;
import top.zibin.luban.Luban; import top.zibin.luban.Luban;
import top.zibin.luban.OnCompressListener; import top.zibin.luban.OnCompressListener;
...@@ -228,6 +229,8 @@ public class IDCardCertificationActivity extends BaseStatusActivity<PickerPresen ...@@ -228,6 +229,8 @@ public class IDCardCertificationActivity extends BaseStatusActivity<PickerPresen
* *
* @param type 1、相机2、相册 * @param type 1、相机2、相册
*/ */
@SuppressLint("CheckResult") @SuppressLint("CheckResult")
private void processPicker(final int type) { private void processPicker(final int type) {
/** /**
......
...@@ -7,111 +7,32 @@ ...@@ -7,111 +7,32 @@
<LinearLayout <LinearLayout
android:background="@color/colorYellow"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/size_50" android:layout_height="@dimen/size_200"
android:background="@color/gray_FFB74B"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <RelativeLayout
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content">
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/tv_calendar_inday"
android:text="17-12-05"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/colorMain"
android:textSize="@dimen/text_14" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView <ImageView
android:id="@+id/tv_calendar_inweek"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="@color/colorMain" android:layout_gravity="right"
android:textSize="@dimen/text_12" android:layout_alignParentRight="true"
android:text="周一" /> android:src="@drawable/common_icon_close_white" />
<TextView </RelativeLayout>
android:id="@+id/tv_calendar_intime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/colorMain"
android:textSize="@dimen/text_12"
android:layout_marginLeft="@dimen/size_5"
android:text="12:00" />
</LinearLayout>
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content">
android:layout_weight="1"
android:gravity="center">
<TextView
android:id="@+id/tv_calendar_night"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="366"
android:textColor="@color/colorMain"
android:textSize="@dimen/text_14" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="天"
android:textColor="@color/colorMain"
android:textSize="@dimen/text_14" />
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/tv_calendar_outday"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/colorMain"
android:textSize="@dimen/text_14"
android:text="17-12-05" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_calendar_outweek"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/colorMain"
android:textSize="@dimen/text_12"
android:text="周一" />
<TextView
android:id="@+id/tv_calendar_outtime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/colorMain"
android:textSize="@dimen/text_12"
android:layout_marginLeft="@dimen/size_5"
android:text="12:00" />
</LinearLayout>
</LinearLayout>
</LinearLayout> </LinearLayout>
<include layout="@layout/common_line" /> <include layout="@layout/common_line" />
......
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