Skip to content

Commit 09a93d1

Browse files
dbrantdomdomegg
authored andcommitted
Fix commons-app#2609: Fix padding of FloatingActionButtons across all APIs (commons-app#2675)
1 parent f4807a5 commit 09a93d1

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

app/src/main/res/layout/fragment_contributions_list.xml

+6-14
Original file line numberDiff line numberDiff line change
@@ -54,43 +54,35 @@
5454
android:id="@+id/fab_camera"
5555
android:layout_width="wrap_content"
5656
android:layout_height="wrap_content"
57-
android:scaleType="center"
5857
android:tint="@color/button_blue"
5958
android:visibility="gone"
6059
app:backgroundTint="@color/main_background_light"
61-
app:elevation="6dp"
60+
app:useCompatPadding="true"
61+
app:elevation="4dp"
6262
app:fabSize="mini"
63-
android:layout_margin="8dp"
64-
app:pressedTranslationZ="12dp"
6563
app:srcCompat="@drawable/ic_photo_camera_white_24dp" />
6664

6765
<com.google.android.material.floatingactionbutton.FloatingActionButton
6866
android:id="@+id/fab_gallery"
6967
android:layout_width="wrap_content"
7068
android:layout_height="wrap_content"
71-
android:scaleType="center"
7269
android:tint="@color/button_blue"
7370
android:visibility="gone"
7471
app:backgroundTint="@color/main_background_light"
75-
app:elevation="6dp"
72+
app:useCompatPadding="true"
73+
app:elevation="4dp"
7674
app:fabSize="mini"
77-
android:layout_margin="8dp"
78-
app:pressedTranslationZ="12dp"
7975
app:srcCompat="@drawable/ic_photo_white_24dp" />
8076

8177
<com.google.android.material.floatingactionbutton.FloatingActionButton
8278
android:id="@+id/fab_plus"
8379
android:layout_width="wrap_content"
8480
android:layout_height="wrap_content"
85-
android:layout_alignParentBottom="true"
8681
android:gravity="center_vertical"
87-
android:clickable="true"
8882
android:visibility="visible"
8983
app:backgroundTint="@color/status_bar_blue"
90-
app:elevation="12dp"
91-
app:fabSize="normal"
92-
android:layout_margin="8dp"
93-
app:pressedTranslationZ="12dp"
84+
app:useCompatPadding="true"
85+
app:elevation="4dp"
9486
app:srcCompat="@drawable/ic_add_white_24dp" />
9587

9688
</LinearLayout>

0 commit comments

Comments
 (0)