2016-11-17 10 views
0

나는 그것을 포함하고있는 뷰에서 조금 튀어 나와야하는 FloatActionButton을 가지고 있지만 잘라내어진다.Android FloatActionButton :보기에서 튀어 나오게 만드는 방법?

컨테이너에서 조금 벗어나려면 어떻게해야합니까?

예 이미지

enter image description here

이 코디네이터 레이아웃과 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> 

답변

0

투명 배경으로보기 키가 확인하고 확인을

+0

을 원하는 경우 어두운 색상에 글고의 배경을 변경, 그것은, 덕분에 좋은 일했다. –