Skip to content

Commit 063247c

Browse files
committed
Fix Play layouts
1 parent 0f6b043 commit 063247c

File tree

3 files changed

+51
-4
lines changed

3 files changed

+51
-4
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ android {
1616
applicationId "org.nitri.opentopo"
1717
minSdkVersion 21
1818
targetSdkVersion 35
19-
versionCode 48
20-
versionName "1.21"
19+
versionCode 49
20+
versionName "1.21.1"
2121
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2222
vectorDrawables.useSupportLibrary = true
2323
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
4+
xmlns:tools="http://schemas.android.com/tools"
5+
android:id="@+id/main_container"
6+
android:layout_width="match_parent"
7+
android:layout_height="match_parent"
8+
android:fitsSystemWindows="false"
9+
tools:context=".MainActivity">
10+
11+
<androidx.appcompat.widget.Toolbar
12+
android:id="@+id/toolbar"
13+
android:layout_width="match_parent"
14+
android:layout_height="?attr/actionBarSize"
15+
android:background="?attr/colorPrimary"
16+
android:elevation="4dp"
17+
app:layout_constraintBottom_toTopOf="@+id/map_container"
18+
app:theme="@style/ActionBarStyle" />
19+
20+
<FrameLayout
21+
android:id="@+id/map_container"
22+
android:layout_width="match_parent"
23+
android:layout_height="0dp"
24+
android:layout_marginTop="?attr/actionBarSize"
25+
app:layout_constraintBottom_toBottomOf="parent"
26+
app:layout_constraintLeft_toLeftOf="parent"
27+
app:layout_constraintRight_toRightOf="parent"
28+
app:layout_constraintTop_toTopOf="parent" />
29+
30+
<FrameLayout
31+
android:id="@+id/ad_view_container"
32+
android:layout_width="match_parent"
33+
android:layout_height="wrap_content"
34+
app:layout_constraintBottom_toBottomOf="parent"
35+
app:layout_constraintLeft_toLeftOf="parent"
36+
app:layout_constraintRight_toRightOf="parent" />
37+
</androidx.constraintlayout.widget.ConstraintLayout>

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,28 @@
22
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
xmlns:tools="http://schemas.android.com/tools"
5+
android:id="@+id/main_container"
56
android:layout_width="match_parent"
67
android:layout_height="match_parent"
78
tools:context=".MainActivity">
89

10+
<androidx.appcompat.widget.Toolbar
11+
android:id="@+id/toolbar"
12+
android:layout_width="match_parent"
13+
android:layout_height="?attr/actionBarSize"
14+
android:background="?attr/colorPrimary"
15+
android:elevation="4dp"
16+
app:layout_constraintTop_toTopOf="parent"
17+
app:theme="@style/ActionBarStyle" />
18+
919
<FrameLayout
1020
android:id="@+id/map_container"
1121
android:layout_width="match_parent"
1222
android:layout_height="0dp"
13-
app:layout_constraintBottom_toTopOf="@id/ad_view_container"
23+
app:layout_constraintBottom_toBottomOf="parent"
1424
app:layout_constraintLeft_toLeftOf="parent"
1525
app:layout_constraintRight_toRightOf="parent"
16-
app:layout_constraintTop_toTopOf="parent" />
26+
app:layout_constraintTop_toBottomOf="@id/toolbar" />
1727

1828
<FrameLayout
1929
android:id="@+id/ad_view_container"

0 commit comments

Comments
 (0)