[英]grouping texts plus images + round edges in android
i was requested to make in android a view that groups several items like checkboxes or text views in vertical rows, separated by transparent dividers while the background is with a certain alpha level and the edges are round. 我被要求在android中创建一个视图,该视图将多个项目(如复选框或文本视图)分组为垂直行,并由透明分隔线分隔,而背景具有一定的alpha水平且边缘为圆形。
I thought of two solutions and i hope for some feedback on good\\bad or other solutions if you got'em. 我想到了两个解决方案,希望您能得到关于好/坏或其他解决方案的反馈。
So what do you think ? 所以你怎么看 ?
Eventually i decided to use a List with customized divider. 最终,我决定使用带有自定义分隔符的列表。 It looks good, however a list got a very nasty bug when it comes down to items with states like buttons and clickable textViews,
看起来不错,但是当列表涉及状态如按钮和可点击的textView时,列表出现了一个非常讨厌的错误,
I'm notsure how to resolve that one, i've seen numerous mails about it in the developres mailing list and here, most saying don't put statefull objects in a list. 我不确定如何解决这个问题,我在developres邮件列表中看到过很多关于它的邮件,在这里,大多数人说不要将有状态对象放在列表中。 So it mist not be the solution for me.
所以这不是我的解决方案。 Nest thing i'll try is extending the normal layouts to have a bar in their bottom and use regualr linear layout with round corners drawable.
我将尝试的嵌套方法是扩展常规布局以使其底部具有条形,并使用带有可绘制圆角的regularr线性布局。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.