Commit 6b4f1835 by mReturn

sale

parent 7a9d5238
Showing with 715 additions and 22 deletions
......@@ -74,6 +74,8 @@ dependencies {
api 'cn.jzvd:jiaozivideoplayer:7.1.0'
api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.35'
api 'com.badoo.mobile:android-weak-handler:1.1'
api 'com.youth.banner:banner:1.4.10'
// api 'tv.danmaku.ijk.media:ijkplayer-java:0.8.4'
// api 'tv.danmaku.ijk.media:ijkplayer-armv7a:0.8.4'
// api 'tv.danmaku.ijk.media:ijkplayer-x86:0.8.4'
......
......@@ -304,7 +304,8 @@ public class LRecyclerView<M, B> extends FrameLayout {
public void setPresenter(BaseListPresenter presenter) {
mPresenter = presenter;
mCoreAdapter.setPresenter(presenter);
if (mCoreAdapter != null)
mCoreAdapter.setPresenter(presenter);
}
/**
......
......@@ -789,5 +789,34 @@ C) 在甲方使用大鱼平å°æœåŠ¡è¿‡ç¨‹ä¸­äº§ç”Ÿçš„业务数æ®ï¼Œå®¢æˆ·æ•°æ
<string name="sale_done">已完成</string>
<string name="input_sale_product">输入您要找的商品</string>
<string name="input_sale_order">查找销售订单</string>
<string name="brand_model">品名型号:</string>
<string name="sale_single_price">销售单价:</string>
<string name="commision_str">提成:</string>
<string name="special_collect">重点收藏</string>
<string name="un_collect">取消收藏</string>
<string name="share_recommend">推荐分享</string>
<string name="sale_order_price">订单金额:</string>
<string name="sale_commision">销售提成:</string>
<string name="sale_company_name">企业/客户名称:</string>
<string name="sale_order_date">下单日期:</string>
<string name="sale_order_date2">完成日期:</string>
<string name="sale_order_status">订单状态:</string>
<string name="goods_instruction">商品简介</string>
<string name="sale_instruction">销售指南</string>
<string name="goods_model">商品名称型号:</string>
<string name="goods_company">商品所属商家:</string>
<string name="goods_pn">商品编号PN:</string>
<string name="goods_single_price">商品销售单价:</string>
<string name="goods_desc">主要功能简介:</string>
<string name="goods_video">商品展示视频:</string>
<string name="advice_seller">咨询商家</string>
<string name="share_recommend_now">马上分享推荐给客户</string>
<string name="sale_agent_bonus">销售代奖金:</string>
<string name="goods_apply_scene">商品适用场景:</string>
<string name="target_customer_face">目标客户画像:</string>
<string name="sale_main_point">销售主打卖点:</string>
</resources>
......@@ -13,6 +13,28 @@
<item name="android:windowIsTranslucent">true</item>
</style>
<style name="sale_linearlayout">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginTop">5dp</item>
<item name="android:layout_marginRight">15dp</item>
<item name="android:orientation">horizontal</item>
</style>
<style name="sale_item_text">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:maxLines">1</item>
<item name="android:ellipsize">end</item>
<item name="android:textColor">@color/cl_home_title_text_color</item>
<item name="android:textSize">@dimen/size_login_hint_text</item>
</style>
<style name="sale_item_text2" parent="sale_item_text">
<item name="android:layout_marginLeft">@dimen/size_order_item_tooltext_ml</item>
</style>
<style name="title">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">@dimen/size_main_title</item>
......
......@@ -179,6 +179,8 @@ public class HomeOrderFragment extends BaseFragment<HomeOrderPresenter, Fragment
}
});
mPresenter.getTabNum(0);
}
......
......@@ -5,6 +5,9 @@
android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true">
<activity android:name=".ui.activity.ProductDetailActivity"
android:screenOrientation="portrait"
/>
</application>
</manifest>
\ No newline at end of file
package com.bigfish.salecenter.adapter;
import com.bigfish.salecenter.R;
import com.bigfish.salecenter.databinding.ItemSaleOrderBinding;
import com.dayu.base.ui.adapter.CoreAdapter;
/**
* Created by mReturn
* on 2020/2/13
**/
public class SaleOrderAdapter extends CoreAdapter<String,ItemSaleOrderBinding> {
int type;
public SaleOrderAdapter(boolean needFoot, int type) {
super(needFoot);
this.type = type;
}
@Override
protected void onBind(ItemSaleOrderBinding holder, String item, int position) {
super.onBind(holder, item, position);
holder.tvBrandModel.setText(item);
holder.tvDateDesc.setText(type == 1?mContext.getString(R.string.sale_order_date):mContext.getString(R.string.sale_order_date2));
}
}
package com.bigfish.salecenter.adapter;
import com.bigfish.salecenter.databinding.ItemSaleProductBinding;
import com.dayu.base.ui.adapter.CoreAdapter;
/**
* Created by mReturn
* on 2020/2/13
**/
public class SaleProductAdapter extends CoreAdapter<String,ItemSaleProductBinding> {
public SaleProductAdapter(boolean needFoot) {
super(needFoot);
}
@Override
protected void onBind(ItemSaleProductBinding holder, String item, int position) {
super.onBind(holder, item, position);
holder.tvBrandModel.setText(item);
}
}
......@@ -7,6 +7,9 @@ import com.dayu.event.UserInfo;
import com.dayu.utils.ToastUtils;
import com.dayu.utils.UserManager;
import java.util.ArrayList;
import java.util.List;
/**
* Created by mReturn
* on 2020/2/12
......@@ -15,6 +18,7 @@ public class SaleOrderPresent extends SaleOrderContract.Presenter {
private int mPage;
private int mUserId;
private int type; //1.销售中 2.已完成
private ObservableField<Object> datas = new ObservableField<>();
@Override
public void onAttached() {
......@@ -24,7 +28,7 @@ public class SaleOrderPresent extends SaleOrderContract.Presenter {
@Override
public ObservableField<Object> getSourceDatas() {
return null;
return datas;
}
public void setType(int type) {
......@@ -40,6 +44,13 @@ public class SaleOrderPresent extends SaleOrderContract.Presenter {
} else {
ToastUtils.showShortToast("sale done");
}
//test data
List<String> items = new ArrayList<>();
for (int i=0;i<10;i++){
items.add("order item-"+i+"-"+type);
}
datas.set(items);
}
@Override
......
......@@ -4,9 +4,13 @@ import android.databinding.ObservableField;
import com.dayu.common.Constants;
import com.dayu.event.UserInfo;
import com.dayu.utils.ProgressUtil;
import com.dayu.utils.ToastUtils;
import com.dayu.utils.UserManager;
import java.util.ArrayList;
import java.util.List;
/**
* Created by mReturn
* on 2020/2/12
......@@ -15,6 +19,7 @@ public class SaleProductPresent extends SaleProductContract.Presenter {
private int mPage;
private int mUserId;
private int type; //1.商品 2.收藏
private ObservableField<Object> datas = new ObservableField<>();
@Override
public void onAttached() {
......@@ -24,7 +29,7 @@ public class SaleProductPresent extends SaleProductContract.Presenter {
@Override
public ObservableField<Object> getSourceDatas() {
return null;
return datas;
}
public void setType(int type) {
......@@ -40,6 +45,13 @@ public class SaleProductPresent extends SaleProductContract.Presenter {
} else {
ToastUtils.showShortToast("collect");
}
//test data
List<String> items = new ArrayList<>();
for (int i=0;i<10;i++){
items.add("product item-"+i+"-"+type);
}
datas.set(items);
}
@Override
......
package com.bigfish.salecenter.ui.activity;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import com.bigfish.salecenter.R;
import com.bigfish.salecenter.databinding.ActivityProductDetailsBinding;
import com.bigfish.salecenter.ui.fragment.ProductInstructionFragment;
import com.bigfish.salecenter.ui.fragment.SaleInstructionFragment;
import com.dayu.base.ui.activity.BaseActivity;
import com.dayu.base.ui.presenter.SImplePresenter;
import java.util.ArrayList;
import cn.jzvd.JzvdStd;
/**
* Created by mReturn
* on 2020/2/13
**/
public class ProductDetailActivity extends BaseActivity<SImplePresenter,ActivityProductDetailsBinding> {
private FragmentManager mFragmentManger;
private ArrayList<Fragment> mFragments = new ArrayList<>();
private int mPosition;
@Override
public void setPresenter() {
}
@Override
public int getLayoutId() {
return R.layout.activity_product_details;
}
@Override
public void initView() {
mFragments.add(ProductInstructionFragment.newInstance());
mFragments.add(SaleInstructionFragment.newInstance());
initBtn();
addFragment();
}
public void initBtn() {
mBind.titleBack.setOnClickListener(v -> dumpBack());
mBind.btnGoods.setSelected(true);
mBind.btnGoods.setTextColor(getResources().getColor(R.color.white));
mBind.btnGoods.setOnClickListener((view) -> {
reSelected();
mBind.btnGoods.setSelected(true);
mBind.btnGoods.setTextColor(getResources().getColor(R.color.white));
showHideFragment(0, mPosition);
});
mBind.btnSale.setOnClickListener((view) -> {
reSelected();
mBind.btnSale.setSelected(true);
mBind.btnSale.setTextColor(getResources().getColor(R.color.white));
showHideFragment(1, mPosition);
});
}
public void addFragment() {
mFragmentManger = getSupportFragmentManager();
FragmentTransaction transaction = mFragmentManger.beginTransaction()
.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
for (int i = 0; i < mFragments.size(); i++) {
Fragment fragment = mFragments.get(i);
transaction.add(R.id.fl_container, fragment);
transaction.hide(fragment);
}
mPosition = 0;
transaction.show(mFragments.get(mPosition));
transaction.commit();
}
private void reSelected() {
mBind.btnGoods.setSelected(false);
mBind.btnSale.setSelected(false);
mBind.btnGoods.setTextColor(getResources().getColor(R.color.cl_home_button));
mBind.btnSale.setTextColor(getResources().getColor(R.color.cl_home_button));
}
private void showHideFragment(int showPosition, int hidePosition) {
if (showPosition == hidePosition) return;
JzvdStd.goOnPlayOnPause();
mFragmentManger.beginTransaction()
.show(mFragments.get(showPosition))
.hide(mFragments.get(hidePosition))
.commit();
mPosition = showPosition;
}
}
package com.bigfish.salecenter.ui.fragment;
import android.os.Bundle;
import com.bigfish.salecenter.R;
import com.bigfish.salecenter.databinding.FragmentProductInstructionBinding;
import com.dayu.base.ui.fragment.BaseFragment;
import com.dayu.base.ui.presenter.SImplePresenter;
/**
* Created by mReturn
* on 2020/2/13
**/
public class ProductInstructionFragment extends BaseFragment<SImplePresenter,FragmentProductInstructionBinding> {
public static ProductInstructionFragment newInstance() {
Bundle args = new Bundle();
ProductInstructionFragment fragment = new ProductInstructionFragment();
fragment.setArguments(args);
return fragment;
}
@Override
public void setPresenter() {
}
@Override
public void initView() {
}
@Override
public int getLayoutId() {
return R.layout.fragment_product_instruction;
}
}
package com.bigfish.salecenter.ui.fragment;
import android.os.Bundle;
import com.bigfish.salecenter.R;
import com.bigfish.salecenter.databinding.FragmentProductInstructionBinding;
import com.bigfish.salecenter.databinding.FragmentSaleInstructionBinding;
import com.dayu.base.ui.fragment.BaseFragment;
import com.dayu.base.ui.presenter.SImplePresenter;
/**
* Created by mReturn
* on 2020/2/13
**/
public class SaleInstructionFragment extends BaseFragment<SImplePresenter, FragmentSaleInstructionBinding> {
public static SaleInstructionFragment newInstance() {
Bundle args = new Bundle();
SaleInstructionFragment fragment = new SaleInstructionFragment();
fragment.setArguments(args);
return fragment;
}
@Override
public void setPresenter() {
}
@Override
public void initView() {
}
@Override
public int getLayoutId() {
return R.layout.fragment_sale_instruction;
}
}
......@@ -3,7 +3,10 @@ package com.bigfish.salecenter.ui.fragment;
import android.os.Bundle;
import com.bigfish.salecenter.R;
import com.bigfish.salecenter.adapter.SaleOrderAdapter;
import com.bigfish.salecenter.adapter.SaleProductAdapter;
import com.bigfish.salecenter.databinding.FragmentCommonSaleBinding;
import com.bigfish.salecenter.presenter.saleorder.SaleOrderPresent;
import com.bigfish.salecenter.presenter.saleproduct.SaleProductPresent;
import com.dayu.base.ui.fragment.BaseFragment;
......@@ -11,8 +14,9 @@ import com.dayu.base.ui.fragment.BaseFragment;
* Created by mReturn
* on 2020/2/12
**/
public class SaleOrderFragment extends BaseFragment<SaleProductPresent,FragmentCommonSaleBinding> {
public class SaleOrderFragment extends BaseFragment<SaleOrderPresent,FragmentCommonSaleBinding> {
private int type; //1.销售中 2.已完成
SaleOrderAdapter mAdapter;
public static SaleOrderFragment newInstance(int type) {
Bundle args = new Bundle();
......@@ -28,11 +32,23 @@ public class SaleOrderFragment extends BaseFragment<SaleProductPresent,FragmentC
}
@Override
protected void lazyLoad() {
super.lazyLoad();
// mPresenter.refresh();
}
@Override
public void initView() {
Bundle bundle = getArguments();
type = bundle.getInt("type");
mPresenter.setType(type);
mBind.edtSeacher.setHint(mActivity.getString(R.string.input_sale_order)+type);
mAdapter = new SaleOrderAdapter(true,type);
mAdapter.setViewType(R.layout.item_sale_order);
mBind.recyclerView.setAdapter(mAdapter);
mPresenter.refresh();
}
@Override
......
package com.bigfish.salecenter.ui.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import com.bigfish.salecenter.R;
import com.bigfish.salecenter.adapter.SaleProductAdapter;
import com.bigfish.salecenter.databinding.FragmentCommonSaleBinding;
import com.bigfish.salecenter.presenter.saleproduct.SaleProductPresent;
import com.bigfish.salecenter.ui.activity.ProductDetailActivity;
import com.dayu.base.ui.fragment.BaseFragment;
import com.dayu.utils.ToastUtils;
import com.dayu.widgets.listener.OnItemClickListener;
import java.util.ArrayList;
import java.util.List;
/**
* Created by mReturn
......@@ -14,6 +23,8 @@ import com.dayu.base.ui.fragment.BaseFragment;
public class SaleProductFragment extends BaseFragment<SaleProductPresent,FragmentCommonSaleBinding> {
private int type; //1.商品 2.收藏
SaleProductAdapter mAdapter;
public static SaleProductFragment newInstance(int type) {
Bundle args = new Bundle();
args.putInt("type",type);
......@@ -27,12 +38,27 @@ public class SaleProductFragment extends BaseFragment<SaleProductPresent,Fragmen
mBind.setPresenter(mPresenter);
}
@Override
public void initView() {
Bundle bundle = getArguments();
type = bundle.getInt("type");
mPresenter.setType(type);
mBind.edtSeacher.setHint(mActivity.getString(R.string.input_sale_product)+type);
mAdapter = new SaleProductAdapter(true);
mAdapter.setViewType(R.layout.item_sale_product);
mBind.recyclerView.setAdapter(mAdapter);
mPresenter.refresh();
mBind.recyclerView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void OnItemClick(Object item, Object bind) {
ToastUtils.showShortToast("to product detail");
startActivity(new Intent(mActivity,ProductDetailActivity.class));
}
});
}
@Override
......
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:paddingRight="8dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/title_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingLeft="15dp"
android:paddingRight="15dp"
android:src="@drawable/back_btn_normal" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<Button
android:id="@+id/btn_goods"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="35dp"
android:background="@drawable/detail_center_selector"
android:gravity="center"
android:text="@string/goods_instruction" />
<Button
android:id="@+id/btn_sale"
android:layout_width="0dp"
android:layout_height="35dp"
android:layout_weight="1"
android:background="@drawable/detail_end_selector"
android:gravity="center"
android:text="@string/sale_instruction" />
</LinearLayout>
</LinearLayout>
<ImageView style="@style/card_line" />
<FrameLayout
android:id="@+id/fl_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1" />
</LinearLayout>
</layout>
\ No newline at end of file
......@@ -12,38 +12,33 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/cl_white"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_seacher"
style="@style/title"
android:layout_height="40dp"
android:visibility="visible">
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@color/cl_white"
>
<EditText
android:id="@+id/edt_seacher"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="match_parent"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_toRightOf="@+id/iv"
android:layout_marginBottom="5dp"
android:background="@null"
android:gravity="center"
android:hint="@string/input_sale_product"
android:imeOptions="actionSearch"
android:inputType="text"
android:gravity="center"
android:singleLine="true"
android:textSize="14sp" />
android:textSize="15sp" />
<ImageView
android:visibility="gone"
android:id="@+id/iv"
style="@style/title_image_back"
android:src="@drawable/seacher" />
<TextView
android:visibility="gone"
android:id="@+id/tv_cancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......@@ -54,11 +49,12 @@
android:text="@string/cancle"
android:textColor="@color/cl_black"
android:textSize="@dimen/dp_18"
android:textStyle="bold" />
android:textStyle="bold"
android:visibility="gone" />
<ImageView
android:layout_width="match_parent"
android:layout_height="@dimen/dp_6"
android:layout_height="5dp"
android:layout_alignParentBottom="true"
android:src="@drawable/line_shape" />
</RelativeLayout>
......@@ -66,6 +62,7 @@
<com.dayu.widgets.LRecyclerView
android:id="@+id/recyclerView"
setPresenter="@{presenter}"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#f5f5f5" />
......
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/cl_white"
android:orientation="vertical">
<com.youth.banner.Banner
android:id="@+id/banner_hot"
android:layout_width="match_parent"
android:layout_height="150dp"
app:image_scale_type="fit_center"
app:indicator_height="6dp"
app:indicator_margin="3dp"
app:indicator_width="6dp" />
<TextView
style="@style/text_title"
android:layout_gravity="center"
android:text="product" />
</LinearLayout>
</layout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/cl_white"
android:orientation="vertical">
<TextView
style="@style/text_title"
android:layout_gravity="center"
android:text="sale" />
</LinearLayout>
</layout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_13.3"
android:layout_marginTop="5dp"
android:layout_marginRight="@dimen/dp_13.3"
android:background="@drawable/item_shape"
android:orientation="horizontal"
android:padding="@dimen/dp_10">
<ImageView
android:id="@+id/iv_img"
android:layout_width="@dimen/dp_89"
android:layout_height="@dimen/dp_89"
android:layout_gravity="center_vertical"
android:src="@drawable/icon_img_default" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout style="@style/sale_linearlayout">
<TextView
style="@style/sale_item_text"
android:text="@string/brand_model" />
<TextView
android:id="@+id/tv_brand_model"
style="@style/sale_item_text2" />
</LinearLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginTop="5dp"
android:layout_marginRight="15dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
style="@style/sale_item_text"
android:text="@string/sale_order_price" />
<TextView
android:id="@+id/tv_price"
style="@style/sale_item_text2"
android:text="00"
android:textColor="@color/bg_button" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:orientation="horizontal">
<TextView
style="@style/sale_item_text"
android:text="@string/sale_commision" />
<TextView
android:id="@+id/tv_commision"
style="@style/sale_item_text2"
android:text="00"
android:textColor="@color/cl_order_item_date" />
</LinearLayout>
</RelativeLayout>
<LinearLayout style="@style/sale_linearlayout">
<TextView
style="@style/sale_item_text"
android:text="@string/sale_company_name" />
<TextView
android:id="@+id/tv_company"
style="@style/sale_item_text2" />
</LinearLayout>
<LinearLayout style="@style/sale_linearlayout">
<TextView
android:id="@+id/tv_date_desc"
style="@style/sale_item_text"
android:text="@string/sale_order_date" />
<TextView
android:id="@+id/tv_date"
style="@style/sale_item_text2" />
</LinearLayout>
<LinearLayout style="@style/sale_linearlayout">
<TextView
style="@style/sale_item_text"
android:text="@string/sale_order_status" />
<TextView
android:id="@+id/tv_status"
style="@style/sale_item_text2" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</layout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_13.3"
android:layout_marginTop="5dp"
android:layout_marginRight="@dimen/dp_13.3"
android:background="@drawable/item_shape"
android:orientation="horizontal"
android:padding="@dimen/dp_10">
<ImageView
android:id="@+id/iv_img"
android:layout_width="@dimen/dp_89"
android:layout_height="@dimen/dp_89"
android:src="@drawable/icon_img_default"
/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_15"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
style="@style/sale_linearlayout">
<TextView
style="@style/sale_item_text"
android:text="@string/brand_model" />
<TextView
android:id="@+id/tv_brand_model"
style="@style/sale_item_text2" />
</LinearLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginTop="5dp"
android:layout_marginRight="15dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
style="@style/sale_item_text"
android:text="@string/sale_single_price" />
<TextView
android:id="@+id/tv_single_price"
style="@style/sale_item_text2"
android:text="00"
android:textColor="@color/bg_button" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:orientation="horizontal">
<TextView
style="@style/sale_item_text"
android:text="@string/commision_str" />
<TextView
android:id="@+id/tv_commision"
style="@style/sale_item_text2"
android:text="00"
android:textColor="@color/cl_order_item_date" />
</LinearLayout>
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:layout_marginRight="10dp"
android:orientation="horizontal">
<Button
android:id="@+id/btn_collect"
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="1"
android:background="@color/cl_home_button"
android:gravity="center"
android:text="@string/special_collect"
android:textColor="@color/white" />
<Button
android:id="@+id/btn_share"
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_marginLeft="20dp"
android:layout_weight="1"
android:background="@color/cl_order_item_date"
android:gravity="center"
android:textColor="@color/white"
android:text="@string/share_recommend" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</layout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical">
......
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 sign in to comment