Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
カップル スイッチ ウィジェットを使用して xml ファイルをコーディングしています。しかし、それらのデフォルト値をONに設定する方法がわかりません。そして、この問題をxmlファイル内で解決したいだけなので、Javaはありません。
XML ファイルで Switch を「ON」に設定するには、次のようにします。
android:checked="true"