Remove wrapping LinearLayout in About
Also make the license layout selectable. Removing the linear layout
improves the ripple effect
android:layout_gravity="center"
android:layout_margin="16dp" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingLeft="16dp"
- android:paddingRight="16dp"
- android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:paddingBottom="16dp"
+ android:paddingLeft="16dp"
android:gravity="center_vertical"
android:text="@string/about_title"
android:textColor="?android:attr/textColorPrimary"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:paddingBottom="16dp"
+ android:paddingLeft="16dp"
android:gravity="center_vertical">
<ImageView
android:src="?attr/iconSettingsAbout"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:paddingBottom="16dp"
+ android:paddingLeft="16dp"
android:gravity="center_vertical">
<ImageView
android:src="?attr/iconAboutAuthors"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:paddingBottom="16dp"
- android:gravity="center_vertical">
+ android:paddingLeft="16dp"
+ android:gravity="center_vertical"
+ android:clickable="true"
+ android:focusable="true"
+ android:background="?attr/selectableItemBackground">
<ImageView
android:src="?attr/iconAboutLicense"
android:layout_width="28dp"
android:layout_height="wrap_content"
android:paddingLeft="30dp"
android:orientation="vertical">
-
<TextView
android:text="License"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="16dp"
android:paddingBottom="16dp"
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp"
android:gravity="center_vertical"
android:textAppearance="?android:attr/textAppearanceSmall" />
- </LinearLayout>
<WebView
android:id="@+id/about_view"
