Removing the “checked” circle from a RadioButtonCreate ArrayList from arrayIterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loopHow do I call one constructor from another in Java?How to check if a service is running on Android?How to get an enum value from a string value in Java?Stop EditText from gaining focus at Activity startupIs null check needed before calling instanceof?Removing whitespace from strings in Javashape corner rendering (in app widget RemoteView) - strange failure on Sony Xperia tabHow to properly size radiobuttons in radiogroup?
Using "Kollege" as "university friend"?
Who has jurisdiction for a crime committed in an embassy?
Why are angular mometum and angular velocity not necessarily parallel, but linear momentum and linear velocity are always parallel?
Is an easily guessed plot twist a good plot twist?
Sextortion with actual password not found in leaks
Is it normal practice to screen share with a client?
Why is the return type for ftell not fpos_t?
What is a Union Word™?
Why do people say "I am broke" instead of "I am broken"?
Should I leave my PhD after 3 years with a Masters?
What do teaching faculty do during semester breaks?
Explanation for a joke about a three-legged dog that walks into a bar
What is the meaning of "a thinly disguised price"?
Why keep the bed heated after initial layer(s) with PLA (or PETG)?
Why no ";" after "do" in sh loops?
What is the difference between $path and $PATH (lowercase versus uppercase) with zsh?
High income, sudden windfall
What is "ass door"?
Spoken encryption
How do campaign rallies gain candidates votes?
Spacing setting of math mode
Moving files accidentally to an not existing directory erases files?
Strange Cron Job takes up 100% of CPU Ubuntu 18 LTS Server
Are gangsters hired to attack people at a train station classified as a terrorist attack?
Removing the “checked” circle from a RadioButton
Create ArrayList from arrayIterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loopHow do I call one constructor from another in Java?How to check if a service is running on Android?How to get an enum value from a string value in Java?Stop EditText from gaining focus at Activity startupIs null check needed before calling instanceof?Removing whitespace from strings in Javashape corner rendering (in app widget RemoteView) - strange failure on Sony Xperia tabHow to properly size radiobuttons in radiogroup?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want to remove the inner circle from the checked radio button in Android Studio.I've read that android:button="@null"
would solve it but it removed my whole button. This is my code:
RadioButton
<RadioButton
android:id="@+id/xroma11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/radio_bg1"
android:tag = "00" />
radio_bg1.xml
<item android:state_pressed="true" >
<shape android:shape="oval" >
<corners android:radius="3dp" />
<stroke android:width="3dip" android:color="#333333" />
<solid android:color="@color/xrwma2"/>
</shape>
</item>
<item android:state_checked="true">
<shape android:shape="oval" >
<corners android:radius="3dp" />
<stroke android:width="3dip" android:color="#333333" />
<solid android:color="@color/xrwma2"/>
</shape>
</item>
<item>
<shape android:shape="oval" >
<corners android:radius="3dp" />
<solid android:color="@color/xrwma2"/>
</shape>
</item>
java

add a comment |
I want to remove the inner circle from the checked radio button in Android Studio.I've read that android:button="@null"
would solve it but it removed my whole button. This is my code:
RadioButton
<RadioButton
android:id="@+id/xroma11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/radio_bg1"
android:tag = "00" />
radio_bg1.xml
<item android:state_pressed="true" >
<shape android:shape="oval" >
<corners android:radius="3dp" />
<stroke android:width="3dip" android:color="#333333" />
<solid android:color="@color/xrwma2"/>
</shape>
</item>
<item android:state_checked="true">
<shape android:shape="oval" >
<corners android:radius="3dp" />
<stroke android:width="3dip" android:color="#333333" />
<solid android:color="@color/xrwma2"/>
</shape>
</item>
<item>
<shape android:shape="oval" >
<corners android:radius="3dp" />
<solid android:color="@color/xrwma2"/>
</shape>
</item>
java

Oh I didn't know that. I am sorry
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 16:25
I have a stroke around the circle to indicate the selected one
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 17:08
add a comment |
I want to remove the inner circle from the checked radio button in Android Studio.I've read that android:button="@null"
would solve it but it removed my whole button. This is my code:
RadioButton
<RadioButton
android:id="@+id/xroma11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/radio_bg1"
android:tag = "00" />
radio_bg1.xml
<item android:state_pressed="true" >
<shape android:shape="oval" >
<corners android:radius="3dp" />
<stroke android:width="3dip" android:color="#333333" />
<solid android:color="@color/xrwma2"/>
</shape>
</item>
<item android:state_checked="true">
<shape android:shape="oval" >
<corners android:radius="3dp" />
<stroke android:width="3dip" android:color="#333333" />
<solid android:color="@color/xrwma2"/>
</shape>
</item>
<item>
<shape android:shape="oval" >
<corners android:radius="3dp" />
<solid android:color="@color/xrwma2"/>
</shape>
</item>
java

