heihei blog

Blog icon by Unsplash https://unsplash.com/@virussinside

2017-11-21から1日間の記事一覧

"XXX is a boxed field but needs to be un-boxed to execute YYY. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap XXX with safeUnbox() to prevent the warning."の警告を見て、Data Binding周りを調べたことについ

TL;DR Data Bindingライブラリで<data>タグと<variable>タグを利用してXML上に変数定義をする際には、プリミティブ型で定義できる際には積極的にプリミティブ型を使っていこう 参照型の変数を定義した際には、Data Bindingライブラリが内部でunboxingする safeUnbox()を利用</variable></data>…