GithubHelp home page GithubHelp logo

RadioButtons in RadionGroup about material HOT 6 CLOSED

rey5137 avatar rey5137 commented on May 18, 2024
RadioButtons in RadionGroup

from material.

Comments (6)

rey5137 avatar rey5137 commented on May 18, 2024 1

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.

rey5137 avatar rey5137 commented on May 18, 2024

Can you please post your xml?

from material.

mehrad-rafigh avatar mehrad-rafigh commented on May 18, 2024

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.

peternguyen88 avatar peternguyen88 commented on May 18, 2024

I have the same problem, com.rey.material.widget.RadioButton doesn't work with default RadioGroup.

from material.

sud007 avatar sud007 commented on May 18, 2024

is there a option available now for this?

from material.

nikunjparadva avatar nikunjparadva commented on May 18, 2024

i have same problem .. any solution?

from material.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.