Skip to content

Instantly share code, notes, and snippets.

Avatar

Muhammad Bilal BilalSiddiqui

View GitHub Profile
View gist:adc9777f1037af36c0294c339ee1e482
ViewGroup slidingTabStrip = (ViewGroup) mTabSocial.getChildAt(0);
View tab1 = slidingTabStrip.getChildAt(1);
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) tab1.getLayoutParams();
layoutParams.weight = 1.2f;
layoutParams.width = 0;
tab1.setLayoutParams(layoutParams);
You can’t perform that action at this time.