Advertisement
Guest User

Untitled

a guest
Nov 6th, 2013
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. public class CityActivity extends Activity{
  2.  
  3.     @Override
  4.     protected void onCreate(Bundle savedInstanceState) {
  5.         super.onCreate(savedInstanceState);
  6.         setContentView(R.layout.city);
  7.        
  8.         AutoCompleteTextView autoCompView = (AutoCompleteTextView) findViewById(R.id.autocomplete_city);
  9.  
  10.         PlacesAutoCompleteAdapter ad = new PlacesAutoCompleteAdapter(this);
  11.         ProgressBar b = (ProgressBar)findViewById(R.id.progressBar1);
  12.         ad.setLoadingIndicator(b);
  13.        
  14.         autoCompView.setAdapter(ad);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement