--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<lint>
+ <issue id="NewApi" severity="ignore" />
+</lint>
\ No newline at end of file
android:paddingRight="10dp" />
<TextView
+ android:textAppearance="@android:style/TextAppearance.DeviceDefault"
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/empty"
android:layout_width="fill_parent"
android:gravity="center"
android:layout_weight="1"
android:orientation="vertical"
+ android:padding="10dp"
android:visibility="gone" />
<LinearLayout
public void setEmpty(int res) {
getFragment().setEmpty(res);
}
+
+ public boolean isDestroyed() {
+ return mDestroyed;
+ }
+
+ private boolean mDestroyed = false;
+ @Override
+ protected void onDestroy() {
+ mDestroyed = true;
+ super.onDestroy();
+ }
}
private ActivityBaseFragment Context;
private boolean Enabled = true;
- public int Icon;
+ private int Icon;
+
+ public ListItem setIcon(int icon) {
+ Icon = icon;
+ Context.mAdapter.notifyDataSetChanged();
+ return this;
+ }
public ListItem setEnabled(boolean enabled) {
Enabled = enabled;