diff options
author | Isidro Henoch <imhenoch@protonmail.com> | 2021-12-28 20:40:04 -0600 |
---|---|---|
committer | Isidro Henoch <imhenoch@protonmail.com> | 2021-12-28 20:40:04 -0600 |
commit | 81fc13c407fb5c2212b28e1e485da112a2f46a8e (patch) | |
tree | a7e703f8491ec899e307992847f29b197e045a3e /androidApp/src/main/res | |
parent | b1c56ed2de98b828a903f5c79e65a77ab2ceb0c8 (diff) | |
download | etbsa-trackermap-mobile-81fc13c407fb5c2212b28e1e485da112a2f46a8e.tar.gz etbsa-trackermap-mobile-81fc13c407fb5c2212b28e1e485da112a2f46a8e.tar.bz2 etbsa-trackermap-mobile-81fc13c407fb5c2212b28e1e485da112a2f46a8e.zip |
Diaplays the events report
Diffstat (limited to 'androidApp/src/main/res')
-rw-r--r-- | androidApp/src/main/res/layout/unit_details_reports.xml | 56 | ||||
-rw-r--r-- | androidApp/src/main/res/values/strings.xml | 2 |
2 files changed, 54 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" diff --git a/androidApp/src/main/res/values/strings.xml b/androidApp/src/main/res/values/strings.xml index 77a3048..7333a1e 100644 --- a/androidApp/src/main/res/values/strings.xml +++ b/androidApp/src/main/res/values/strings.xml @@ -39,4 +39,6 @@ <string name="month_period">Month</string> <string name="period">Period</string> <string name="select_period">Select</string> + <string name="table_event">Event</string> + <string name="table_datetime">Datetime</string> </resources>
\ No newline at end of file |