Back to project page FeedListViewDemo.
The source code is released under:
MIT License
If you think the Android project FeedListViewDemo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package io.bxbxbai.androiddemos; /*from w w w . j a va 2s. co m*/ import android.annotation.SuppressLint; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.View; import io.bxbxbai.androiddemos.activity.BaseActivity; import io.bxbxbai.androiddemos.activity.FeedListActivity; import io.bxbxbai.androiddemos.utils.ViewFinder; public class MainActivity extends BaseActivity { private static final String TAG = MainActivity.class.getSimpleName(); @SuppressLint("NewApi") @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); setTitle(R.string.app_name); actionBar.setDisplayHomeAsUpEnabled(false); ViewFinder finder = new ViewFinder(this); finder.onClick(R.id.btn_feed_list_demo, new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(MainActivity.this, FeedListActivity.class)); } }); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; } }