Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
因此,我将图像创建为九个可绘制的补丁,作为 tabhost 的选项卡小部件。在纵向模式下看起来不错,但在横向模式下,九个可绘制的补丁没有展开。它的大小与纵向模式相同。谁能帮我?谢谢。
找到了答案。而不是像这样将九个可绘制补丁设置为源
android:src="@drawable/tab_one"
我试图将其更改为背景。现在,无论是纵向还是横向模式,九个补丁都适合屏幕。
android:background="@drawable/tab_one"