1

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:

enter image description here

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?

1
  • Since Google does not seem to be maintaining that code, perhaps you might consider just using their resource generators and creating your own activity (or fragment or composable) to display them. Commented Mar 14 at 22:22

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.