this is my first question on StackOverflow =)
I am using Android Studio 1.0.2 (top update) and I want to create a grid layout that has one column on Nexus 5 portrait and two on Nexus 5 landscape. Nexus 5 is 640 x 360 dp, so I have three folders "layout" and "layout-w600dp" and "layout-w600dp-land" (to be extra sure).
My "fragment_main.xml" in "layout" folder looks like this:
<FrameLayout 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"
tools:context=".MainActivity$PlaceholderFragment">
<GridView
android:id="@+id/gridview_products"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:numColumns="1"/>
</FrameLayout>
In "layout-w600dp" and "layout-w600dp-land" folders the only difference is
android:numColumns="2"
In Android Studio it shows me that "layout-w600dp-land" is used. Screen is here: https://pp.vk.me/c625530/v625530960/19a4d/G7irG51csn8.jpg And on real device when I rotate the screen it doesn't make two columns. Screen is here: https://pp.vk.me/c625530/v625530960/19a57/mmCdluXWSQw.jpg
What can cause this problem?