actionmenu (right top) design changed
credits are now working again
This commit is contained in:
parent
9522a81df8
commit
4a4a808a88
@ -17,7 +17,6 @@ import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.RequiresApi;
|
||||
@ -107,7 +106,6 @@ public class EinstellungenFragment extends Fragment {
|
||||
theme1.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Toast.makeText(getContext(), "Theme1", Toast.LENGTH_SHORT).show();
|
||||
SharedPreferences.Editor editor = requireContext().getSharedPreferences("appsettings", MODE_PRIVATE).edit();
|
||||
editor.putString("Theme", "RED_BLUE");
|
||||
editor.apply();
|
||||
@ -121,7 +119,6 @@ public class EinstellungenFragment extends Fragment {
|
||||
theme2.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Toast.makeText(getContext(), "Theme2", Toast.LENGTH_SHORT).show();
|
||||
SharedPreferences.Editor editor = requireContext().getSharedPreferences("appsettings", MODE_PRIVATE).edit();
|
||||
editor.putString("Theme", "GREEN_YELLOW");
|
||||
editor.apply();
|
||||
@ -135,7 +132,6 @@ public class EinstellungenFragment extends Fragment {
|
||||
theme3.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Toast.makeText(getContext(), "Theme3", Toast.LENGTH_SHORT).show();
|
||||
SharedPreferences.Editor editor = requireContext().getSharedPreferences("appsettings", MODE_PRIVATE).edit();
|
||||
editor.putString("Theme", "ORANGE_TURQUOISE");
|
||||
editor.apply();
|
||||
@ -149,7 +145,6 @@ public class EinstellungenFragment extends Fragment {
|
||||
theme4.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Toast.makeText(getContext(), "Theme4", Toast.LENGTH_SHORT).show();
|
||||
SharedPreferences.Editor editor = requireContext().getSharedPreferences("appsettings", MODE_PRIVATE).edit();
|
||||
editor.putString("Theme", "YELLOW_BLUE");
|
||||
editor.apply();
|
||||
@ -163,7 +158,6 @@ public class EinstellungenFragment extends Fragment {
|
||||
theme5.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
Toast.makeText(getContext(), "Theme5", Toast.LENGTH_SHORT).show();
|
||||
SharedPreferences.Editor editor = requireContext().getSharedPreferences("appsettings", MODE_PRIVATE).edit();
|
||||
editor.putString("Theme", "PINK_GREEN");
|
||||
editor.apply();
|
||||
@ -214,7 +208,6 @@ public class EinstellungenFragment extends Fragment {
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
if (i == 0) {
|
||||
try {
|
||||
Toast.makeText(getContext(), "Colorpicker", Toast.LENGTH_SHORT).show();
|
||||
final ColorPickerView picker = new ColorPickerView(getContext());
|
||||
picker.setColor(0xff12345);
|
||||
AlertDialog mDialog = new AlertDialog.Builder(getContext()).setView(picker).setTitle(R.string.colorpicker).setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
|
||||
@ -229,7 +222,6 @@ public class EinstellungenFragment extends Fragment {
|
||||
}
|
||||
} else if (i == 1) {
|
||||
try {
|
||||
Toast.makeText(getContext(), "Colorpicker", Toast.LENGTH_SHORT).show();
|
||||
final ColorPickerView picker = new ColorPickerView(getContext());
|
||||
picker.setColor(0xff12345);
|
||||
AlertDialog mDialog = new AlertDialog.Builder(getContext()).setView(picker).setTitle(R.string.colorpicker).setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
|
||||
|
@ -60,7 +60,6 @@ public class IntroFragment extends Fragment {
|
||||
} else {
|
||||
videoBG.setScaleY(1f / scaleX);
|
||||
}
|
||||
System.out.println("VIDEOOOOO");
|
||||
mMediaPlayer = mediaPlayer;
|
||||
// We want our video to play over and over so we set looping to true.
|
||||
mMediaPlayer.setLooping(true);
|
||||
|
@ -73,7 +73,8 @@
|
||||
app:drawableTint="@color/mtrl_btn_text_color_selector"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/lizenz" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/lizenz"
|
||||
android:drawableLeft="@drawable/copyright_black_24dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/programmcode"
|
||||
|
@ -1,4 +1,4 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Theme.red_blue" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
<!-- Primary brand color. -->
|
||||
@ -23,6 +23,7 @@
|
||||
<item name="android:actionOverflowMenuStyle">@style/ActionPopupMenuStyle</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="Theme.red_blue.NoActionBar">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
@ -94,6 +95,7 @@
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="actionOverflowMenuStyle">@style/ActionPopupMenuStyle</item>
|
||||
<item name="colorControlActivated">@color/green</item>
|
||||
</style>
|
||||
|
||||
@ -115,6 +117,7 @@
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="actionOverflowMenuStyle">@style/ActionPopupMenuStyle</item>
|
||||
<item name="colorControlActivated">@color/orange</item>
|
||||
</style>
|
||||
|
||||
@ -136,6 +139,7 @@
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="actionOverflowMenuStyle">@style/ActionPopupMenuStyle</item>
|
||||
<item name="colorControlActivated">@color/yellow</item>
|
||||
</style>
|
||||
|
||||
@ -157,6 +161,7 @@
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="actionOverflowMenuStyle">@style/ActionPopupMenuStyle</item>
|
||||
<item name="colorControlActivated">@color/pink</item>
|
||||
</style>
|
||||
|
||||
|
@ -18,7 +18,11 @@
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here.-->
|
||||
<item name="android:itemBackground">@drawable/button_round</item>
|
||||
<item name="actionOverflowMenuStyle">@style/ActionPopupMenuStyle</item>
|
||||
</style>
|
||||
|
||||
<style name="ActionPopupMenuStyle" parent="Widget.AppCompat.PopupMenu">
|
||||
<item name="android:popupBackground">@drawable/button_round</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.red_blue.NoActionBar">
|
||||
@ -88,6 +92,7 @@
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="actionOverflowMenuStyle">@style/ActionPopupMenuStyle</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.orange_turquoise" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
@ -108,6 +113,7 @@
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="actionOverflowMenuStyle">@style/ActionPopupMenuStyle</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.yellow_blue" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
@ -128,6 +134,7 @@
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="actionOverflowMenuStyle">@style/ActionPopupMenuStyle</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.pink_green" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
@ -148,6 +155,7 @@
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="actionOverflowMenuStyle">@style/ActionPopupMenuStyle</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user