Lots of progress with dynamic theming, the nav drawer now uses a RecyclerView, AboutDeveloperDialogHelper is now a DialogFragment, RTL support (to suppress Lint warnings), other various small fixes, cleaned up and formatted lot of code (and removed un-used resources), R.string.ok > android.R.string.ok, R.string.cancel > android.R.string.cancel, switched dialog helpers to DialogFragments.

This commit is contained in:
Aidan Follestad 2015-04-16 16:47:02 -05:00
commit 7ce86afd74
265 changed files with 2853 additions and 2292 deletions

View file

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2014 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
@ -14,84 +13,76 @@
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="64dp"
android:orientation="horizontal">
android:orientation="horizontal"
tools:ignore="ContentDescription">
<ImageView
android:id="@+id/album_art"
android:layout_width="@dimen/notification_big_icon_width"
android:layout_height="@dimen/notification_big_icon_height"
android:layout_weight="0"
android:scaleType="centerCrop" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="wrap_content"
android:layout_gravity="fill_vertical"
android:layout_weight="1"
android:gravity="center_vertical"
android:minHeight="@dimen/notification_big_icon_height"
android:orientation="vertical"
android:paddingBottom="@dimen/notification_info_container_padding_bottom"
android:paddingLeft="@dimen/notification_info_container_padding_left"
android:paddingStart="@dimen/notification_info_container_padding_left">
<ImageView
android:id="@+id/album_art"
android:layout_width="@dimen/notification_big_icon_width"
android:layout_height="@dimen/notification_big_icon_height"
android:layout_weight="0"
android:scaleType="centerCrop"
/>
<LinearLayout
<TextView
android:id="@+id/song_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="fill_vertical"
android:layout_weight="1"
android:gravity="center_vertical"
android:minHeight="@dimen/notification_big_icon_height"
android:orientation="vertical"
android:paddingBottom="@dimen/notification_info_container_padding_bottom"
android:paddingLeft="@dimen/notification_info_container_padding_left"
>
android:singleLine="true"
android:textAppearance="@style/Theme.MaterialMusic.Notification.Title" />
<TextView
android:id="@+id/song_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="@style/Theme.MaterialMusic.Notification.Title"/>
<TextView
android:id="@+id/song_artist"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="@style/Theme.MaterialMusic.Notification"/>
</LinearLayout>
<LinearLayout
android:id="@+id/media_actions"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginLeft="6dp"
android:layout_marginRight="6dp"
android:orientation="horizontal"
>
<ImageButton
android:id="@+id/button_toggle_play_pause"
style="@style/NotificationButton"
android:paddingBottom="16dp"
android:paddingTop="16dp"
android:src="@drawable/ic_play_arrow_white_48dp"
/>
<ImageButton
android:id="@+id/button_next"
style="@style/NotificationButton"
android:paddingBottom="16dp"
android:paddingTop="16dp"
android:src="@drawable/ic_skip_next_white_48dp"
/>
<ImageButton
android:id="@+id/button_quit"
style="@style/NotificationButton"
android:padding="8dp"
android:src="@drawable/ic_close_white_24dp"/>
</LinearLayout>
<TextView
android:id="@+id/song_artist"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="@style/Theme.MaterialMusic.Notification" />
</LinearLayout>
<LinearLayout
android:id="@+id/media_actions"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginLeft="6dp"
android:layout_marginRight="6dp"
android:orientation="horizontal">
</RelativeLayout>
<ImageButton
android:id="@+id/button_toggle_play_pause"
style="@style/NotificationButton"
android:paddingBottom="16dp"
android:paddingTop="16dp"
android:src="@drawable/ic_play_arrow_white_48dp" />
<ImageButton
android:id="@+id/button_next"
style="@style/NotificationButton"
android:paddingBottom="16dp"
android:paddingTop="16dp"
android:src="@drawable/ic_skip_next_white_48dp" />
<ImageButton
android:id="@+id/button_quit"
style="@style/NotificationButton"
android:padding="8dp"
android:src="@drawable/ic_close_white_24dp" />
</LinearLayout>
</LinearLayout>