Giter Site home page Giter Site logo

radiogroup's Introduction

KeyRadioGroup

==============

  • 支持多行多列的复杂布局的RadioGroup
  • Multiple rows and columns RadioGroup
    • If U don't understand the Chinese Notes.
      Please use the V1 version.You can write any layout under <KeyRadioGroupV1>

===========

  • 1.2 更新,做了向下兼容,现在全版本可以使用

==============

使用方法

使用方法很简单,把widget包,或者你用的版本(V1或V2)丢到你的工程里,XML里用对应的标签就可以了,里面写有demo,可以参考
V1支持任何复杂的布局

通过递归布局内部的RadioButton来实现的

========

V2只支持标签下再添加一层布局

为了简单方便效率高,和考虑到实际用途,没写递归的方法,只能用一层布局,哪怕你一行只有一个RadioButton你也要在外面包一个Layout,只要是ViewGroup的子类都可以

==========

我是参考12.6K的RadioGroup源码写的。从API20开始是这个版本的源码。之前的是12.9K的,只相差一个获取名字的方法

==========

我试过直接继承RadioGroup来重写,但是没成功,而且这样继承,很多父类的方法不能直接调用,我也不知道是什么原因,如果有人知道,可以发邮件给我,感谢指点

=================

有什么BUG和建议,大家可以发邮件跟我讨论
我的邮箱:[email protected]

KeyRadioGroup

radiogroup's People

Contributors

key-cn avatar

Watchers

James Cloos avatar

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.