Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f73eadbc authored by Hasib Prince's avatar Hasib Prince
Browse files

fixed truncating title of checkbox in settings page

parent 2de8a99e
Loading
Loading
Loading
Loading
+79 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?><!--
  ~  Copyright (C) 2022  ECORP
  ~
  ~   This program is free software: you can redistribute it and/or modify
  ~   it under the terms of the GNU General Public License as published by
  ~   the Free Software Foundation, either version 3 of the License, or
  ~   (at your option) any later version.
  ~
  ~   This program is distributed in the hope that it will be useful,
  ~   but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~   GNU General Public License for more details.
  ~
  ~   You should have received a copy of the GNU General Public License
  ~   along with this program.  If not, see <https://www.gnu.org/licenses/>.
  -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:gravity="center_vertical" android:paddingRight="?android:attr/scrollbarSize">

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minHeight="?android:attr/listPreferredItemHeight"
        android:gravity="center_vertical"
        android:paddingRight="?android:attr/scrollbarSize">
        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:gravity="center"
            android:minWidth="@dimen/preference_icon_minWidth"
            android:orientation="horizontal">
            <ImageView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:minWidth="48dp"
                />
        </LinearLayout>
        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="22dp"
            android:layout_marginRight="8dip"
            android:layout_marginTop="6dip"
            android:layout_marginBottom="6dip"
            android:layout_weight="1">

            <TextView android:id="@android:id/title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:singleLine="false"
                android:textColor="@android:color/black"
                android:textAppearance="?android:attr/textAppearanceMediumInverse"
                android:textSize="16sp"
                android:layout_marginTop="12dp"
                android:fadingEdge="horizontal" />

            <TextView android:id="@+id/summary"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@android:id/title"
                android:layout_alignLeft="@android:id/title"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:textColor="?android:attr/textColorSecondary"
                android:maxLines="4" />
        </RelativeLayout>
        <!-- Preference should place its actual preference widget here. -->
        <LinearLayout android:id="@android:id/widget_frame"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:gravity="center"
            android:orientation="vertical" />

    </LinearLayout>

</LinearLayout>
 No newline at end of file
+6 −3
Original line number Diff line number Diff line
@@ -56,17 +56,20 @@
        <CheckBoxPreference
            android:defaultValue="true"
            android:key="showAllApplications"
            android:title="@string/Show_commercial_apps" />
            android:title="@string/Show_commercial_apps"
            android:layout="@layout/layout_source_settings"/>

        <CheckBoxPreference
            android:defaultValue="true"
            android:key="showFOSSApplications"
            android:title="@string/show_only_open_source_apps" />
            android:title="@string/show_only_open_source_apps"
            android:layout="@layout/layout_source_settings"/>

        <CheckBoxPreference
            android:defaultValue="true"
            android:key="showPWAApplications"
            android:title="@string/show_only_pwa_apps" />
            android:title="@string/show_only_pwa_apps"
            android:layout="@layout/layout_source_settings"/>
    </PreferenceCategory>

    <PreferenceCategory