<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#ffffff" android:gravity="center_vertical" android:orientation="horizontal" > <Button android:id="@+id/btn_show_list_view" android:layout_width="60dp" android:layout_height="wrap_content" android:background="@drawable/btn_show_list" /> <HorizontalScrollView android:id="@+id/bread_crumbs_scroll_view" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" > <LinearLayout android:id="@+id/bread_crumbs_layout" android:layout_width="wrap_content" android:layout_height="match_parent" android:orientation="horizontal" > </LinearLayout> </HorizontalScrollView> </LinearLayout>