使用图像视图时我的微调器不可见

发布于 2025-01-04 08:57:15 字数 254 浏览 5 评论 0原文

我在 android 中有一个 TabView 。第一个选项卡有一个 Image 和一个 SpinnerSpinner 是一个简单的列表,如果没有图像,它会显示在第一个选项卡中,但当 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

薄情伤 2025-01-11 08:57:15

将微调器保留在布局(例如 FrameLayout)内,并将图像设置为该布局的背景。

keep the spinner inside a Layout (ex. FrameLayout) and set the image as background for that Layout.

清音悠歌 2025-01-11 08:57:15

看来您正在使用

LinearLayout

作为托管 ImageViewSpinner 的基本布局。

LinearLayout 的默认方向是水平的。

只需添加

android:orientation="vertical"

标签即可将其更改为垂直

It seems that you are using

LinearLayout

as base Layout which hosts ImageView and Spinner.

the default orientation of LinearLayout is horizontal..

change it to vertical just by adding

android:orientation="vertical"

to <LinearLayout > tag

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文