使用图像视图时我的微调器不可见
我在 android 中有一个 TabView
。第一个选项卡有一个 Image
和一个 Spinner
。 Spinner
是一个简单的列表,如果没有图像,它会显示在第一个选项卡中,但当 Image
存在时,它就会消失。
更新: 我发现 imageView 正在将旋转器“推”出框架。我只需要使我的图像成为“背景视图”
谢谢您的帮助
I have a TabView
in android. The first tab has an Image
and a Spinner
. The Spinner
is a simple list that shows up in the first tab if there is no image, but disappears when the Image
is there.
Update:
I've figured out that the imageView is 'pushing' the spinner out of the frame. I just needed to make my image a "background view"
Thanks for the help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将微调器保留在布局(例如 FrameLayout)内,并将图像设置为该布局的背景。
keep the spinner inside a Layout (ex. FrameLayout) and set the image as background for that Layout.
看来您正在使用
作为托管
ImageView
和Spinner
的基本布局。LinearLayout
的默认方向是水平的。只需添加
标签即可将其更改为垂直It seems that you are using
as base Layout which hosts
ImageView
andSpinner
.the default orientation of
LinearLayout
is horizontal..change it to vertical just by adding
to
<LinearLayout >
tag