https://mzgreen.github.io/2015/02/28/How-to-hideshow-Toolbar-when-list-is-scrolling%28part2%29/
This file contains 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
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> |
https://github.com/kzaher/RxSwift/blob/master/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift
Observable.create((observerOf) -> Disposeable in
// subscribe時にやりたいこと
// observerOf.on(Event)
reutrn AnonymousDisposable(() -> Void in
// Disposeした時にやりたいこと
)
)
This file contains 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
```java | |
public static void setBackgroundColor(View view, int color) { | |
if(view == null) { | |
return; | |
} | |
// 4.2以降は対応済みなのでそのまま処理する | |
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { | |
view.setBackgroundColor(color); | |
return; | |
} |
public static void main(String[] args) {
get("/", ((request, response) -> "test"));
get("/", ((request, response) -> "piyo"));
}
This file contains 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
val router = MoriRouter.from(fm, R.id.container) | |
router.pop() | |
router.hoge().start() | |
router.hoge(fuga).start() | |
router.hoge(fuga).piyo(foo).start() | |
// SharedElement support | |
router.hoge().shareFooImage(imageView).start() |