(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| package com.example.mediasessioncompat; | |
| import android.app.PendingIntent; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.support.v4.media.MediaDescriptionCompat; | |
| import android.support.v4.media.MediaMetadataCompat; | |
| import android.support.v4.media.session.MediaButtonReceiver; | |
| import android.support.v4.media.session.MediaControllerCompat; | |
| import android.support.v4.media.session.MediaSessionCompat; |
| Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. | |
| To use the support version of these attributes, remove the android namespace. | |
| For instance, "android:colorControlNormal" becomes "colorControlNormal". | |
| These attributes will be propagated to their corresponding attributes within the android namespace | |
| for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
| All Clickable Views: | |
| ----------- |
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <!-- TextView Empty Base--> | |
| <style name="TextViewBase" parent="android:TextAppearance.Holo.Widget.TextView"/> | |
| <!-- ActionBar Title --> | |
| <style name="CustomActionBarTitleBase" parent="TextAppearance.AppCompat.Widget.ActionBar.Title"/> | |
| <!-- Text Views Default Base --> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <!-- google's material design colours from | |
| http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
| <!--reds--> | |
| <color name="md_red_50">#FFEBEE</color> | |
| <color name="md_red_100">#FFCDD2</color> | |
| <color name="md_red_200">#EF9A9A</color> |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.