如何将 LG Split Window 支持添加到我的 android 应用程序?实际上有可能吗?
How Can I add LG Split Window Support to my android App? Is it even possible actually?
我正在制作一个 Android 应用程序,我希望它能获得 LG Split Window 支持,但没有任何关于它是否可行以及如何实现的信息。你能帮我解决这个问题吗?
引自 my book,LG 的传统分屏支持:
LG requires only one thing: a <meta-data>
element in the <application>
, with a
name set to com.lge.support.SPLIT_WINDOW
and a value of true
. It assumes that
your launcher activity (or activities) are suitable for showing in a split screen view.
This sample app 显示支持 Android 7.0+ 原生多 window,加上三星和 LG 的传统分屏支持。清单显示 <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>
我正在制作一个 Android 应用程序,我希望它能获得 LG Split Window 支持,但没有任何关于它是否可行以及如何实现的信息。你能帮我解决这个问题吗?
引自 my book,LG 的传统分屏支持:
LG requires only one thing: a
<meta-data>
element in the<application>
, with a name set tocom.lge.support.SPLIT_WINDOW
and a value oftrue
. It assumes that your launcher activity (or activities) are suitable for showing in a split screen view.
This sample app 显示支持 Android 7.0+ 原生多 window,加上三星和 LG 的传统分屏支持。清单显示 <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>