protected void injectView(View v) {
   String counter = "";
   Drawable drawable = null;
   String text1String = "";
   String text2String = "";
   try {
     counter = counterText.getText().toString();
     drawable = imageCir.getDrawable();
     text1String = text1.getText().toString();
     text2String = text2.getText().toString();
   } catch (Exception e) {
   }
   ButterFork.bind(this, v);
   typeFaceUtils.applyTypefaceFor(this);
   setView();
   counterText.setText(counter);
   if (drawable != null) imageCir.setBackgroundDrawable(drawable);
   text1.setText(text1String);
   text2.setText(text2String);
 }
示例#2
0
 ViewHolder(View view) {
   ButterFork.bind(this, view);
 }