Code example for ScrollView

Methods: removeAllViewsaddView

0
    	 
    	ll.addView(tv, new LinearLayout.LayoutParams(
    			LinearLayout.LayoutParams.FILL_PARENT,
    			LinearLayout.LayoutParams.WRAP_CONTENT));
    	 
    	sv.removeAllViews();
    	sv.addView(ll, new LinearLayout.LayoutParams(
    			LinearLayout.LayoutParams.FILL_PARENT,
    			LinearLayout.LayoutParams.WRAP_CONTENT));
    	 
    	timeStamp = Calendar.getInstance();	//get current time
    } 
 
    private class UILoaderAsyncTask extends AsyncTask<Void, Void, Boolean> {
        @Override 
        protected Boolean doInBackground(Void... sVoid) {
        	boolean result = true;
            try { 
            	String call = RESTCaller.getStandings(mBtAdapter.getAddress(), -1, "");
                RESTCaller caller = new RESTCaller();
                restJSONObject = caller.execute(call);