android - Accessing TextBox List ID -
solved
i have text box inside xml file called list_entry.xml. code file such:
<?xml version="1.0" encoding="utf-8"?> <textview xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/list_entry_title" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingtop="1dip" android:paddingbottom="1dip" android:paddingleft="5dip" style="android:attr/listviewwhitestyle" />
so it's not complicated. question is: how access "list_entry_title" textbox? keep getting crashes (nullpointerexception) when try use list_entry textbox.
turns out made dumb mistake; used r.layout instead of r.id when trying access textboxes. commented!
Comments
Post a Comment