Back to project page Verlet.
The source code is released under:
Copyright 2013 Devicement http://devicement.com/ Copyright 2013 Sub Protocol and other contributors http://subprotocol.com/ Permission is hereby granted, free of charge, to any person obtaining a co...
If you think the Android project Verlet 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 com.northerneyes.activities; //w w w . j a va2s .c o m import android.app.ListActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import org.verletjs.R; /** * Created with IntelliJ IDEA. * User: George * Date: 01.05.13 * Time: 15:50 * To change this template use File | Settings | File Templates. */ public class SampleList extends ListActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // showActionBar(); // this.setTheme(com.actionbarsherlock.R.style.Theme_Sherlock); String[] samples = getResources().getStringArray(R.array.samples); setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, android.R.id.text1, samples)); } // private void showActionBar() { // ActionBar actionBar = getSupportActionBar(); // // actionBar.setDisplayHomeAsUpEnabled(true); // // actionBar.setTitle("Sample List"); // } protected void onListItemClick(ListView l, View v, int position, long id) { Intent intent = new Intent(this, MainActivity.class); intent.putExtra("Sample", position); startActivity(intent); } }