Skip to content

Instantly share code, notes, and snippets.

@jasonofearth
jasonofearth / gist:5923351
Created July 3, 2013 22:18
Android string array of US states
<string-array name="states">
<item>Alabama</item>
<item>Alaska</item>
<item>American Samoa</item>
<item>Arizona</item>
<item>Arkansas</item>
<item>California</item>
<item>Colorado</item>
<item>Connecticut</item>
<item>Delaware</item>
@jasonofearth
jasonofearth / CheckableRelativeLayout
Created October 17, 2013 22:38
How to make a custom view on a multiselect listview. Including a select all checkbox. To use the multiselect your custom view root must implement Checkable. You have to be careful about using the list view to check and uncheck things.
public class checkedLayout extends RelativeLayout implements Checkable {
public UnpaidItemCheckedLayout(Context context, AttributeSet attrs) {
super(context, attrs);
}
boolean isChecked;
@Override