-
Notifications
You must be signed in to change notification settings - Fork 0
Code Samples
<activity android:theme="@android:style/Theme.NoTitleBar.Fullscreen" или <activity android:theme="@android:style/Theme.NoTitleBar getActionBar().hide(); setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN|View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
** < style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> @color/colorPrimary @color/colorPrimaryDark @color/colorAccent </ style>**
public class DbList extends AbstractList {
public interface Factory { T get(Cursor cursor); }
public static List create(Cursor cursor, Factory factory) { return new DbList<>(cursor, factory); }
private final Cursor cursor; private final Factory factory;
private DbList(Cursor cursor, Factory factory) { this.cursor = cursor; this.factory = factory; }
@Override @Nullable public T get(int location) { if (cursor != null && cursor.moveToPosition(location)) { return factory.get(cursor); } return null; }
@Override public int size() { return cursor == null ? 0 : cursor.getCount(); }
}