I am developing an Android application for tablet and phone . To do this, I created two folders for the phone ( layout
) and one for the tablet’s tablet ( layout-sw600dp
).
In accordance with my previous questions, comment I assumed that only tablets will select layouts from layout-sw600dp
. But it doesn't seem to work.
For devices nexus 4, nexus 5, nexus 6, nexus 7
, a layout is performed layout-sw600dp
.
What am I missing here? How to calculate phone / tablet size for correct layouts DP
?
Necessary projects for the tablet and phone:

Another retirement for using two separate layouts:
Phone Design:

Tab Design:

answer, , :
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/linearLayouttest">
<TextView
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_gravity="center_horizontal"
android:textColor="@color/black"
android:gravity="left"
android:text="LabelFirstName"
android:layout_marginTop="@dimen/_8sdp"
android:textSize="@dimen/_13sdp"
android:id="@+id/firstNameLabel"
android:layout_marginLeft="@dimen/_15sdp"
android:layout_marginRight="@dimen/_15sdp" />
<EditText
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:id="@+id/firstName"
android:layout_marginTop="@dimen/_3sdp"
android:background="@drawable/edt_bg"
android:textColor="@color/black"
android:layout_marginRight="@dimen/_15sdp"
android:layout_marginLeft="@dimen/_15sdp"
android:padding="@dimen/_5sdp"
android:textSize="@dimen/_14sdp"
android:textColorHint="@color/textColor" />
<TextView
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_gravity="center_horizontal"
android:textColor="@color/black"
android:gravity="left"
android:text="LabelLastName"
android:layout_marginTop="@dimen/_3sdp"
android:textSize="@dimen/_13sdp"
android:id="@+id/lastNameLabel"
android:layout_marginLeft="@dimen/_15sdp"
android:layout_marginRight="@dimen/_15sdp" />
<EditText
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:id="@+id/lastName"
android:layout_marginTop="@dimen/_3sdp"
android:background="@drawable/edt_bg"
android:textColor="@color/black"
android:layout_marginRight="@dimen/_15sdp"
android:layout_marginLeft="@dimen/_15sdp"
android:padding="@dimen/_5sdp"
android:textSize="@dimen/_14sdp"
android:textColorHint="@color/textColor" />
</LinearLayout>
, . ?