mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 19:42:17 +02:00
drag list in CatalogManagerActivity (dragging is currently disabled)
This commit is contained in:
parent
ac9dbb749b
commit
3e3b4447d8
2 changed files with 24 additions and 1 deletions
18
res/layout/catalog_manager_view.xml
Normal file
18
res/layout/catalog_manager_view.xml
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.mobeta.android.dslv.DragSortListView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:dslv="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@android:id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_margin="3dp"
|
||||
android:choiceMode="multipleChoice"
|
||||
android:dividerHeight="1px"
|
||||
android:padding="3dp"
|
||||
dslv:collapsed_height="1px"
|
||||
dslv:drag_enabled="false"
|
||||
dslv:drag_scroll_start="0.33"
|
||||
dslv:drag_start_mode="onDown"
|
||||
dslv:float_alpha="0.6"
|
||||
dslv:slide_shuffle_speed="0.3"
|
||||
/>
|
|
@ -22,7 +22,6 @@ package org.geometerplus.android.fbreader.network;
|
|||
import java.util.*;
|
||||
|
||||
import android.app.ListActivity;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.*;
|
||||
|
@ -37,6 +36,12 @@ public class CatalogManagerActivity extends ListActivity {
|
|||
private final List<Item> myAllItems = new ArrayList<Item>();
|
||||
private final List<Item> mySelectedItems = new ArrayList<Item>();
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle icicle) {
|
||||
super.onCreate(icicle);
|
||||
setContentView(R.layout.catalog_manager_view);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStart() {
|
||||
super.onStart();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue