Created
September 15, 2017 11:09
-
-
Save engr-erum/3ea282aebb89ddbb82fb439cd45c3761 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="?attr/actionBarSize" | |
android:background="@android:color/white" | |
app:layout_scrollFlags="scroll|enterAlways" | |
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"> | |
<RelativeLayout | |
android:layout_width="match_parent" | |
android:layout_height="?attr/actionBarSize" | |
android:layout_marginLeft="10dp" | |
android:layout_marginRight="10dp" | |
android:background="@drawable/shadow_border"> | |
<ImageView | |
android:id="@+id/iv_menu" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentLeft="true" | |
android:layout_centerVertical="true" | |
android:layout_marginLeft="10dp" | |
android:src="@drawable/menu" /> | |
<View | |
android:id="@+id/view_1" | |
android:layout_width="1dp" | |
android:layout_height="40dp" | |
android:layout_centerVertical="true" | |
android:layout_marginLeft="15dp" | |
android:layout_toRightOf="@+id/iv_menu" | |
android:background="@color/colorLine" /> | |
<ImageView | |
android:id="@+id/iv_logo" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_centerVertical="true" | |
android:layout_marginLeft="15dp" | |
android:layout_toRightOf="@+id/view_1" | |
android:src="@drawable/logo_icon" /> | |
<ImageView | |
android:id="@+id/iv_search" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_centerVertical="true" | |
android:layout_marginRight="15dp" | |
android:layout_toLeftOf="@+id/view_2" | |
android:src="@drawable/search" /> | |
<View | |
android:id="@+id/view_2" | |
android:layout_width="1dp" | |
android:layout_height="40dp" | |
android:layout_centerVertical="true" | |
android:layout_marginRight="15dp" | |
android:layout_toLeftOf="@+id/ll_cart" | |
android:background="@color/colorLine" /> | |
<FrameLayout | |
android:id="@+id/ll_cart" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentRight="true" | |
android:layout_centerVertical="true" | |
android:layout_marginRight="10dp"> | |
<ImageView | |
android:id="@+id/iv_addtocart" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:src="@drawable/bag" /> | |
<TextView | |
android:id="@+id/tv_cartcount" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_horizontal|center_vertical|center" | |
android:text="12" | |
android:textColor="@android:color/holo_orange_light" | |
android:textSize="8sp" /> | |
</FrameLayout> | |
</RelativeLayout> | |
</android.support.v7.widget.Toolbar> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment