KITCHEN DRINKER

主にAndroid開発メモとか

親のpaddingを無視したい

他の子には反映させたいけど一部の子のみ反映させたくないよってとき

<LinearLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="10dp"
    android:clipToPadding="false">
    <TextView  
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:layout_marginLeft="-10dp"
        android:layout_marginRight="-10dp"/>
</LinearLayout>