Top "Android-xml" questions

Android projects use XML in several ways: defining the project and components, building layouts, defining animations, creating menus and specifying resources (static and dynamic) for the project.

Different resolution support android

Edited Question: Mobile Resolution: I would like to design different screen dpi like following resolutions. 320x480,480×800,540x960,720x1280 (Samsung S3),1080…

android android-custom-view android-xml android-drawable screen-resolution
Storing R.drawable IDs in XML array

I would like to store drawable resources' ID in the form of R.drawable.* inside an array using an XML …

android arrays android-xml android-drawable android-resources
Is it possible to rotate a drawable in the xml description?

I am creating an app, with resources that can be reused (because buttons are always the same, but mirrored or …

android android-layout drawable android-xml
i want to make my application only in landscape in android

I want to make my app work only in landscape mode but can't make it work. I have given screenOrientation = "…

android android-layout android-xml screen-orientation
android - apply selectableItemBackground in xml with support v7

even with android support v7 included in my application adding android:background="?android:attr/selectableItemBackground" makes my IDE, Eclipse throw …

android android-xml android-support-library
Custom attributes in styles.xml

I have created a custom widget, and I'm declaring it in layout.xml. I have also added some custom attributes …

android android-layout android-xml android-styles
How do you create Preference Activity and Preference Fragment on Android?

As I was following an old tutorial (Créez des applications pour Android -> openclassroom) I got stuck on …

android android-fragments android-activity android-xml android-preferences
Unexpected namespace prefix "xmlns" found for tag LinearLayout

I am having an error in following xml file. "Unexpected namespace prefix "xmlns" found for tag LinearLayout". I tried the …

android xml eclipse android-xml
How to add a horizontal 1px line above image view in a relative layout?

How do I add a horizontal 1px white line above image view in a relative layout? <RelativeLayout android:id="@+…

android android-layout xamarin.android android-xml
how to auto resize, compatible, adjust screen size for all android devices

I am creating a simple quiz test app "Target SDK API 16 (4.1 Jelly Beans)" Screen 3.7 (480x800 hdpi). This app looks great …

android android-layout android-xml android-screen-support android-resolution