Skip to content

Commit

Permalink
Merge branch 'master' into translation-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza-vd committed Dec 15, 2020
2 parents a852534 + bc2193d commit ef968ed
Showing 1 changed file with 109 additions and 0 deletions.
109 changes: 109 additions & 0 deletions opensrp-chw-hf/src/main/res/layout/base_register_search_bar.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/search_bar_layout"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_weight="2"
android:background="@color/search_bar_background_black"
android:gravity="center_vertical">

<RelativeLayout
android:layout_width="0dp"
android:layout_height="@dimen/ec_main_header_search_layout_height"
android:layout_marginStart="@dimen/register_search_bar_margin"
android:layout_marginEnd="@dimen/register_search_bar_min_margin"
android:layout_weight="1.5">

<EditText
android:id="@+id/edt_search"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_marginEnd="0dp"
android:background="@drawable/grey_edit_text_shape"
android:ellipsize="end"
android:hint="@string/search_hint"
android:maxLines="1"
android:minWidth="100dp"
android:padding="@dimen/register_search_bar_padding"
android:textColor="@android:color/white"
android:textColorHint="@color/search_hint_white"
android:textSize="@dimen/default_font_size_search_bar" />

<ImageButton
android:id="@+id/btn_search_cancel"
android:layout_width="@dimen/ec_main_header_search_cancel_button_width"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_marginEnd="@dimen/search_view_cancel_image_margin_right"
android:background="@android:color/transparent"
android:src="@drawable/ic_cross"
android:visibility="gone" />

</RelativeLayout>


<RelativeLayout
android:id="@+id/filter_sort_layout"
android:layout_width="0dp"
android:layout_height="@dimen/ec_main_header_search_layout_height"
android:layout_marginEnd="@dimen/register_search_bar_margin"
android:layout_marginLeft="@dimen/search_bar_min_margin"
android:layout_marginRight="@dimen/register_search_bar_margin"
android:layout_marginStart="@dimen/search_bar_min_margin"
android:layout_weight="0.5">

<TextView
android:id="@+id/filter_text_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:layout_marginEnd="5dp"
android:layout_marginRight="5dp"
android:drawableLeft="@drawable/ic_icon_filter"
android:drawablePadding="@dimen/register_search_bar_min_margin"
android:drawableStart="@drawable/ic_icon_filter"
android:ellipsize="end"
android:gravity="center"
android:maxLines="1"
android:scrollHorizontally="true"
android:text="@string/filter"
android:textColor="@android:color/white"
android:textSize="@dimen/default_font_size_search_bar" />


</RelativeLayout>

<RelativeLayout
android:id="@+id/due_only_layout"
android:layout_width="0dp"
android:layout_height="@dimen/ec_main_header_search_layout_height"
android:layout_marginEnd="@dimen/register_search_bar_margin"
android:layout_marginLeft="@dimen/search_bar_min_margin"
android:layout_marginRight="@dimen/register_search_bar_margin"
android:layout_marginStart="@dimen/search_bar_min_margin"
android:visibility="gone"
android:layout_weight="0.75">


<TextView
android:id="@+id/due_only_text_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:layout_marginRight="5dp"
android:layout_marginEnd="5dp"
android:drawableEnd="@drawable/ic_due_filter_off"
android:drawableRight="@drawable/ic_due_filter_off"
android:ellipsize="end"
android:gravity="center"
android:maxLines="2"
android:scrollHorizontally="true"
android:text="@string/due_only"
android:textColor="@android:color/white"
android:textSize="@dimen/default_font_size_search_bar"/>
</RelativeLayout>
</LinearLayout>

0 comments on commit ef968ed

Please sign in to comment.