File tree 4 files changed +17
-4
lines changed
src/org/oscim/android/test
4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ allprojects {
19
19
}
20
20
}
21
21
22
- static def androidCompileSdk () { return 34 }
22
+ static def androidCompileSdk () { return 35 }
23
23
24
24
static def androidMinSdk () { return 21 }
25
25
26
- static def androidTargetSdk () { return 34 }
26
+ static def androidTargetSdk () { return 35 }
27
27
28
28
static def versionCode () { return 1 }
29
29
Original file line number Diff line number Diff line change 16
16
android : icon =" @mipmap/ic_launcher"
17
17
android : label =" @string/app_name"
18
18
android : requestLegacyExternalStorage =" true"
19
+ android : theme =" @style/AppThemeLight"
19
20
android : usesCleartextTraffic =" true" >
20
21
<activity
21
22
android : name =" .Samples"
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <resources xmlns : tools =" http://schemas.android.com/tools" >
3
+
4
+ <style name =" AppThemeDark" parent =" android:Theme.Material" >
5
+ <item name =" android:fitsSystemWindows" tools : targetApi =" VANILLA_ICE_CREAM" >true</item >
6
+ </style >
7
+
8
+ <style name =" AppThemeLight" parent =" android:Theme.Material.Light.DarkActionBar" >
9
+ <item name =" android:fitsSystemWindows" tools : targetApi =" VANILLA_ICE_CREAM" >true</item >
10
+ </style >
11
+
12
+ </resources >
Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ public void onCreate(Bundle savedInstanceState) {
52
52
super .onCreate (savedInstanceState );
53
53
54
54
// Map view
55
- mapView = new MapView ( this );
56
- setContentView ( mapView );
55
+ setContentView ( R . layout . activity_map );
56
+ mapView = findViewById ( R . id . mapView );
57
57
58
58
// Open map
59
59
Intent intent = new Intent (Build .VERSION .SDK_INT >= Build .VERSION_CODES .KITKAT ? Intent .ACTION_OPEN_DOCUMENT : Intent .ACTION_GET_CONTENT );
You can’t perform that action at this time.
0 commit comments