最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - ActionBar in OssLicensesActivity covering content - Stack Overflow

programmeradmin2浏览0评论

I am using the OSS Licenses Gradle Plugin to include references to OSS licenses in my app.

Unfortunately, the ActionBar in the OssLicensesActivity covers the license text on some devices. The screenshot below shows a Pixel 6 phone running Android 15:

AndroidManifest.xml:

    <activity
        android:name="com.google.android.gms.oss.licenses.OssLicensesActivity"
        android:theme="@style/OSSLicensesTheme"
        android:exported="false"
        <meta-data
            android:name="android.app.lib_name"
            android:value="" />
    </activity>

themes.xml:

<style name="OSSLicensesTheme" parent="Theme.Material3.Light">
    <item name="android:textColor">@color/black</item>
    <item name="android:textColorLink">@color/purple_700</item>
</style>

I would like to have the ActionBar at the very top of the screen and any license texts beginning below of it.

Any ideas to make this work?

发布评论

评论列表(0)

  1. 暂无评论