Is this a bug that should be reported?
On Jul 6, 11:51 am, extrapedestrian <[email protected]> wrote: > Two more information: > > it works the same way on emulator, > it works the same way with simple list ArrayAdapter text only. > > On Jul 6, 11:38 am, extrapedestrian <[email protected]> > wrote: > > > I have TabHost with custom ListView implemented. > > My ListView disappears after returning from SMS screen when I try to > > switch tab (refresh list content). > > > I have context menu option to send SMS to contact from the list, I > > start SMS activity there and Im able to return to my app. If I don't > > type anything in SMS screen, just return immediately everything is > > fine. List will work. > > If I type something in SMS and press back key, toast will be > > displayed: "Your message is saved in Drafts". And now if try to switch > > tabs, list content disappears. > > > Debugging revealed that list items are present, and that list adapter > > constructor is called. However, listAdapters GetView function is never > > called. And list results are not displayed. > > > I found similar problem in this > > post:http://groups.google.com/group/android-developers/browse_thread/threa... > > > Im working on sdk 1.5 and device. > > > Here is my list adapter function, pretty standard: > > > public class ResultListAdapter extends ArrayAdapter<ItemDescription> { > > public ResultListAdapter(Context context, ItemDescription[] > > objects) { > > super > > (context,R.layout.list_item_layout,objects); > > // > > being called > > } > > @Override > > public View getView(int position, View convertView, ViewGroup > > parent) { //not being called > > LayoutInflater inflater = LayoutInflater.from(getContext > > ()); > > View row = inflater.inflate(R.layout.list_item_layout, > > null); > > > TextView tv = (TextView) row.findViewById(R.id.listText); > > ItemDescription item = getItem(position); > > SpannableString ss = getSpannableFromMarkupString > > (item.getMarkupString()); > > tv.setText((CharSequence) ss); > > > return row; > > } > > } > > > my ListView widget has no special properties, just width and height to > > fit parent. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

