Advertisement
Guest User

Untitled

a guest
Aug 10th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. <activity
  2. android:name="com.example.LoginMain"
  3. android:label="@string/app_name"
  4. android:screenOrientation="portrait"
  5. android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen"
  6. android:windowSoftInputMode="stateAlwaysHidden" >
  7. <intent-filter>
  8. <action android:name="android.intent.action.MAIN" />
  9.  
  10. <category android:name="android.intent.category.LAUNCHER" />
  11. </intent-filter>
  12. </activity>
  13.  
  14. <style name="Theme.AppCompat.Light.NoActionBar.FullScreen" parent="@style/Theme.AppCompat.Light">
  15. <item name="android:windowNoTitle">true</item>
  16. <item name="windowActionBar">false</item>
  17. <item name="android:windowFullscreen">true</item>
  18. <item name="android:windowContentOverlay">@null</item>
  19. </style>
  20.  
  21. public class LoginMain extends Activity{
  22.  
  23. @Override
  24. protected void onCreate(Bundle savedInstanceState) {
  25. super.onCreate(savedInstanceState);
  26. getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
  27. setContentView(R.layout.login);
  28. }
  29.  
  30. public class LoginMain extends Activity{
  31.  
  32. @Override
  33. protected void onCreate(Bundle savedInstanceState) {
  34. super.onCreate(savedInstanceState);
  35. getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
  36. requestWindowFeature(Window.FEATURE_NO_TITLE);
  37. setContentView(R.layout.login);
  38. }
  39.  
  40. android:theme="@android:style/Theme.Black.NoTitleBar"
  41.  
  42. <style name="myOwnTheme" parent="@style/Theme.AppCompat.Light">
  43. <item name="windowNoTitle">true</item>
  44. <item name="windowActionBar">false</item>
  45. <item name="android:windowFullscreen">true</item>
  46. <item name="android:windowContentOverlay">@null</item>
  47. </style>
  48.  
  49. android:theme="@style/myOwnTheme"
  50.  
  51. getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
  52. WindowManager.LayoutParams.FLAG_FULLSCREEN);
  53.  
  54. <style name="Theme.AppCompat.Light.NoActionBar" parent="@style/Theme.AppCompat.Light">
  55. <item name="windowNoTitle">true</item>
  56. <item name="windowActionBar">false</item>
  57. </style>
  58.  
  59. parent="@style/Theme.AppCompat.Light.NoActionBar"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement