Created
September 12, 2019 13:17
-
-
Save abhishekhugetech/36f973ddae2c424a65b470f625f6ac4a to your computer and use it in GitHub Desktop.
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<layout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools"> | |
<com.google.android.material.appbar.AppBarLayout | |
android:id="@+id/mainappbar" | |
android:layout_width="match_parent" | |
android:layout_height="@dimen/_150dp" | |
android:background="@android:color/white"> | |
<com.google.android.material.appbar.CollapsingToolbarLayout | |
android:id="@+id/main_collapsing" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:fitsSystemWindows="true" | |
app:contentScrim="@android:color/white" | |
app:layout_scrollFlags="scroll|exitUntilCollapsed"> | |
<!-- | |
app:expandedTitleMarginEnd="64dp" | |
app:expandedTitleMarginStart="38dp"--> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
android:padding="@dimen/_20dp" | |
> | |
<!-- Circle Profile Avatar --> | |
<de.hdodenhof.circleimageview.CircleImageView | |
android:id="@+id/user_profile_picture" | |
android:layout_width="0dp" | |
android:layout_height="@dimen/_25dp" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
android:src="@drawable/ic_guest_user" /> | |
<!-- Game Icon --> | |
<ImageView | |
android:id="@+id/iv_game_dashboard" | |
android:layout_width="0dp" | |
android:layout_height="@dimen/_20dp" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintTop_toTopOf="parent" | |
app:srcCompat="@drawable/ic_bell" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
<androidx.appcompat.widget.Toolbar | |
android:id="@+id/main_toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="?attr/actionBarSize" | |
android:layout_gravity="bottom" | |
app:layout_collapseMode="pin" | |
app:contentInsetStart="0dp" | |
app:contentInsetLeft="0dp" | |
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<!-- Search Edit Text --> | |
<EditText | |
android:id="@+id/et_search_dashboard" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="@dimen/_25dp" | |
android:layout_marginTop="8dp" | |
android:layout_marginEnd="@dimen/_25dp" | |
android:layout_marginBottom="8dp" | |
android:background="@drawable/edit_text_background" | |
android:focusable="auto" | |
android:hint="@string/search_or_type_web_address" | |
android:imeOptions="actionSearch" | |
android:inputType="textNoSuggestions" | |
android:maxLines="1" | |
android:paddingStart="@dimen/_20dp" | |
android:paddingTop="@dimen/_10dp" | |
android:paddingEnd="@dimen/_35dp" | |
android:paddingBottom="@dimen/_10dp" | |
android:textColor="@android:color/black" | |
android:textSize="15sp" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<!-- Voice Search --> | |
<ImageView | |
android:id="@+id/iv_voice_search_dashboard" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="@dimen/_5dp" | |
android:padding="@dimen/_5dp" | |
android:visibility="visible" | |
app:layout_constraintBottom_toBottomOf="@+id/et_search_dashboard" | |
app:layout_constraintEnd_toEndOf="@+id/et_search_dashboard" | |
app:layout_constraintTop_toTopOf="@+id/et_search_dashboard" | |
app:srcCompat="@drawable/ic_mic_black" /> | |
<!-- Clear Search Box --> | |
<ImageView | |
android:id="@+id/iv_clear_search_dashboard" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="@dimen/_5dp" | |
android:padding="@dimen/_5dp" | |
android:tint="@color/black" | |
android:visibility="gone" | |
app:layout_constraintBottom_toBottomOf="@+id/et_search_dashboard" | |
app:layout_constraintEnd_toEndOf="@+id/et_search_dashboard" | |
app:layout_constraintTop_toTopOf="@+id/et_search_dashboard" | |
app:srcCompat="@drawable/ic_cross_btn" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
</androidx.appcompat.widget.Toolbar> | |
</com.google.android.material.appbar.CollapsingToolbarLayout> | |
</com.google.android.material.appbar.AppBarLayout> | |
</layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment