/ Android

Changing Size of SeekBar programatically in android

I had a scienario to change size of seekbar by changing the visibility of surrounding views. Took a while but below is small code snipped which may be helpful for sme1...

RelativeLayout.LayoutParams abc=new RelativeLayout.LayoutParams(526,30); 
abc.addRule(RelativeLayout.CENTER_VERTICAL);
abc.addRule(RelativeLayout.RIGHT_OF,R.id.pause); 
mSeekBar.setLayoutParams(abc); 
Prashanth Madi

Prashanth Madi

I'm a programmer & Tech enthusiast. I work for OpenSource Support Team at Microsoft, but this blog, its content & opinions are my own. I blog about tech, gadgets, code, where we're going & we've been.

Read More