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

Commit 69257c3b authored by Jason Chang's avatar Jason Chang
Browse files

Fix exclamation icon for bugreport disclaimer should be vertically

aligned with content icons and change layout design.

1. To adjust icon and text layout to align with item_doc_list
content layout.
2. Moving the Dismiss button to be below the disclaimer rather than
next and allow the text to span the entire width of the screen.

Change-Id: If88ef993f99eb851dbf2e43959879fe911815835
Fix: 123734953
Test: atest DocumentsUITests
parent da26a9fa
Loading
Loading
Loading
Loading
+31 −39
Original line number Diff line number Diff line
@@ -13,45 +13,37 @@
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:animateLayoutChanges="true"
    android:id="@+id/message_container"
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
    android:minHeight="?android:attr/listPreferredItemHeightSmall"
    android:orientation="horizontal"
    android:id="@+id/message_container"
    android:paddingLeft="@dimen/header_message_horizontal_padding"
    android:paddingRight="@dimen/header_message_horizontal_padding">

        <FrameLayout
            android:layout_height="@dimen/icon_size"
            android:layout_width="@dimen/icon_size"
            android:layout_gravity="center_vertical"
            >
    android:minHeight="?android:attr/listPreferredItemHeightSmall">

    <ImageView
        android:contentDescription="@null"
        android:id="@+id/message_icon"
                android:layout_height="match_parent"
                android:layout_width="wrap_content"
        android:layout_height="@dimen/icon_size"
        android:layout_width="@dimen/icon_size"
        android:layout_marginStart="@dimen/list_item_padding"
        android:layout_marginEnd="@dimen/list_item_padding"
        android:scaleType="centerInside"/>

        </FrameLayout>

    <TextView
        android:id="@+id/message_textview"
            android:layout_gravity="center_vertical"
        android:layout_height="wrap_content"
            android:layout_width="0dp"
            android:layout_weight="1"
        android:layout_width="wrap_content"
        android:layout_marginStart="0dp"
        android:layout_marginEnd="@dimen/list_item_padding"
        android:layout_toEndOf="@+id/message_icon"
        android:selectAllOnFocus="true"/>

    <Button
        android:id="@+id/button_dismiss"
            android:layout_gravity="end"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_alignEnd="@+id/message_textview"
        android:layout_below="@+id/message_textview"
        android:text="@android:string/ok"
        style="?attr/materialButton"/>

</LinearLayout>
</RelativeLayout>