java - Change ListAdapter's output (Master/Detail-Flow) -


I'm very new to Android app development and I want to try master / extension-flow cheese.

Then in the sensor listframe. In Java, you have to set the list adapter, which I did:

  setListAdapter (new array adapter & lt; sensor & gt; (getActivity (), Android.R.layout.simple_list_item_activated_1, Android.R.id.text1, data.getValues ​​()));  

data.getValues ​​gives an ArrayList with objects with "id" and "name" objects I have got everything to work, but my problem is that Elements in the list view look like this:

  ID: 0, name: frank  

but I want to display it:

  frank  

Is this an easy way to do this?

Thanks in advance!


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -