/**
* [AppBarLayout] that monitors behavior of a scrolling view in the same layout and changes elevation on its Toolbar
*
* Usage:
*
* <ElevationAppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:elevation="0dp"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare module 'AndroidCommunicator' { | |
| global { | |
| interface Window { | |
| Android: AndroidCommunicator | undefined; | |
| } | |
| type AndroidCommunicator = { | |
| setCallbackExists: (v: boolean) => void; | |
| reload: () => void; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.graphics.Canvas; | |
| import android.graphics.Movie; | |
| import android.os.Handler; | |
| import android.service.wallpaper.WallpaperService; | |
| import android.util.Log; | |
| import android.view.SurfaceHolder; | |
| import java.io.IOException; | |
| public class SampleGIFWallpaperService extends WallpaperService { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.content.BroadcastReceiver; | |
| import android.content.Intent; | |
| import android.content.IntentFilter; | |
| import android.content.SharedPreferences; | |
| import android.graphics.Canvas; | |
| import android.graphics.Point; | |
| import android.preference.PreferenceManager; | |
| import android.service.wallpaper.WallpaperService; | |
| import android.content.Context; | |
| import android.support.v4.content.LocalBroadcastManager; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "categories": [ | |
| { | |
| "name": "Movies", | |
| "videos": [ | |
| { | |
| "description": "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
| "sources": [ | |
| "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <RelativeLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| tools:context="ru.artzmb.solar.MainActivity"> | |
| <ImageView |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.support.design.widget.AppBarLayout; | |
| /** | |
| * App bar collapsing state | |
| * @author Paulo Caldeira <[email protected]>. | |
| */ | |
| public abstract class AppBarStateChangeListener implements AppBarLayout.OnOffsetChangedListener { | |
| // State | |
| public enum State { | |
| EXPANDED, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Indeterminate progress bar | |
| */ | |
| @import url('http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css'); | |
| @keyframes push | |
| { | |
| 0% {width: 0%;} | |
| 50% {width: 70%;} | |
| 100% {width: 0%;} |
NewerOlder