aboutsummaryrefslogtreecommitdiffstats
path: root/libs/audiowife/src/main/res
diff options
context:
space:
mode:
authorChristian S <christian@pix-art.de>2016-05-05 10:44:56 +0200
committerChristian S <christian@pix-art.de>2016-05-05 10:44:56 +0200
commitf99eb2c1d9baf9688a82bfdb63466c0e0e58fad6 (patch)
tree1cc4359c67c2bc6ff28d380967d811af37a89c3f /libs/audiowife/src/main/res
parent8013668850e92f3dbd6e35bc3be9acddd74a9163 (diff)
added audio player
Diffstat (limited to '')
-rw-r--r--libs/audiowife/src/main/res/drawable-mdpi/ic_launcher.pngbin0 -> 5237 bytes
-rw-r--r--libs/audiowife/src/main/res/drawable-xhdpi/ic_launcher.pngbin0 -> 14383 bytes
-rw-r--r--libs/audiowife/src/main/res/drawable-xxhdpi/ic_launcher.pngbin0 -> 19388 bytes
-rw-r--r--libs/audiowife/src/main/res/drawable/gray_border_wo_padding.xml15
-rw-r--r--libs/audiowife/src/main/res/layout/aw_player.xml49
-rw-r--r--libs/audiowife/src/main/res/values/strings.xml5
-rw-r--r--libs/audiowife/src/main/res/values/styles.xml20
7 files changed, 89 insertions, 0 deletions
diff --git a/libs/audiowife/src/main/res/drawable-mdpi/ic_launcher.png b/libs/audiowife/src/main/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 000000000..359047dfa
--- /dev/null
+++ b/libs/audiowife/src/main/res/drawable-mdpi/ic_launcher.png
Binary files differ
diff --git a/libs/audiowife/src/main/res/drawable-xhdpi/ic_launcher.png b/libs/audiowife/src/main/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 000000000..71c6d760f
--- /dev/null
+++ b/libs/audiowife/src/main/res/drawable-xhdpi/ic_launcher.png
Binary files differ
diff --git a/libs/audiowife/src/main/res/drawable-xxhdpi/ic_launcher.png b/libs/audiowife/src/main/res/drawable-xxhdpi/ic_launcher.png
new file mode 100644
index 000000000..4df189464
--- /dev/null
+++ b/libs/audiowife/src/main/res/drawable-xxhdpi/ic_launcher.png
Binary files differ
diff --git a/libs/audiowife/src/main/res/drawable/gray_border_wo_padding.xml b/libs/audiowife/src/main/res/drawable/gray_border_wo_padding.xml
new file mode 100644
index 000000000..409ed7ccd
--- /dev/null
+++ b/libs/audiowife/src/main/res/drawable/gray_border_wo_padding.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android" >
+
+
+ <!-- view border color and width -->
+ <stroke
+ android:width="1dp"
+ android:color="#F2F2F2" >
+ </stroke>
+
+ <gradient
+ android:endColor="@android:color/white"
+ android:startColor="@android:color/white" />
+
+</shape> \ No newline at end of file
diff --git a/libs/audiowife/src/main/res/layout/aw_player.xml b/libs/audiowife/src/main/res/layout/aw_player.xml
new file mode 100644
index 000000000..6d2904e31
--- /dev/null
+++ b/libs/audiowife/src/main/res/layout/aw_player.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/player_layout"
+ android:layout_width="match_parent"
+ android:layout_height="70dp"
+ android:gravity="center_vertical"
+ android:paddingLeft="4dp">
+
+ <ImageView
+ android:id="@+id/play"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="6"
+ android:src="@android:drawable/ic_media_play" />
+
+ <ImageView
+ android:id="@+id/pause"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="6"
+ android:src="@android:drawable/ic_media_pause"
+ android:visibility="gone" />
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="0.8"
+ android:paddingBottom="5dp"
+ android:paddingRight="10dp"
+ android:paddingTop="5dp" >
+
+ <SeekBar
+ android:id="@+id/media_seekbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical" />
+
+ <TextView
+ android:id="@+id/playback_time"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="right|top"
+ android:ellipsize="end"
+ android:inputType="text"
+ android:textColor="@android:color/darker_gray"
+ android:textSize="11sp" />
+ </FrameLayout>
+
+</LinearLayout> \ No newline at end of file
diff --git a/libs/audiowife/src/main/res/values/strings.xml b/libs/audiowife/src/main/res/values/strings.xml
new file mode 100644
index 000000000..66966868f
--- /dev/null
+++ b/libs/audiowife/src/main/res/values/strings.xml
@@ -0,0 +1,5 @@
+<resources>
+
+ <string name="app_name">LibAudioWife</string>
+
+</resources>
diff --git a/libs/audiowife/src/main/res/values/styles.xml b/libs/audiowife/src/main/res/values/styles.xml
new file mode 100644
index 000000000..6ce89c7ba
--- /dev/null
+++ b/libs/audiowife/src/main/res/values/styles.xml
@@ -0,0 +1,20 @@
+<resources>
+
+ <!--
+ Base application theme, dependent on API level. This theme is replaced
+ by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Light">
+ <!--
+ Theme customizations available in newer API levels can go in
+ res/values-vXX/styles.xml, while customizations related to
+ backward-compatibility can go here.
+ -->
+ </style>
+
+ <!-- Application theme. -->
+ <style name="AppTheme" parent="AppBaseTheme">
+ <!-- All customizations that are NOT specific to a particular API-level can go here. -->
+ </style>
+
+</resources>