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

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -