Hi,
notes_row specifies an element that is used to display an individual
row in the ListView.
In essence the ListView needs a View on how to display each row. This
is specified when you do:
SimpleCursorAdapter notes =
new SimpleCursorAdapter(this, R.layout.notes_row, c, from,
to);
setListAdapter(notes);
As an experiment simply change TextView to EditText in the file
notes_row.xml
<EditText android:id="@+id/text1"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
When you run your app you will see that the notes are now displayed in
the EditText 's instead of TextView 's.
--Shubham
On Dec 10, 8:17 am, super <[EMAIL PROTECTED]> wrote:
> Hi , I can't understand how notepas_list and notes_row joined in
> Notepadv1!
> can anybody help me ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---