getActivity/Logcat

关于Logcat的screenOrientation的值:landscape -> sensorLandscape

rianlu opened this issue · 4 comments

希望能让他随设备旋转,因为有的横屏应用本身是支持旋转的,如果和当前Logcat显示方向不一致,那每次点开查看日志就很别扭,虽然我通过替换manifest解决了

这是原来的:

<activity
    android:name=".LogcatActivity"
    android:configChanges="orientation|screenSize|keyboardHidden"
    android:launchMode="singleInstance"
    android:screenOrientation="landscape" />

这是我在自己 AndroidManifest.xml 里替换的:

<activity
    android:name="com.hjq.logcat.LogcatActivity"
    android:configChanges="orientation|screenSize|keyboardHidden"
    android:launchMode="singleInstance"
    android:screenOrientation="sensorLandscape"
    tools:node="replace" />

小伙子,你这样的做法其实不是最好的,我的做法是将 Logcat 的横屏属性删掉了,你可以直接更新到最新版本。

小伙子,你这样的做法其实不是最好的,我的做法是将Logcat的横屏属性全部丢失了,你可以直接更新到最新版本。

可以可以,太效率了😘

小伙子,你看看这边还有其他问题不,没有的话我就关闭 issue 了。

小伙子,你看看这边还有其他问题不,没有的话我就关闭 issue 了。

没问题了😁