Skip to content

Commit f2ff18e

Browse files
committed
No activity
1 parent 0a0bea1 commit f2ff18e

File tree

7 files changed

+25
-14
lines changed

7 files changed

+25
-14
lines changed

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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">

app/src/main/java/com/example/dhp/fullscreen/MainActivity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

app/src/main/res/drawable/togglebutton.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
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>

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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
@@ -16,7 +16,7 @@
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

app/src/main/res/values/colors.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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>

app/src/main/res/values/styles.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
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>

0 commit comments

Comments
 (0)