简体   繁体   English

android选项卡在横向视图中垂直显示在屏幕的左侧

[英]android tab to show vertically at the left hand side of screen in landscape view

I know that it is possible to place the tabs at the top or bottom view in portrait mode. 我知道可以在纵向模式下将标签放在顶视图或底视图中。 However when i moved the orientation to the landscape view, the tabs will be in a row horizontally at the top. 但是,当我将方向移动到横向视图时,选项卡将在顶部水平排成一排。

I saw that it is possible when i opened up the Calendar application in my android phone, because the tabs are vertical in horizontal view, at the left hand side too. 我看到有可能在我的Android手机中打开Calendar应用程序,因为标签在水平视图中是垂直的,在左侧也是如此。

Is there any way to change it to appear at the left hand side vertically on the screen? 有没有办法将其更改为在屏幕左侧vertically显示? is it possible to change it through doing different views in layout-port and layout-land, or change manifest.xml or any other possible way through coding 是否可以通过在layout-port和layout-land中执行不同的视图来更改它,或者通过编码更改manifest.xml或任何其他可能的方式

thanks for the help in advance. 我在这里先向您的帮助表示感谢。 this problem has been quite hard to solve. 这个问题很难解决。

I think for creating a layout with Tabs on the left hand side, you can get related information on this link: Left Side Tab Widget 我认为要在左侧创建带有Tabs的布局,您可以在此链接上获得相关信息: Left Side Tab Widget

Hope this helps. 希望这可以帮助。

In my experiments, I found out that there's very little customisation available that you can do with Tabs' position. 在我的实验中,我发现可以使用Tabs的位置进行很少的自定义。 This, as an answer, I would say, till now we can't position tabs on the left or right. 作为答案,我想说,到目前为止,我们无法在左侧或右侧定位标签。 I may be wrong, but this is what I feel. 我可能错了,但这就是我的感受。

However, you're always free to write your own tab implementation and use it. 但是,您可以随时编写自己的选项卡实现并使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM