Android Open Source - reactive-android-demo Main Activity






From Project

Back to project page reactive-android-demo.

License

The source code is released under:

Apache License

If you think the Android project reactive-android-demo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.listviewdemo;
/*from   ww  w.ja  va  2  s .  com*/
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.ListView;

public class MainActivity extends Activity {
  public static String TAG = MLog.tag(MainActivity.class);

  private ListView mListView;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    SearchResultAdapter listAdapter = new SearchResultAdapter(this);

    mListView = (ListView) findViewById(R.id.main_listview);
    mListView.setAdapter(listAdapter);
    listAdapter.doSearch("Australia");
  }

  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
  }
}




Java Source Code List

com.example.listviewdemo.MLog.java
com.example.listviewdemo.MainActivity.java
com.example.listviewdemo.SearchResultAdapter.java
com.example.listviewdemo.data.API.java
com.example.listviewdemo.data.ListItemImage.java
com.example.listviewdemo.schema.Cursor.java
com.example.listviewdemo.schema.GoogleImageSearchResponse.java
com.example.listviewdemo.schema.Page.java
com.example.listviewdemo.schema.ResponseData.java
com.example.listviewdemo.schema.Result.java