Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find out what android.R.layout xml files look like / get the source?

Tags:

android

layout

I'm trying to user the LayoutInfator to create a view. One of the options I'm thinking about is using the default android.R.layout files. However I'm finding it difficult to locate these files/how they look. It would be great if I could get some help in locating the source. I need to find the id's of the individual elements within those xml files.

Thanks

like image 436
elliance Avatar asked Oct 14 '10 21:10

elliance


People also ask

What is layout resource file in Android?

A layout resource defines the architecture for the UI in an Activity or a component of a UI. file location: res/layout/filename.xml. The filename will be used as the resource ID. compiled resource datatype: Resource pointer to a View (or subclass) resource.

Which type of file are Android layout read from?

layout: A layout defines the visual structure for a user interface, such as the UI for an Android application. This folder stores Layout files that are written in XML language. You can add additional layout objects or widgets as child elements to gradually build a View hierarchy that defines your layout file.

What is XML layout?

In Android, an XML-based layout is a file that defines the different widgets to be used in the UI and the relations between those widgets and their containers. Android treats the layout files as resources. Hence the layouts are kept in the folder reslayout.


1 Answers

They can be found in your Android SDK folder under:

/platforms/android-x/data/res/layout

like image 128
Kevin Coppock Avatar answered Oct 14 '22 11:10

Kevin Coppock