Commit 11e1ac1e authored by 姜敏's avatar 姜敏

更改线的粗细

parent ddd080de
......@@ -12,6 +12,7 @@ import com.xingdata.zzdpos.ui.vip.dialog.VipEditMenuDialog;
import com.xingdata.zzdpos.util.ConvertUtil;
import com.xingdata.zzdpos.util.StringUtil;
import java.util.Date;
import java.util.List;
/**
......@@ -48,9 +49,15 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
}else {
mViewBinding.vipLevel.setText(mVip.getVipLevelName());
}
mViewBinding.vipBirthday.setText(mVip.getVipBirthday() + "");
String strDate=String.valueOf(mVip.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(mVip.getVipName());
mViewBinding.vipMoble.setText(mVip.getVipMobile() + "");
mViewBinding.crtTime.setText(StringUtil.format(new Date(mVip.getCreateTime())));
mViewBinding.vipSex.setText(getVipSex(mVip.getVipSex()));
mViewBinding.vipDiscounts.setText(getString(R.string.vip_discount, ConvertUtil.discount(mVip.getVipDefDiscount() )+ ""));
mPresenter.ticketQuery(mVip.getVipId());
......@@ -94,5 +101,8 @@ public class VipInfoFragment extends BaseFragment<VipPresenter, FragmentVipInfoB
public void ticketQuerySus(List<Ticket> ticketPager) {
mViewBinding.ticketCount.setText(String.valueOf(ticketPager.size()));
}
}
......@@ -49,9 +49,9 @@
<TextView
android:id="@+id/vipName"
style="@style/default_blacktext_bigstyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/default_blacktext_bigstyle" />
android:layout_height="wrap_content" />
<TextView
android:id="@+id/vipMoble"
......@@ -227,8 +227,8 @@
<TextView
style="@style/default_blacktext_margin_16_sp_style"
android:layout_width="74dp"
android:text="年龄:" />
android:layout_width="110dp"
android:text="出生年月:" />
<TextView
android:id="@+id/vip_birthday"
......@@ -238,6 +238,27 @@
</LinearLayout>
<include layout="@layout/line_layout" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="horizontal">
<TextView
style="@style/default_blacktext_margin_16_sp_style"
android:layout_width="110dp"
android:text="注册日期:" />
<TextView
android:id="@+id/crt_time"
style="@style/default_blacktext_nopadding_smallstyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical" />
</LinearLayout>
<include layout="@layout/line_layout" />
</LinearLayout>
</layout>
\ No newline at end of file
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