I hereby claim:
- I am sebaslogen on github.
- I am sebaslogen (https://keybase.io/sebaslogen) on keybase.
- I have a public key ASC32nccv5aNWfjyCGsuI4fwejoCRfoApEyoxnwE5TwRjgo
To claim this, I am signing this object:
{ | |
"title": "Dance - Smith Quartet", | |
"image": "https://demo.com/624.jpg", | |
"action": { | |
"type": "ComponentScreen", | |
"url": "/query/view/album/635212023624" | |
} | |
} |
I hereby claim:
To claim this, I am signing this object:
data class ComponentScreen(val title: String?, val sections: List<Section> = emptyList()) | |
sealed class Section | |
data class AlbumListSection(val title: String?, val items: List<AlbumListItem>) : Section() | |
data class ShelfSection(val shelfStyle: ShelfItemStyle, val items: List<ShelfItem>) : Section() | |
data class TrackListSection(val items: List<TrackListItem>) : Section() | |
data class AlbumListItem(val title: String, val image: String, val action: Action) |
{ | |
"type": "componentScreen", | |
"title": "Home", | |
"sections": [ | |
{ | |
"title": "New Releases", | |
"type": "album", | |
"items": [ | |
{ | |
"title": "Dance - Smith Quartet", |
[ | |
{ | |
"id": 0362403, | |
"title": "Dance - Smith Quartet", | |
"image": "https://demo.com/03624.jpg" | |
}, | |
{ | |
"id": 06083706, | |
"title": "Sixteen Contemporary Love Songs for Piano", | |
"image": "https://demo.com/060837.jpg" |
import android.arch.lifecycle.Lifecycle | |
import android.arch.lifecycle.LifecycleObserver | |
import android.arch.lifecycle.LifecycleOwner | |
import android.arch.lifecycle.OnLifecycleEvent | |
import com.jakewharton.rxrelay.BehaviorRelay | |
import rx.Observable | |
import rx.android.schedulers.AndroidSchedulers | |
import rx.functions.Action1 | |
import rx.subscriptions.CompositeSubscription |
public class Toolbar extends ViewGroup { | |
public Toolbar(Context context, @Nullable AttributeSet attrs) { | |
this(context, attrs, getToolbarStyle()); | |
} | |
private static int getToolbarStyle() { | |
return (BuildConfig.VERSION_CODE >= Build.VERSION_CODES.O) ? R.attr.newCompatToolbarStyle : R.attr.toolbarStyle; | |
} | |
} |
public class Toolbar extends ViewGroup { | |
public Toolbar(Context context, @Nullable AttributeSet attrs) { | |
this(context, attrs, R.attr.toolbarStyle); | |
} | |
} |
class MyCustomView @JvmOverloads constructor( | |
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0 | |
) : View(context, attrs, defStyleAttr) |