I have a Device with 540 pix screensize(width). I try this layout:
<LinearLayout
android:orientation="horizontal"
android:layout_height="fill_parent"
android:layout_width="540dp"
>
But the LinearLayout is bigger than the screen. It ranges out of the screen.
I read out the screensize by code:
DisplayMetrics displaymetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
int width = displaymetrics.widthPixels;
and Tools, so the screen is 540 pix width, definitely.
Whats wrong?