This leaves a blank space and when i insert anything in layout
Asked
Active
Viewed 85 times
-1
-
1I wrote nothing in java file, just create a new android project. Thats it. – Sunil Feb 05 '14 at 07:16
-
i am using a landscape orientation. – Sunil Feb 05 '14 at 07:18
1 Answers
0
Try this..
I guess your code like below..
<RelativeLayout 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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
</RelativeLayout>
If you remove the below lines it'll work
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity"
Because padding
is given in your code so the text is having space.

Hariharan
- 24,741
- 6
- 50
- 54