Commit fe9628ae authored by 王雪伟's avatar 王雪伟

[提交人]:王雪伟

[提交简述] :小象省钱
[实现方案] :加入淘宝商品详情页
parent 10beb9c2
......@@ -228,7 +228,7 @@ public class MainActivity extends BaseActivity implements NavigationBottomView.N
@Override
public void onFailure(Throwable e, String code, String errorMsg) {
exitActivity();
}
});
}
......
......@@ -6,10 +6,10 @@
<item name="windowActionBar">false</item>
<item name="android:textColorPrimary">@color/color_000000</item>
<item name="windowNoTitle">true</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorPrimary</item>
<item name="android:windowBackground">@color/colorPrimary</item>
<item name="colorPrimary">@color/white</item>
<item name="colorPrimaryDark">@color/white</item>
<item name="colorAccent">@color/white</item>
<item name="android:windowBackground">@color/white</item>
</style>
</resources>
\ No newline at end of file
......@@ -8,4 +8,5 @@ package com.zxhl.cms.net.model.qy
class JgqQyEntity {
var brand: String? = ""
var sort: String? = ""
var icon: String? = ""
}
\ No newline at end of file
......@@ -203,6 +203,12 @@ interface RounterApi {
@RounterParam("brandUrl") brandUrl: String
): Intent
@RounterUri(Constant.scheme + "://zero_buy")
fun getIntentZeroBuyList(): Intent
@RounterUri(Constant.scheme + "://tb_goods_detail")
fun getIntentTbGoodsDetail(): Intent
@RounterUri(Constant.scheme + "://after_login")
fun getIntentAfterLogin(
@RounterParam("boxid") boxid: String,
......
......@@ -41,6 +41,28 @@ public class JumpUtils {
}
}
//零元购
public static void ZeroBuyJump() {
try {
Intent intent = RounterBus.getRounter(RounterApi.class).getIntentZeroBuyList();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
AppContext.get().startActivity(intent);
} catch (Exception e) {
Utils.showToast(AppContext.get(), "该版本暂不支持,请更新版本!");
}
}
//tb商品详情
public static void TbGoodsDetailJump() {
try {
Intent intent = RounterBus.getRounter(RounterApi.class).getIntentTbGoodsDetail();
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
AppContext.get().startActivity(intent);
} catch (Exception e) {
Utils.showToast(AppContext.get(), "该版本暂不支持,请更新版本!");
}
}
public static void AfterLoginJump(String boxid, String needprice, String type, String onePrice, String fivePrice, String newPeople, String page) {
try {
Intent intent = RounterBus.getRounter(RounterApi.class).getIntentAfterLogin(boxid, needprice, type, onePrice, fivePrice, newPeople, page);
......@@ -327,6 +349,7 @@ public class JumpUtils {
Utils.showToast(AppContext.get(), "该版本暂不支持,请更新版本!");
}
}
public static void CardVoucherJump() {
try {
Intent intent = RounterBus.getRounter(RounterApi.class).getIntentCardVoucher();
......@@ -336,6 +359,7 @@ public class JumpUtils {
Utils.showToast(AppContext.get(), "该版本暂不支持,请更新版本!");
}
}
public static void CardDetailJump() {
try {
Intent intent = RounterBus.getRounter(RounterApi.class).getIntentCardDetail();
......
......@@ -71,6 +71,32 @@
</intent-filter>
</activity>
<activity android:name=".activity.ZeroBuyListActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="zero_buy"
android:scheme="xxsq" />
</intent-filter>
</activity>
<activity
android:name=".activity.TbGoodsDetailActivity"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="tb_goods_detail"
android:scheme="xxsq" />
</intent-filter>
</activity>
</application>
......
package com.zxbw.modulemain.activity
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.zxbw.modulemain.R
import com.zxbw.modulemain.adapter.GoodsListAdapter
import com.zxhl.cms.AppContext
import com.zxhl.cms.common.base.BaseActivity
import com.zxhl.cms.utils.JumpUtils
import com.zxhl.cms.utils.OnRecycleItemClickListener
import kotlinx.android.synthetic.main.activity_layout_tb_goods_detail.*
import me.jessyan.autosize.utils.ScreenUtils
/**
* @author (wangXuewei)
* @datetime 2022-05-24 17:12 GMT+8
* @detail : 淘宝商品详情
*/
class TbGoodsDetailActivity : BaseActivity() {
private var mGoodsAdapter: GoodsListAdapter? = null;
override fun before() {
super.before()
setStatusBarBackground(AppContext.get().resources.getColor(R.color.transparent))
}
override fun layoutID(): Int {
return R.layout.activity_layout_tb_goods_detail
}
override fun init() {
var statusBarHeight = ScreenUtils.getStatusBarHeight()
if (statusBarHeight <= 0) {
statusBarHeight = 40;
}
id_tb_goods_detail_title_sys_bar_view.layoutParams.height = statusBarHeight
mGoodsAdapter = GoodsListAdapter(this,
OnRecycleItemClickListener<Any> { view, position, data ->
showToast("postion" + position)
JumpUtils.TbGoodsDetailJump()
})
id_rcl_recommend_goods_list?.layoutManager = LinearLayoutManager(this)
id_rcl_recommend_goods_list.adapter = mGoodsAdapter
id_img_close_btn?.setOnClickListener(this)
}
override fun onClick(v: View?) {
when (v) {
id_img_close_btn -> {
finish()
}
}
}
}
\ No newline at end of file
package com.zxbw.modulemain.activity
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.zxbw.modulemain.R
import com.zxbw.modulemain.adapter.GoodsListAdapter
import com.zxbw.modulemain.contract.ZeroBuyListContract
import com.zxbw.modulemain.presenter.ZeroBuyListPresenter
import com.zxhl.cms.AppContext
import com.zxhl.cms.common.base.BaseActivity
import com.zxhl.cms.utils.OnRecycleItemClickListener
import kotlinx.android.synthetic.main.activity_layout_zero_buy_list.*
/**
* @author (wangXuewei)
* @datetime 2022-05-24 14:08 GMT+8
* @detail :零元购列表
*/
class ZeroBuyListActivity : BaseActivity(), ZeroBuyListContract.View,
OnRecycleItemClickListener<Any> {
private var mPresenter: ZeroBuyListPresenter? = null
private var mAdapter: GoodsListAdapter? = null;
override fun layoutID(): Int {
return R.layout.activity_layout_zero_buy_list
}
override fun before() {
super.before()
setStatusBarBackground(AppContext.get().resources.getColor(R.color.transparent))
}
override fun onClick(v: View?) {
when (v) {
id_img_back -> {
finish()
}
}
}
override fun init() {
mPresenter = ZeroBuyListPresenter(this)
id_img_back?.setOnClickListener(this)
mAdapter = GoodsListAdapter(this, this)
id_rcl_zero_buy_list?.layoutManager = LinearLayoutManager(this)
id_rcl_zero_buy_list.adapter = mAdapter
id_zero_buy_refreshLayout.setOnRefreshListener{
mPresenter?.getZeroBuyList()
}
mPresenter?.getZeroBuyList()
}
override fun onItemClick(view: View?, position: Int, data: Any?) {
}
override fun setZeroBuyList(isRefresh: Boolean, result: List<Any>?) {
id_zero_buy_refreshLayout?.isRefreshing = false
}
}
\ No newline at end of file
......@@ -36,7 +36,7 @@ class JgqQyAdapter : BaseRecyclerAdapter<JgqQyEntity, JgqQyAdapter.ViewHolder> {
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val bean = mList[position]
Glide.with(mContext!!).load("https://t10.baidu.com/it/u=3105518379,1723849651&fm=58")
Glide.with(mContext!!).load(bean.icon)
.apply(RequestOptions.bitmapTransform(CircleCrop()))
.into(holder?.id_icon!!)
holder.id_name?.text = bean.brand
......
package com.zxbw.modulemain.contract
/**
* 推荐
*
*/
class ZeroBuyListContract {
interface View {
fun setZeroBuyList(isRefresh: Boolean, result: List<Any>?)
}
interface Presenter {
fun getZeroBuyList()
}
}
\ No newline at end of file
......@@ -37,17 +37,19 @@ class RecommendFragment : BaseFragment, HomeRecommendContract.View {
mJgqQyAdapter = JgqQyAdapter(activity,
OnRecycleItemClickListener<JgqQyEntity> { view, position, data ->
JumpUtils.RightsDetailJump(data.brand, "")
JumpUtils.RightsDetailJump(data.brand, data.icon)
})
mZeroBuyAdapter = ZeroBuyGoodsListAdapter(activity,
OnRecycleItemClickListener<Any> { view, position, data ->
showToast("零元购")
JumpUtils.ZeroBuyJump()
})
mGoodsAdapter = GoodsListAdapter(activity,
OnRecycleItemClickListener<Any> { view, position, data ->
showToast("postion" + position)
JumpUtils.TbGoodsDetailJump()
})
//金刚区权益
val gridLayoutManager = GridLayoutManager(activity, 3)
gridLayoutManager.orientation = LinearLayoutManager.HORIZONTAL
......@@ -60,6 +62,11 @@ class RecommendFragment : BaseFragment, HomeRecommendContract.View {
id_rcl_goods_list?.layoutManager = LinearLayoutManager(activity)
id_rcl_goods_list.adapter = mGoodsAdapter
id_ll_zero_buy_view.setOnClickListener {
JumpUtils.ZeroBuyJump()
}
mPresenter?.getQyCardList()
}
......
package com.zxbw.modulemain.presenter
import android.content.Context
import android.text.TextUtils
import android.util.Log
import com.zxbw.modulemain.contract.HomeRecommendContract
import com.zxbw.modulemain.contract.LoginContract
import com.zxbw.modulemain.contract.ZeroBuyListContract
import com.zxhl.cms.net.ApiClient
import com.zxhl.cms.net.RxSchedulers
import com.zxhl.cms.net.SettingPreference
import com.zxhl.cms.net.callback.BaseObserver
import com.zxhl.cms.net.model.qy.JgqQyEntity
import com.zxhl.cms.net.model.uc.UserInfo
import com.zxhl.cms.utils.EventUtils
import com.zxhl.cms.utils.UserDataUtils
/**
* 零元购
*/
class ZeroBuyListPresenter : ZeroBuyListContract.Presenter {
private val mView: ZeroBuyListContract.View
constructor(mView: ZeroBuyListContract.View) {
this.mView = mView
}
override fun getZeroBuyList() {
mView?.setZeroBuyList(false, null)
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#323233" />
<corners android:radius="6dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#918782" />
<corners android:radius="15dp" />
</shape>
\ No newline at end of file
......@@ -40,10 +40,11 @@
android:layout_width="42dp"
android:layout_height="42dp"
android:layout_below="@+id/id_img_back"
android:layout_marginLeft="35dp"
android:layout_marginStart="35dp"
android:layout_marginTop="45dp"
android:layout_marginRight="10dp"
android:background="@drawable/img_rights_logo_bg">
android:layout_marginEnd="10dp"
android:background="@drawable/img_rights_logo_bg"
android:gravity="center">
<ImageView
android:id="@+id/id_img_bread_logo"
......
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F6F6F6">
<View
android:id="@+id/id_tb_goods_detail_title_sys_bar_view"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@color/white" />
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/id_tb_goods_detail_title_sys_bar_view">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- 商品图片信息-->
<RelativeLayout
android:id="@+id/id_rl_top_view"
android:layout_width="match_parent"
android:layout_height="360dp"
android:background="@drawable/img_tb_goods_detail_title_bg">
<androidx.viewpager.widget.ViewPager
android:id="@+id/id_detail_top_viewpager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TextView
android:id="@+id/id_tv_detail_title"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_centerHorizontal="true"
android:gravity="center"
android:text="京东正品保障"
android:textColor="@color/white"
android:textSize="16sp" />
<TextView
android:id="@+id/id_tv_price_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/id_ll_price_view"
android:layout_marginLeft="16dp"
android:text="第二件仅:"
android:textColor="@color/color_333333"
android:textSize="14sp"
android:textStyle="bold" />
<LinearLayout
android:id="@+id/id_ll_price_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginLeft="20dp"
android:layout_marginBottom="19dp"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="¥ "
android:textColor="@color/color_333333"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/id_tv_discount_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="34.45"
android:textColor="@color/color_333333"
android:textSize="22sp"
android:textStyle="bold" />
</LinearLayout>
<TextView
android:id="@+id/id_tv_goods_desc"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="40dp"
android:gravity="center"
android:text="第2件半价 多仓发货"
android:textColor="@color/color_333333"
android:textSize="14sp" />
<TextView
android:id="@+id/id_tv_discount_desc"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:gravity="center"
android:text="第2件半价 多仓发货"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold" />
<TextView
android:id="@+id/id_tv_vp_index"
android:layout_width="wrap_content"
android:layout_height="22dp"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="16dp"
android:layout_marginBottom="10dp"
android:background="@drawable/shape_918782_r15"
android:gravity="center"
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:text="1/5"
android:textColor="@color/white"
android:textSize="14sp" />
</RelativeLayout>
<ImageView
android:id="@+id/id_img_close_btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginTop="24dp"
android:src="@drawable/img_tb_goods_detail_fanhui" />
<!-- 商品价格信息-->
<RelativeLayout
android:id="@+id/id_rl_price_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/id_rl_top_view"
android:background="@color/white">
<LinearLayout
android:id="@+id/id_ll_tb_price_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginTop="20dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/id_img_brand_logo"
android:layout_width="14dp"
android:layout_height="14dp"
android:layout_marginRight="6dp"
android:src="@drawable/img_tb_goods_detail_tm_logo" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="4dp"
android:text="¥"
android:textColor="#DA5C47"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/id_tv_tm_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="4dp"
android:text="68.9"
android:textColor="#DA5C47"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="天猫商城价"
android:textColor="#DA5C47"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/id_ll_xx_price_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/id_ll_tb_price_view"
android:layout_marginLeft="16dp"
android:layout_marginTop="5dp"
android:gravity="bottom"
android:orientation="horizontal">
<ImageView
android:id="@+id/id_img_xx_logo"
android:layout_width="14dp"
android:layout_height="14dp"
android:layout_marginRight="6dp"
android:layout_marginBottom="5dp"
android:src="@drawable/img_tb_goods_detail_xxsq_logo" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="4dp"
android:layout_marginBottom="2dp"
android:includeFontPadding="false"
android:text="¥"
android:textColor="@color/color_333333"
android:textSize="14sp"
android:textStyle="bold" />
<TextView
android:id="@+id/id_tv_xx_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="4dp"
android:includeFontPadding="false"
android:text="68.9"
android:textColor="@color/color_333333"
android:textSize="30sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="20dp"
android:layout_marginBottom="3dp"
android:background="@drawable/img_tb_goods_detail_xx_vip_bg"
android:gravity="center"
android:paddingLeft="5dp"
android:paddingRight="4dp"
android:text="黑钻到手价"
android:textColor="#F8E8CC"
android:textSize="11sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:id="@+id/id_ll_sale"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginTop="26dp"
android:layout_marginRight="16dp"
android:gravity="right"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="已售"
android:textColor="@color/color_999999"
android:textSize="12sp" />
<TextView
android:id="@+id/id_tv_sale_num"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textColor="@color/color_666666"
android:textSize="12sp" />
</LinearLayout>
<View
android:layout_width="1dp"
android:layout_height="30dp"
android:layout_marginTop="26dp"
android:layout_marginRight="10dp"
android:layout_toLeftOf="@+id/id_ll_sale"
android:background="#D8D8D8" />
<TextView
android:id="@+id/id_tv_goods_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/id_ll_xx_price_view"
android:layout_marginLeft="16dp"
android:layout_marginTop="10dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="10dp"
android:ellipsize="end"
android:maxLines="2"
android:text="商品名称 商品名称商品名称商商品名称商品名称商品名称商品名称商品名称商品名商品名商品名称商品名称商品名称商品名称商品名称商品名商品名称商品名商品名称商品名称商品名称商品名称商品名称商品名称商品名商品名称商品名商品名称称商品名商品名称品名称商品名称商品名称商品名商品名商品名称商品名称商品名称商品名称商品名称商品名商品名称商品名商品名称商品名称商品名称商品名称商品名称商品名称商品名商品名称商品名商品名称称商品名商品名称"
android:textColor="@color/color_333333"
android:textSize="16sp"
android:textStyle="bold" />
</RelativeLayout>
<!--VIP开通提示-->
<LinearLayout
android:id="@+id/id_ll_not_vip_view_tips"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_below="@id/id_rl_price_view"
android:layout_marginLeft="16dp"
android:layout_marginTop="14dp"
android:layout_marginRight="16dp"
android:background="@drawable/shape_323233_r6"
android:gravity="center_vertical"
android:paddingLeft="10dp"
android:paddingRight="10dp">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="4dp"
android:src="@drawable/icon_vip" />
<TextView
android:id="@+id/id_tv_not_vip_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="会员下单再返 ¥12.15 每单约返 10%"
android:textColor="#F8E8CC"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/img_tb_goods_detail_btn_bg"
android:gravity="center"
android:text="立即开通"
android:textColor="@color/color_333333"
android:textSize="12sp"
android:textStyle="bold" />
</LinearLayout>
<TextView
android:id="@+id/id_tv_recommend_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/id_ll_not_vip_view_tips"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:background="@drawable/img_tb_goods_detail_ts_bg"
android:gravity="center"
android:text="更多推荐"
android:textColor="@color/color_333333"
android:textSize="16sp"
android:textStyle="bold" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/id_rcl_recommend_goods_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/id_tv_recommend_desc"
android:layout_marginLeft="16dp"
android:layout_marginTop="10dp"
android:layout_marginRight="16dp" />
<View
android:layout_width="match_parent"
android:layout_height="90dp"
android:layout_below="@+id/id_rcl_recommend_goods_list" />
</RelativeLayout>
</androidx.core.widget.NestedScrollView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="17dp"
android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/id_tv_collection"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="8dp"
android:drawableTop="@drawable/img_tb_goods_detail_select"
android:text="收藏"
android:textColor="@color/color_333333"
android:textSize="10sp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="16dp"
android:background="@drawable/img_tb_goods_detail_bottom_btn"
android:gravity="center_vertical">
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="普通价购买"
android:textColor="@color/white"
android:textSize="10sp" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="left|bottom">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="¥"
android:textColor="@color/white"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="68.9"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold" />
</LinearLayout>
<TextView
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="普通价购买"
android:textColor="@color/color_333333"
android:textSize="10sp" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="left|bottom">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="¥"
android:textColor="@color/color_333333"
android:textSize="12sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="68.9"
android:textColor="@color/color_333333"
android:textSize="18sp"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#DD453C">
<ImageView
android:id="@+id/id_img_zero_bug_banner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="fitXY"
android:src="@drawable/img_zero_bug_banner_bg" />
<RelativeLayout
android:id="@+id/id_rl_title"
android:layout_width="match_parent"
android:layout_height="68dp">
<ImageView
android:id="@+id/id_img_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:padding="16dp"
android:src="@drawable/img_rights_fanhui" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="15dp"
android:text=""
android:textColor="@color/color_333333"
android:textSize="16sp"
android:textStyle="bold" />
</RelativeLayout>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/id_zero_buy_refreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_below="@id/id_img_zero_bug_banner">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/id_rcl_zero_buy_list"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
</RelativeLayout>
......@@ -21,6 +21,7 @@
android:layout_height="wrap_content" />
<LinearLayout
android:id="@+id/id_ll_zero_buy_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
......
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