美文网首页我爱编程
android 界面常亮设置

android 界面常亮设置

作者: YuanCheng2013 | 来源:发表于2018-04-11 11:04 被阅读0次

在xml布局文件中添加

android:keepScreenOn="true"

<RelativeLayout

    xmlns:android="http://schemas.android.com/apk/res/android"

    android:id="@+id/webrtc_video_layout"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:keepScreenOn="true">

<user-permissiion android:name="android.permission.WAKE_LOCK">        

不起作用

相关文章

网友评论

    本文标题:android 界面常亮设置

    本文链接:https://www.haomeiwen.com/subject/oejahftx.html