Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- requestWindowFeature(Window.FEATURE_NO_TITLE);
- if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN) {
- View decorView = getWindow().getDecorView();
- int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
- decorView.setSystemUiVisibility(uiOptions);
- } else
- getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
- <LayoutSizeChangedSensorFrameLayout>
- <RelativeLayout>
- #1
- <LinearLayout vertical, aligned to parent-top>
- <ImageView/>
- <TextView/>
- <CirclePageIndicator/>
- </LinearLayout>
- #2
- <ImageView aligned to parent-bottom, and below #1 />
- <ViewPager aligned to the ImageView from all sides/>
- #3
- <LinearLayout vertical, aligned to the parent-bottom>
- <TextView/>
- <EditText/>
- <Button/>
- </LinearLayout>
- </RelativeLayout>
- </LayoutSizeChangedSensorFrameLayout>
- <style name="AppTheme.Material" parent="@style/Theme.AppCompat.Light.DarkActionBar">
- ...
- <item name="windowActionBar">false</item>
- <item name="android:windowNoTitle">true</item>
- <item name="android:windowActionBar">false</item>
- <item name="windowNoTitle">true</item>
- <item name="android:windowTranslucentNavigation" tools:ignore="NewApi">true</item>
- <item name="android:windowTranslucentStatus" tools:ignore="NewApi">true</item>
- <item name="android:navigationBarColor" tools:ignore="NewApi">@android:color/transparent</item>
- </style>
- //No title bar is set for the activity
- requestWindowFeature(Window.FEATURE_NO_TITLE);
- //Full screen is set for the Window
- getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
- WindowManager.LayoutParams.FLAG_FULLSCREEN);
- <style name="CustomTheme" parent="Theme.AppCompat.Light.NoActionBar">
- <item name="android:windowFullscreen">true</item>
- </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement