diff options
author | Isidro Henoch <imhenoch@protonmail.com> | 2022-01-02 16:14:50 -0600 |
---|---|---|
committer | Isidro Henoch <imhenoch@protonmail.com> | 2022-01-02 16:14:50 -0600 |
commit | 0650761584d66991fe5dd5114939ab14ec70feb0 (patch) | |
tree | f35bf87805bcc675c94582652ab7c8bf11554cff /androidApp/src/main/res/layout | |
parent | 81fc13c407fb5c2212b28e1e485da112a2f46a8e (diff) | |
download | etbsa-trackermap-mobile-0650761584d66991fe5dd5114939ab14ec70feb0.tar.gz etbsa-trackermap-mobile-0650761584d66991fe5dd5114939ab14ec70feb0.tar.bz2 etbsa-trackermap-mobile-0650761584d66991fe5dd5114939ab14ec70feb0.zip |
Disables tab layout swipe gestures on the details activity
Diffstat (limited to 'androidApp/src/main/res/layout')
-rw-r--r-- | androidApp/src/main/res/layout/details_activity.xml | 14 | ||||
-rw-r--r-- | androidApp/src/main/res/layout/unit_details_reports.xml | 19 |
2 files changed, 17 insertions, 16 deletions
diff --git a/androidApp/src/main/res/layout/details_activity.xml b/androidApp/src/main/res/layout/details_activity.xml index 00ebdbf..f79ea69 100644 --- a/androidApp/src/main/res/layout/details_activity.xml +++ b/androidApp/src/main/res/layout/details_activity.xml @@ -1,25 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" - android:layout_height="match_parent" - xmlns:app="http://schemas.android.com/apk/res-auto"> + android:layout_height="match_parent"> <com.google.android.material.tabs.TabLayout android:id="@+id/detailsTabs" android:layout_width="match_parent" android:layout_height="wrap_content" + app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" - app:layout_constraintEnd_toEndOf="parent"/> + app:layout_constraintTop_toTopOf="parent" /> <androidx.viewpager2.widget.ViewPager2 android:id="@+id/detailsPager" android:layout_width="match_parent" android:layout_height="0dp" - app:layout_constraintTop_toBottomOf="@id/detailsTabs" - app:layout_constraintStart_toStartOf="parent" + app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintBottom_toBottomOf="parent"/> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/detailsTabs" /> </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/androidApp/src/main/res/layout/unit_details_reports.xml b/androidApp/src/main/res/layout/unit_details_reports.xml index e39f279..cf3c7b2 100644 --- a/androidApp/src/main/res/layout/unit_details_reports.xml +++ b/androidApp/src/main/res/layout/unit_details_reports.xml @@ -9,31 +9,32 @@ android:id="@+id/reportMap" android:layout_width="0dp" android:layout_height="0dp" + android:layout_margin="@dimen/margin" + android:background="@color/darkBackground" + android:visibility="gone" app:layout_constraintBottom_toTopOf="@id/periodSection" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" - android:layout_margin="@dimen/margin" - android:visibility="gone" - android:background="@color/darkBackground"/> + app:layout_constraintTop_toTopOf="parent" /> <ScrollView android:id="@+id/eventsScroll" android:layout_width="0dp" android:layout_height="0dp" + android:layout_margin="@dimen/margin" + android:visibility="gone" app:layout_constraintBottom_toTopOf="@id/periodSection" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" - android:layout_margin="@dimen/margin" - android:visibility="gone"> + app:layout_constraintTop_toTopOf="parent"> + <TableLayout android:id="@+id/eventsTable" android:layout_width="match_parent" android:layout_height="wrap_content" - android:stretchColumns="*" + android:isScrollContainer="true" android:scrollbars="vertical" - android:isScrollContainer="true"> + android:stretchColumns="*"> <TableRow android:background="@color/colorPrimary"> |