update bottom buttons style on ToolActivity

This commit is contained in:
Len Chan 2019-03-27 17:54:07 +08:00
parent 404f06def5
commit 2fc18589fc
5 changed files with 47 additions and 27 deletions

View File

@ -4,6 +4,6 @@
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:fillColor="#FFFFFFFF"
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM11,19.93c-3.95,-0.49 -7,-3.85 -7,-7.93 0,-0.62 0.08,-1.21 0.21,-1.79L9,15v1c0,1.1 0.9,2 2,2v1.93zM17.9,17.39c-0.26,-0.81 -1,-1.39 -1.9,-1.39h-1v-3c0,-0.55 -0.45,-1 -1,-1L8,12v-2h2c0.55,0 1,-0.45 1,-1L11,7h2c1.1,0 2,-0.9 2,-2v-0.41c2.93,1.19 5,4.06 5,7.41 0,2.08 -0.8,3.97 -2.1,5.39z"/>
</vector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@ -0,0 +1,13 @@
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid
android:color="@color/black_link_toot" >
</solid>
<corners
android:radius="11dp" >
</corners>
</shape>

View File

@ -98,49 +98,53 @@
android:layout_height="wrap_content">
<ImageButton
android:id="@+id/toot_picture"
android:layout_width="50dp"
android:layout_height="wrap_content"
style="@style/Base.Widget.AppCompat.Button.Colored"
android:layout_width="40dp"
android:layout_height="40dp"
style="@style/AppTheme.RoundedCornerMaterialButton"
android:src="@drawable/ic_insert_photo"
android:contentDescription="@string/toot_select_image" />
<ImageButton
android:id="@+id/poll_action"
android:visibility="gone"
android:layout_width="50dp"
android:layout_height="wrap_content"
style="@style/Base.Widget.AppCompat.Button.Colored"
android:layout_width="40dp"
android:layout_height="40dp"
style="@style/AppTheme.RoundedCornerMaterialButton"
android:src="@drawable/ic_view_list_poll"
android:contentDescription="@string/poll" />
<ImageButton
android:layout_marginLeft="5dp"
android:layout_marginStart="5dp"
android:id="@+id/toot_visibility"
android:layout_width="50dp"
android:layout_height="wrap_content"
style="@style/Base.Widget.AppCompat.Button.Colored"
android:layout_width="40dp"
android:layout_height="40dp"
style="@style/AppTheme.RoundedCornerMaterialButton"
android:src="@drawable/ic_public"
android:contentDescription="@string/toot_visibility_tilte" />
<Button
android:layout_marginLeft="5dp"
android:id="@+id/toot_cw"
android:padding="5dp"
android:text="@string/cw"
android:layout_gravity="center"
style="?attr/borderlessColored"
style="@style/AppTheme.RoundedCornerMaterialButton"
android:layout_width="40dp"
android:layout_height="40dp" />
android:layout_height="40dp"
android:layout_marginStart="5dp" />
<ImageButton
android:id="@+id/toot_emoji"
android:minHeight="0dp"
android:minWidth="0dp"
style="@style/AppTheme.RoundedCornerMaterialButton"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center"
android:padding="2dp"
android:scaleType="fitXY"
android:src="@drawable/emoji_one_category_smileysandpeople"
style="?attr/borderlessColored"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginStart="5dp"
android:layout_marginLeft="5dp"
android:contentDescription="@string/emoji_picker"
/>
android:minWidth="0dp"
android:minHeight="0dp"
android:padding="6dp"
android:scaleType="fitXY"
android:src="@drawable/ic_emoji_selector" />
<TextView
android:id="@+id/toot_space_left"
android:layout_width="0dp"
@ -149,15 +153,16 @@
android:gravity="center"
android:layout_gravity="center"
android:layout_height="40dp" />
<Button
android:id="@+id/toot_it"
android:padding="5dp"
android:text="@string/toot_it"
style="@style/AppTheme.RoundedCornerMaterialButton"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="end"
android:gravity="center"
style="@style/Base.Widget.AppCompat.Button.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
android:padding="5dp"
android:text="@string/toot_it" />
</LinearLayout>
<CheckBox

View File

@ -392,5 +392,7 @@
<style name="Shape.Dark" parent="AppThemeDark">
<item name="android:background">@drawable/shape_border_bottom_settings_dark</item>
</style>
<style name="AppTheme.RoundedCornerMaterialButton" parent="Widget.AppCompat.Button.Colored">
<item name="android:background">@drawable/rounded_shape</item>
</style>
</resources>