Large ListView containing images in Android

前端 未结 7 1582
傲寒
傲寒 2020-12-15 13:50

For various Android applications, I need large ListViews, i.e. such views with 100-300 entries.

All entries must be loaded in bulk when the application

相关标签:
7条回答
  • 2020-12-15 14:22
        private class CallService extends AsyncTask<String, Integer, String>
             {   
                    protected String doInBackground(String... u)
                    {
                        fetchReasons();
                        return null;
                    }
                    protected void onPreExecute() 
                    {
                        //Define the loader here.
    
                    }
                    public void onProgressUpdate(Integer... args)
                    {           
                    }
                    protected void onPostExecute(String result) 
                    {               
                        //remove loader
                        //Add data to your view.
                    }
             }
    
    public void fetchReasons()
        {
             //Call Your Web Service and save the records in the arrayList
        }
    

    Call new CallService().execute(); in onCreate() method

    0 讨论(0)
提交回复
热议问题