Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. viewpager.getLayoutParams().height = 20000;
  2. viewpager.requestLayout();`
  3.  
  4. ViewGroup.LayoutParams params = viewPagerBottom.getLayoutParams();
  5. params.height = 20000;
  6. viewPagerBottom.setLayoutParams(params);
  7.  
  8. <ScrollView
  9. style="@style/scrollDefaultStyle"
  10. android:layout_height="wrap_content"
  11. android:fillViewport="true"
  12. >
  13.  
  14. <LinearLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:orientation="vertical">
  18.  
  19. <TabLayout .... />
  20.  
  21. <android.support.v4.view.ViewPager
  22. android:layout_width="match_parent"
  23. android:layout_height="0dp"
  24. android:layout_weight="1" />
  25.  
  26. </LinearLayout>
  27. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement