Hi, I have already developed some widgets for android, but every time, I have the same problem... I Can' access my XML layout's elements from my java code.
For example : <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:id="@+id/myTxt" android:Text="HelloWorld !" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout> With this layout, how can I access my "myTxt" object ? Thank you for your help ColletJb PS : In an Activity, the equivalent is "findViewById(int)". --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---