排列按钮动态的星星图案的android [英] Arranging Button dynamically in STAR pattern android

查看:363
本文介绍了排列按钮动态的星星图案的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要实现以下布局:

I want to implement following layout:

本的图标(圈子)和标签(矩形)之间的固定利润率的伟大工程,但对于身高维护的LinearLayout没有多少可作为图标上面的图标的标签区域重叠

This works great for fixed margin between Icon(Circle) and Label(Rectangle) but for Height maintenance LinearLayout is not much usable as Icon overlaps above icons' label area

有没有什么办法来动态动态设置此布局不同的屏幕?

Is there any way to dynamically set this layout dynamically for different screens??

注:图标和标签都是一样的,因为它是按钮drawabletop,所以如果有将安排简单的按钮会做简单的想法......

NOTE:Icons and label are same as it is button with drawabletop, so if there will simple idea for arranging simple button will do.....

推荐答案

下面是一个的exaple实施:的 Android的3D旋转木马,也是<一个href="http://stackoverflow.com/questions/6830023/layout-with-buttons-in-a-circle/6835326#6835326">layout在一个圆圈按钮?

Here is an exaple to implement: Android 3D Carousel and also layout with buttons in a circle?

还检查了现有的SO问题:创造了机器人

Also Check out the existing SO question: creating a Circular view in android

从这篇文章中,我相信你会得到的设计布局确切的想法:的 Android SDK中:创建一个旋转拨号器

From this article i am sure you will get exact idea of designing layout: Android SDK: Creating a Rotating Dialer

这篇关于排列按钮动态的星星图案的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