android - Where definitions in public.xml are linking to? -
After
Let me explain with an example 'android.R.layout.simple_list_item_multiple_choice'. It was used to create multi-select lists but only the definitions I found:
/platform/frameworks/base/core/res/res/values/public.xml:
< Pre> & lt; Public type = "layout" name = "simple_list_item_multiple_choice" id = "0x01090010" />
/platform/frameworks/base/api/current.xml:
& lt; Field name = "simple_list_item_multiple_choice" type = "integer" transient = "false" vaporized = "false" value = "17367056" constant = "true" last = "true" deprecated = "deprecated" visibility = "public" & gt;
But where is the actual layout defined? When a multi-select list is created, I see the checkbox, from where it comes?
See $ ANDROID_HOME / platforms / $ YOUR_PLATFORM / data / res / layout / simple_list_item_multiple_choice. Xml
, where $ ANDROID_HOME
is installed on your SDK and $ YOUR_PLATFORM
in whatever format you have in the version (e.g., Android -2.1 < / Code>)
For example, for Android 2.1, the layout is interested.
& lt; CheckedTextView xmlns: Android = "http://schemas.android.com/apk/res/android" Android: ID = "@Android: ID / Text1" Android: layout_width = "fill_parent" Android: layout_height = "Android: attr Android: attr / textAppearanceLarge "Android: attribute / textAppearanceLarge" Android: Gravity = "center_vertical" Android: Checkmark = "Android: ATR / listChooseindexCentatorMost" Android: paddingLeft = "6dip" Android: paddingRight = "6dip" / & Gt;
Comments
Post a Comment