【问题标题】:Onclick Image-SelectionOnclick 图像选择
【发布时间】:2011-09-20 11:03:45
【问题描述】:
我想创建一个按钮,我可以在其上提示,之后应该显示一个可以滚动的图片选择(可能是它的grindview idk)。就像右上角whatsapp中的东西一样,正是我想做的事情。
我该怎么做?在我的 Layoutfile 中我需要什么,是否可以将它的内容设置到我的数据库中?
我想拥有类似 2 的东西,但我该如何创建它。我需要什么?
提前致谢
【问题讨论】:
标签:
android
picturebox
buttonclick
picturegallery
【解决方案1】:
在这种情况下,您好 safari 您需要采用水平方向的线性布局。其中有其他两个这样的 Lenear 布局。
<LinearLayout android:orientation="horizontal" >
<LinearLayout >
<GridView > set images of smiley</GridView>
</LinearLayout>
<LinearLayout android:orientation="vertical" >
<Button></Button>
<Button></Button>
<Button></Button>
<Button></Button>
</LinearLayout>
</LinearLayout>
然后设置可见性,即在需要的地方消失和可见
它可能会有所帮助。