aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-12-29 00:46:38 -0800
committerScott Jackson <daneren2005@gmail.com>2013-12-29 00:46:38 -0800
commit3f27964f47a7aed7afddf4e4d3542ffecb23afc1 (patch)
treed59f6fcca606968362e7b6c096291d0c286068b8 /res
parent85cdf191f2b6183a78b829f82ef75391354674f9 (diff)
downloaddsub-3f27964f47a7aed7afddf4e4d3542ffecb23afc1.tar.gz
dsub-3f27964f47a7aed7afddf4e4d3542ffecb23afc1.tar.bz2
dsub-3f27964f47a7aed7afddf4e4d3542ffecb23afc1.zip
#173 Add a share management tab
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/ic_menu_share_dark.pngbin0 -> 737 bytes
-rw-r--r--res/drawable-hdpi/ic_menu_share_light.pngbin0 -> 825 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_share_dark.pngbin0 -> 455 bytes
-rw-r--r--res/drawable-mdpi/ic_menu_share_light.pngbin0 -> 534 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_share_dark.pngbin0 -> 947 bytes
-rw-r--r--res/drawable-xhdpi/ic_menu_share_light.pngbin0 -> 1101 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_share_dark.pngbin0 -> 1592 bytes
-rw-r--r--res/drawable-xxhdpi/ic_menu_share_light.pngbin0 -> 1790 bytes
-rw-r--r--res/layout/complex_list_item.xml50
-rw-r--r--res/layout/update_share.xml69
-rw-r--r--res/menu/select_share_context.xml17
-rw-r--r--res/values/arrays.xml4
-rw-r--r--res/values/strings.xml19
13 files changed, 159 insertions, 0 deletions
diff --git a/res/drawable-hdpi/ic_menu_share_dark.png b/res/drawable-hdpi/ic_menu_share_dark.png
new file mode 100644
index 00000000..218aa864
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_share_dark.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_menu_share_light.png b/res/drawable-hdpi/ic_menu_share_light.png
new file mode 100644
index 00000000..cfd19d43
--- /dev/null
+++ b/res/drawable-hdpi/ic_menu_share_light.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_share_dark.png b/res/drawable-mdpi/ic_menu_share_dark.png
new file mode 100644
index 00000000..c37aadba
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_share_dark.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_menu_share_light.png b/res/drawable-mdpi/ic_menu_share_light.png
new file mode 100644
index 00000000..72eeb598
--- /dev/null
+++ b/res/drawable-mdpi/ic_menu_share_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_share_dark.png b/res/drawable-xhdpi/ic_menu_share_dark.png
new file mode 100644
index 00000000..41073d1f
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_share_dark.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_menu_share_light.png b/res/drawable-xhdpi/ic_menu_share_light.png
new file mode 100644
index 00000000..36f9f55f
--- /dev/null
+++ b/res/drawable-xhdpi/ic_menu_share_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_share_dark.png b/res/drawable-xxhdpi/ic_menu_share_dark.png
new file mode 100644
index 00000000..1fa12609
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_share_dark.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_menu_share_light.png b/res/drawable-xxhdpi/ic_menu_share_light.png
new file mode 100644
index 00000000..7511340b
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_menu_share_light.png
Binary files differ
diff --git a/res/layout/complex_list_item.xml b/res/layout/complex_list_item.xml
new file mode 100644
index 00000000..87fa7b2f
--- /dev/null
+++ b/res/layout/complex_list_item.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="?android:attr/listPreferredItemHeight"
+ android:background="@android:color/transparent">
+
+ <LinearLayout android:orientation="vertical"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_gravity="center_vertical"
+ android:paddingLeft="6dip"
+ android:paddingRight="6dip"
+ android:gravity="left|center_vertical">
+
+ <TextView
+ android:id="@+id/item_name"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:background="@android:color/transparent"/>
+
+ <TextView
+ android:id="@+id/item_description"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:background="@android:color/transparent"/>
+ </LinearLayout>
+
+ <ImageButton
+ android:id="@+id/item_star"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="right|center_vertical"
+ android:src="@drawable/ic_stat_star"
+ android:background="@android:color/transparent"
+ android:focusable="false"
+ android:visibility="gone"/>
+
+ <ImageView
+ android:id="@+id/item_more"
+ android:src="?attr/download_none"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:layout_gravity="right|center_vertical"
+ android:paddingRight="10dip"
+ android:background="@drawable/menubar_button"/>
+</LinearLayout> \ No newline at end of file
diff --git a/res/layout/update_share.xml b/res/layout/update_share.xml
new file mode 100644
index 00000000..92b7137b
--- /dev/null
+++ b/res/layout/update_share.xml
@@ -0,0 +1,69 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content">
+
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content">
+
+ <TextView
+ android:id="@+id/get_share_name_label"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="4dp"
+ android:textSize="20dp"
+ android:text="@string/common.name" />
+ <EditText
+ android:id="@+id/get_share_name"
+ android:inputType="text"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_marginLeft="4dp"
+ android:hint="@string/common.name" />
+ </LinearLayout>
+
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content">
+
+ <TextView
+ android:id="@+id/get_share_expire_label"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="4dp"
+ android:textSize="20dp"
+ android:text="@string/share.expiration" />
+ <DatePicker
+ android:id="@+id/get_share_expire"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_marginLeft="4dp"
+ android:calendarViewShown="false"/>
+ </LinearLayout>
+
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content">
+
+ <TextView
+ android:id="@+id/get_share_no_expire_label"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="4dp"
+ android:textSize="20dp"
+ android:text="@string/share.no_expiration" />
+ <CheckBox
+ android:id="@+id/get_share_no_expire"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_marginLeft="4dp"
+ android:checked="false"/>
+ </LinearLayout>
+</LinearLayout> \ No newline at end of file
diff --git a/res/menu/select_share_context.xml b/res/menu/select_share_context.xml
new file mode 100644
index 00000000..3ef2826f
--- /dev/null
+++ b/res/menu/select_share_context.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:compat="http://schemas.android.com/apk/res-auto">
+
+ <item
+ android:id="@+id/share_menu_info"
+ android:title="@string/common.info"/>
+
+ <item
+ android:id="@+id/share_update_info"
+ android:title="@string/playlist.update_info"
+ />
+
+ <item
+ android:id="@+id/share_menu_delete"
+ android:title="@string/common.delete"/>
+</menu>
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 4b8caa96..a9702496 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -6,6 +6,7 @@
<item>@string/button_bar.playlists</item>
<item>@string/button_bar.podcasts</item>
<item>@string/button_bar.bookmarks</item>
+ <item>@string/button_bar.shares</item>
<item>@string/button_bar.chat</item>
<item>@string/menu.settings</item>
</string-array>
@@ -16,6 +17,7 @@
<item>Playlist</item>
<item>Podcast</item>
<item>Bookmark</item>
+ <item>Share</item>
<item>Chat</item>
<item>Settings</item>
</string-array>
@@ -26,6 +28,7 @@
<item>@drawable/ic_menu_playlist_light</item>
<item>@drawable/ic_menu_podcast_light</item>
<item>@drawable/ic_menu_bookmark_light</item>
+ <item>@drawable/ic_menu_share_light</item>
<item>@drawable/ic_menu_chat_light</item>
<item>@drawable/ic_menu_settings_light</item>
</array>
@@ -36,6 +39,7 @@
<item>@drawable/ic_menu_playlist_dark</item>
<item>@drawable/ic_menu_podcast_dark</item>
<item>@drawable/ic_menu_bookmark_dark</item>
+ <item>@drawable/ic_menu_share_dark</item>
<item>@drawable/ic_menu_chat_dark</item>
<item>@drawable/ic_menu_settings_dark</item>
</array>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 744b6dcd..2c0d2ff3 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -31,6 +31,7 @@
<string name="button_bar.now_playing">Now Playing</string>
<string name="button_bar.podcasts">Podcasts</string>
<string name="button_bar.bookmarks">Bookmarks</string>
+ <string name="button_bar.shares">Shares</string>
<string name="button_bar.chat">Chat</string>
<string name="main.welcome_title">Welcome!</string>
@@ -389,6 +390,24 @@
<string name="shuffle.genre">Genre:</string>
<string name="shuffle.pick_genre">Pick a genre</string>
+ <string name="share.info">Owner: %1$s
+ \nDescription: %2$s
+ \nURL: %3$s
+ \nCreation: %4$s
+ \nLast Visited: %5$s
+ \nExpiration: %6$s
+ \nVisit Count: %7$s
+
+ </string>
+ <string name="share.expires">Expires: %s</string>
+ <string name="share.expires_never">Never Expires</string>
+ <string name="share.deleted">Deleted share %s</string>
+ <string name="share.deleted_error">Failed to delete share %s</string>
+ <string name="share.no_expiration">No expiration</string>
+ <string name="share.expiration">Expires:</string>
+ <string name="share.updated_info">Updated share information for %s</string>
+ <string name="share.updated_info_error">Failed to update share information for %s</string>
+
<string name="music_service.retry">A network error occurred. Retrying %1$d of %2$d.</string>
<string name="background_task.wait">Please wait...</string>