初始化viewtitle类

private ViewTitle viewTitle;

 

private void initView() {
        viewTitle = (ViewTitle) findViewById(R.id.title_bar);
        timeStart = (TextView) findViewById(R.id.tv_choose_time_start);
        timeStop = (TextView) findViewById(R.id.tv_choose_time_stop);
        province = (TextView) findViewById(R.id.tv_province);
        city =(TextView) findViewById(R.id.tv_city);
        districttv = (TextView) findViewById(R.id.tv_district);
        allIncome = (TextView) findViewById(R.id.tv_all_income);//累计收益
       
tv_ChargingEarn = (TextView) findViewById(R.id.tv_ChargingEarn);//充电收益
       
tv_Dividends = (TextView) findViewById(R.id.tv_Dividends);//分红收益
       
tv_ResultsEarn= (TextView) findViewById(R.id.tv_ResultsEarn);//业绩收益
       
chooseRegion = (LinearLayout) findViewById(R.id.ll_choose_region);
        viewTitle.setZhongJianText("收益明细");
//        tv_left = viewTitle.getZuobianTextView();
       
viewTitle.getZuobianView().setVisibility(View.VISIBLE);
       // tv_right.setText("保存");
//        tv_left.setOnClickListener(newView.OnClickListener() {
//
//            @Override
//            public void onClick(Viewarg0) {
//                finish();
//            }
//        });
   
}

switch (view.getId()) {
    case R.id.title_bar:
        finish();
        break;

.xml

<com.bluesky.mainplie.widget.ViewTitle
    android:id="@+id/title_bar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="12dp"/>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值