如何将LG Split窗口支持添加到我的Android应用程序中?实际上是可能的吗?



我正在制作一个我想拥有LG Split窗口支持的Android应用程序,但没有任何可能的信息以及如果可能的话,该如何做。您能帮我解决这个问题吗?

从我的书中引用自己,为LG的遗产拆分屏幕支持:

lg仅需要一件事:<application>中的<meta-data>元素,带有 名称设置为com.lge.support.SPLIT_WINDOW,值为true。它假设 您的启动器活动(或活动)适合在拆分屏幕视图中显示。

此示例应用程序显示了支持Android 7.0 本机多窗口的支持,以及三星和LG的Legacy Split-Screen Support。清单表明<meta-data>元素:

<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.commonsware.android.multiwindow"
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:versionCode="1"
  android:versionName="1.0">
  <supports-screens
    android:anyDensity="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true" />
  <application
    android:allowBackup="false"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:resizeableActivity="true"
    android:theme="@style/Theme.Apptheme">
    <uses-library
      android:name="com.sec.android.app.multiwindow"
      android:required="false" />
    <meta-data
      android:name="com.sec.android.support.multiwindow"
      android:value="true" />
    <meta-data
      android:name="com.lge.support.SPLIT_WINDOW"
      android:value="true" />
    <activity android:name="MainActivity">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
        <category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
      </intent-filter>
      <layout android:minWidth="480dp" />
    </activity>
  </application>
</manifest>

最新更新