Bonjour,

J'ai un LinearLayout, par exemple

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
 
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="5dip">
 
     <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content">
 
     </TextView>
 
     <EditText
        android:layout_width="fill_parent"
        android:layout_height="wrap_content">
 
     </EditText>
 
</LinearLayout>
J'aimerais que mon TextView ne prenne pas en compte le padding de son père (LinearLayout) et qu'il n'y ait que l'EditText. Voilà et je ne sais vraiment pas comment faire ... J'ai cherché vers clipToPadding, clipToChildren, ... etc mais je n'ai rien trouvé de bien intéressant.

Merci d'avoir pris du temps pour consulter mon problème.