forked from GitHub-Mirror/riotX-android
Hide FAB when list is scrolling
This commit is contained in:
11
vector/src/main/res/drawable/red_dot.xml
Normal file
11
vector/src/main/res/drawable/red_dot.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
|
||||
<size
|
||||
android:width="8dp"
|
||||
android:height="8dp" />
|
||||
|
||||
<solid android:color="#FF4B55" />
|
||||
|
||||
</shape>
|
@ -60,6 +60,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="48dp"
|
||||
android:background="#FFFFFF"
|
||||
app:itemIconSize="20dp"
|
||||
app:itemIconTint="@color/home_bottom_nav_view_tint"
|
||||
app:itemTextColor="@color/home_bottom_nav_view_tint"
|
||||
app:labelVisibilityMode="unlabeled"
|
||||
|
@ -22,7 +22,9 @@
|
||||
android:layout_gravity="bottom|end"
|
||||
android:layout_margin="16dp"
|
||||
android:src="@drawable/ic_fab_add"
|
||||
app:maxImageSize="14dp" />
|
||||
android:visibility="gone"
|
||||
app:maxImageSize="14dp"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/createChatRoomButton"
|
||||
@ -32,8 +34,10 @@
|
||||
android:layout_margin="16dp"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/ic_fab_add_chat"
|
||||
android:visibility="gone"
|
||||
app:maxImageSize="34dp"
|
||||
tools:layout_margin="66dp" />
|
||||
tools:layout_margin="66dp"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/createGroupRoomButton"
|
||||
@ -43,7 +47,9 @@
|
||||
android:layout_margin="16dp"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/ic_fab_add_room"
|
||||
android:visibility="gone"
|
||||
app:maxImageSize="32dp"
|
||||
tools:layout_margin="116dp" />
|
||||
tools:layout_margin="116dp"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</im.vector.riotredesign.core.platform.StateView>
|
||||
|
Reference in New Issue
Block a user