Repo created
This commit is contained in:
parent
c49f951a12
commit
9d6cbf6fba
323 changed files with 41128 additions and 0 deletions
57
res/layout/action_bar.xml
Normal file
57
res/layout/action_bar.xml
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:enabled="false"
|
||||
android:orientation="horizontal"
|
||||
android:paddingEnd="8dip" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/up"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|start"
|
||||
android:contentDescription="@null"
|
||||
android:visibility="gone" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|start"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/action_bar_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/text_size_medium" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/action_bar_subtitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="-3dp"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/text_size_small"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
30
res/layout/activity_base.xml
Normal file
30
res/layout/activity_base.xml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableFrameLayout
|
||||
android:id="@+id/activity_base_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<include layout="@layout/bottom_action_bar"/>
|
||||
|
||||
</LinearLayout>
|
||||
206
res/layout/activity_player_base.xml
Normal file
206
res/layout/activity_player_base.xml
Normal file
|
|
@ -0,0 +1,206 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<com.andrew.apollo.widgets.theme.ThemeableFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res/com.andrew.apollo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<View
|
||||
android:id="@+id/audio_player_footer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignTop="@android:id/progress" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/audio_player_header"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/audio_player_header_height"
|
||||
android:layout_alignParentTop="true"
|
||||
android:baselineAligned="false"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="@dimen/audio_player_header_padding_left"
|
||||
android:paddingRight="@dimen/audio_player_header_padding_right" >
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/audio_player_track_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/text_size_medium"
|
||||
android:textStyle="bold"
|
||||
app:themeResource="audio_player_line_one" />
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/audio_player_artist_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/text_size_medium"
|
||||
app:themeResource="audio_player_line_two" />
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/audio_player_switch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:padding="@dimen/audio_player_switch_padding" >
|
||||
|
||||
<com.andrew.apollo.widgets.SquareImageView
|
||||
android:id="@+id/audio_player_switch_queue"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:contentDescription="@null" />
|
||||
|
||||
<com.andrew.apollo.widgets.SquareImageView
|
||||
android:id="@+id/audio_player_switch_album_art"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="invisible" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@android:id/progress"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_below="@+id/audio_player_header" >
|
||||
|
||||
<com.andrew.apollo.widgets.SquareImageView
|
||||
android:id="@+id/audio_player_album_art"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:scaleType="fitXY" />
|
||||
|
||||
<View
|
||||
android:id="@+id/audio_player_footer_two"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_below="@+id/audio_player_album_art" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/shadow_height"
|
||||
android:layout_alignTop="@+id/audio_player_album_art"
|
||||
android:contentDescription="@null"
|
||||
android:src="@drawable/top_shadow" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/shadow_height"
|
||||
android:layout_alignBottom="@+id/audio_player_album_art"
|
||||
android:contentDescription="@null"
|
||||
android:src="@drawable/bottom_shadow" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/audio_player_pager_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@+id/audio_player_album_art"
|
||||
android:visibility="invisible" >
|
||||
|
||||
<android.support.v4.view.ViewPager
|
||||
android:id="@+id/audio_player_pager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/shadow_height"
|
||||
android:layout_gravity="top"
|
||||
android:contentDescription="@null"
|
||||
android:src="@drawable/top_shadow" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/shadow_height"
|
||||
android:layout_gravity="bottom"
|
||||
android:contentDescription="@null"
|
||||
android:src="@drawable/bottom_shadow" />
|
||||
</FrameLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/audio_player_current_time"
|
||||
android:layout_width="@dimen/audio_player_time_width"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@android:id/progress"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignTop="@android:id/progress"
|
||||
android:gravity="center"
|
||||
android:textSize="@dimen/text_size_micro"
|
||||
app:themeResource="audio_player_current_time" />
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/audio_player_total_time"
|
||||
android:layout_width="@dimen/audio_player_time_width"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@android:id/progress"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignTop="@android:id/progress"
|
||||
android:gravity="center"
|
||||
android:textSize="@dimen/text_size_micro"
|
||||
app:themeResource="audio_player_total_time" />
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableSeekBar
|
||||
android:id="@android:id/progress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@+id/audio_player_controlss"
|
||||
android:layout_marginBottom="@dimen/audio_player_seek_bar_margin_bottom"
|
||||
android:layout_toLeftOf="@+id/audio_player_total_time"
|
||||
android:layout_toRightOf="@+id/audio_player_current_time"
|
||||
android:max="1000"
|
||||
android:thumb="@null" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/audio_player_controlss"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:baselineAligned="false"
|
||||
android:gravity="center" >
|
||||
|
||||
<include layout="@layout/audio_player_controls" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<include layout="@layout/colorstrip" />
|
||||
|
||||
</com.andrew.apollo.widgets.theme.ThemeableFrameLayout>
|
||||
53
res/layout/activity_profile_base.xml
Normal file
53
res/layout/activity_profile_base.xml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
-->
|
||||
<com.andrew.apollo.widgets.theme.ThemeableFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<include
|
||||
android:id="@+id/shadow"
|
||||
layout="@layout/top_shadow" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1" >
|
||||
|
||||
<android.support.v4.view.ViewPager
|
||||
android:id="@+id/acivity_profile_base_pager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true" />
|
||||
|
||||
<include
|
||||
android:id="@+id/acivity_profile_base_tab_carousel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
layout="@layout/profile_tab_carousel" />
|
||||
</RelativeLayout>
|
||||
|
||||
<include layout="@layout/bottom_action_bar" />
|
||||
</LinearLayout>
|
||||
|
||||
</com.andrew.apollo.widgets.theme.ThemeableFrameLayout>
|
||||
118
res/layout/app_widget_large.xml
Normal file
118
res/layout/app_widget_large.xml
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/app_widget_large_min_height"
|
||||
android:background="@drawable/appwidget_bg"
|
||||
tools:ignore="ContentDescription" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/app_widget_large_image"
|
||||
android:layout_width="@dimen/notification_expanded_height"
|
||||
android:layout_height="@dimen/notification_expanded_height"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:background="@drawable/default_artwork"
|
||||
android:scaleType="fitXY" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/app_widget_large_buttons"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_toRightOf="@+id/app_widget_large_image"
|
||||
android:divider="?android:listDivider"
|
||||
android:dividerPadding="@dimen/notification_expanded_buttons_divider_padding"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:showDividers="middle" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_large_previous"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/notification_expanded_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="?android:selectableItemBackground"
|
||||
android:contentDescription="@string/accessibility_prev"
|
||||
android:padding="@dimen/notification_expanded_button_padding"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/btn_playback_previous" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_large_play"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/notification_expanded_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="?android:selectableItemBackground"
|
||||
android:padding="@dimen/notification_expanded_button_padding"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/btn_playback_pause" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_large_next"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/notification_expanded_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="?android:selectableItemBackground"
|
||||
android:contentDescription="@string/accessibility_next"
|
||||
android:padding="@dimen/notification_expanded_button_padding"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/btn_playback_next" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="1dp"
|
||||
android:layout_above="@+id/app_widget_large_buttons"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_toRightOf="@+id/app_widget_large_image"
|
||||
android:background="?android:dividerHorizontal" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/app_widget_large_info_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_toRightOf="@+id/app_widget_large_image"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="@dimen/notification_info_container_padding_left"
|
||||
android:paddingTop="@dimen/notification_expanded_content_padding_top" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_widget_large_line_one"
|
||||
style="@style/NotificationText"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/text_size_medium"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_widget_large_line_two"
|
||||
style="@style/NotificationText"
|
||||
android:textColor="@color/transparent_white"
|
||||
android:textSize="@dimen/text_size_small" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_widget_large_line_three"
|
||||
style="@style/NotificationText"
|
||||
android:textColor="@color/transparent_white"
|
||||
android:textSize="@dimen/text_size_small" />
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
138
res/layout/app_widget_large_alternate.xml
Normal file
138
res/layout/app_widget_large_alternate.xml
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/app_widget_large_min_height"
|
||||
android:background="@drawable/appwidget_bg"
|
||||
tools:ignore="ContentDescription" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/app_widget_large_alternate_image"
|
||||
android:layout_width="@dimen/app_widget_large_alternate_artwork_size"
|
||||
android:layout_height="@dimen/app_widget_large_alternate_artwork_size"
|
||||
android:layout_above="@+id/app_widget_large_alternate_buttons"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:background="@drawable/default_artwork"
|
||||
android:scaleType="fitXY" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/app_widget_large_alternate_buttons"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:divider="?android:listDivider"
|
||||
android:dividerPadding="@dimen/notification_expanded_buttons_divider_padding"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:showDividers="middle" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_large_alternate_shuffle"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/notification_expanded_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="?android:selectableItemBackground"
|
||||
android:contentDescription="@string/accessibility_shuffle"
|
||||
android:padding="@dimen/notification_expanded_button_padding"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/btn_playback_shuffle" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_large_alternate_previous"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/notification_expanded_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="?android:selectableItemBackground"
|
||||
android:contentDescription="@string/accessibility_prev"
|
||||
android:padding="@dimen/notification_expanded_button_padding"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/btn_playback_previous" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_large_alternate_play"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/notification_expanded_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="?android:selectableItemBackground"
|
||||
android:padding="@dimen/notification_expanded_button_padding"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/btn_playback_pause" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_large_alternate_next"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/notification_expanded_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="?android:selectableItemBackground"
|
||||
android:contentDescription="@string/accessibility_next"
|
||||
android:padding="@dimen/notification_expanded_button_padding"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/btn_playback_next" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_large_alternate_repeat"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/notification_expanded_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="?android:selectableItemBackground"
|
||||
android:contentDescription="@string/accessibility_repeat"
|
||||
android:padding="@dimen/notification_expanded_button_padding"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/btn_playback_repeat" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="1dp"
|
||||
android:layout_above="@+id/app_widget_large_alternate_buttons"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_toRightOf="@+id/app_widget_large_alternate_image"
|
||||
android:background="?android:dividerHorizontal" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/app_widget_large_alternate_info_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_toRightOf="@+id/app_widget_large_alternate_image"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="@dimen/notification_info_container_padding_left"
|
||||
android:paddingTop="@dimen/notification_expanded_content_padding_top" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_widget_large_alternate_line_one"
|
||||
style="@style/NotificationText"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/text_size_medium"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_widget_large_alternate_line_two"
|
||||
style="@style/NotificationText"
|
||||
android:textColor="@color/transparent_white"
|
||||
android:textSize="@dimen/text_size_small" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_widget_large_alternate_line_three"
|
||||
style="@style/NotificationText"
|
||||
android:textColor="@color/transparent_white"
|
||||
android:textSize="@dimen/text_size_small" />
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
151
res/layout/app_widget_small.xml
Normal file
151
res/layout/app_widget_small.xml
Normal file
|
|
@ -0,0 +1,151 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="top"
|
||||
android:background="@drawable/appwidget_bg"
|
||||
android:gravity="top"
|
||||
android:padding="@dimen/app_widget_padding"
|
||||
tools:ignore="NestedWeights" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/app_widget_small_buttons"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/app_widget_small_artwork_size"
|
||||
android:baselineAligned="false"
|
||||
android:focusable="true"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="@dimen/app_widget_small_artwork_size"
|
||||
android:layout_height="@dimen/app_widget_small_artwork_size"
|
||||
android:focusable="true" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/app_widget_small_image"
|
||||
android:layout_width="@dimen/app_widget_small_artwork_size"
|
||||
android:layout_height="@dimen/app_widget_small_artwork_size"
|
||||
android:background="@drawable/default_artwork"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="centerInside" />
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:focusable="true"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_small_previous"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/app_widget_small_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="@null"
|
||||
android:contentDescription="@string/accessibility_prev"
|
||||
android:focusable="true"
|
||||
android:padding="@dimen/app_widget_small_button_padding"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/btn_playback_previous" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_small_play"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/app_widget_small_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="@null"
|
||||
android:contentDescription="@string/accessibility_play"
|
||||
android:focusable="true"
|
||||
android:padding="@dimen/app_widget_small_button_padding"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/btn_playback_play" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/app_widget_small_next"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/app_widget_small_button_height"
|
||||
android:layout_weight="1"
|
||||
android:background="@null"
|
||||
android:contentDescription="@string/accessibility_next"
|
||||
android:focusable="true"
|
||||
android:padding="@dimen/app_widget_small_button_padding"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@drawable/btn_playback_next" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/app_widget_small_half_separator"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_below="@+id/app_widget_small_buttons"
|
||||
android:background="@color/transparent_white" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/app_widget_small_info_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_below="@+id/app_widget_small_half_separator"
|
||||
android:focusable="true"
|
||||
android:gravity="top"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="@dimen/app_widget_small_info_container_padding_left"
|
||||
android:paddingRight="@dimen/app_widget_small_info_container_padding_right"
|
||||
android:paddingTop="@dimen/app_widget_small_info_container_padding_top" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_widget_small_line_one"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="none"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/text_size_small"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_widget_small_text_separator"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@+id/app_widget_small_line_one"
|
||||
android:ellipsize="none"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingRight="5dp"
|
||||
android:singleLine="true"
|
||||
android:text="@string/app_widget_text_separator"
|
||||
android:textColor="@color/transparent_white"
|
||||
android:textSize="@dimen/text_size_small"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_widget_small_line_two"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@+id/app_widget_small_text_separator"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/transparent_white"
|
||||
android:textSize="@dimen/text_size_small" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
94
res/layout/audio_player_controls.xml
Normal file
94
res/layout/audio_player_controls.xml
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" >
|
||||
|
||||
<com.andrew.apollo.widgets.ShuffleButton
|
||||
android:id="@+id/action_button_shuffle"
|
||||
android:layout_width="@dimen/audio_player_controls_end_button_width"
|
||||
android:layout_height="@dimen/audio_player_controls_end_button_height"
|
||||
android:layout_gravity="center"
|
||||
android:contentDescription="@string/accessibility_shuffle"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/btn_playback_shuffle" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" >
|
||||
|
||||
<com.andrew.apollo.widgets.RepeatingImageButton
|
||||
android:id="@+id/action_button_previous"
|
||||
android:layout_width="@dimen/audio_player_controls_main_button_width"
|
||||
android:layout_height="@dimen/audio_player_controls_main_button_height"
|
||||
android:layout_gravity="center"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/btn_playback_previous" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" >
|
||||
|
||||
<com.andrew.apollo.widgets.PlayPauseButton
|
||||
android:id="@+id/action_button_play"
|
||||
android:layout_width="@dimen/audio_player_controls_main_button_width"
|
||||
android:layout_height="@dimen/audio_player_controls_main_button_height"
|
||||
android:layout_gravity="center"
|
||||
android:contentDescription="@string/accessibility_play"
|
||||
android:focusable="true"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/btn_playback_play" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" >
|
||||
|
||||
<com.andrew.apollo.widgets.RepeatingImageButton
|
||||
android:id="@+id/action_button_next"
|
||||
android:layout_width="@dimen/audio_player_controls_main_button_width"
|
||||
android:layout_height="@dimen/audio_player_controls_main_button_height"
|
||||
android:layout_gravity="center"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/btn_playback_next" />
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1" >
|
||||
|
||||
<com.andrew.apollo.widgets.RepeatButton
|
||||
android:id="@+id/action_button_repeat"
|
||||
android:layout_width="@dimen/audio_player_controls_end_button_width"
|
||||
android:layout_height="@dimen/audio_player_controls_end_button_height"
|
||||
android:layout_gravity="center"
|
||||
android:contentDescription="@string/accessibility_repeat"
|
||||
android:focusable="true"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/btn_playback_repeat" />
|
||||
</FrameLayout>
|
||||
|
||||
</merge>
|
||||
98
res/layout/bottom_action_bar.xml
Normal file
98
res/layout/bottom_action_bar.xml
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<com.andrew.apollo.widgets.theme.BottomActionBar xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res/com.andrew.apollo"
|
||||
android:id="@+id/bottom_action_bar_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/bottom_action_bar_height"
|
||||
android:layout_gravity="bottom"
|
||||
tools:ignore="ContentDescription" >
|
||||
|
||||
<include
|
||||
android:id="@+id/colorstrip"
|
||||
layout="@layout/colorstrip" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/bottom_action_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/colorstrip"
|
||||
android:clickable="true"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<com.andrew.apollo.widgets.SquareImageView
|
||||
android:id="@+id/bottom_action_bar_album_art"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="left|center"
|
||||
android:background="@drawable/default_artwork" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/bottom_action_bar_info_container"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:paddingLeft="@dimen/bottom_action_bar_info_padding_left" >
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/bottom_action_bar_line_one"
|
||||
style="@style/BottomActionBarLineOne"
|
||||
app:themeResource="bab_line_one" />
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/bottom_action_bar_line_two"
|
||||
style="@style/BottomActionBarLineTwo"
|
||||
android:layout_below="@+id/bottom_action_bar_line_one"
|
||||
app:themeResource="bab_line_two" />
|
||||
</RelativeLayout>
|
||||
|
||||
<HorizontalScrollView
|
||||
android:layout_width="@dimen/bottom_action_bar_button_container_width"
|
||||
android:layout_height="match_parent"
|
||||
android:scrollbars="none" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<com.andrew.apollo.widgets.RepeatingImageButton
|
||||
android:id="@+id/action_button_previous"
|
||||
style="@style/BottomActionBarItem.Previous" />
|
||||
|
||||
<com.andrew.apollo.widgets.PlayPauseButton
|
||||
android:id="@+id/action_button_play"
|
||||
style="@style/BottomActionBarItem.Play" />
|
||||
|
||||
<com.andrew.apollo.widgets.RepeatingImageButton
|
||||
android:id="@+id/action_button_next"
|
||||
style="@style/BottomActionBarItem.Next" />
|
||||
|
||||
<com.andrew.apollo.widgets.ShuffleButton
|
||||
android:id="@+id/action_button_shuffle"
|
||||
style="@style/BottomActionBarItem.Shuffle" />
|
||||
|
||||
<com.andrew.apollo.widgets.RepeatButton
|
||||
android:id="@+id/action_button_repeat"
|
||||
style="@style/BottomActionBarItem.Repeat" />
|
||||
</LinearLayout>
|
||||
</HorizontalScrollView>
|
||||
</LinearLayout>
|
||||
|
||||
</com.andrew.apollo.widgets.theme.BottomActionBar>
|
||||
156
res/layout/color_scheme_dialog.xml
Normal file
156
res/layout/color_scheme_dialog.xml
Normal file
|
|
@ -0,0 +1,156 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="@dimen/color_scheme_dialog_row_padding" >
|
||||
|
||||
<com.andrew.apollo.widgets.ColorPickerView
|
||||
android:id="@+id/color_picker_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/color_scheme_dialog_row_one"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/color_picker_view"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="@dimen/color_scheme_dialog_row_padding"
|
||||
android:paddingRight="@dimen/color_scheme_dialog_row_padding" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/color_scheme_dialog_preset_one"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/holo_blue_light" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/color_scheme_dialog_preset_two"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/color_scheme_dialog_row_padding"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/holo_green_light" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/color_scheme_dialog_preset_three"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/color_scheme_dialog_row_padding"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/holo_orange_dark" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/color_scheme_dialog_preset_four"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/color_scheme_dialog_row_padding"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/holo_orange_light" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/color_scheme_dialog_old_color"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/color_scheme_dialog_row_padding"
|
||||
android:layout_weight="2"
|
||||
android:background="@color/holo_blue_light"
|
||||
android:text="@string/current_color"
|
||||
android:textSize="@dimen/text_size_micro"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/color_scheme_dialog_new_color"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:background="@color/transparent"
|
||||
android:text="@string/new_color"
|
||||
android:textSize="@dimen/text_size_micro"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/color_scheme_dialog_row_one"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="@dimen/color_scheme_dialog_row_padding"
|
||||
android:paddingRight="@dimen/color_scheme_dialog_row_padding" >
|
||||
|
||||
<Button
|
||||
android:id="@+id/color_scheme_dialog_preset_five"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/holo_purple" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/color_scheme_dialog_preset_six"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/color_scheme_dialog_row_padding"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/holo_red_light" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/color_scheme_dialog_preset_seven"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/color_scheme_dialog_row_padding"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/white" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/color_scheme_dialog_preset_eight"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/color_scheme_dialog_row_padding"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/black" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/color_scheme_dialog_row_padding"
|
||||
android:layout_weight="4"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/hex" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/color_scheme_dialog_hex_value"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:digits="0123456789ABCDEFabcdef"
|
||||
android:imeOptions="actionGo"
|
||||
android:inputType="textFilter"
|
||||
android:maxLength="8"
|
||||
android:singleLine="true"
|
||||
android:typeface="monospace" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
20
res/layout/colorstrip.xml
Normal file
20
res/layout/colorstrip.xml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<com.andrew.apollo.widgets.theme.Colorstrip xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/colorstrip"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/colorstrip_height"/>
|
||||
39
res/layout/edit_track_list_item.xml
Normal file
39
res/layout/edit_track_list_item.xml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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"
|
||||
android:id="@+id/edit_track_list_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/item_normal_height" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/edit_track_list_item_handle"
|
||||
android:layout_width="@dimen/drag_and_drop_handle"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/playlist_tile_normal" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/edit_track_list_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/item_normal_height"
|
||||
android:layout_toRightOf="@+id/edit_track_list_item_handle"
|
||||
android:gravity="center_vertical" >
|
||||
|
||||
<include layout="@layout/list_item_simple" />
|
||||
</FrameLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
24
res/layout/faux_carousel.xml
Normal file
24
res/layout/faux_carousel.xml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
-->
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" >
|
||||
|
||||
<include
|
||||
layout="@layout/profile_tab_carousel"
|
||||
android:visibility="invisible" />
|
||||
|
||||
</FrameLayout>
|
||||
41
res/layout/fragment_music_browser_phone.xml
Normal file
41
res/layout/fragment_music_browser_phone.xml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/fragment_home_phone_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTitlePageIndicator
|
||||
android:id="@+id/fragment_home_phone_pager_titles"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/text_size_micro" />
|
||||
|
||||
<android.support.v4.view.ViewPager
|
||||
android:id="@+id/fragment_home_phone_pager"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/fragment_home_phone_pager_titles" />
|
||||
</RelativeLayout>
|
||||
|
||||
<include layout="@layout/top_shadow" />
|
||||
|
||||
</FrameLayout>
|
||||
47
res/layout/fragment_themes_base.xml
Normal file
47
res/layout/fragment_themes_base.xml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="@dimen/grid_item_spacing" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="155.0dip"
|
||||
android:scaleType="centerCrop"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@+id/image" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/line_one"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="@color/transparent_black"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/text_size_dayum" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
46
res/layout/grid_base.xml
Normal file
46
res/layout/grid_base.xml
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/grid_base_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="@dimen/list_preferred_item_padding" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/empty"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|center"
|
||||
android:textColor="@color/holo_blue_light"
|
||||
android:textSize="@dimen/text_size_large"
|
||||
android:textStyle="bold"
|
||||
android:visibility="gone" />
|
||||
|
||||
<GridView
|
||||
android:id="@+id/grid_base"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:cacheColorHint="@color/transparent"
|
||||
android:drawSelectorOnTop="true"
|
||||
android:fadingEdge="vertical"
|
||||
android:fastScrollEnabled="true"
|
||||
android:horizontalSpacing="@dimen/grid_item_spacing"
|
||||
android:scrollbarStyle="outsideOverlay"
|
||||
android:scrollbars="vertical"
|
||||
android:verticalSpacing="@dimen/grid_item_spacing" />
|
||||
|
||||
</FrameLayout>
|
||||
55
res/layout/grid_items_normal.xml
Normal file
55
res/layout/grid_items_normal.xml
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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"
|
||||
xmlns:app="http://schemas.android.com/apk/res/com.andrew.apollo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical" >
|
||||
|
||||
<include layout="@layout/square_image_view" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/item_normal_height"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/transparent_black"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/grid_item_padding_left" >
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/line_one"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:maxLines="2"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/text_size_medium"
|
||||
android:textStyle="bold"
|
||||
app:themeResource="@null" />
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/line_two"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/line_one"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/transparent_white"
|
||||
android:textSize="@dimen/text_size_small"
|
||||
app:themeResource="@null" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
47
res/layout/list_base.xml
Normal file
47
res/layout/list_base.xml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/list_base_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingBottom="@dimen/list_preferred_item_padding"
|
||||
android:paddingTop="@dimen/list_preferred_item_padding" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/empty"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|center"
|
||||
android:padding="@dimen/list_preferred_item_padding"
|
||||
android:textColor="@color/holo_blue_light"
|
||||
android:textSize="@dimen/text_size_large"
|
||||
android:textStyle="bold"
|
||||
android:visibility="gone" />
|
||||
|
||||
<com.andrew.apollo.dragdrop.DragSortListView
|
||||
android:id="@+id/list_base"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:cacheColorHint="@color/transparent"
|
||||
android:drawSelectorOnTop="false"
|
||||
android:fadingEdge="vertical"
|
||||
android:fastScrollAlwaysVisible="true"
|
||||
android:fastScrollEnabled="true"
|
||||
android:paddingLeft="@dimen/fast_scroll_padding_left"
|
||||
android:paddingRight="@dimen/fast_scroll_padding_right" />
|
||||
|
||||
</FrameLayout>
|
||||
25
res/layout/list_header.xml
Normal file
25
res/layout/list_header.xml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="32.0dip"
|
||||
android:background="@null"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="10.0dip"
|
||||
android:textAllCaps="true"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/text_size_medium" />
|
||||
78
res/layout/list_item_detailed.xml
Normal file
78
res/layout/list_item_detailed.xml
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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"
|
||||
xmlns:app="http://schemas.android.com/apk/res/com.andrew.apollo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical" >
|
||||
|
||||
<com.andrew.apollo.widgets.LayoutSuppressingImageView
|
||||
android:id="@+id/list_item_background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/list_item_detailed_height"
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
<com.andrew.apollo.widgets.LayoutSuppressingImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="@dimen/list_item_detailed_height"
|
||||
android:layout_height="@dimen/list_item_detailed_height"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/image_background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/list_item_detailed_height"
|
||||
android:layout_toRightOf="@+id/image"
|
||||
android:background="@color/list_item_background"
|
||||
android:padding="@dimen/list_preferred_item_padding" >
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/line_one"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:maxLines="2"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/text_size_medium"
|
||||
android:textStyle="bold"
|
||||
app:themeResource="@null" />
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/line_two"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/line_one"
|
||||
android:layout_marginTop="@dimen/list_item_line_two_margin_top"
|
||||
android:maxLines="2"
|
||||
android:textColor="@color/transparent_white"
|
||||
android:textSize="@dimen/text_size_small"
|
||||
app:themeResource="@null" />
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/line_three"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/transparent_white"
|
||||
android:textSize="@dimen/text_size_small"
|
||||
app:themeResource="@null" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
77
res/layout/list_item_detailed_no_background.xml
Normal file
77
res/layout/list_item_detailed_no_background.xml
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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"
|
||||
xmlns:app="http://schemas.android.com/apk/res/com.andrew.apollo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical" >
|
||||
|
||||
<com.andrew.apollo.widgets.LayoutSuppressingImageView
|
||||
android:id="@+id/list_item_background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/list_item_detailed_height"
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
<com.andrew.apollo.widgets.LayoutSuppressingImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="@dimen/list_item_detailed_height"
|
||||
android:layout_height="@dimen/list_item_detailed_height"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/image_background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/list_item_detailed_height"
|
||||
android:layout_toRightOf="@+id/image"
|
||||
android:background="@color/list_item_background"
|
||||
android:padding="@dimen/list_preferred_item_padding" >
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/line_one"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:maxLines="2"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/text_size_medium"
|
||||
android:textStyle="bold"
|
||||
app:themeResource="line_one" />
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/line_two"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/line_one"
|
||||
android:layout_marginTop="@dimen/list_item_line_two_margin_top"
|
||||
android:maxLines="2"
|
||||
android:textColor="@color/transparent_white"
|
||||
android:textSize="@dimen/text_size_small"
|
||||
app:themeResource="line_two" />
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/line_three"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/transparent_white"
|
||||
android:textSize="@dimen/text_size_small"
|
||||
app:themeResource="line_three" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
64
res/layout/list_item_normal.xml
Normal file
64
res/layout/list_item_normal.xml
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res/com.andrew.apollo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
tools:ignore="ContentDescription" >
|
||||
|
||||
<com.andrew.apollo.widgets.SquareImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="@dimen/item_normal_height"
|
||||
android:layout_height="@dimen/item_normal_height"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:scaleType="fitXY" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/item_normal_height"
|
||||
android:layout_toRightOf="@+id/image"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="@dimen/item_normal_height"
|
||||
android:paddingLeft="@dimen/list_preferred_item_padding"
|
||||
android:paddingRight="@dimen/list_preferred_item_padding" >
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/line_one"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/text_size_medium"
|
||||
android:textStyle="bold"
|
||||
app:themeResource="line_one" />
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/line_two"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/line_one"
|
||||
android:layout_marginTop="@dimen/list_item_line_two_margin_top"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/text_size_small"
|
||||
app:themeResource="line_two" />
|
||||
</RelativeLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
55
res/layout/list_item_simple.xml
Normal file
55
res/layout/list_item_simple.xml
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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"
|
||||
xmlns:app="http://schemas.android.com/apk/res/com.andrew.apollo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/item_normal_height"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="@dimen/item_normal_height"
|
||||
android:paddingLeft="@dimen/list_preferred_item_padding"
|
||||
android:paddingRight="@dimen/list_preferred_item_padding" >
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/line_one"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/text_size_medium"
|
||||
android:textStyle="bold"
|
||||
app:themeResource="line_one" />
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/line_two"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/line_one"
|
||||
android:layout_marginTop="@dimen/list_item_line_two_margin_top"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/text_size_small"
|
||||
app:themeResource="line_two" />
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/line_three"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/text_size_small"
|
||||
app:themeResource="line_three" />
|
||||
|
||||
</RelativeLayout>
|
||||
46
res/layout/lyrics_base.xml
Normal file
46
res/layout/lyrics_base.xml
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res/com.andrew.apollo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<ScrollView
|
||||
android:id="@+id/audio_player_lyrics_frame"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fillViewport="true" >
|
||||
|
||||
<com.andrew.apollo.widgets.theme.ThemeableTextView
|
||||
android:id="@+id/audio_player_lyrics"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_horizontal"
|
||||
android:padding="@dimen/list_preferred_item_padding"
|
||||
android:textStyle="bold"
|
||||
app:themeResource="lyrics" />
|
||||
</ScrollView>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/audio_player_lyrics_progess"
|
||||
style="?android:attr/progressBarStyleLarge"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical|center"
|
||||
android:visibility="gone" />
|
||||
|
||||
</FrameLayout>
|
||||
54
res/layout/notification_template_base.xml
Normal file
54
res/layout/notification_template_base.xml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/notification_base"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
tools:ignore="ContentDescription" >
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/notification_base_image"
|
||||
android:layout_width="@dimen/notification_big_icon_width"
|
||||
android:layout_height="@dimen/notification_big_icon_height"
|
||||
android:background="@drawable/default_artwork"
|
||||
android:gravity="center"
|
||||
android:scaleType="fitXY" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="@dimen/notification_info_container_padding_bottom"
|
||||
android:paddingLeft="@dimen/notification_info_container_padding_left" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/notification_base_line_one"
|
||||
style="@style/NotificationText"
|
||||
android:textAppearance="@android:style/TextAppearance.StatusBar.EventContent.Title" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/notification_base_line_two"
|
||||
style="@style/NotificationText"
|
||||
android:textAppearance="@android:style/TextAppearance.StatusBar.EventContent" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
90
res/layout/profile_tab.xml
Normal file
90
res/layout/profile_tab.xml
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<view xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="0dip"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
class="com.andrew.apollo.widgets.CarouselTab" >
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<com.andrew.apollo.widgets.LayoutSuppressingImageView
|
||||
android:id="@+id/profile_tab_photo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
<com.andrew.apollo.widgets.SquareImageView
|
||||
android:id="@+id/profile_tab_album_art"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="fitXY"
|
||||
android:visibility="gone" />
|
||||
|
||||
<View
|
||||
android:id="@+id/profile_tab_photo_overlay"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true" />
|
||||
|
||||
<View
|
||||
android:id="@+id/profile_tab_label_background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/profile_carousel_label_height"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:background="@color/transparent_black" />
|
||||
|
||||
<com.andrew.apollo.widgets.theme.Colorstrip
|
||||
android:id="@+id/profile_tab_colorstrip"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/profile_indicator_height"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true" />
|
||||
|
||||
<View
|
||||
android:id="@+id/profile_tab_alpha_overlay"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginBottom="@dimen/profile_carousel_label_height" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/profile_tab_label"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/profile_carousel_label_height"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:gravity="left|center_vertical"
|
||||
android:paddingLeft="@dimen/profile_label_padding"
|
||||
android:paddingRight="@dimen/profile_label_padding"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/text_size_large" />
|
||||
</RelativeLayout>
|
||||
|
||||
</view>
|
||||
55
res/layout/profile_tab_carousel.xml
Normal file
55
res/layout/profile_tab_carousel.xml
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<view xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/profile_tab_carousel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
class="com.andrew.apollo.widgets.ProfileTabCarousel"
|
||||
android:fadingEdge="none"
|
||||
android:scrollbars="none" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/profile_tab_carousel_tab_and_shadow_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/profile_tab_carousel_tab_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1"
|
||||
android:baselineAligned="false"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<include
|
||||
android:id="@+id/profile_tab_carousel_tab_one"
|
||||
layout="@layout/profile_tab" />
|
||||
|
||||
<include
|
||||
android:id="@+id/profile_tab_carousel_tab_two"
|
||||
layout="@layout/profile_tab" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/profile_tab_carousel_shadow"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/profile_photo_shadow_height"
|
||||
android:background="?android:attr/windowContentOverlay" />
|
||||
</LinearLayout>
|
||||
|
||||
</view>
|
||||
28
res/layout/square_image_view.xml
Normal file
28
res/layout/square_image_view.xml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
|
||||
-->
|
||||
<com.andrew.apollo.widgets.SquareView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/square_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<com.andrew.apollo.widgets.SquareImageView
|
||||
android:id="@+id/image"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
</com.andrew.apollo.widgets.SquareView>
|
||||
19
res/layout/top_shadow.xml
Normal file
19
res/layout/top_shadow.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Andrew Neal
|
||||
|
||||
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.
-->
|
||||
<View xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/shadow_height"
|
||||
android:background="@drawable/top_shadow" />
|
||||
Loading…
Add table
Add a link
Reference in a new issue