Code Monkey home page Code Monkey logo

flowradiogroup's Introduction

FlowRadioGroup

流式的RadioGroup, 子RadioButton, 自动流式排列;使用方法和RadioGroup基本一致;

使用方法

复制项目中的FlowRadioGroup到你的项目,即可;权当RadioGroup使用就行;

可用API

int getCheckedRadioButtonIndex() --返回选中按钮的索引位置

String getCheckedRadioButtonText() --返回选中按钮的文本

Demo

1 2 3 4

备注

2015-10-23 
  • Compatible with Android 4.0 , Android Studio 1.5P2

flowradiogroup's People

Contributors

angcyo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flowradiogroup's Issues

visibility==gone时遇到的问题,已解决

有换行时,如果最后一行只有两个radioButton且最后一个radioButton设置visibility=GONE时,最后一行就不显示了。

解决方法:
width = Math.max(width, lineWidth);
height += lineHeight;
for循环里面的if(i == (count - 1))语句块删除同时把里面内容移到for循环外就可以了,语句块内容见上面。

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.