私はRadioButton
の境界線を削除できますし、私は怒鳴るようなRadioButtons
を持っている:境界線RadioButtonを削除しますか?
私は質問の多くを見ると、私はandroid:buttonTint=""
とstyle
から使用...しかし、動作しません。
私はRadioButton
の境界線を削除できますし、私は怒鳴るようなRadioButtons
を持っている:境界線RadioButtonを削除しますか?
私は質問の多くを見ると、私はandroid:buttonTint=""
とstyle
から使用...しかし、動作しません。
このようにスタイルを変更するには、カスタムラジオボタンを作成する必要があります。方法を学びたい場合はarticleをお読みください。がんばろう。
ラジオボタンを使用して削除することはできません。 あなたの背景、 と同じ色に設定するか、カスタムのラジオボタンのXML作成されて何ができるか:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_checked="false"
android:drawable="@drawable/your_radio_off_image_name" />
<item android:state_checked="true"
android:drawable="@drawable/your_radio_on_image_name" />
</selector>
使用レイアウトでそのXML:
<RadioButton
android:id="@+id/radiobutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:button="@drawable/custom_radiobutton"/>
詳細と例についてはカスタムXML: Adding custom radio buttons in android
remove default radio button checkbox when using a custom selector
ラジオボタンの代わりにトグルを使用して、描画可能なonToggleを変更することもできます。
これは機能しているのですか?私はそれを実装しようとしていて、それは動作していません。 –
いいえ、これを削除することはできません。カスタムラジオボタンを使用できます。
問題を説明できますか? –
これはradioButtonです:https://stackoverflow.com/q/33260009/4813855 –
あなたはRadioButtonsについて質問しています。しかし、あなたはViewPagerのようなものを見せています。 –