align poll buttons to right

make end poll button outlined

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-09-29 11:19:46 +02:00
parent 84bcd0c273
commit 47a93d2c85
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B
3 changed files with 7 additions and 6 deletions

View file

@ -128,7 +128,7 @@ class PollVoteFragment : Fragment() {
private fun themeDialog() {
viewThemeUtils.material.colorMaterialButtonPrimaryFilled(binding.pollVoteSubmitButton)
viewThemeUtils.material.colorMaterialButtonText(binding.pollVoteEndPollButton)
viewThemeUtils.material.colorMaterialButtonPrimaryOutlined(binding.pollVoteEndPollButton)
viewThemeUtils.material.colorMaterialButtonPrimaryOutlined(binding.pollVoteEditDismiss)
}

View file

@ -43,7 +43,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/standard_margin"
android:orientation="vertical"
android:gravity="center">
android:gravity="end">
<com.google.android.material.button.MaterialButton
android:id="@+id/edit_vote_button"
@ -57,10 +57,11 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/poll_results_end_poll_button"
style="@style/Button.Borderless"
style="@style/OutlinedButton"
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_end_poll"
app:cornerRadius="@dimen/button_corner_radius" />
</LinearLayout>

View file

@ -57,7 +57,7 @@
android:layout_marginTop="@dimen/standard_margin"
android:layout_marginEnd="4dp"
android:orientation="vertical"
android:gravity="center">
android:gravity="end">
<com.google.android.material.button.MaterialButton
android:id="@+id/poll_vote_submit_button"
@ -66,7 +66,6 @@
android:minHeight="@dimen/min_size_clickable_area"
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
@ -83,10 +82,11 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/poll_vote_end_poll_button"
style="@style/Button.Borderless"
style="@style/OutlinedButton"
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_end_poll"
app:cornerRadius="@dimen/button_corner_radius" />
</LinearLayout>