我想按照下面的图片创建应用程序 UI。这里有人可以指导我如何实现这一目标吗?
![在此处输入图像描述](https://i.sstatic.net/GUGGQ.jpg)
图像来源
这里的数据,如 123 MB、456MB 是动态的,将保留从应用程序本身改变。因此,理想情况下应该有 2 个按钮,在特定按钮内,我们需要 2 个图像来显示上传/下载,并需要 2 个文本视图来显示带宽计数。
但我想不通这怎么能安排在一起呢?
问候,
拉杰什
I want to create application UI as per image available below. Can anyone here please guide me how can I achieve this?
![enter image description here](https://i.sstatic.net/GUGGQ.jpg)
Image Source
Here data like 123 MB, 456MB are dynamic and will keep changing from application itself. So Ideally there should be 2 buttons and inside particular button we will need 2 images to show upload/download and 2 textview required to display bandwidth count.
But I could not figure that how this could be arrange together?
Regards,
Rajesh
发布评论
评论(1)
您可以使用多个嵌套的
LinearLayouts
。像这样的东西:编辑:任何
LinearLayout
都可以设置为clickable
,并且使用onClickListener
您可以注册任何对其采取行动。You can use multiple nested
LinearLayouts
. Something like this:EDIT: Any of the
LinearLayout
can be set toclickable
and withonClickListener
you can register any action to it.