前回、データ(User)をレイアウトにバインディングしてその中身(name)を表示する方法を説明しました。 データバインディングを使うとこのようにデータのバインディングだけではなく、イベントのハンドリングもレイアウト側で様々な定義が可能です。
Virtually every application works with some form of data. This data can be fetched from the Internet, a database on the target device, or even created by the application user. Typically, developers ...
第5回ではユーザーの属性が変わるたびにユーザーインターフェースが切り替わる仕組みをDataBindingで実現しました。 今回はこれをさらに改良して、切り替えのタイミングにアニメーションを挿入する方法を紹介したいと思います。 サンプルプロジェクトは ...