Merge pull request #2430 from nextcloud/bugfix/2426/verticalButtonsForPolls

change poll buttons to vertical orientation
This commit is contained in:
Marcel Hibbe 2022-09-27 11:26:18 +02:00 committed by GitHub
commit 51d4b54aa4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 21 deletions

View file

@ -42,26 +42,27 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/standard_margin"
android:gravity="end">
<com.google.android.material.button.MaterialButton
android:id="@+id/poll_results_end_poll_button"
style="@style/Button.Borderless"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/standard_margin"
android:minHeight="@dimen/min_size_clickable_area"
android:text="@string/polls_end_poll"
app:cornerRadius="@dimen/button_corner_radius" />
android:orientation="vertical"
android:gravity="center">
<com.google.android.material.button.MaterialButton
android:id="@+id/edit_vote_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="@dimen/min_size_clickable_area"
android:minWidth="@dimen/poll_buttons_min_width"
android:text="@string/polls_edit_vote"
android:theme="@style/Button.Primary"
app:cornerRadius="@dimen/button_corner_radius" />
<com.google.android.material.button.MaterialButton
android:id="@+id/poll_results_end_poll_button"
style="@style/Button.Borderless"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="@dimen/min_size_clickable_area"
android:text="@string/polls_end_poll"
app:cornerRadius="@dimen/button_corner_radius" />
</LinearLayout>
</LinearLayout>

View file

@ -56,16 +56,17 @@
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/standard_margin"
android:layout_marginEnd="4dp"
android:gravity="end">
android:orientation="vertical"
android:gravity="center">
<com.google.android.material.button.MaterialButton
android:id="@+id/poll_vote_end_poll_button"
style="@style/Button.Borderless"
android:id="@+id/poll_vote_submit_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/standard_margin"
android:minHeight="@dimen/min_size_clickable_area"
android:text="@string/polls_end_poll"
android:minWidth="@dimen/poll_buttons_min_width"
android:text="@string/polls_submit_vote"
android:theme="@style/Button.Primary"
app:cornerRadius="@dimen/button_corner_radius" />
<com.google.android.material.button.MaterialButton
@ -73,20 +74,20 @@
style="@style/OutlinedButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/standard_margin"
android:minHeight="@dimen/min_size_clickable_area"
android:minWidth="@dimen/poll_buttons_min_width"
android:text="@string/nc_common_dismiss"
android:visibility="gone"
app:cornerRadius="@dimen/button_corner_radius"
tools:visibility="visible" />
<com.google.android.material.button.MaterialButton
android:id="@+id/poll_vote_submit_button"
android:id="@+id/poll_vote_end_poll_button"
style="@style/Button.Borderless"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="@dimen/min_size_clickable_area"
android:text="@string/polls_submit_vote"
android:theme="@style/Button.Primary"
android:text="@string/polls_end_poll"
app:cornerRadius="@dimen/button_corner_radius" />
</LinearLayout>

View file

@ -82,4 +82,8 @@
<dimen name="default_checkbox_dialog_start_margin">18dp</dimen>
<dimen name="mediatab_file_icon_size">50dp</dimen>
<dimen name="poll_buttons_min_width">150dp</dimen>
</resources>

View file

@ -272,7 +272,6 @@
<item name="android:textAllCaps">false</item>
<item name="android:typeface">sans</item>
<item name="android:textStyle">bold</item>
<item name="android:layout_gravity">center_vertical</item>
</style>
<style name="TextAppearanceTab" parent="TextAppearance.Design.Tab">