Layout for both orientations in dialog - android

i'm able to create custom dialog but not able to achieve this kind of layout can anyone please help me. Is it possible to achieve this kind of layout in dialog??should i use tablayout or linear layout for both orientation ???
Thanks in advance

yes, its possible to load different layouts. just drop the 2 layouts in the appropriate folders (layout-land, layout-port) and you should be good.
http://developer.android.com/guide/practices/screens_support.html

Related

How to fix layout for 5.5+ inches?

I've this problem. I've publish my app on the Play Store, and I see the first problem: in the devices with 5.7 inches some text "exploded" and it goes out the card, like this example:
now I'd like to know how to fix this problem. I think that a good way is to create a layout-sw400dp file for any xml and adapt the layout, but is it really work? Or there are other ways to fix it?
Thanks
Yes, you can create a different xml file and put it in layout-sw400dp , it will work well. And the second option is you can use constraintLayout which will adapt the layout according to the screen sizes. ConstraintLayout helps you to make responsive layouts. You can learn constraintLayout from here
https://developer.android.com/training/constraint-layout/index.html

Android screen layout design

I am new to the android.I need the xml layout for the following widget can any one please help me
https://developers.google.com/glass/develop/gdk/card-design
http://myandroidtuts.blogspot.in/2013/12/android-card-layout.html
Try this for better layout. Hope its help you.

How to design a web container in an android application

I'm a newbie android programmer. So, I now meet a problem need your help.
I need a screen like the picture bellow.
So, which layout I can use ? A full xml code is really cool for me.
Thanks you.
use linear layout with weight property

How to implement an interface like this in Android application?

good afternoon
How could I get a design like this in my android application?
http://s2.subirimagenes.com/otros/previo/thump_7851660img20120718wa0000.jpg
That is, divided into three areas with different background color to the background activity. And for example in the first zone instead of having these options has a TextView and edit text where you enter something.
How to make something like that image what kind of layout is more recomedable use? Linear, Relative ...
Thanks in advance
You could use a fragment layout and use fragments to get that layout
The best way is to use PreferenceScreen with three PreferenceSections.

How to set a tabHost at bottom of the screen using only java?

I am working to create a TabHost at bottom of the screen using only java code.
I am in a condition that I cant use xml layouts .Can someone expert in dynamic layouts could help me?
You can do this by providing alignParent rule for parent RelativeLayout, if you have one.
You can do this by providing correct order if your parent is LinearLayout
DO NOT use bottom tabs. Read design guides first.

Categories

Resources