File tree Expand file tree Collapse file tree
androidTest/java/de/mide/android/zweiactivites
java/de/mide/android/zweiactivites
test/java/de/mide/android/zweiactivites Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ plugins {
33}
44
55android {
6- namespace ' de.mide.zweiactivities '
7- compileSdk 34
6+ namespace ' de.mide.android.zweiactivites '
7+ compileSdk 36
88
99 defaultConfig {
10- applicationId " de.mide.zweiactivities "
10+ applicationId " de.mide.android.zweiactivites "
1111 minSdk 24
12- targetSdk 34
12+ targetSdk 36
1313 versionCode 1
1414 versionName " 1.0"
1515
@@ -23,8 +23,8 @@ android {
2323 }
2424 }
2525 compileOptions {
26- sourceCompatibility JavaVersion . VERSION_1_8
27- targetCompatibility JavaVersion . VERSION_1_8
26+ sourceCompatibility JavaVersion . VERSION_11
27+ targetCompatibility JavaVersion . VERSION_11
2828 }
2929}
3030
Original file line number Diff line number Diff line change 1- package de .mide .zweiactivities ;
1+ package de .mide .android . zweiactivites ;
22
33import android .content .Context ;
44
@@ -21,6 +21,6 @@ public class ExampleInstrumentedTest {
2121 public void useAppContext () {
2222 // Context of the app under test.
2323 Context appContext = InstrumentationRegistry .getInstrumentation ().getTargetContext ();
24- assertEquals ("de.mide.zweiactivities " , appContext .getPackageName ());
24+ assertEquals ("de.mide.android.zweiactivites " , appContext .getPackageName ());
2525 }
2626}
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <manifest xmlns : android = " http://schemas.android.com/apk/res/android "
3- xmlns : tools =" http://schemas.android.com/tools "
4- android : installLocation = " auto " >
2+ <manifest
3+ xmlns : android =" http://schemas.android.com/apk/res/android "
4+ xmlns : tools = " http://schemas.android.com/tools " >
55
66 <application
77 android : allowBackup =" true"
1111 android : label =" @string/app_name"
1212 android : roundIcon =" @mipmap/ic_launcher_round"
1313 android : supportsRtl =" true"
14- android : theme =" @style/Theme.ZweiActivities"
15- tools : targetApi =" 31" >
16-
17- <activity
18- android : name =" .Activity2"
19- android : exported =" false" />
14+ android : theme =" @style/Theme.ZweiActivites" >
2015
2116 <activity
2217 android : name =" .Activity1"
2318 android : exported =" true" >
19+
2420 <intent-filter >
2521 <action android : name =" android.intent.action.MAIN" />
2622 <category android : name =" android.intent.category.LAUNCHER" />
23+
2724 </intent-filter >
25+
2826 </activity >
2927
28+
29+ <activity
30+ android : name =" .Activity2"
31+ android : exported =" false" />
32+
3033 </application >
3134
3235</manifest >
Original file line number Diff line number Diff line change 1- package de .mide .zweiactivities ;
1+ package de .mide .android . zweiactivites ;
22
33import android .app .Activity ;
44import android .content .Intent ;
1616 * This project is licensed under the terms of the BSD 3-Clause License.
1717 */
1818public class Activity1 extends Activity
19- implements View .OnClickListener {
19+ implements View .OnClickListener {
2020
2121 /** UI-Elemente zur Eingabe von Text durch den Nutzer. */
2222 protected EditText _editText = null ;
Original file line number Diff line number Diff line change 1- package de .mide .zweiactivities ;
1+ package de .mide .android . zweiactivites ;
22
33import android .app .Activity ;
44import android .content .Intent ;
1717 * This project is licensed under the terms of the BSD 3-Clause License.
1818 */
1919public class Activity2 extends Activity
20- implements View .OnClickListener {
20+ implements View .OnClickListener {
2121
2222 /** UI-Element zur Anzeige von Text, der auf Activity1 eingegeben wurde. */
2323 protected TextView _textView = null ;
Original file line number Diff line number Diff line change 66 android : layout_height =" match_parent"
77 android : background =" #FFFF00"
88 android : orientation =" vertical"
9+ android : fitsSystemWindows =" true"
910 tools : context =" .Activity1" >
1011
1112 <EditText
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2+ <LinearLayout
3+ xmlns : android =" http://schemas.android.com/apk/res/android"
34 xmlns : tools =" http://schemas.android.com/tools"
45 android : layout_width =" match_parent"
56 android : layout_height =" match_parent"
67 android : background =" #8030FF00"
78 android : orientation =" vertical"
9+ android : fitsSystemWindows =" true"
810 tools : context =" .Activity2" >
911
1012 <EditText
Original file line number Diff line number Diff line change 11<resources xmlns : tools =" http://schemas.android.com/tools" >
22 <!-- Base application theme. -->
3- <style name =" Theme.ZweiActivities" parent =" Theme.MaterialComponents.DayNight.DarkActionBar" >
4- <!-- Primary brand color. -->
5- <item name =" colorPrimary" >@color/purple_200</item >
6- <item name =" colorPrimaryVariant" >@color/purple_700</item >
7- <item name =" colorOnPrimary" >@color/black</item >
8- <!-- Secondary brand color. -->
9- <item name =" colorSecondary" >@color/teal_200</item >
10- <item name =" colorSecondaryVariant" >@color/teal_200</item >
11- <item name =" colorOnSecondary" >@color/black</item >
12- <!-- Status bar color. -->
13- <item name =" android:statusBarColor" >?attr/colorPrimaryVariant</item >
14- <!-- Customize your theme here. -->
3+ <style name =" Base.Theme.ZweiActivites" parent =" Theme.Material3.DayNight.NoActionBar" >
4+ <!-- Customize your dark theme here. -->
5+ <!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
156 </style >
167</resources >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<resources >
3- <color name =" purple_200" >#FFBB86FC</color >
4- <color name =" purple_500" >#FF6200EE</color >
5- <color name =" purple_700" >#FF3700B3</color >
6- <color name =" teal_200" >#FF03DAC5</color >
7- <color name =" teal_700" >#FF018786</color >
83 <color name =" black" >#FF000000</color >
94 <color name =" white" >#FFFFFFFF</color >
105</resources >
Original file line number Diff line number Diff line change 11<resources xmlns : tools =" http://schemas.android.com/tools" >
22 <!-- Base application theme. -->
3- <style name =" Theme.ZweiActivities" parent =" Theme.MaterialComponents.DayNight.DarkActionBar" >
4- <!-- Primary brand color. -->
5- <item name =" colorPrimary" >@color/purple_500</item >
6- <item name =" colorPrimaryVariant" >@color/purple_700</item >
7- <item name =" colorOnPrimary" >@color/white</item >
8- <!-- Secondary brand color. -->
9- <item name =" colorSecondary" >@color/teal_200</item >
10- <item name =" colorSecondaryVariant" >@color/teal_700</item >
11- <item name =" colorOnSecondary" >@color/black</item >
12- <!-- Status bar color. -->
13- <item name =" android:statusBarColor" >?attr/colorPrimaryVariant</item >
14- <!-- Customize your theme here. -->
3+ <style name =" Base.Theme.ZweiActivites" parent =" Theme.Material3.DayNight.NoActionBar" >
4+ <!-- Customize your light theme here. -->
5+ <!-- <item name="colorPrimary">@color/my_light_primary</item> -->
156 </style >
7+
8+ <style name =" Theme.ZweiActivites" parent =" Base.Theme.ZweiActivites" />
169</resources >
You can’t perform that action at this time.
0 commit comments