### Commit Message - Integrated Google OSS Licenses Plugin to display the licenses of third-party libraries used in the app. - Added the plugin to app-level Gradle file and included the required dependencies. - Created a pre-built activity (`OssLicensesMenuActivity`) to show the licenses, accessible via a button/menu. - Verified the implementation, ensuring the licenses are displayed correctly. - Tested on release builds to confirm functionality and compliance. This implementation ensures transparency and complies with open-source license requirements.
256 lines
11 KiB
XML
256 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true">
|
|
|
|
<LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="top"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_backup"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center|start"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/padding">
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/png_height"
|
|
android:layout_height="@dimen/png_height"
|
|
app:srcCompat="@drawable/ic_backup_24dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingStart="@dimen/padding_start">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/title_configuration_backup"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_backup_summary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/layout_margin_top_height"
|
|
android:maxLines="4"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_share"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/server_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center|start"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/padding">
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/png_height"
|
|
android:layout_height="@dimen/png_height"
|
|
app:srcCompat="@drawable/ic_share_24dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/padding_start"
|
|
android:text="@string/title_configuration_share"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_restore"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/server_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center|start"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/padding">
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/png_height"
|
|
android:layout_height="@dimen/png_height"
|
|
app:srcCompat="@drawable/ic_restore_24dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/padding_start"
|
|
android:text="@string/title_configuration_restore"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="top"
|
|
android:orientation="vertical"
|
|
android:paddingTop="@dimen/padding_start">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_soure_ccode"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/server_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center|start"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/padding">
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/png_height"
|
|
android:layout_height="@dimen/png_height"
|
|
app:srcCompat="@drawable/ic_source_code_24dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/padding_start"
|
|
android:text="@string/title_source_code"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_oss_licenses"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/server_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center|start"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/padding">
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/png_height"
|
|
android:layout_height="@dimen/png_height"
|
|
app:srcCompat="@drawable/license_24px" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/padding_start"
|
|
android:text="@string/title_oss_license"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_feedback"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/server_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center|start"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/padding">
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/png_height"
|
|
android:layout_height="@dimen/png_height"
|
|
app:srcCompat="@drawable/ic_feedback_24dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/padding_start"
|
|
android:text="@string/title_pref_feedback"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_tg_channel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/server_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center|start"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/padding">
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/png_height"
|
|
android:layout_height="@dimen/png_height"
|
|
app:srcCompat="@drawable/ic_telegram_24dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/padding_start"
|
|
android:text="@string/title_tg_channel"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_privacy_policy"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/server_height"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:gravity="center|start"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/padding">
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/png_height"
|
|
android:layout_height="@dimen/png_height"
|
|
app:srcCompat="@drawable/ic_privacy_24dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/padding_start"
|
|
android:text="@string/title_privacy_policy"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/server_height"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/padding">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_version"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/title_about"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|