OpenSRP/opensrp-client-anc

View on GitHub
opensrp-anc/src/main/res/layout/toolbar_quick_check.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/toolbar_parent_layout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">

    <com.google.android.material.appbar.AppBarLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:theme="@style/AncAppTheme.AppBarOverlay">

        <androidx.appcompat.widget.Toolbar
            android:id="@+id/register_toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:background="@color/quick_check_red"
            app:contentInsetLeft="10dp"
            app:contentInsetStart="10dp"
            app:popupTheme="@style/AncAppTheme.PopupOverlay">


            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="?android:attr/actionBarSize"
                android:background="@color/quick_check_red">

                <ImageButton
                    android:id="@+id/cancel_quick_check"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_alignParentStart="true"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="@dimen/quick_check_drawable_padding"
                    android:layout_marginRight="@dimen/quick_check_drawable_padding"
                    android:background="@android:color/transparent"
                    android:src="@drawable/ic_clear" />

                <TextView
                    android:id="@+id/quick_check"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_toEndOf="@+id/cancel_quick_check"
                    android:gravity="center_vertical"
                    android:text="@string/quick_check"
                    android:textColor="@color/white"
                    android:textSize="@dimen/quick_check_title_text_size" />

            </RelativeLayout>
        </androidx.appcompat.widget.Toolbar>
    </com.google.android.material.appbar.AppBarLayout>

</LinearLayout>