Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CityActivity extends Activity{
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.city);
- AutoCompleteTextView autoCompView = (AutoCompleteTextView) findViewById(R.id.autocomplete_city);
- PlacesAutoCompleteAdapter ad = new PlacesAutoCompleteAdapter(this);
- ProgressBar b = (ProgressBar)findViewById(R.id.progressBar1);
- ad.setLoadingIndicator(b);
- autoCompView.setAdapter(ad);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement