Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:pocket="http://schemas.android.com/apk/res-auto">
<item
pocket:theme_state_dark="true"
android:drawable="@drawable/dark_drawable" />
<item android:drawable="drawable/light_drawable" />
public class ThemedView extends View {
public ThemedView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
public ThemedView(Context context, AttributeSet attrs) {
super(context, attrs);
}