Code example for View

Methods: getLayoutParamssetLayoutParams

0
   
  SeekBar.OnSeekBarChangeListener v=new SeekBar.OnSeekBarChangeListener() {
    public void onProgressChanged(SeekBar seekBar, 
                                  int progress, 
                                  boolean fromTouch) { 
      ViewGroup.LayoutParams old=thingToResize.getLayoutParams(); 
      ViewGroup.LayoutParams current=new LinearLayout.LayoutParams(old.width, 
                                                                   64+progress); 
       
      thingToResize.setLayoutParams(current); 
    } 
     
    public void onStartTrackingTouch(SeekBar seekBar) { 
      // unused 
    } 
     
    public void onStopTrackingTouch(SeekBar seekBar) { 
      // unused 
    } 
  }; 
Stop searching for code, let great code find you!  Add Codota to your java IDE