Skip to content

Commit

Permalink
start v 3
Browse files Browse the repository at this point in the history
  • Loading branch information
cqr committed May 29, 2013
0 parents commit e083117
Show file tree
Hide file tree
Showing 80 changed files with 2,613 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
.classpath
.project
bin
gen
10 changes: 10 additions & 0 deletions AndroidManifest.xml
@@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.prx.playerhater"
android:versionCode="30000"
android:versionName="3.0.0" >

<uses-sdk
android:minSdkVersion="5"
android:targetSdkVersion="16" />

</manifest>
Empty file added assets/.gitkeep
Empty file.
Empty file added gen/.gitkeep
Empty file.
Empty file added libs/.gitkeep
Empty file.
20 changes: 20 additions & 0 deletions proguard-project.txt
@@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
15 changes: 15 additions & 0 deletions project.properties
@@ -0,0 +1,15 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-17
android.library=true
Binary file added res/drawable-hdpi-v11/zzz_ph_ic_notification.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi-v9/zzz_ph_ic_notification.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/zzz_ph_bt_back_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/zzz_ph_bt_back_enabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/zzz_ph_bt_pause_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/zzz_ph_bt_pause_enabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/zzz_ph_bt_play_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/zzz_ph_bt_play_enabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/zzz_ph_bt_skip_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/zzz_ph_bt_skip_enabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/zzz_ph_bt_stop.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/zzz_ph_ic_notification.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi-v11/zzz_ph_ic_notification.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi-v9/zzz_ph_ic_notification.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi-v11/zzz_ph_ic_notification.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi-v9/zzz_ph_ic_notification.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/zzz_ph_bt_back_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/zzz_ph_bt_back_enabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/zzz_ph_bt_pause_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/zzz_ph_bt_pause_enabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/zzz_ph_bt_play_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/zzz_ph_bt_play_enabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/zzz_ph_bt_skip_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/zzz_ph_bt_skip_enabled.png
Binary file added res/drawable-mdpi/zzz_ph_ic_notification.png
Binary file added res/drawable-xhdpi-v11/zzz_ph_ic_notification.png
Binary file added res/drawable-xhdpi-v9/zzz_ph_ic_notification.png
Binary file added res/drawable-xhdpi/ic_launcher.png
Binary file added res/drawable-xhdpi/zzz_ph_bt_back_disabled.png
Binary file added res/drawable-xhdpi/zzz_ph_bt_back_enabled.png
Binary file added res/drawable-xhdpi/zzz_ph_bt_pause_disabled.png
Binary file added res/drawable-xhdpi/zzz_ph_bt_pause_enabled.png
Binary file added res/drawable-xhdpi/zzz_ph_bt_play_disabled.png
Binary file added res/drawable-xhdpi/zzz_ph_bt_play_enabled.png
Binary file added res/drawable-xhdpi/zzz_ph_bt_skip_disabled.png
Binary file added res/drawable-xhdpi/zzz_ph_bt_skip_enabled.png
Binary file added res/drawable-xhdpi/zzz_ph_ic_notification.png
19 changes: 19 additions & 0 deletions res/drawable/zzz_ph_bt_back.xml
@@ -0,0 +1,19 @@
<!--
Copyright 2013 Chris Rhoden, Rebecca Nesson, Public Radio Exchange
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="true" android:drawable="@drawable/zzz_ph_bt_back_enabled" />
<item android:state_enabled="false" android:drawable="@drawable/zzz_ph_bt_back_disabled" />
</selector>
19 changes: 19 additions & 0 deletions res/drawable/zzz_ph_bt_pause.xml
@@ -0,0 +1,19 @@
<!--
Copyright 2013 Chris Rhoden, Rebecca Nesson, Public Radio Exchange
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="true" android:drawable="@drawable/zzz_ph_bt_pause_enabled" />
<item android:state_enabled="false" android:drawable="@drawable/zzz_ph_bt_pause_disabled" />
</selector>
19 changes: 19 additions & 0 deletions res/drawable/zzz_ph_bt_play.xml
@@ -0,0 +1,19 @@
<!--
Copyright 2013 Chris Rhoden, Rebecca Nesson, Public Radio Exchange
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="true" android:drawable="@drawable/zzz_ph_bt_play_enabled" />
<item android:state_enabled="false" android:drawable="@drawable/zzz_ph_bt_play_disabled" />
</selector>
19 changes: 19 additions & 0 deletions res/drawable/zzz_ph_bt_skip.xml
@@ -0,0 +1,19 @@
<!--
Copyright 2013 Chris Rhoden, Rebecca Nesson, Public Radio Exchange
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="true" android:drawable="@drawable/zzz_ph_bt_skip_enabled" />
<item android:state_enabled="false" android:drawable="@drawable/zzz_ph_bt_skip_disabled" />
</selector>
102 changes: 102 additions & 0 deletions res/layout-v11/zzz_ph_hc_notification.xml
@@ -0,0 +1,102 @@
<!--
Copyright 2013 Chris Rhoden, Rebecca Nesson, Public Radio Exchange
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="?android:style/TextAppearance.StatusBar.EventContent"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<ImageView
android:id="@+id/image"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_alignParentLeft="true"
android:background="#3333B5E5"
android:contentDescription="@string/album_art"
android:scaleType="fitCenter" />

