Poll voting
This commit is contained in:
17
mastodon/src/main/res/drawable/bg_poll_option_voted.xml
Normal file
17
mastodon/src/main/res/drawable/bg_poll_option_voted.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape>
|
||||
<solid android:color="?android:colorBackground"/>
|
||||
<corners android:radius="10dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<clip android:clipOrientation="horizontal" android:gravity="start">
|
||||
<shape>
|
||||
<solid android:color="@color/poll_option_progress"/>
|
||||
<corners android:radius="10dp"/>
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
</layer-list>
|
||||
@@ -0,0 +1,3 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">
|
||||
<path android:pathData="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 1.5c-4.694 0-8.5 3.806-8.5 8.5s3.806 8.5 8.5 8.5 8.5-3.806 8.5-8.5-3.806-8.5-8.5-8.5zm-1.25 9.94l4.47-4.47c0.293-0.293 0.767-0.293 1.06 0 0.267 0.266 0.29 0.683 0.073 0.976L16.28 10.03l-5 5c-0.266 0.267-0.683 0.29-0.976 0.073L10.22 15.03l-2.5-2.5c-0.293-0.293-0.293-0.767 0-1.06 0.266-0.267 0.683-0.29 0.976-0.073L8.78 11.47l1.97 1.97 4.47-4.47-4.47 4.47z" android:fillColor="@color/fluent_default_icon_tint"/>
|
||||
</vector>
|
||||
5
mastodon/src/main/res/drawable/ic_poll_option_button.xml
Normal file
5
mastodon/src/main/res/drawable/ic_poll_option_button.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/ic_fluent_checkmark_circle_24_regular" android:state_selected="true"/>
|
||||
<item android:drawable="@drawable/ic_fluent_circle_24_regular"/>
|
||||
</selector>
|
||||
Reference in New Issue
Block a user