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

Commit fe0c7809 authored by Matthew DeVore's avatar Matthew DeVore Committed by Android (Google) Code Review
Browse files

Merge "Make topology hint readable when block is under it" into main

parents 3d0d0f9d 015d9442
Loading
Loading
Loading
Loading
+19 −4
Original line number Diff line number Diff line
@@ -31,11 +31,26 @@
        android:id="@+id/display_topology_pane_content"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
    <TextView
        android:id="@+id/topology_hint"

    <!-- Give the textview a solid-color background (the same as the pane) in
         order to make the text clear when a DisplayBlock is drawn under it as
         part of display_topology_pane_content.

         If the padding is in the TextView, then the background will fill the
         padding, which we don't want vertically, as there is a lot of vertical
         padding. We do need some horizontal padding because otherwise the
         rounded corners will touch the edge of the text. -->
    <FrameLayout
        android:importantForAccessibility="no"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_gravity="top|center_horizontal"
        android:paddingBottom="10dp"
        android:paddingTop="10dp" />
        android:paddingVertical="10dp">
        <TextView
            android:id="@+id/topology_hint"
            android:background="@drawable/display_topology_background"
            android:paddingHorizontal="5dp"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content" />
    </FrameLayout>
</FrameLayout>