Commit f4f5d62f authored by 姜敏's avatar 姜敏

更改线的粗细

parent 8f22044c
...@@ -52,8 +52,9 @@ public class VipActivity extends BaseActivity<VipPresenter, ActivityVipBinding> ...@@ -52,8 +52,9 @@ public class VipActivity extends BaseActivity<VipPresenter, ActivityVipBinding>
@Override @Override
public void addVipSus(Vip vip) { public void addVipSus(Vip vip) {
// mPresenter.vipListFragment.updateVipSus(vip); // mPresenter.vipListFragment.updateVipSus(vip);
mPresenter.vipAddSucceedFragment.setmVip(vip); // mPresenter.vipAddSucceedFragment.setmVip(vip);
start(mPresenter.vipAddSucceedFragment); // start(mPresenter.vipAddSucceedFragment);
mPresenter.vipInfoEditFragment.addVipSus(vip);
} }
@Override @Override
......
...@@ -38,8 +38,7 @@ public class VipAddSucceedFragment extends BaseFragment<VipPresenter, FragmentVi ...@@ -38,8 +38,7 @@ public class VipAddSucceedFragment extends BaseFragment<VipPresenter, FragmentVi
//继续添加 //继续添加
mViewBinding.vipAdd.setOnClickListener(view -> { mViewBinding.vipAdd.setOnClickListener(view -> {
// mPresenter.vipInfoEditFragment.setVip(null); // mPresenter.vipInfoEditFragment.setVip(null);
popTo(new VipInfoEditFragment().getClass(),false); startWithPop(new VipInfoEditFragment());
// start(new VipInfoEditFragment());
}); });
//充值 //充值
...@@ -49,12 +48,14 @@ public class VipAddSucceedFragment extends BaseFragment<VipPresenter, FragmentVi ...@@ -49,12 +48,14 @@ public class VipAddSucceedFragment extends BaseFragment<VipPresenter, FragmentVi
}); });
mViewBinding.vipSure.setOnClickListener(view -> { mViewBinding.vipSure.setOnClickListener(view -> {
popTo(mPresenter.vipListFragment.getClass(),false);
mPresenter.vipListFragment.updateVipSus(null); mPresenter.vipListFragment.updateVipSus(null);
}); });
//返回强制出堆栈 //返回强制出堆栈
mViewBinding.infoTitle.ivBack.setOnClickListener(view -> { mViewBinding.infoTitle.ivBack.setOnClickListener(view -> {
popTo(mPresenter.vipListFragment.getClass(),false); popTo(mPresenter.vipListFragment.getClass(),false);
}); });
} }
......
...@@ -100,7 +100,7 @@ public class VipExpenseListFragment extends BaseFragment<VipPresenter, FragmentV ...@@ -100,7 +100,7 @@ public class VipExpenseListFragment extends BaseFragment<VipPresenter, FragmentV
vipRechargeAdapter.notifyDataSetChanged(); vipRechargeAdapter.notifyDataSetChanged();
pageNumber = saleorderPager.getPageNumber() + 1; pageNumber = saleorderPager.getPageNumber() + 1;
} }
if (saleorderPager.isLastPage()) { if (saleorderPager.getPageNumber()!=1&&saleorderPager.isLastPage()) {
ToastUtils.showShort("没有更多数据"); ToastUtils.showShort("没有更多数据");
} }
mViewBinding.expenseCount.setText(saleorderPager.getTotalRow() + ""); mViewBinding.expenseCount.setText(saleorderPager.getTotalRow() + "");
......
...@@ -39,6 +39,7 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI ...@@ -39,6 +39,7 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
private Vip vip; private Vip vip;
private Byte vipTag; private Byte vipTag;
private int vipDiscounts; private int vipDiscounts;
private Byte vipLeavle;
@Override @Override
public int getLayoutId() { public int getLayoutId() {
...@@ -55,7 +56,13 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI ...@@ -55,7 +56,13 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
if (vip != null) { if (vip != null) {
mViewBinding.infoTitle.tvTitle.setText("修改会员"); mViewBinding.infoTitle.tvTitle.setText("修改会员");
mViewBinding.vipDiscounts.setText(vip.getVipLevelName() + vip.getVipDefDiscount() + "折"); mViewBinding.vipDiscounts.setText(vip.getVipLevelName() + vip.getVipDefDiscount() + "折");
mViewBinding.vipBirthday.setText(StringUtil.format(new Date(vip.getVipBirthday()))); String strDate=String.valueOf(vip.getVipBirthday());
if (strDate.length()==8){
mViewBinding.vipBirthday.setText(strDate.substring(0, 4)+"-"+strDate.substring(4, 6)+"-"+strDate.substring(6, 8));
}else {
mViewBinding.vipBirthday.setText(strDate);
}
mViewBinding.vipName.setText(vip.getVipName()); mViewBinding.vipName.setText(vip.getVipName());
mViewBinding.vipPhone.setText(vip.getVipMobile() + ""); mViewBinding.vipPhone.setText(vip.getVipMobile() + "");
if (String.valueOf(vip.getVipTag()).equals("1")) { if (String.valueOf(vip.getVipTag()).equals("1")) {
...@@ -64,6 +71,7 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI ...@@ -64,6 +71,7 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
mViewBinding.vipDiscounts.setText(vip.getVipLevelName() + " " + ConvertUtil.discount(vip.getVipDefDiscount()) + "折"); mViewBinding.vipDiscounts.setText(vip.getVipLevelName() + " " + ConvertUtil.discount(vip.getVipDefDiscount()) + "折");
} }
mViewBinding.vipDiscounts.setEnabled(false); mViewBinding.vipDiscounts.setEnabled(false);
mViewBinding.vipDiscounts.setBackgroundResource(R.color.white);
// ((CheckBox) mViewBinding.vipSuper).setChecked(mVip.getVipTag() == 1); // ((CheckBox) mViewBinding.vipSuper).setChecked(mVip.getVipTag() == 1);
RadioButton radioButton = mViewBinding.vipSex.findViewWithTag(vip.getVipSex().toString()); RadioButton radioButton = mViewBinding.vipSex.findViewWithTag(vip.getVipSex().toString());
if (radioButton != null) { if (radioButton != null) {
...@@ -76,6 +84,7 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI ...@@ -76,6 +84,7 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
vipDiscounts = mPresenter.levels.get(0).getVipDefDiscount(); vipDiscounts = mPresenter.levels.get(0).getVipDefDiscount();
mViewBinding.vipBirthday.setText(StringUtil.format(new Date(System.currentTimeMillis()))); mViewBinding.vipBirthday.setText(StringUtil.format(new Date(System.currentTimeMillis())));
((RadioButton) mViewBinding.vipSex.getChildAt(0)).setChecked(true); ((RadioButton) mViewBinding.vipSex.getChildAt(0)).setChecked(true);
vipLeavle=mPresenter.levels.get(0).getVipLevel();
} }
mViewBinding.setOnClickListener(view -> { mViewBinding.setOnClickListener(view -> {
...@@ -120,6 +129,8 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI ...@@ -120,6 +129,8 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
if (sexId != -1) { if (sexId != -1) {
mVip.setVipSex(Byte.parseByte(mViewBinding.vipSex.findViewById(sexId).getTag().toString())); mVip.setVipSex(Byte.parseByte(mViewBinding.vipSex.findViewById(sexId).getTag().toString()));
} }
mVip.setVipBirthday(Integer.parseInt(mViewBinding.vipBirthday.getText().toString().replaceAll("-","")));
mVip.setVipLevel(vipLeavle);
mPresenter.addVip(mVip); mPresenter.addVip(mVip);
pop(); pop();
break; break;
...@@ -147,9 +158,11 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI ...@@ -147,9 +158,11 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
if (options1 == 0) { if (options1 == 0) {
mViewBinding.vipDiscounts.setText(mPresenter.levels.get(options1).getPickerViewText() + " " + ConvertUtil.discount(mPresenter.levels.get(options1).getVipDefDiscount()) + "折"); mViewBinding.vipDiscounts.setText(mPresenter.levels.get(options1).getPickerViewText() + " " + ConvertUtil.discount(mPresenter.levels.get(options1).getVipDefDiscount()) + "折");
vipDiscounts = mPresenter.levels.get(options1).getVipDefDiscount(); vipDiscounts = mPresenter.levels.get(options1).getVipDefDiscount();
vipLeavle = mPresenter.levels.get(options1).getVipLevel();
} else { } else {
mViewBinding.vipDiscounts.setText(mPresenter.levels.get(mPresenter.levels.size() - 1).getVipLevelName() + " " + ConvertUtil.discount(mPresenter.levels.get(mPresenter.levels.size() - 1).getVipDefDiscount()) + "折"); mViewBinding.vipDiscounts.setText(mPresenter.levels.get(mPresenter.levels.size() -1).getVipLevelName() + " " + ConvertUtil.discount(mPresenter.levels.get(mPresenter.levels.size() - 1).getVipDefDiscount()) + "折");
vipDiscounts = mPresenter.levels.get(mPresenter.levels.size() - 1).getVipDefDiscount(); vipDiscounts = mPresenter.levels.get(mPresenter.levels.size() - 1).getVipDefDiscount();
vipLeavle=mPresenter.levels.get(mPresenter.levels.size() - 2).getVipLevel();
} }
vipTag = Byte.parseByte(options1 + ""); vipTag = Byte.parseByte(options1 + "");
} }
...@@ -185,8 +198,18 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI ...@@ -185,8 +198,18 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
@Override @Override
public void onDateSet(DatePicker view, int year, int monthOfYear, int public void onDateSet(DatePicker view, int year, int monthOfYear, int
dayOfMonth) { dayOfMonth) {
int inM=monthOfYear+1;
String strMonth=String.valueOf(inM);
if (strMonth.length()<2){
strMonth="0"+strMonth;
}
String strDay=String.valueOf(dayOfMonth);
if (strDay.length()<2){
strDay="0"+strDay;
}
//因为monthOfYear会比实际月份少一月所以这边要加1 //因为monthOfYear会比实际月份少一月所以这边要加1
((TextView) btn).setText(year + "-" + (monthOfYear + 1) + "-" + dayOfMonth); ((TextView) btn).setText(year + "-" + strMonth+"-" + strDay);
} }
}, year, month, day); }, year, month, day);
//弹出选择日期对话框 //弹出选择日期对话框
...@@ -198,4 +221,11 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI ...@@ -198,4 +221,11 @@ public class VipInfoEditFragment extends BaseFragment<VipPresenter, FragmentVipI
return false; return false;
} }
public void addVipSus(Vip vip) {
mPresenter.vipAddSucceedFragment.setmVip(vip);
start(mPresenter.vipAddSucceedFragment);
}
} }
...@@ -16,6 +16,7 @@ import android.view.View; ...@@ -16,6 +16,7 @@ import android.view.View;
import android.view.ViewTreeObserver; import android.view.ViewTreeObserver;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.RadioButton; import android.widget.RadioButton;
import android.widget.RadioGroup;
import com.blankj.utilcode.util.ToastUtils; import com.blankj.utilcode.util.ToastUtils;
import com.xingdata.zzdpos.C; import com.xingdata.zzdpos.C;
...@@ -42,7 +43,7 @@ import java.util.List; ...@@ -42,7 +43,7 @@ import java.util.List;
@SuppressLint("ValidFragment") @SuppressLint("ValidFragment")
public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipRechargeBinding> { public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipRechargeBinding> {
private List<Mscard> mscards = new ArrayList<>(); private List<Mscard> mscards = new ArrayList<>();
private LinearLayout.LayoutParams layoutParams = null; private RadioGroup.LayoutParams layoutParams = null;
private HashMap<String, Mscard> mscardHashMap = new HashMap<>(); private HashMap<String, Mscard> mscardHashMap = new HashMap<>();
private PayAdapter mPayAdapter; private PayAdapter mPayAdapter;
private List<Pay> mPays = new ArrayList<>(); private List<Pay> mPays = new ArrayList<>();
...@@ -54,6 +55,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR ...@@ -54,6 +55,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
} }
private Vip mVip; private Vip mVip;
private boolean isFocus = false;
@Override @Override
public void initView() { public void initView() {
...@@ -87,6 +89,8 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR ...@@ -87,6 +89,8 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
Mscard mscard = mscardHashMap.get(radioButton.getTag().toString()); Mscard mscard = mscardHashMap.get(radioButton.getTag().toString());
setMoney(ConvertUtil.fenToYuan2(mscard.getCruleChargeAmt()), ConvertUtil.fenToYuan2(mscard.getCruleSendAmt())); setMoney(ConvertUtil.fenToYuan2(mscard.getCruleChargeAmt()), ConvertUtil.fenToYuan2(mscard.getCruleSendAmt()));
mViewBinding.stealMoney.setText(""); mViewBinding.stealMoney.setText("");
// mViewBinding.stealMoney.clearFocus();
// mViewBinding.stealMoney.setFocusable(true);
} }
}); });
ViewTreeObserver observer = mViewBinding.payMoneyLayout.getViewTreeObserver(); ViewTreeObserver observer = mViewBinding.payMoneyLayout.getViewTreeObserver();
...@@ -101,7 +105,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR ...@@ -101,7 +105,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
mPresenter.initSettle(); mPresenter.initSettle();
} }
}); });
if (mscards==null){ if (mscards == null) {
mPresenter.getMscardList(mVip.getVipId()); mPresenter.getMscardList(mVip.getVipId());
} }
} }
...@@ -124,8 +128,8 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR ...@@ -124,8 +128,8 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
mscards.clear(); mscards.clear();
mscards.addAll(mscardPager.getList()); mscards.addAll(mscardPager.getList());
layoutParams = new LinearLayout.LayoutParams(inWight / 3, LinearLayout.LayoutParams.MATCH_PARENT, 1); layoutParams = new RadioGroup.LayoutParams(inWight / 4, LinearLayout.LayoutParams.MATCH_PARENT,1);
layoutParams.setMargins(0, 0, 20, 0); layoutParams.setMargins(3,10, 3, 10);
int mscardLength = 0; int mscardLength = 0;
if (mscards.size() <= 3) { if (mscards.size() <= 3) {
mscardLength = mscards.size(); mscardLength = mscards.size();
...@@ -142,7 +146,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR ...@@ -142,7 +146,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
if (mscards.size() != 0) { if (mscards.size() != 0) {
mViewBinding.payMoneyLayout.setVisibility(View.VISIBLE); mViewBinding.payMoneyLayout.setVisibility(View.VISIBLE);
}else { } else {
mViewBinding.payMoneyLayout.setVisibility(View.GONE); mViewBinding.payMoneyLayout.setVisibility(View.GONE);
} }
...@@ -156,7 +160,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR ...@@ -156,7 +160,7 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
{ {
//如果点击输入框按钮都清空点击事件 //如果点击输入框按钮都清空点击事件
if (b) { if (b) {
mViewBinding.payMoneyLayout.clearCheck(); setRadioGroupEnable(true, mViewBinding.payMoneyLayout);
setMoney("0", "0"); setMoney("0", "0");
} }
}); });
...@@ -175,10 +179,17 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR ...@@ -175,10 +179,17 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
@Override @Override
public void afterTextChanged(Editable editable) { public void afterTextChanged(Editable editable) {
if (!mViewBinding.stealMoney.hasFocus()){ if (mViewBinding.stealMoney.getText().length() != 0) {
setRadioGroupEnable(true, mViewBinding.payMoneyLayout);
}
if (mViewBinding.payMoneyLayout.getCheckedRadioButtonId() != -1) {
return;
}
if (!mViewBinding.stealMoney.hasFocus()) {
return; return;
} }
if (mViewBinding.stealMoney.getText().length() == 0 ) {
if (mViewBinding.stealMoney.getText().length() == 0) {
setMoney("0", "0"); setMoney("0", "0");
return; return;
} }
...@@ -235,4 +246,17 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR ...@@ -235,4 +246,17 @@ public class VipRechargeFragment extends BaseFragment<VipPresenter, FragmentVipR
} }
/**
* 设置RadioGroup 内容是否可点击;
*
* @param isEnabled
* @param radioGroup
*/
private void setRadioGroupEnable(boolean isEnabled, RadioGroup radioGroup) {
radioGroup.clearCheck();
for (int i = 0; i < radioGroup.getChildCount(); i++) {
radioGroup.getChildAt(i).setEnabled(isEnabled);
}
}
} }
...@@ -102,9 +102,6 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment ...@@ -102,9 +102,6 @@ public class VipRechargeListFragment extends BaseFragment<VipPresenter, Fragment
vipRechargeAdapter.notifyDataSetChanged(); vipRechargeAdapter.notifyDataSetChanged();
pageNumber = rechargeOrderPager.getPageNumber() + 1; pageNumber = rechargeOrderPager.getPageNumber() + 1;
} }
if (rechargeOrderPager.isLastPage()){
ToastUtils.showShort("没有更多数据");
}
vipRechargeAdapter.setEnableLoadMore(!rechargeOrderPager.isLastPage()); vipRechargeAdapter.setEnableLoadMore(!rechargeOrderPager.isLastPage());
vipRechargeAdapter.loadMoreComplete(); vipRechargeAdapter.loadMoreComplete();
mViewBinding.rechargeRefresh.setRefreshing(false); mViewBinding.rechargeRefresh.setRefreshing(false);
......
...@@ -96,7 +96,7 @@ public class VipTruleListFragment extends BaseFragment<VipPresenter, FragmentVip ...@@ -96,7 +96,7 @@ public class VipTruleListFragment extends BaseFragment<VipPresenter, FragmentVip
// pageNumber = mscardPager.getPageNumber() + 1; // pageNumber = mscardPager.getPageNumber() + 1;
} }
getMscardValid(); getMscardValid();
if (trulePager.isLastPage()) { if (trulePager.getPageNumber()!=1&&trulePager.isLastPage()) {
ToastUtils.showShort("没有更多数据"); ToastUtils.showShort("没有更多数据");
} }
mViewBinding.mscardValid.setText(valid+ ""); mViewBinding.mscardValid.setText(valid+ "");
......
...@@ -27,12 +27,6 @@ ...@@ -27,12 +27,6 @@
<include layout="@layout/line_layout" /> <include layout="@layout/line_layout" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/all_margin_left"></View>
<include layout="@layout/line_layout" />
<LinearLayout <LinearLayout
android:id="@+id/addVipLinearLayout" android:id="@+id/addVipLinearLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -17,11 +17,13 @@ ...@@ -17,11 +17,13 @@
<include <include
android:id="@+id/info_title" android:id="@+id/info_title"
layout="@layout/title_pop" /> layout="@layout/title_pop" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/all_margin_left"/>
<include layout="@layout/line_layout" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="@dimen/all_margin"
android:background="@color/white" android:background="@color/white"
android:orientation="horizontal"> android:orientation="horizontal">
......
...@@ -18,6 +18,10 @@ ...@@ -18,6 +18,10 @@
android:id="@+id/info_title" android:id="@+id/info_title"
layout="@layout/title_pop" /> layout="@layout/title_pop" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/all_margin_left"></View>
<include layout="@layout/line_layout" /> <include layout="@layout/line_layout" />
<LinearLayout <LinearLayout
...@@ -121,12 +125,12 @@ ...@@ -121,12 +125,12 @@
<include layout="@layout/line_layout" /> <include layout="@layout/line_layout" />
<TextView <TextView
android:layout_marginTop="@dimen/all_margin_left"
style="@style/textView_title" style="@style/textView_title"
android:textSize="@dimen/small_text_size"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="注:店员初始密码为000000" /> android:layout_marginTop="@dimen/all_margin_left"
android:text="注:店员初始密码为000000"
android:textSize="@dimen/small_text_size" />
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<TextView <TextView
style="@style/default_blacktext_no_margin_smallstyle" style="@style/default_blacktext_no_margin_smallstyle"
android:text="会员手机" /> android:text="会员姓名" />
<TextView <TextView
android:id="@+id/vip_name" android:id="@+id/vip_name"
...@@ -137,6 +137,7 @@ ...@@ -137,6 +137,7 @@
<Button <Button
android:id="@+id/vip_add" android:id="@+id/vip_add"
android:visibility="gone"
style="@style/button_positive_white" style="@style/button_positive_white"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:text="继续添加" /> android:text="继续添加" />
......
...@@ -29,21 +29,20 @@ ...@@ -29,21 +29,20 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="72dp" android:layout_height="72dp"
android:background="@color/white" android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/all_margin" android:layout_marginLeft="@dimen/all_margin_left"
android:background="@mipmap/iv_vip" /> android:background="@mipmap/iv_vip" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginLeft="@dimen/all_margin_left" android:layout_marginLeft="@dimen/all_margin_left"
android:layout_marginTop="10dp"
android:layout_weight="1" android:layout_weight="1"
android:background="@color/white" android:background="@color/white"
android:orientation="vertical"> android:orientation="vertical">
...@@ -52,11 +51,11 @@ ...@@ -52,11 +51,11 @@
android:id="@+id/vipName" android:id="@+id/vipName"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="@color/black" style="@style/default_blacktext_bigstyle" />
android:textSize="@dimen/detail_textview_size" />
<TextView <TextView
android:id="@+id/vipMoble" android:id="@+id/vipMoble"
style="@style/default_blacktext_nopadding_smallstyle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="@color/black" android:textColor="@color/black"
...@@ -184,7 +183,7 @@ ...@@ -184,7 +183,7 @@
<TextView <TextView
style="@style/default_blacktext_margin_16_sp_style" style="@style/default_blacktext_margin_16_sp_style"
android:layout_width="72dp" android:layout_width="74dp"
android:text="级别:" /> android:text="级别:" />
<TextView <TextView
...@@ -206,7 +205,7 @@ ...@@ -206,7 +205,7 @@
<TextView <TextView
style="@style/default_blacktext_margin_16_sp_style" style="@style/default_blacktext_margin_16_sp_style"
android:layout_width="72dp" android:layout_width="74dp"
android:text="性别:" /> android:text="性别:" />
<TextView <TextView
...@@ -228,8 +227,8 @@ ...@@ -228,8 +227,8 @@
<TextView <TextView
style="@style/default_blacktext_margin_16_sp_style" style="@style/default_blacktext_margin_16_sp_style"
android:layout_width="72dp" android:layout_width="74dp"
android:text="生日:" /> android:text="年龄:" />
<TextView <TextView
android:id="@+id/vip_birthday" android:id="@+id/vip_birthday"
...@@ -238,37 +237,6 @@ ...@@ -238,37 +237,6 @@
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</LinearLayout> </LinearLayout>
<include layout="@layout/line_layout_margin" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@color/white"
android:orientation="horizontal">
<TextView
style="@style/default_blacktext_margin_16_sp_style"
android:layout_width="72dp"
android:text="地区:" />
</LinearLayout>
<include layout="@layout/line_layout_margin" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:background="@color/white"
android:orientation="horizontal">
<TextView
style="@style/default_blacktext_margin_16_sp_style"
android:layout_width="wrap_content"
android:text="详细地址:" />
</LinearLayout>
<include layout="@layout/line_layout" /> <include layout="@layout/line_layout" />
</LinearLayout> </LinearLayout>
......
...@@ -128,8 +128,8 @@ ...@@ -128,8 +128,8 @@
android:id="@+id/vip_sex" android:id="@+id/vip_sex"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginLeft="@dimen/all_margin_left"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginLeft="@dimen/all_margin_left"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -179,9 +179,9 @@ ...@@ -179,9 +179,9 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_marginLeft="@dimen/sp_12" android:layout_marginLeft="@dimen/sp_12"
android:layout_marginRight="100dp" android:layout_marginRight="100dp"
android:onClick="@{onClickListener}"
android:drawableRight="@mipmap/ic_expand" android:drawableRight="@mipmap/ic_expand"
android:gravity="center_vertical" android:gravity="center_vertical" />
android:onClick="@{onClickListener}" />
</LinearLayout> </LinearLayout>
<include layout="@layout/line_layout"></include> <include layout="@layout/line_layout"></include>
...@@ -195,9 +195,9 @@ ...@@ -195,9 +195,9 @@
<TextView <TextView
style="@style/default_blacktext_margin_16_sp_style" style="@style/default_blacktext_margin_16_sp_style"
android:layout_width="72dp" android:layout_width="110dp"
android:layout_marginLeft="13dp" android:layout_marginLeft="13dp"
android:text="年龄:" /> android:text="出生年月:" />
<!--<TextView--> <!--<TextView-->
<!--android:id="@+id/vip_birthday"--> <!--android:id="@+id/vip_birthday"-->
...@@ -207,14 +207,15 @@ ...@@ -207,14 +207,15 @@
<!--android:hint="请选择"--> <!--android:hint="请选择"-->
<!--android:onClick="@{onClickListener}"--> <!--android:onClick="@{onClickListener}"-->
<!--android:textSize="@dimen/all_body_size" />--> <!--android:textSize="@dimen/all_body_size" />-->
<EditText <TextView
android:id="@+id/vip_birthday" android:id="@+id/vip_birthday"
style="@style/all_edittext_14sp_style" style="@style/default_blacktext_nopadding_smallstyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_marginLeft="@dimen/sp_12"
android:layout_weight="1" android:onClick="@{onClickListener}"
android:background="@null" android:layout_marginRight="100dp"
android:hint="请输入年龄" /> android:drawableRight="@mipmap/ic_expand"
android:gravity="center_vertical" />
</LinearLayout> </LinearLayout>
<include layout="@layout/line_layout"></include> <include layout="@layout/line_layout"></include>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/all_margin_left" android:layout_margin="12sp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="48dp"
android:background="@color/white" android:background="@color/white"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="48dp"
android:background="@color/white" android:background="@color/white"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/all_margin_left" android:layout_margin="12sp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="48dp"
android:background="@color/white" android:background="@color/white"
android:orientation="horizontal"> android:orientation="horizontal">
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="48dp"
android:background="@color/white" android:background="@color/white"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
......
...@@ -86,7 +86,6 @@ ...@@ -86,7 +86,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="1111"
android:textSize="22sp" android:textSize="22sp"
android:textStyle="bold" /> android:textStyle="bold" />
...@@ -97,7 +96,6 @@ ...@@ -97,7 +96,6 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:gravity="center" android:gravity="center"
android:text="1111"
android:textSize="22sp" android:textSize="22sp"
android:textStyle="bold" /> android:textStyle="bold" />
</LinearLayout> </LinearLayout>
......
...@@ -24,22 +24,22 @@ ...@@ -24,22 +24,22 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="72dp"
android:background="@color/white" android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/all_margin" android:layout_marginLeft="@dimen/all_margin_left"
android:layout_marginRight="@dimen/all_margin_left"
android:background="@mipmap/iv_vip" /> android:background="@mipmap/iv_vip" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/all_margin"
android:layout_marginTop="@dimen/all_margin"
android:layout_weight="1" android:layout_weight="1"
android:background="@color/white" android:background="@color/white"
android:orientation="vertical"> android:orientation="vertical">
...@@ -55,7 +55,6 @@ ...@@ -55,7 +55,6 @@
style="@style/default_blacktext_nopadding_smallstyle" style="@style/default_blacktext_nopadding_smallstyle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="0dp"
android:textColor="@color/black" /> android:textColor="@color/black" />
</LinearLayout> </LinearLayout>
......
...@@ -20,22 +20,22 @@ ...@@ -20,22 +20,22 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="72dp"
android:background="@color/white" android:background="@color/white"
android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/all_margin" android:layout_marginLeft="@dimen/all_margin_left"
android:layout_marginRight="@dimen/all_margin_left"
android:background="@mipmap/iv_vip" /> android:background="@mipmap/iv_vip" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/all_margin"
android:layout_marginTop="@dimen/all_margin"
android:layout_weight="1" android:layout_weight="1"
android:background="@color/white" android:background="@color/white"
android:orientation="vertical"> android:orientation="vertical">
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
android:text="@string/vip_info_discount" /> android:text="@string/vip_info_discount" />
</LinearLayout> </LinearLayout>
<include layout="@layout/line_layout"/> <include layout="@layout/line_layout" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<include layout="@layout/line_layout"/> <include layout="@layout/line_layout" />
<android.support.v4.widget.SwipeRefreshLayout <android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/recharge_refresh" android:id="@+id/recharge_refresh"
......
...@@ -72,10 +72,11 @@ ...@@ -72,10 +72,11 @@
android:text="门店" android:text="门店"
android:textColor="@color/black_likui" android:textColor="@color/black_likui"
android:textSize="@dimen/all_text_size_small_small" /> android:textSize="@dimen/all_text_size_small_small" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
<include layout="@layout/line_layout" />
</LinearLayout> </LinearLayout>
......
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