updating the Bright display button

This commit is contained in:
tibbi 2021-11-13 15:45:31 +01:00
parent 07887cf149
commit 6a308cd511
4 changed files with 9 additions and 9 deletions

View File

@ -55,7 +55,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:c615eda325'
implementation 'com.github.SimpleMobileTools:Simple-Commons:820461691b'
implementation 'org.greenrobot:eventbus:3.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
}

View File

@ -13,10 +13,12 @@ import kotlinx.android.synthetic.main.activity_bright_display.*
class BrightDisplayActivity : SimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD or
window.addFlags(
WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD or
WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED or
WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON or
WindowManager.LayoutParams.FLAG_FULLSCREEN)
WindowManager.LayoutParams.FLAG_FULLSCREEN
)
useDynamicTheme = false
super.onCreate(savedInstanceState)

View File

@ -10,15 +10,13 @@
android:layout_height="match_parent"
android:background="@android:color/white" />
<TextView
<android.widget.TextView
android:id="@+id/bright_display_change_color"
style="@style/StrokeButtonStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:alpha="0.5"
android:background="@drawable/button_background"
android:padding="@dimen/activity_margin"
android:text="@string/change_color"
android:textSize="@dimen/big_text_size" />
android:text="@string/change_color" />
</RelativeLayout>

View File

@ -1,6 +1,6 @@
<resources>
<style name="AppTheme" parent="AppTheme.Base"/>
<style name="AppTheme" parent="AppTheme.Base" />
<style name="FullScreenTheme" parent="AppTheme">
<item name="android:windowContentOverlay">@null</item>