Android App - Remove Extra Padding
I'm having trouble removing the extra padding set by default. I'm not really familiar with Java that much but I've set the margin and the padding to 0dp of the Linear Layout (Verti
Solution 1:
You just need to remove these lines from activity_main.xml
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
Solution 2:
You can find @dimen/activity_vertical_margin and set value as 0dp also.. That way if in future you want to add back again then you can use these..
file location res/values/dimen.xml
Solution 3:
You still have the padding from your RelativeLayout
:
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
Get rid of these and you should be okay.
Post a Comment for "Android App - Remove Extra Padding"