File tree Expand file tree Collapse file tree 7 files changed +25
-14
lines changed
java/com/example/dhp/fullscreen Expand file tree Collapse file tree 7 files changed +25
-14
lines changed Original file line number Diff line number Diff line change 55 <application
66 android : allowBackup =" true"
77 android : icon =" @mipmap/appicon"
8- android : label =" @string/app_name "
8+ android : label =" Full Screen "
99 android : roundIcon =" @mipmap/appicon"
1010 android : supportsRtl =" true"
1111 android : theme =" @style/AppTheme" >
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ public class MainActivity extends AppCompatActivity {
2020 @ Override
2121 protected void onCreate (final Bundle savedInstanceState ) {
2222 super .onCreate (savedInstanceState );
23+
2324 setContentView (R .layout .activity_main );
2425 button1 = findViewById (R .id .button1 );
2526 store = getSharedPreferences (mypreference , Context .MODE_PRIVATE );
@@ -57,6 +58,7 @@ public void onClick(View view) {
5758 }
5859 });
5960
60-
61+ button1 .performClick ();
62+ finish ();
6163 }
6264}
Original file line number Diff line number Diff line change 44 android : layout_height =" 10dp"
55 android : layout_width =" 10dp" >
66 <gradient
7- android : startColor =" #262626 "
8- android : centerColor =" #262626 "
9- android : endColor =" #262626 "
7+ android : startColor =" #00262626 "
8+ android : centerColor =" #00262626 "
9+ android : endColor =" #00262626 "
1010 android : angle =" 90" />
1111 <corners android : radius =" 0dp" />
12- <stroke android : width =" 6px" android : color =" #262626 " />
12+ <stroke android : width =" 6px" android : color =" #00262626 " />
1313</shape >
Original file line number Diff line number Diff line change 44 xmlns : tools =" http://schemas.android.com/tools"
55 android : layout_width =" match_parent"
66 android : layout_height =" match_parent"
7- android : background =" #262626 "
7+ android : background =" #00262626 "
88 tools : context =" com.example.dhp.fullscreen.MainActivity" >
99
1010 <Button
1616 android : layout_centerHorizontal =" true"
1717 android : layout_marginBottom =" 25dp"
1818 android : textSize =" 25dp"
19- android : textColor =" #ffffff "
19+ android : textColor =" #00ffffff "
2020 android : padding =" 25dp"
2121 android : text =" Toggle State" />
2222
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<resources >
3- <color name =" colorPrimary" >#3F51B5 </color >
4- <color name =" colorPrimaryDark" >#303F9F </color >
5- <color name =" colorAccent" >#FF4081 </color >
3+ <color name =" colorPrimary" >#003f51b5 </color >
4+ <color name =" colorPrimaryDark" >#00303f9f </color >
5+ <color name =" colorAccent" >#00ff4081 </color >
66</resources >
Original file line number Diff line number Diff line change 33 <!-- Base application theme. -->
44 <style name =" AppTheme" parent =" Theme.AppCompat.Light.DarkActionBar" >
55 <!-- Customize your theme here. -->
6- <item name =" colorPrimary" >@color/colorPrimary</item >
7- <item name =" colorPrimaryDark" >@color/colorPrimaryDark</item >
8- <item name =" colorAccent" >@color/colorAccent</item >
6+ <item name =" android:windowIsTranslucent" >true</item >
7+ <item name =" android:windowBackground" >@android:color/transparent</item >
8+ <item name =" android:windowContentOverlay" >@null</item >
9+ <item name =" android:windowNoTitle" >true</item >
10+ <item name =" android:windowIsFloating" >true</item >
11+ <item name =" android:backgroundDimEnabled" >false</item >
912 </style >
1013
1114</resources >
You can’t perform that action at this time.
0 commit comments