forked from bauerca/drag-sort-listview
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add in capacity for a SortableListPreference #1
Open
kd7uiy
wants to merge
20
commits into
JayH5:master
Choose a base branch
from
kd7uiy:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
dcbe9bb
This fixes a bug so the Warp demonstration works (Fast Scrolling)
kd7uiy 565bfc1
This is the start of a SortableListPreference class. As it stands right
kd7uiy 3d3a9f8
Preferences now are being preserved correctly. Changes the names to be
kd7uiy bd70b3a
Removed debug code.
kd7uiy 51f6b66
Now supports checkable preference lists. The values are not put into the
kd7uiy c214e3b
Cleaned up
kd7uiy cbdbbc5
Removing setPersistant as it causes undesired behavior.
kd7uiy dc84525
Converted to Unix formatting
kd7uiy 8167405
Converted to Unix format
kd7uiy 49fa775
General code cleanup, Lint fixes, prevented a crash in Background
kd7uiy 21ea943
Removed debug code
kd7uiy 8ebe125
DragSortListPreference now available
kd7uiy 445b538
Fix bug where an empty preference set would lead to an IllegalStateEx…
woudt 16a1a02
Merge pull request #1 from woudt/master
kd7uiy 3e24147
Update to gradle 1.12 and update build tools [build]
609b5de
Null protect onScroll logic
36a85b9
Remove unnecessary conditional check.
8cf4619
Update README.md
loeschg b20f957
Add name/version and missing dependency [build]
d1a14f4
Merge pull request #2 from loeschg/master
kd7uiy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<com.mobeta.android.demodslv.CheckableLinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:layout_height="@dimen/item_height" | ||
android:orientation="horizontal"> | ||
<ImageView | ||
android:id="@id/drag_handle" | ||
android:background="@drawable/drag" | ||
android:layout_width="wrap_content" | ||
android:layout_height="@dimen/item_height" | ||
android:contentDescription="@string/drag_item" | ||
android:layout_weight="0" /> | ||
<CheckedTextView | ||
android:checkMark="?android:attr/listChoiceIndicatorMultiple" | ||
android:id="@+id/text" | ||
android:layout_width="wrap_content" | ||
android:layout_height="@dimen/item_height" | ||
android:layout_weight="1" | ||
android:textAppearance="?android:attr/textAppearanceMedium" | ||
android:gravity="center_vertical" | ||
android:paddingLeft="8dp" /> | ||
</com.mobeta.android.demodslv.CheckableLinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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:focusable="false" | ||
android:focusableInTouchMode="false" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:layout_margin="3dp" | ||
android:choiceMode="multipleChoice" | ||
dslv:sort_enabled="true" | ||
dslv:remove_enabled="false" | ||
dslv:drag_handle_id="@id/drag_handle" | ||
> | ||
|
||
|
||
</com.mobeta.android.dslv.DragSortListView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<menu xmlns:android="http://schemas.android.com/apk/res/android" > | ||
<item android:id="@+id/menu_settings" android:title="@string/settings"></item> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. <item android:id="@+id/menu_settings" android:title="@string/settings"/> Also an extra newline under here. |
||
|
||
|
||
</menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string-array name="pref_name_values"> | ||
<item>Bob</item> | ||
<item>Fred</item> | ||
<item>George</item> | ||
</string-array> | ||
<string-array name="pref_name_titles"> | ||
<item>Bob Menwaldo</item> | ||
<item>Fred Frankfurd</item> | ||
<item>George Stephanopolis</item> | ||
</string-array> | ||
<string-array name="pref_name_defaults"> | ||
<item>George</item> | ||
<item>Fred</item> | ||
<item>Bob</item> | ||
</string-array> | ||
<string name="pref_name_selection">Name Order Preference</string> | ||
<string name="pref_header_test">Test</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<preference-headers | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<!-- These settings headers are only used on tablets. --> | ||
|
||
<header | ||
android:fragment="com.mobeta.android.demodslv.MainSettingsActivity$NameSelectionPreferenceFragment" | ||
android:title="@string/pref_header_test"/> | ||
</preference-headers> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" > | ||
<com.mobeta.android.demodslv.SortableListPreference | ||
android:defaultValue="@array/pref_name_defaults" | ||
android:entries="@array/pref_name_titles" | ||
android:entryValues="@array/pref_name_values" | ||
android:key="name_order" | ||
android:persistent="true" | ||
android:title="@string/pref_name_selection" /> | ||
</PreferenceScreen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bump this
>
to the end of the previous line.