<?
xml version=
"1.0" encoding=
"utf-8"?>
<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:
id=
"@+id/main_content"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical">
<
include layout=
"@layout/toolbar_view" />
<com.google.android.material.card.MaterialCardView
android:
id=
"@+id/avatar_container"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_margin=
"@dimen/grid_unit_x1"
android:clickable=
"false"
android:focusable=
"false"
android:outlineProvider=
"none"
app:cardBackgroundColor=
"?attr/colorSurface"
app:cardElevation=
"4dp"
app:contentPaddingBottom=
"16dp"
app:contentPaddingLeft=
"15dp"
app:contentPaddingRight=
"15dp"
app:contentPaddingTop=
"12dp"
app:strokeWidth=
"0dp">
<TextView
android:
id=
"@+id/text_view"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginLeft=
"@dimen/tablet_additional_padding_horizontal"
android:layout_marginRight=
"@dimen/tablet_additional_padding_horizontal"
android:gravity=
"center"
android:text=
"Title"
android:textAppearance=
"@style/Threema.TextAppearance.List.FirstLine" />
</com.google.android.material.card.MaterialCardView>
<TextView
android:
id=
"@+id/no_votes_yet"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_gravity=
"center"
android:gravity=
"center"
android:text=
"@string/no_votes_yet"
android:textAlignment=
"center"
android:textAppearance=
"@style/Threema.TextAppearance.EmptyView"
android:visibility=
"gone"
tools:visibility=
"visible" />
<androidx.core.widget.NestedScrollView
android:
id=
"@+id/scroll_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"@dimen/tablet_additional_padding_horizontal"
android:layout_marginRight=
"@dimen/tablet_additional_padding_horizontal"
android:clipToPadding=
"false"
android:visibility=
"gone">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent">
<HorizontalScrollView
android:
id=
"@+id/horizontalScrollView1"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"4dp"
android:layout_marginBottom=
"4dp"
android:scrollbarSize=
"@dimen/scrollbar_size"
android:scrollbarStyle=
"insideOverlay"
app:layout_constraintBottom_toTopOf=
"@+id/not_voted_container"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent">
<TableLayout
android:
id=
"@+id/matrix_data"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:baselineAligned=
"true"
android:paddingLeft=
"8dp"
android:paddingTop=
"4dp"
android:paddingRight=
"8dp"
android:paddingBottom=
"4dp">
<TableRow
android:
id=
"@+id/header_row_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content">
<View
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"></View>
<View
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"></View>
<
include layout=
"@layout/row_cell_ballot_matrix_name" />
<
include layout=
"@layout/row_cell_ballot_matrix_name" />
</TableRow>
<TableRow
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content">
<
include layout=
"@layout/row_cell_ballot_matrix_choice_label" />
<
include layout=
"@layout/row_cell_ballot_matrix_choice_sum" />
<
include layout=
"@layout/row_cell_ballot_matrix_choice" />
<
include layout=
"@layout/row_cell_ballot_matrix_choice" />
</TableRow>
<TableRow
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content">
<
include layout=
"@layout/row_cell_ballot_matrix_choice_label" />
<
include layout=
"@layout/row_cell_ballot_matrix_choice_sum" />
<
include layout=
"@layout/row_cell_ballot_matrix_choice" />
<
include layout=
"@layout/row_cell_ballot_matrix_choice" />
</TableRow>
</TableLayout>
</HorizontalScrollView>
<com.google.android.material.card.MaterialCardView
android:
id=
"@+id/not_voted_container"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"8dp"
android:layout_marginTop=
"8dp"
android:layout_marginRight=
"8dp"
android:layout_marginBottom=
"16dp"
android:clickable=
"false"
android:focusable=
"false"
android:outlineProvider=
"none"
app:cardBackgroundColor=
"?attr/colorSurface"
app:cardCornerRadius=
"@dimen/cardview_border_radius"
app:cardElevation=
"4dp"
app:contentPaddingBottom=
"16dp"
app:contentPaddingLeft=
"15dp"
app:contentPaddingRight=
"15dp"
app:contentPaddingTop=
"12dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/horizontalScrollView1"
app:strokeWidth=
"0dp">
<TextView
android:
id=
"@+id/not_voted"
style=
"@style/Threema.TextAppearance.BodyMedium"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"left" />
</com.google.android.material.card.MaterialCardView>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout>