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

Commit debe038d authored by Diogo Ferreira's avatar Diogo Ferreira Committed by Gerrit Code Review
Browse files

Settings: regulatory: Wrap the layout in a ScrollView

This screen allows an optional image to be provided via overlay,
this image might be bigger than the screen height, and usually is
when the phone is in landscape. This cuts the image and only
shows what the screen allows.

This patch wraps it in a ScrollView to ensure that the user can
read the whole image.

Additionally, it changes the ImageView width to take the full width
of the parent, making centerCrop work as expected and centering the
image.

Change-Id: Ie8433767fe333cb4b019608208a45cd0a653641b
Ticket: HAM-138
(cherry picked from commit ff01cb15)
parent bbdd8d2e
Loading
Loading
Loading
Loading
+32 −27
Original line number Diff line number Diff line
@@ -13,10 +13,14 @@
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
    android:orientation="vertical">
        android:orientation="vertical"
        >
        <TextView
            android:id="@+id/sarValues"
            android:textColor="@color/regulatory_text_color"
@@ -36,10 +40,11 @@
        <ImageView
            android:id="@+id/regulatoryInfo"
            android:adjustViewBounds="true"
        android:layout_width="wrap_content"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:scaleType="centerCrop"
            android:src="@drawable/regulatory_info"
            android:visibility="gone"/>
    </LinearLayout>
</ScrollView>