On Feb 18, 1:39 pm, "Sasikumar.S" <sasikumar.it1...@gmail.com> wrote: > Thanks for reply. > I'm new to android. > can u please tell how to use cursor adapter? or any sample program ?. > > > > > > On Thu, Feb 18, 2010 at 6:08 PM, skink <psk...@gmail.com> wrote: > > > On Feb 18, 12:53 pm, "Sasikumar.S" <sasikumar.it1...@gmail.com> wrote: > > > Thanks for reply > > > See my code.. How i'm filtering text. > > > > public class ListviewFilterExample extends Activity > > > { > > > private ListView lv1; > > > private String > > > lv_arr[]={"Android","iPhone","BlackBerry","AndroidPeople","J2ME", > > > "Listview","ArrayAdapter","ListItem","Us","UK","India"}; > > > @Override > > > public void onCreate(Bundle icicle) > > > { > > > super.onCreate(icicle); > > > setContentView(R.layout.main); > > > lv1=(ListView)findViewById(R.id.ListView01); > > > lv1.setAdapter(new > > > ArrayAdapter<String>(this,android.R.layout.simple_list_item_1 , lv_arr)); > > > lv1.setTextFilterEnabled(true); > > > > } > > > } > > > > Here in string lv_arr[] i'm giving less than 15 items. But in my program > > i'm > > > adding more than 2500 items. > > > > Please see my code and give some suggestion. > > > > On Thu, Feb 18, 2010 at 5:19 PM, skink <psk...@gmail.com> wrote: > > > > > On Feb 18, 12:35 pm, "Sasikumar.S" <sasikumar.it1...@gmail.com> wrote: > > > > > Thank for your reply. > > > > > Ya pskink. > > > > > > But i must give 2500 items in list. > > > > > Its like A,B,C,D in Alphabet. > > > > > we need to show all 26 Alphabets, not some alphabets. > > > > > > can you please some other idea ?... > > > > > > On Thu, Feb 18, 2010 at 5:01 PM, skink <psk...@gmail.com> wrote: > > > > > > > On Feb 18, 12:06 pm, "Sasikumar.S" <sasikumar.it1...@gmail.com> > > wrote: > > > > > > > Hi, > > > > > > > > In my listview i'm adding more than 2500 items. When i try to use > > > > text > > > > > > > filter option it is taking more time to filter. > > > > > > > > I asked this question in android groups already. > > > > > > > But i can't get the answer what i expected. > > > > > > > > Please any one know about these ?.. > > > > > > > > -- > > > > > > > Thanks & Regards > > > > > > > Sasikumar.S > > > > > > > i think you have to think your ui over > > > > > > > even with filtering nobody will be happy seeing 2k+ items in the > > list > > > > > > > pskink > > > > > > > -- > > > > > > You received this message because you are subscribed to the Google > > > > > > Groups "Android Developers" group. > > > > > > To post to this group, send email to > > > > android-developers@googlegroups.com > > > > > > To unsubscribe from this group, send email to > > > > > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > > <android-developers%2bunsubscr...@googlegroups.com> > > > > <android-developers%2bunsubscr...@googlegroups.com> > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/android-developers?hl=en > > > > > > -- > > > > > Thanks & Regards > > > > > Sasikumar.S > > > > > what adapter do you use and how you filter out your items? > > > > > pskink > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Android Developers" group. > > > > To post to this group, send email to > > android-developers@googlegroups.com > > > > To unsubscribe from this group, send email to > > > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > > <android-developers%2bunsubscr...@googlegroups.com> > > > > For more options, visit this group at > > > >http://groups.google.com/group/android-developers?hl=en > > > > -- > > > Thanks & Regards > > > Sasikumar.S > > > seems that ArrayAdapter is not efficient in filtering that many items > > > try to use CursorAdapter > > > pskink > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Thanks & Regards > Sasikumar.S
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en