Reputation: 1845
I'm trying to mimic the layout of the icons in Facebook android app.
As you can see, this is a 2x3 layout, but if you flip it it becomes 3x2 layout. How to accomplish this?
Upvotes: 1
Views: 1666
Reputation: 22023
Solved here: How to setup a main menu layout in Android?
You can supply two layout files for landscape and portrait specifying the number of columns in the gridview in each case to achieve the 2X3 vs 3x2
TextView tv;
Typeface tf = Typeface.createFromAsset(getResources().getAssets(), "font.ttf");
tv.setTypeface(tf);
tv.setTextSize(10);
Upvotes: 2