Comments (6)
The cause of this issue is RadioGroup check if child view is instance of android.widget.RadioButton
or not, but com.rey.material.widget.RadioButton
is a class extends from android.widget.CompoundButton
.
For now you will have to handle the onCheckChanged
event yourself. May be I will add a RadioGroup view that support com.rey.material.widget.RadioButton
in next version.
from material.
Can you please post your xml?
from material.
Here is the xml:
<HorizontalScrollView
android:layout_height="100dp"
android:layout_width="match_parent"
android:fillViewport="true"
android:fadeScrollbars="false">
<RadioGroup
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal">
<com.rey.material.widget.RadioButton
android:id="@+id/create_deal_10_discount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:text="10%"/>
<com.rey.material.widget.RadioButton
android:id="@+id/create_deal_15_discount"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:gravity="center"
android:text="15%"/>
<com.rey.material.widget.RadioButton
android:id="@+id/create_deal_20_discount"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:gravity="center"
android:text="20%"/>
<com.rey.material.widget.RadioButton
android:id="@+id/create_deal_25_discount"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:gravity="center"
android:text="25%"/>
<com.rey.material.widget.RadioButton
android:id="@+id/create_deal_30_discount"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:gravity="center"
android:text="30%"/>
<com.rey.material.widget.RadioButton
android:id="@+id/create_deal_35_discount"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:gravity="center"
android:text="35%"/>
<com.rey.material.widget.RadioButton
android:id="@+id/create_deal_40_discount"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:gravity="center"
android:text="40%"/>
<com.rey.material.widget.RadioButton
android:id="@+id/create_deal_45_discount"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:gravity="center"
android:text="45%"/>
<com.rey.material.widget.RadioButton
android:id="@+id/create_deal_50_discount"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:gravity="center"
android:text="50%"/>
</RadioGroup>
</HorizontalScrollView>
from material.
I have the same problem, com.rey.material.widget.RadioButton doesn't work with default RadioGroup.
from material.
is there a option available now for this?
from material.
i have same problem .. any solution?
from material.
Related Issues (20)
- Spinner and DatePicker causing crash when targeting app to targetSdkVersion 27 HOT 7
- Dialog on the mainActivity HOT 1
- findViewById in Dialog with ContentView from a xml
- Failed to resolve with version 1.2.5 HOT 3
- Crashing when creating a Dialog
- pink color on api 27 HOT 3
- ProgressView颜色·
- migrate to AndroidX HOT 1
- Cannot build 1.2.5
- After Cloning Library and Rebuilding showing some errors HOT 1
- i use recyclerview with checkbox radiobutton of your material widgets,and it has ui bug,but when i use android widgets such as radiobutton checkbox,it has no ui bug HOT 1
- WE NEED FORK! HOT 2
- Failed to resolve with version 1.3.0 HOT 3
- 整合包错
- 被选中字体放大
- ERROR: Failed to resolve: com.github.rey5137:material:1.3.0 HOT 21
- Redundant cast when using androidx
- my checkbox didn't coming ..
- e commerce
- Checkboc Issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material.