diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-02-22 23:10:13 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-02-22 23:10:13 +0100 |
commit | 4fca178972637f288966cf2388330229cd41d47c (patch) | |
tree | 8c5e5b8c09687a96baac0bb9a901fa0bc3885821 /res/layout | |
parent | bd92dd3fb317fd3d38a505b8cc0d27cc6f3f4dd8 (diff) | |
parent | 668bae3354e289114d3dfc77fe470324d37c1170 (diff) | |
download | AntennaPod-4fca178972637f288966cf2388330229cd41d47c.zip |
Merge branch 'issue-39' into develop
Conflicts:
res/values/ids.xml
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/organize_queue.xml | 34 | ||||
-rw-r--r-- | res/layout/organize_queue_listitem.xml | 56 |
2 files changed, 90 insertions, 0 deletions
diff --git a/res/layout/organize_queue.xml b/res/layout/organize_queue.xml new file mode 100644 index 000000000..615853f6d --- /dev/null +++ b/res/layout/organize_queue.xml @@ -0,0 +1,34 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:dslv="http://schemas.android.com/apk/res/de.danoeh.antennapod" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <com.mobeta.android.dslv.DragSortListView + android:id="@android:id/list" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + dslv:collapsed_height="2dp" + dslv:drag_enabled="true" + dslv:drag_handle_id="@id/drag_handle" + dslv:drag_scroll_start="0.33" + dslv:drag_start_mode="onDown" + dslv:float_alpha="0.6" + dslv:max_drag_scroll_speed="0.5" + dslv:remove_enabled="true" + dslv:remove_mode="flingRemove" + dslv:slide_shuffle_speed="0.3" + dslv:sort_enabled="true" + dslv:track_drag_sort="false" + dslv:use_default_controller="true" /> + + <TextView + android:id="@id/android:empty" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" + android:gravity="center" + android:text="@string/no_feeds_label" /> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/organize_queue_listitem.xml b/res/layout/organize_queue_listitem.xml new file mode 100644 index 000000000..a109b5784 --- /dev/null +++ b/res/layout/organize_queue_listitem.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ImageView + android:id="@+id/imgvFeedimage" + android:layout_width="@dimen/thumbnail_length" + android:layout_height="@dimen/thumbnail_length" + android:layout_alignParentLeft="true" + android:scaleType="centerCrop" /> + + <View + android:id="@id/drag_handle" + android:layout_width="@dimen/dragview_length" + android:layout_height="@dimen/dragview_length" + android:layout_alignParentRight="true" + android:layout_centerVertical="true" + android:layout_marginBottom="8dp" + android:layout_marginLeft="4dp" + android:layout_marginRight="8dp" + android:layout_marginTop="8dp" + android:background="?attr/dragview_background" + android:clickable="false" + android:focusable="false" + android:focusableInTouchMode="false" /> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_marginLeft="8dp" + android:layout_marginTop="8dp" + android:layout_toLeftOf="@id/drag_handle" + android:layout_toRightOf="@id/imgvFeedimage" + android:ellipsize="end" + android:lines="2" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_small" /> + + <TextView + android:id="@+id/txtvFeedname" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_below="@id/txtvTitle" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_toLeftOf="@id/drag_handle" + android:layout_toRightOf="@id/imgvFeedimage" + android:ellipsize="end" + android:maxLines="1" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/text_size_micro" /> + +</RelativeLayout>
\ No newline at end of file |