Code example for View

Methods: getLayoutParams

0
                  .start();
  } 
 
  @SuppressWarnings("unused") 
  private void setMiddleWidth(int value) {
    middle.getLayoutParams().width=value;
    requestLayout();
  } 
 
  private void translateWidgets(int deltaX, View... views) {
    for (final View v : views) {
      v.setLayerType(View.LAYER_TYPE_HARDWARE, null);
 
      v.animate().translationXBy(deltaX).setDuration(ANIM_DURATION)
       .setListener(new AnimatorListenerAdapter() {
         @Override 
         public void onAnimationEnd(Animator animation) {
           v.setLayerType(View.LAYER_TYPE_NONE, null);
         } 
       }); 
Contextual code suggestions in your IDE  Get Codota for Java