private void initView() { this.findViewById(R.id.backBtn).setOnClickListener(this); ((TextView) this.findViewById(R.id.titleTextView)).setText("设置备注"); this.remarkEditText = (EditText) this.findViewById(R.id.remarkEditText); this.handleBtn = (Button) this.findViewById(R.id.handleBtn); this.handleBtn.setOnClickListener(this); this.commitBtn = (Button) this.findViewById(R.id.commitBtn); this.commitBtn.setOnClickListener(this); seekBar = (PaginationSeekBar) findViewById(R.id.starsSeekbar); seekBar.setMin(1); seekBar.setMax(1); seekBar.setPagecountPerOneboard(1, 9); seekBar.setHapticFeedbackEnabled(true); try { remarkEditText.setText(appDto.getCommunity()); remarkEditText.setSelection(remarkEditText.getText().toString().trim().length()); } catch (Exception e) { } this.handle = appDto.isHandle(); this.handleBtn.setBackgroundResource( this.handle ? R.drawable.btn_toggle_on : R.drawable.btn_toggle_off); this.seekBar.setProgress(appDto.getStars()); }