how to differentiate layouts files (.xml files ) in different-different layout folders in Android

how to differentiate layouts files (.xml files ) in different-different layout folders in Android

Answers


You mean differenciate by portrait/landscape?

layout-land/
layout-port/

You can read more about this here: http://developer.android.com/guide/topics/resources/localization.html

There are more possibilities like:

res/layout/my_layout.xml             // layout for normal screen size ("default")
res/layout-small/my_layout.xml       // layout for small screen size
res/layout-large/my_layout.xml       // layout for large screen size
res/layout-xlarge/my_layout.xml      // layout for extra large screen size
res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation

res/drawable-mdpi/my_icon.png        // bitmap for medium density
res/drawable-hdpi/my_icon.png        // bitmap for high density
res/drawable-xhdpi/my_icon.png       // bitmap for extra high density

You can read more here: http://developer.android.com/guide/practices/screens_support.html


Need Your Help

Burning in memory System.String

c# .net string securestring

I am trying to remove any traces of a normal string from memory, to do so I am creating an instance of SecureString from a reference of the normal string. Like so:

Escaping HTML strings with jQuery

javascript jquery string escaping

Does anyone know of an easy way to escape HTML from strings in jQuery? I need to be able to pass an arbitrary string and have it properly escaped for display in an HTML page (preventing JavaScript...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.