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;
}
}
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;
}
}
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();
}
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);
}
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());
}
Aggregations