2018-08-01から1ヶ月間の記事一覧
qiita.com コードを追ってみた val liveData:MutableLiveData<String> = MutableLiveData<String>() fun useSetValue() { liveData.value = "aaa" } fun usePostValue() { liveData.postValue("aaa") } setValueの方はどうやらMainThreadでしか使用できないらしい。 lifecycl</string></string>…
下記対応表 | operator | 変換後| |----------|-------| | & | & | | < | < | | > | > | | " | " | | ' | ' | <EditText android:id="@+id/edit_mail" android:text="@={mail}" /> <Button androidtext="保存" android:enabled="@{mail.length > 0 && isEmailValid(mail)}" /></button></edittext>
Preferences > Build, Execution, Deployment > Compiler Configure on demand のチェックが外れているか確認する