diff options
Diffstat (limited to 'androidApp/src/main/res/layout/unit_details_reports.xml')
-rw-r--r-- | androidApp/src/main/res/layout/unit_details_reports.xml | 56 |
1 files changed, 52 insertions, 4 deletions
diff --git a/androidApp/src/main/res/layout/unit_details_reports.xml b/androidApp/src/main/res/layout/unit_details_reports.xml index d0c50e5..e39f279 100644 --- a/androidApp/src/main/res/layout/unit_details_reports.xml +++ b/androidApp/src/main/res/layout/unit_details_reports.xml @@ -5,14 +5,62 @@ android:layout_width="match_parent" android:layout_height="match_parent"> + <View + android:id="@+id/reportMap" + android:layout_width="0dp" + android:layout_height="0dp" + 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"/> + + <ScrollView + android:id="@+id/eventsScroll" + android:layout_width="0dp" + android:layout_height="0dp" + 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"> + <TableLayout + android:id="@+id/eventsTable" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:stretchColumns="*" + android:scrollbars="vertical" + android:isScrollContainer="true"> + + <TableRow android:background="@color/colorPrimary"> + + <TextView + android:paddingHorizontal="@dimen/padding" + android:text="@string/table_event" + android:textColor="@color/background" /> + + <TextView + android:paddingHorizontal="@dimen/padding" + android:text="@string/table_datetime" + android:textColor="@color/background" /> + + </TableRow> + + </TableLayout> + </ScrollView> + <LinearLayout + android:id="@+id/periodSection" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_margin="@dimen/margin" android:orientation="vertical" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" - android:layout_margin="@dimen/margin"> + app:layout_constraintStart_toStartOf="parent"> <LinearLayout android:layout_width="match_parent" @@ -23,10 +71,10 @@ android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" + android:gravity="center_vertical" android:text="@string/period" android:textColor="@color/colorPrimaryDark" - android:textSize="22sp" - android:gravity="center_vertical"/> + android:textSize="22sp" /> <com.google.android.material.button.MaterialButton android:id="@+id/periodButton" |