Android:本机应用程序背景分辨率? 480x800?还是480x774?
我的目标设备的原始分辨率为 480x800;但是,由于顶部的标题栏,我的背景图像 (480x800) 被调整大小(缩小)为 480x774。我知道 Dell Streak 或 Samsung Galaxy Tab 的标题栏会更短(就分辨率而言),因为屏幕尺寸更大(尽管分辨率相同:480x800)
有没有办法使背景从顶部一直拉伸(包括标题栏)到最底部?我不在乎图像的顶部部分被 Android 标题栏覆盖。
我只是不想 480x800 背景图像缩小。
我已经使用填充父级:
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background"
I am targeting devices that have native resolution of 480x800; however, my background image (480x800) gets resized (shrink down) to 480x774 because of the title bar on top. I know that Dell Streak or Samsung Galaxy Tab will have shorter (in terms of resolution) title bar since the screen size is bigger (although the resolution is same: 480x800)
Is there a way to make background stretch from all the way from top (including title bar) to very bottom? I don't care some top part of image is covered by Android title bar.
I just don't want 480x800 background image to shrink down.
I already use fill parent:
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论