{github repository url} {library image}
- jitpackをrepositoryに追加する
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() |
public static void main(String[] args) {
get("/", ((request, response) -> "test"));
get("/", ((request, response) -> "piyo"));
}
```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; | |
} |
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した時にやりたいこと
)
)
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> |