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" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.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
/** | |
* Eases the Fragment.newInstance ceremony by marking the fragment's args with this delegate | |
* Just write the property in newInstance and read it like any other property after the fragment has been created | |
* | |
* Inspired by Jake Wharton, he mentioned it during his IO/17 talk about Kotlin | |
*/ | |
class FragmentArg<T : Any?> : kotlin.properties.ReadWriteProperty<Fragment, T?> { | |
var value: T? = null |
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
package com.imslp.app.presentation.base | |
import android.content.Context | |
import android.graphics.Rect | |
import android.os.Parcel | |
import android.os.Parcelable | |
import android.util.AttributeSet | |
import android.view.View | |
import android.view.ViewGroup | |
import android.widget.FrameLayout |
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"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.app.myapplication"> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | |
<application | |
android:name="com.example.app.App" | |
android:allowBackup="true" |
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
public class ReaderViewPagerTransformer implements ViewPager.PageTransformer { | |
public static enum TransformType { | |
FLOW, | |
DEPTH, | |
ZOOM, | |
SLIDE_OVER | |
} | |
private final TransformType mTransformType; |
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
package me.uryuk.uryukandroid.ui.adapters; | |
import android.content.Context; | |
import android.graphics.Typeface; | |
import android.support.v4.content.ContextCompat; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.EditText; |
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
public class FriendsExpandableRecyclerViewAdapter extends RecyclerView.Adapter<FriendsExpandableRecyclerViewAdapter.FriendViewHolder> { | |
private final List<Friend> friends; | |
private final Context context; | |
private final ErrorHandlingCallback errorHandlingCallback; | |
private final StopRefreshCallback stopRefreshCallback; | |
private IApiManager apiManager = NudgeApp.getApplication().getAppComponent().provideApiManager(); | |
public FriendsExpandableRecyclerViewAdapter(Context context, List<Friend> friends, @NonNull ErrorHandlingCallback errorHandlingCallback, @NonNull StopRefreshCallback stopRefreshCallback) { | |
this.context = context; |