Guest User

Untitled

a guest
Oct 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) {
  2. int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
  3. View decorView = getWindow().getDecorView();
  4. decorView.setSystemUiVisibility(uiOptions);
  5. }
  6.  
  7. RootRelativeLayout.requestLayout();
  8.  
  9. <RelativeLayout xmlns:tools="http://schemas.android.com/tools"
  10. xmlns:android="http://schemas.android.com/apk/res/android"
  11. android:id="@+id/root_relativelayout"
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent"
  14. android:fitsSystemWindows="true"
  15. android:clipToPadding="true">
  16.  
  17. <RelativeLayout
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:layout_alignParentBottom="true"
  21. android:orientation="horizontal">
  22.  
  23. </RelativeLayout>
  24.  
  25. </RelativeLayout>
Add Comment
Please, Sign In to add comment