Problème avec le margin en android 2.2
Bonjour,
Dans le cadre d'un développement, je suis amené a faire des marges tout autour de mon linearLayout racine de mon Xml. Les margins marchent partout sauf pour android 2.2 et 2.3 ...
pour un code comme ceci :
Code:
1 2 3 4 5 6 7 8 9
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
tools:context=".MainActivity"
android:layout_margin="20dp" >
</LinearLayout> |
j'obtiens une image comme celle-ci (avec ANDROID 2.2) :
http://imageshack.us/a/img545/5416/s...30318at605.png
Or, ce que je veux obtenir, c'est un résultat comme sous android 4.2.2 :
http://imageshack.us/a/img268/1904/s...30318at606.png
quelqu'un aurait-il une solution pour m'aider ?