2017-09-25 3 views

Répondre

0

vous pouvez avoir un top avec un seul enfant immédiat. Maintenant, en cours d'utilisation supérieure de mise en page fond transparent et le rembourrage et votre contenu à l'intérieur que la mise en page

<RelativeLayout 
      xmlns:android="http://schemas.android.com/apk/res/android" 
      xmlns:app="http://schemas.android.com/apk/res-auto" 
      android:id="@+id/parent_view" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:background="@color/transparent" 
      android:paddingLeft="20dp" 
      android:paddingRight="20dp" 
      android:paddingBottom="20dp"> 
    <FrameLayout> 
     Content here 
    </FrameLayout></RelativeLayout> 

Works pour moi.