【问题标题】:How to keep TabHost at portrait orientation and listen for configChanges (orientation)如何让 TabHost 保持纵向并监听 configChanges(方向)
【发布时间】:2010-05-23 09:59:01
【问题描述】:

您能否建议如何让 TabHost 与所有选项卡保持纵向屏幕方向,同时监听 configChanges = 方向?当方向改变时,我将展示另一个活动。

在我看来,当 screenOrientation 设置为纵向模式时,configChanges(方向)事件不会触发。

感谢您的帮助。

【问题讨论】:

    标签: android android-activity orientation


    【解决方案1】:

    您是否将 TabHost 的方向设置为纵向?如果是这样,您实际上需要“sensorPortrait”,以便继续进行传感。保留您的 configChanges:orientation,以便您自己处理更改。

    请参阅here 了解更多信息。

    【讨论】:

      猜你喜欢
      • 2017-11-19
      • 2019-04-04
      • 2012-11-16
      • 1970-01-01
      • 1970-01-01
      • 2022-01-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多