How to know all id's that i have in the file main.xml in android?

Posted by sgiro on Stack Overflow See other posts from Stack Overflow or by sgiro
Published on 2010-04-06T08:42:41Z Indexed on 2010/04/06 9:53 UTC
Read the original article Hit count: 168

Filed under:
|
|

Hello guy's, i'm new at Android world, and i have a doubt, is there any method that give me the name of the id's i create in main.xml? For example i have this:

main.xml

<TextView android:id="@+id/text1"
       android:layout_width="70px"
       android:layout_height="70px"
       android:text="Google"
       />

<TextView android:id="@+id/text2"
       android:layout_width="70px"
       android:layout_height="70px"
       android:text="As"
       />

And what i want is the id name from the two TextView, is there any method that i can use in my class .java that give me for this example the id? In this case i want the (text1 and text2).

Thanks and forgive mi English.

© Stack Overflow or respective owner

Related posts about id

Related posts about android