I want to remove the inner circle from the checked radio button in Android Studio.I've read that android:button="@null"
would solve it but it removed my whole button. This is my code:
RadioButton
<RadioButton
android:id="@+id/xroma11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/radio_bg1"
android:tag = "00" />
radio_bg1.xml
<item android:state_pressed="true" >
<shape android:shape="oval" >
<corners android:radius="3dp" />
<stroke android:width="3dip" android:color="#333333" />
<solid android:color="@color/xrwma2"/>
</shape>
</item>
<item android:state_checked="true">
<shape android:shape="oval" >
<corners android:radius="3dp" />
<stroke android:width="3dip" android:color="#333333" />
<solid android:color="@color/xrwma2"/>
</shape>
</item>
<item>
<shape android:shape="oval" >
<corners android:radius="3dp" />
<solid android:color="@color/xrwma2"/>
</shape>
</item>
java

java

edited Mar 26 at 17:08


Fantômas
33.5k15 gold badges66 silver badges93 bronze badges
33.5k15 gold badges66 silver badges93 bronze badges
asked Mar 26 at 16:02
Αλέξανδρος ΧονδρογιάννηςΑλέξανδρος Χονδρογιάννης
289 bronze badges
289 bronze badges
Oh I didn't know that. I am sorry
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 16:25
I have a stroke around the circle to indicate the selected one
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 17:08
add a comment |
Oh I didn't know that. I am sorry
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 16:25
I have a stroke around the circle to indicate the selected one
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 17:08
Oh I didn't know that. I am sorry
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 16:25
Oh I didn't know that. I am sorry
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 16:25
I have a stroke around the circle to indicate the selected one
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 17:08
I have a stroke around the circle to indicate the selected one
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 17:08
add a comment |
1 Answer
1
active
oldest
votes
In checked state make color of solid as transparent like this
.....
<item android:state_checked="true">
<shape android:shape="oval" >
<corners android:radius="3dp" />
<stroke android:width="3dip" android:color="#333333" />
<solid android:color="@android:color/transparent"/>
</shape>
</item>
.....
This removed the color, not the inner circle
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 17:13
Do you want to change color of existing radio button?
– Narendra Kothamire
Mar 27 at 4:13
No I just want to remove this inner circle that shows which button is selected.
– Αλέξανδρος Χονδρογιάννης
Mar 27 at 15:16
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55361471%2fremoving-the-checked-circle-from-a-radiobutton%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In checked state make color of solid as transparent like this
.....
<item android:state_checked="true">
<shape android:shape="oval" >
<corners android:radius="3dp" />
<stroke android:width="3dip" android:color="#333333" />
<solid android:color="@android:color/transparent"/>
</shape>
</item>
.....
This removed the color, not the inner circle
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 17:13
Do you want to change color of existing radio button?
– Narendra Kothamire
Mar 27 at 4:13
No I just want to remove this inner circle that shows which button is selected.
– Αλέξανδρος Χονδρογιάννης
Mar 27 at 15:16
add a comment |
In checked state make color of solid as transparent like this
.....
<item android:state_checked="true">
<shape android:shape="oval" >
<corners android:radius="3dp" />
<stroke android:width="3dip" android:color="#333333" />
<solid android:color="@android:color/transparent"/>
</shape>
</item>
.....
This removed the color, not the inner circle
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 17:13
Do you want to change color of existing radio button?
– Narendra Kothamire
Mar 27 at 4:13
No I just want to remove this inner circle that shows which button is selected.
– Αλέξανδρος Χονδρογιάννης
Mar 27 at 15:16
add a comment |
In checked state make color of solid as transparent like this
.....
<item android:state_checked="true">
<shape android:shape="oval" >
<corners android:radius="3dp" />
<stroke android:width="3dip" android:color="#333333" />
<solid android:color="@android:color/transparent"/>
</shape>
</item>
.....
In checked state make color of solid as transparent like this
.....
<item android:state_checked="true">
<shape android:shape="oval" >
<corners android:radius="3dp" />
<stroke android:width="3dip" android:color="#333333" />
<solid android:color="@android:color/transparent"/>
</shape>
</item>
.....
answered Mar 26 at 17:10
Narendra KothamireNarendra Kothamire
8625 silver badges9 bronze badges
8625 silver badges9 bronze badges
This removed the color, not the inner circle
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 17:13
Do you want to change color of existing radio button?
– Narendra Kothamire
Mar 27 at 4:13
No I just want to remove this inner circle that shows which button is selected.
– Αλέξανδρος Χονδρογιάννης
Mar 27 at 15:16
add a comment |
This removed the color, not the inner circle
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 17:13
Do you want to change color of existing radio button?
– Narendra Kothamire
Mar 27 at 4:13
No I just want to remove this inner circle that shows which button is selected.
– Αλέξανδρος Χονδρογιάννης
Mar 27 at 15:16
This removed the color, not the inner circle
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 17:13
This removed the color, not the inner circle
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 17:13
Do you want to change color of existing radio button?
– Narendra Kothamire
Mar 27 at 4:13
Do you want to change color of existing radio button?
– Narendra Kothamire
Mar 27 at 4:13
No I just want to remove this inner circle that shows which button is selected.
– Αλέξανδρος Χονδρογιάννης
Mar 27 at 15:16
No I just want to remove this inner circle that shows which button is selected.
– Αλέξανδρος Χονδρογιάννης
Mar 27 at 15:16
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55361471%2fremoving-the-checked-circle-from-a-radiobutton%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Oh I didn't know that. I am sorry
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 16:25
I have a stroke around the circle to indicate the selected one
– Αλέξανδρος Χονδρογιάννης
Mar 26 at 17:08