Maximun ArrayList<String> ?
bonjour ,
Juste pour savoir limit stokage ArrayList<String> ?
J'utilise a mon code :
Le but c'est pour faire un AutoCompleteTextView
Code:
found_client = (AutoCompleteTextView)findViewById(R.id.found_client);found_client.setTextColor(Color.BLACK);
Et pour adapter found_client ( found_client.setAdapter(adapter);)
Code:
1 2 3 4 5 6 7 8 9 10 11
| public void ajouter_client_list()
{
cursor_cl.requery();
li=new ArrayList<String>();
if(cursor_cl.moveToFirst())
do{
li.add(cursor_cl.getString(10));
} while(cursor_cl.moveToNext());
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.my_list_item,li);
found_client.setAdapter(adapter);
} |
Si avec le temps j'ai beaucoup des clients par exemple:
Question 1: limit stokage ArrayList<String> ??
Question 2: limit stokage a ma Clients.db(base de donnée)??(nbrs de lignes maximun?
Merci d'avance