List of usage examples for android.app ProgressDialog setInverseBackgroundForced
public void setInverseBackgroundForced(boolean forceInverseBackground)
From source file:com.androidquery.simplefeed.base.BaseActivity.java
public ProgressDialog makeProgressDialog(String message) { ProgressDialog dialog = new ProgressDialog(this); dialog.setIndeterminate(true);/*from ww w . j av a 2s .c om*/ dialog.setCancelable(true); dialog.setInverseBackgroundForced(false); dialog.setCanceledOnTouchOutside(true); dialog.setMessage(message); return dialog; }
From source file:com.ame.armymax.SettingsActivity.java
private ProgressDialog getProgressDialog() { ProgressDialog progress = null;//from w w w .j av a 2 s . c om if (progress == null) { ProgressDialog dialog = new ProgressDialog(this); dialog.setIndeterminate(true); dialog.setCancelable(true); dialog.setInverseBackgroundForced(false); dialog.setCanceledOnTouchOutside(true); progress = dialog; } return progress; }
From source file:com.ame.armymax.SearchActivity.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_search); context = this; DataUser.context = context;//from w w w. j av a 2s . com aq = new AQuery(this); getActionBar().setDisplayHomeAsUpEnabled(true); getActionBar().setTitle(""); query = getIntent().getStringExtra("query"); searchBox = (BootstrapEditText) findViewById(R.id.room_name); searchBox.setText(query); searchButton = (Button) findViewById(R.id.search_button); searchButton.setVisibility(View.GONE); intent = new Intent(this, ProfileActivity.class); searchButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { query = searchBox.getEditableText().toString(); if (!query.equals("")) { String resultUrl = "http://www.armymax.com/api/?action=search&txt=" + query + "&startPoint=0&sizePage=50"; ProgressDialog dialog = new ProgressDialog(context); dialog.setIndeterminate(true); dialog.setCancelable(true); dialog.setInverseBackgroundForced(false); dialog.setCanceledOnTouchOutside(true); dialog.setTitle("Finding ..."); Log.e("searchurl", resultUrl); newSearch = true; aq.progress(dialog).ajax(resultUrl, JSONObject.class, context, "newSearchResultCb"); } } }); searchBox.addTextChangedListener(new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { query = searchBox.getEditableText().toString(); if (!query.equals("")) { String resultUrl = "http://www.armymax.com/api/?action=search&txt=" + query + "&startPoint=0&sizePage=20"; ProgressDialog dialog = new ProgressDialog(context); dialog.setIndeterminate(true); dialog.setCancelable(true); dialog.setInverseBackgroundForced(false); dialog.setCanceledOnTouchOutside(true); dialog.setTitle("Finding ..."); newSearch = true; Log.e("q", query); aq.ajax(resultUrl, JSONObject.class, context, "newSearchResultCb"); } } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { // TODO Auto-generated method stub } @Override public void afterTextChanged(Editable s) { // TODO Auto-generated method stub } }); String resultUrl = "http://www.armymax.com/api/?action=search&txt=" + query + "&startPoint=0&sizePage=50"; aq.ajax(resultUrl, JSONObject.class, this, "searchResultCb"); }