private void responseReserve() { this.applyLookTextView.setEnabled(false); if (lookCountBadgeView.isShown()) { lookCountBadgeView.increment(1); } else { lookCountBadgeView.setText((appDto.getReserveCount() + 1) + ""); lookCountBadgeView.show(); } }
private void responseHouseInfo() { if (!appDto.getTags().isEmpty()) { flowlayout.setVisibility(View.VISIBLE); flowlayout.setAdapter( new TagAdapter<String>(appDto.getTags()) { @Override public View getView(FlowLayout parent, int position, String s) { TextView tv = (TextView) LayoutInflater.from(KeeperHouseInfoPublishActivity.this) .inflate(R.layout.tag_layout, parent, false); tv.setText(s); return tv; } }); } imageURLList = appDto.getTopImages(); initViewPager(); viewPagerAdapter.notifyDataSetChanged(); viewPager.setFocusable(true); viewPager.setFocusableInTouchMode(true); viewPager.requestFocus(); this.communityTextView.setText(appDto.getCommunity() + " " + appDto.getHouseType()); this.areaTextView.setText(appDto.getAreaStr()); this.moneyTextView.setText(appDto.getMonthMoney()); this.monthTextView.setText("元/月"); this.leaseTypeTextView.setText( Html.fromHtml( "<font color=#999999>类型:</font><font color=#222222>" + appDto.getLeaseType() + "</font>")); this.decorateTextView.setText( Html.fromHtml( "<font color=#999999>装修:</font><font color=#222222>" + appDto.getDecorate() + "</font>")); this.areaSizeTextView.setText( Html.fromHtml( "<font color=#999999>面积:</font><font color=#222222>" + appDto.getSize() + "</font>")); this.orientationTextView.setText( Html.fromHtml( "<font color=#999999>朝向:</font><font color=#222222>" + appDto.getOrientation() + "</font>")); this.floorTextView.setText( Html.fromHtml( "<font color=#999999>楼层:</font><font color=#222222>" + appDto.getFloor() + "</font>")); this.leaseTimeTextView.setText(appDto.getLeaseTimeStr()); this.adapter.setData(appDto.getEquipments(), false); this.heatingFeesTextView.setText(appDto.isHeatingFees() ? "租户交" : "房东交"); this.busTextView.setText( Html.fromHtml( "<font color=#999999>公交:</font><font color=#222222>" + appDto.getBus() + "</font>")); this.subwayTextView.setText( Html.fromHtml( "<font color=#999999>地铁:</font><font color=#222222>" + appDto.getSubway() + "</font>")); this.applyLookTextView.setEnabled(appDto.isAdd()); if (appDto.getReserveCount() == 0) { lookCountBadgeView.hide(); } else { lookCountBadgeView.setText(appDto.getReserveCount() + ""); lookCountBadgeView.show(true); } }