0
當使用視圖模型設置複選框屬性時,如果app:checked以編程方式設置,它不會顯示像圖片中的大綱。其他一切按預期工作。有沒有人看過這個或可以幫助?Android複選框應用程序:checked = true,不顯示覆選標記
當使用視圖模型設置複選框屬性時,如果app:checked以編程方式設置,它不會顯示像圖片中的大綱。其他一切按預期工作。有沒有人看過這個或可以幫助?Android複選框應用程序:checked = true,不顯示覆選標記
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Your text"
android:checked="true"
/>
或
checkbox.setChecked(true);
添加您的代碼。 –