Monthly Archives: May 2014

enable checkbox events in Listview

listView.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
// When clicked, show a toast with the TextView text
Country country = (Country) parent.getItemAtPosition(position);
CheckBox cb=(CheckBox)view.findViewById(R.id.checkBox1);
cb.toggle();
country.setSelected(cb.isChecked());
Toast.makeText(getApplicationContext(),
“Clicked on Row: ” + country.getName(),
Toast.LENGTH_LONG).show();
}
});

 

http://developer.android.com/reference/android/widget/Checkable.html#toggle()

mylib

Want to share Web pages that have content to myself and edit (comment, reorgnize it)

When post a photo, should allow small size photo right to phone size, and allow add comment, links.

Why do peope who want to edit it must register? I can share it with anyone, and they can freely edit it they way they want. but I will keep my version, and I can see other’s version.