まえがき ネイティブアプリを作る際、スクロール周りの動きがよく出来ているとアプリの質が高く感じられます。 例えばRecyclerView(スクロールに用いられるView)を下に向かってスクロールしたらヘッダーが上に移動して消え、下からボタンが出てくる、といった動きなどがよく見受けられます。 こういう動きをフランクに実装したいと思っても、リスナーを設定してスクロール状況から他のViewの位置を計算して、、、となってしまい、意外とめんどくさく、連動するViewの数が増えるとさらに大変だったりします。 さらに、最近のアプリでは複数の画面でこういった実装が必要になってきてなんとかうまく共通化したいのだが、なかなかうまくいかなかったり。 便利なライブラリ ここではざっくりとしか取り扱いませんが、とりあえず2つほどあげさせていただきます。 Android-ObservableScrollView An