<ImageView
android:id="@+id/stop"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:alpha="0.4"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/stop"
android:padding="10dp"
android:scaleType="center"
android:src="@drawable/zzz_ph_bt_stop" />

<ImageView
android:id="@+id/skip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/stop"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/skip"
android:padding="8dp"
android:scaleType="center"
android:src="@drawable/zzz_ph_bt_skip" />

<ImageView
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/skip"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/play_pause"
android:padding="8dp"
android:src="@drawable/zzz_ph_bt_pause" />

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_toLeftOf="@id/button"
android:layout_toRightOf="@id/image"
android:orientation="vertical" >

<TextView
android:id="@+id/title"
style="@android:style/TextAppearance.StatusBar.EventContent.Title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_weight="1"
android:ellipsize="end"
android:focusable="true"
android:focusableInTouchMode="true"
android:gravity="bottom"
android:lines="1"
android:paddingLeft="8dp" >

<requestFocus />
</TextView>

<TextView
android:id="@+id/text"
style="@android:style/TextAppearance.StatusBar.EventContent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_weight="1"
android:singleLine="true"
android:lines="1"
android:paddingLeft="8dp" />
</LinearLayout>

</RelativeLayout>
111 changes: 111 additions & 0 deletions res/layout-v16/zzz_ph_jb_land_notification.xml
@@ -0,0 +1,111 @@
<!--
Copyright 2013 Chris Rhoden, Rebecca Nesson, Public Radio Exchange
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="?android:style/TextAppearance.StatusBar.EventContent"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

<ImageView
android:id="@+id/image"
android:layout_width="64dp"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:background="#3333B5E5"
android:contentDescription="@string/album_art"
android:scaleType="fitCenter" />

<ImageView
android:id="@+id/back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/button"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/back"
android:padding="8dp"
android:src="@drawable/zzz_ph_bt_skip_enabled" />

<ImageView
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/skip"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/play_pause"
android:padding="8dp"
android:src="@drawable/zzz_ph_bt_pause_enabled" />

<ImageView
android:id="@+id/skip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/stop"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/skip"
android:padding="8dp"
android:scaleType="center"
android:src="@drawable/zzz_ph_bt_skip_enabled" />

<ImageView
android:id="@+id/stop"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:alpha="0.4"
android:background="?android:attr/selectableItemBackground"
android:contentDescription="@string/stop"
android:padding="10dp"
android:scaleType="center"
android:src="@drawable/zzz_ph_bt_stop" />

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toLeftOf="@id/back"
android:layout_toRightOf="@id/image"
android:orientation="vertical" >

<TextView
android:id="@+id/title"
style="@android:style/TextAppearance.StatusBar.EventContent.Title"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_gravity="bottom"
android:layout_weight="1"
android:ellipsize="end"
android:focusable="true"
android:focusableInTouchMode="true"
android:gravity="bottom"
android:lines="1"
android:paddingLeft="8dp" >

<requestFocus />
</TextView>

<TextView
android:id="@+id/text"
style="@android:style/TextAppearance.StatusBar.EventContent"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_gravity="top"
android:layout_weight="1"
android:paddingLeft="8dp" />
</LinearLayout>

</RelativeLayout>

0 comments on commit e083117

Please sign in to comment.