mirror of https://github.com/tuskyapp/Tusky.git
Browse Source
- easier to read - easier to see where one text starts and the other one ends especially when multiline - larger clickable areas Before <img src="https://github.com/user-attachments/assets/131e30df-2880-4c71-9895-017d28a05853" width="300"/> <img src="https://github.com/user-attachments/assets/796ab3ab-7f2e-4c5e-8afb-6daaf6938406" width="300"/> After <img src="https://github.com/user-attachments/assets/dff1577b-7931-4478-be0d-9541b148b4be" width="300"/> <img src="https://github.com/user-attachments/assets/09f6f513-3d94-41eb-af97-342cf42d7466" width="300"/>pull/5074/head^2
8 changed files with 237 additions and 120 deletions
@ -0,0 +1,10 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:width="24dp" |
||||
android:height="24dp" |
||||
android:viewportWidth="960" |
||||
android:viewportHeight="960" |
||||
android:tint="?attr/colorControlNormal"> |
||||
<path |
||||
android:fillColor="@android:color/white" |
||||
android:pathData="M424,664L706,382L650,326L424,552L310,438L254,494L424,664ZM480,880Q397,880 324,848.5Q251,817 197,763Q143,709 111.5,636Q80,563 80,480Q80,397 111.5,324Q143,251 197,197Q251,143 324,111.5Q397,80 480,80Q563,80 636,111.5Q709,143 763,197Q817,251 848.5,324Q880,397 880,480Q880,563 848.5,636Q817,709 763,763Q709,817 636,848.5Q563,880 480,880ZM480,800Q614,800 707,707Q800,614 800,480Q800,346 707,253Q614,160 480,160Q346,160 253,253Q160,346 160,480Q160,614 253,707Q346,800 480,800ZM480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Q480,480 480,480Z"/> |
||||
</vector> |
||||
@ -1,43 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
<com.google.android.material.card.MaterialCardView 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="wrap_content"> |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="6dp" |
||||
app:cardCornerRadius="8dp" |
||||
app:cardBackgroundColor="?android:attr/colorBackground" |
||||
app:strokeColor="?attr/colorBackgroundAccent"> |
||||
|
||||
<TextView |
||||
android:id="@+id/status_poll_option_result" |
||||
<FrameLayout |
||||
android:id="@+id/pollLayout" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="6dp" |
||||
android:background="@drawable/poll_option_background" |
||||
android:maxLines="3" |
||||
android:ellipsize="end" |
||||
android:paddingStart="6dp" |
||||
android:paddingTop="2dp" |
||||
android:paddingEnd="6dp" |
||||
android:paddingBottom="2dp" |
||||
android:textAlignment="viewStart" |
||||
android:textColor="?android:attr/textColorPrimary" |
||||
android:textSize="?attr/status_text_medium" |
||||
tools:text="40%" /> |
||||
android:paddingStart="4dp" |
||||
android:paddingTop="4dp" |
||||
android:paddingEnd="4dp" |
||||
android:paddingBottom="4dp"> |
||||
|
||||
<RadioButton |
||||
android:id="@+id/status_poll_radio_button" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:textColor="?android:attr/textColorPrimary" |
||||
android:textSize="?attr/status_text_medium" |
||||
app:buttonTint="@color/compound_button_color" |
||||
tools:text="Option 1" /> |
||||
<TextView |
||||
android:id="@+id/status_poll_option_result" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:ellipsize="end" |
||||
android:lineSpacingMultiplier="1.1" |
||||
android:maxLines="3" |
||||
android:paddingStart="6dp" |
||||
android:paddingEnd="6dp" |
||||
android:textAlignment="viewStart" |
||||
android:textColor="?android:attr/textColorPrimary" |
||||
android:textSize="?attr/status_text_medium" |
||||
tools:text="40%" /> |
||||
|
||||
<CheckBox |
||||
android:id="@+id/status_poll_checkbox" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:textColor="?android:attr/textColorPrimary" |
||||
android:textSize="?attr/status_text_medium" |
||||
app:buttonTint="@color/compound_button_color" |
||||
tools:text="Option 1" /> |
||||
<RadioButton |
||||
android:id="@+id/status_poll_radio_button" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:lineSpacingMultiplier="1.1" |
||||
android:paddingStart="4dp" |
||||
android:paddingEnd="0dp" |
||||
android:textColor="?android:attr/textColorPrimary" |
||||
android:textSize="?attr/status_text_medium" |
||||
app:buttonTint="@color/compound_button_color" |
||||
tools:text="Option 1" /> |
||||
|
||||
<CheckBox |
||||
android:id="@+id/status_poll_checkbox" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:lineSpacingMultiplier="1.1" |
||||
android:paddingStart="4dp" |
||||
android:paddingTop="2dp" |
||||
android:paddingEnd="0dp" |
||||
android:paddingBottom="2dp" |
||||
android:textColor="?android:attr/textColorPrimary" |
||||
android:textSize="?attr/status_text_medium" |
||||
app:buttonTint="@color/compound_button_color" |
||||
tools:text="Option 1" /> |
||||
|
||||
</FrameLayout> |
||||
</FrameLayout> |
||||
</com.google.android.material.card.MaterialCardView> |
||||
|
||||
Loading…
Reference in new issue