diff options
author | Isidro Henoch <imhenoch@protonmail.com> | 2021-12-16 02:38:42 -0600 |
---|---|---|
committer | Isidro Henoch <imhenoch@protonmail.com> | 2021-12-16 02:38:42 -0600 |
commit | 6ed24f2be979187d90ab3250d02d8b71fc570535 (patch) | |
tree | 782a8e1f583f13ebfa05c9c9cd89f4e93b0ab2b2 /androidApp/src/main/res | |
parent | 84c797ac104c0fff96ba6793cefaa5ba0b4887fc (diff) | |
download | etbsa-trackermap-mobile-6ed24f2be979187d90ab3250d02d8b71fc570535.tar.gz etbsa-trackermap-mobile-6ed24f2be979187d90ab3250d02d8b71fc570535.tar.bz2 etbsa-trackermap-mobile-6ed24f2be979187d90ab3250d02d8b71fc570535.zip |
Adds a very basic UI to display details
Diffstat (limited to 'androidApp/src/main/res')
-rw-r--r-- | androidApp/src/main/res/layout/unit_details_information.xml | 89 |
1 files changed, 77 insertions, 12 deletions
diff --git a/androidApp/src/main/res/layout/unit_details_information.xml b/androidApp/src/main/res/layout/unit_details_information.xml index 1e88af8..dae2056 100644 --- a/androidApp/src/main/res/layout/unit_details_information.xml +++ b/androidApp/src/main/res/layout/unit_details_information.xml @@ -1,19 +1,84 @@ <?xml version="1.0" encoding="utf-8"?> -<androidx.constraintlayout.widget.ConstraintLayout +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - xmlns:app="http://schemas.android.com/apk/res-auto" - xmlns:tools="http://schemas.android.com/tools"> + android:orientation="vertical" + android:scrollbars="vertical"> - <TextView - android:id="@+id/unitInformationText" - android:layout_width="wrap_content" + <com.google.android.material.card.MaterialCardView + android:layout_width="match_parent" android:layout_height="wrap_content" - app:layout_constraintTop_toTopOf="parent" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintBottom_toBottomOf="parent" - tools:text="INFORMATION"/> + app:cardCornerRadius="@dimen/card_border_radius" + app:cardElevation="@dimen/card_elevation" + app:cardUseCompatPadding="true" + app:contentPadding="@dimen/card_padding"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:id="@+id/deviceName" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textColor="@color/colorPrimaryDark" + android:textSize="26dp" + tools:text="1AAUTO" /> + + <TextView + android:id="@+id/driverDetail" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textColor="@color/colorPrimaryDark" + android:textSize="18dp" + tools:text="Javier Zavala" /> + + <TextView + android:id="@+id/speedDetail" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textColor="@color/colorPrimaryDark" + android:textSize="18dp" + tools:text="0Km/h - Stopped" /> + + <TextView + android:id="@+id/addressDetail" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textColor="@color/colorPrimaryDark" + android:textSize="18dp" + tools:text="404 Av. Arboledas, Celaya, Gto." /> + + <TextView + android:id="@+id/latitudeDetail" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textColor="@color/colorPrimaryDark" + android:textSize="18dp" + tools:text="20.32958356" /> + + <TextView + android:id="@+id/longitudeDetail" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textColor="@color/colorPrimaryDark" + android:textSize="18dp" + tools:text="-101.38659274" /> + + <TextView + android:id="@+id/protocolDetail" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textColor="@color/colorPrimaryDark" + android:textSize="18dp" + tools:text="osmand" /> + + </LinearLayout> + + </com.google.android.material.card.MaterialCardView> -</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file +</LinearLayout>
\ No newline at end of file |