radio-button

Using the required attribute with dynamically generating radio-buttons

你说的曾经没有我的故事 提交于 2020-08-25 07:56:33
问题 The answers given to a similar question:How to use the "required" attribute with a "radio" input field don't seem to work in this case. I am adapting a multiple choice quiz provided via radio buttons.The quiz has radio buttons built into an external js file. How it works The quiz is a sort of personality test, by answering the twenty questions (4 sets of 5 questions each) you get points (there are no correct answers). The sets following the first appear by clicking the "Submit Answer" button.

Android custom radiobutton

青春壹個敷衍的年華 提交于 2020-08-12 02:48:30
问题 I want to make custom radio button.I have created a drawable for normal(radio_normal) state.But I find it difficult to create a shape for checked state(radio_pressed).I have tried creating my desired way.But didn't work out well.I don't know if I have done it the right way.For checked state the shape should look like this.The outer border and the inner circle must be white in color.Can anybody help me with that? radio_normal: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http:/