Android FloatActionButton: how to make it stick out of a View? -


i have floatactionbutton have stick out bit view contains it, becomes cutted.

how can obtain out bit container?

example image

enter image description here

this complete code of layout, including coordinator layout , fab.

<?xml version="1.0" encoding="utf-8"?>   <framelayout xmlns:android="http://schemas.android.com/apk/res/android"       xmlns:tools="http://schemas.android.com/tools"       xmlns:app="http://schemas.android.com/apk/res-auto"       android:id="@+id/activity_show_image"       android:layout_width="match_parent"       android:layout_height="match_parent">        <imageview           android:layout_width="match_parent"           android:layout_height="match_parent"           android:id="@+id/add_text_to_media_image"/>        <android.support.v7.widget.toolbar           xmlns:android="http://schemas.android.com/apk/res/android"           android:id="@+id/toolbar"           android:layout_width="match_parent"           android:layout_height="wrap_content"           android:background="@color/black_overlay"           android:theme="@style/themeoverlay.appcompat.dark.actionbar"           />        <android.support.design.widget.coordinatorlayout           android:id="@+id/add_text_to_media_detail"           xmlns:android="http://schemas.android.com/apk/res/android"           xmlns:app="http://schemas.android.com/apk/res-auto"           android:layout_width="match_parent"           android:layout_height="wrap_content"           android:layout_gravity="bottom">           <relativelayout               android:layout_width="match_parent"               android:layout_height="wrap_content"               android:background="@color/black_overlay"               android:paddingtop="8dp"               android:paddingbottom="8dp"               android:paddingleft="16dp"               android:paddingright="16dp"               android:id="@+id/add_text_to_media_text_container">               <edittext                   android:layout_width="match_parent"                   android:layout_height="wrap_content"                   android:hint="aggiungi una descrizione..."                   android:textcolorhint="@color/material_grey_300"                   android:textcolor="@color/white"                   android:id="@+id/add_text_to_media_text"/>           </relativelayout>           <android.support.design.widget.floatingactionbutton               android:id="@+id/add_text_to_media_button"               android:layout_width="wrap_content"               android:layout_height="wrap_content"               app:fabsize="normal"               android:src="@drawable/ic_send_white_24dp"               app:layout_anchor="@+id/add_text_to_media_text_container"               app:layout_anchorgravity="right"               android:clickable="true"               android:layout_margintop="-27dp"               android:layout_marginright="16dp"               />       </android.support.design.widget.coordinatorlayout>     </framelayout> 

make view taller transparent background , change background of edittext darker color if want


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -