@Override
 public void onComplete(RippleView rippleView) {
   switch (rippleView.getId()) {
     case R.id.retry_button_ripple_container:
       onRetryButtonClicked();
       break;
   }
 }
Пример #2
0
  private void initView(Context context) {
    LayoutInflater inflater = LayoutInflater.from(context);
    View v = inflater.inflate(R.layout.personitemview, this);
    iv = (ImageView) v.findViewById(R.id.personitem_iv_icon);
    tv = (TextView) v.findViewById(R.id.personitem_tv_info);
    iv.setImageDrawable(msrc);
    tv.setText(content);
    rippleView = (RippleView) v.findViewById(R.id.person_rippleview);
    rippleView.setOnRippleCompleteListener(this);
    if (value_line == 0) {
      tv_long = (TextView) v.findViewById(R.id.personitem_long);
      LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, 2);
      lp.setMargins(0, 0, 0, 0);
      tv_long.setLayoutParams(lp);
    }
    /*		if(value_line==1){
    			lp.setMargins((int)(75*x/160), 0, 0, 0);
    		}
    */

  }