On Sun, May 10, 2009 at 11:58 PM, Daehoon Jeon <[email protected]> wrote:
> Thank you for help...
> I tried, but it doesn't work.
> I wrote xml file like this... it has no error on it...
> <TextView android:id="@+id/text1"
> xmlns:android="http://schemas.android.com/apk/res/android"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content">
> <TextView android:id="@+id/text2"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"/>
> </TextView>
You can't add a TextView child to a TextView. You need a layout to add
the children.
Try to
<LinearLayout ...>
<TextView ... />
<TextView ... />
</LinearLayout>
R/
> and change code like you told.
> String[] from = new
> String[]{NotesDbAdapter.KEY_TITLE, NotesDbAdapter.KEY_NAME};
> int[] to = new int[]{R.id.text1, R.id.text2};
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---