Search in sources :

Example 21 with AQuery

use of com.androidquery.AQuery in project androidquery by androidquery.

the class FacebookHandle method dismiss.

private void dismiss() {
    if (dialog != null) {
        new AQuery(act).dismiss(dialog);
        dialog = null;
    }
}
Also used : AQuery(com.androidquery.AQuery)

Example 22 with AQuery

use of com.androidquery.AQuery in project androidquery by androidquery.

the class TwitterHandle method dismiss.

private void dismiss() {
    if (dialog != null) {
        new AQuery(act).dismiss(dialog);
        dialog = null;
    }
}
Also used : AQuery(com.androidquery.AQuery)

Example 23 with AQuery

use of com.androidquery.AQuery in project androidquery by androidquery.

the class ListenerTestActivity method setupTest.

private void setupTest() {
    AQUtility.setDebug(true);
    aq = new AQuery(this);
    aq.id(R.id.image1).text("Hihi");
    aq.id(R.id.clicked1).clicked(this, "clicked1");
    aq.id(R.id.clicked2).clicked(new OnClickListener() {

        @Override
        public void onClick(View v) {
            TestUtility.showToast(ListenerTestActivity.this, "pass");
        }
    });
    aq.id(R.id.image_reload).clicked(this, "reloadImage");
    aq.id(R.id.image_clear_mem).clicked(this, "clearMem");
    aq.id(R.id.image_clear_disk).clicked(this, "clearDisk");
    aq.id(R.id.async_bytes).clicked(this, "asyncBytes");
    aq.id(R.id.async_json).clicked(this, "asyncJson");
    aq.id(R.id.async_bad_json).clicked(this, "asyncBadJson");
    aq.id(R.id.async_bm).clicked(this, "asyncBitmap");
    aq.id(R.id.async_html).clicked(this, "asyncHtml");
    aq.id(R.id.async_post).clicked(this, "asyncPost");
    loadImage();
}
Also used : AQuery(com.androidquery.AQuery) OnClickListener(android.view.View.OnClickListener) View(android.view.View)

Example 24 with AQuery

use of com.androidquery.AQuery in project androidquery by androidquery.

the class RunSourceActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    if (AQuery.SDK_INT >= 11) {
    //setTheme(0x0103006b);
    //setTheme(0x0103006e);
    }
    super.onCreate(savedInstanceState);
    aq = new AQuery(this);
    type = getIntent().getStringExtra("type");
    setContentView(getContainer());
    String source = getSource();
    String title = getSourceTitle();
    aq.id(R.id.name).text(title);
    aq.id(R.id.code).text(source);
    aq.id(R.id.go_run).clicked(this, "runSource");
    //AQUtility.debug("source", source);
    TestUtility.flurryEvent(this, type);
}
Also used : AQuery(com.androidquery.AQuery)

Example 25 with AQuery

use of com.androidquery.AQuery in project androidquery by androidquery.

the class AbstractTest method setUp.

protected void setUp() throws Exception {
    super.setUp();
    aq = new AQuery(getActivity());
    AjaxCallback.setSimulateError(false);
    //AjaxCallback.setProxy(null, 0, null, null);
    AjaxCallback.setProxyHandle(null);
    AQUtility.TEST_IO_EXCEPTION = false;
    AQUtility.debug("new act", getActivity() + ":" + getActivity().isFinishing());
}
Also used : AQuery(com.androidquery.AQuery)

Aggregations

AQuery (com.androidquery.AQuery)31 View (android.view.View)17 ViewGroup (android.view.ViewGroup)9 ArrayAdapter (android.widget.ArrayAdapter)8 AdapterView (android.widget.AdapterView)5 TextView (android.widget.TextView)5 AbsListView (android.widget.AbsListView)4 ImageView (android.widget.ImageView)4 JSONObject (org.json.JSONObject)4 Activity (android.app.Activity)3 ExpandableListView (android.widget.ExpandableListView)3 Photo (com.androidquery.test.image.ImageLoadingList4Activity.Photo)3 ArrayList (java.util.ArrayList)3 Dialog (android.app.Dialog)2 Bitmap (android.graphics.Bitmap)2 ProgressBar (android.widget.ProgressBar)2 JSONArray (org.json.JSONArray)2 AlertDialog (android.app.AlertDialog)1 ProgressDialog (android.app.ProgressDialog)1 Intent (android.content.Intent)1