mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Enhacement - Add Custom Image Selector FAB Option to Nearby (#5655)
* Fix * Fix * Migrate NearbyParentFragment to ViewBinding * remove unused Imports * fix crash
This commit is contained in:
parent
4c43bf2bd4
commit
d408134b7e
2 changed files with 438 additions and 490 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -147,7 +147,9 @@
|
||||||
android:layout_height="match_parent" />
|
android:layout_height="match_parent" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<include layout="@layout/bottom_sheet_nearby" />
|
<include
|
||||||
|
android:id="@+id/bottom_sheet_nearby"
|
||||||
|
layout="@layout/bottom_sheet_nearby" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
android:id="@+id/bottom_sheet_details"
|
android:id="@+id/bottom_sheet_details"
|
||||||
|
|
@ -184,7 +186,7 @@
|
||||||
<View
|
<View
|
||||||
android:id="@+id/empty_view1"
|
android:id="@+id/empty_view1"
|
||||||
android:layout_width="56dp"
|
android:layout_width="56dp"
|
||||||
android:layout_height="174dp"
|
android:layout_height="285dp"
|
||||||
android:visibility="invisible"
|
android:visibility="invisible"
|
||||||
app:layout_anchor="@id/fab_plus"
|
app:layout_anchor="@id/fab_plus"
|
||||||
app:layout_anchorGravity="center_horizontal" />
|
app:layout_anchorGravity="center_horizontal" />
|
||||||
|
|
@ -192,6 +194,14 @@
|
||||||
<View
|
<View
|
||||||
android:id="@+id/empty_view"
|
android:id="@+id/empty_view"
|
||||||
android:layout_width="56dp"
|
android:layout_width="56dp"
|
||||||
|
android:layout_height="174dp"
|
||||||
|
android:visibility="invisible"
|
||||||
|
app:layout_anchor="@id/fab_plus"
|
||||||
|
app:layout_anchorGravity="center_horizontal" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/empty_view2"
|
||||||
|
android:layout_width="56dp"
|
||||||
android:layout_height="46dp"
|
android:layout_height="46dp"
|
||||||
android:visibility="invisible"
|
android:visibility="invisible"
|
||||||
app:layout_anchor="@id/fab_plus"
|
app:layout_anchor="@id/fab_plus"
|
||||||
|
|
@ -227,4 +237,19 @@
|
||||||
app:pressedTranslationZ="@dimen/medium_height"
|
app:pressedTranslationZ="@dimen/medium_height"
|
||||||
app:srcCompat="@drawable/ic_photo_white_24dp" />
|
app:srcCompat="@drawable/ic_photo_white_24dp" />
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||||
|
android:id="@+id/fab_custom_gallery"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:scaleType="center"
|
||||||
|
android:tint="@color/button_blue"
|
||||||
|
android:visibility="invisible"
|
||||||
|
app:backgroundTint="@color/main_background_light"
|
||||||
|
app:elevation="@dimen/dimen_6"
|
||||||
|
app:fabSize="mini"
|
||||||
|
app:layout_anchor="@id/empty_view2"
|
||||||
|
app:layout_anchorGravity="center_horizontal"
|
||||||
|
app:pressedTranslationZ="@dimen/medium_height"
|
||||||
|
app:srcCompat="@drawable/ic_custom_image_picker" />
|
||||||
|
|
||||||
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue