Created
September 12, 2019 13:16
-
-
Save abhishekhugetech/34da7722b582484eb46c968013104659 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:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
xmlns:android="http://schemas.android.com/apk/res/android"> | |
<data> | |
</data> | |
<androidx.coordinatorlayout.widget.CoordinatorLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/white" | |
android:fitsSystemWindows="true" | |
tools:context="com.magtapp.ui.new_dashboard.home_tab.HomeTabFragment"> | |
<!-- Dummy item to prevent AutoCompleteTextView from receiving focus --> | |
<LinearLayout | |
android:layout_width="0px" | |
android:layout_height="0px" | |
android:focusable="true" | |
android:focusableInTouchMode="true" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" | |
tools:ignore="UselessLeaf" /> | |
<include | |
android:id="@+id/toolbar_container" | |
layout="@layout/toolbar_main" /> | |
<androidx.core.widget.NestedScrollView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:scrollbars="none" | |
android:id="@+id/nsv_home_frag" | |
android:overScrollMode="never" | |
android:fillViewport="true" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior"> | |
<!-- | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:id="@+id/cl_search_box_holder" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_marginStart="@dimen/_3dp" | |
android:layout_marginTop="@dimen/_10dp" | |
android:layout_marginEnd="@dimen/_3dp" | |
android:background="@color/white" | |
android:orientation="vertical" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="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" /> | |
<View | |
android:id="@+id/most_visited_sites" | |
android:layout_width="match_parent" | |
android:layout_height="700dp" | |
android:layout_marginTop="@dimen/_10dp" | |
android:background="@color/white" | |
android:orientation="vertical" | |
android:visibility="gone" | |
app:layout_constraintEnd_toEndOf="@id/et_search_dashboard" | |
app:layout_constraintStart_toStartOf="@id/et_search_dashboard" | |
app:layout_constraintTop_toBottomOf="@id/et_search_dashboard" /> | |
<!– Search Result ListView –> | |
<ListView | |
android:id="@+id/lv_search_result_dashboard" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="@dimen/_10dp" | |
android:visibility="gone" | |
app:layout_constraintEnd_toEndOf="@id/et_search_dashboard" | |
app:layout_constraintStart_toStartOf="@id/et_search_dashboard" | |
app:layout_constraintTop_toBottomOf="@id/et_search_dashboard" | |
tools:listitem="@layout/browser_search_suggestion_history" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
<!– MagDoc Action TextView –> | |
<TextView | |
android:id="@+id/tv_mag_doc_dashboard" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="16dp" | |
android:layout_marginTop="16dp" | |
android:layout_weight="1" | |
android:drawableTop="@drawable/ic_files_icon" | |
android:drawablePadding="@dimen/_5dp" | |
android:gravity="center" | |
android:text="@string/mag_docs" | |
android:textColor="@color/black" | |
app:layout_constraintEnd_toStartOf="@+id/tv_mag_games" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@+id/cl_search_box_holder" /> | |
<!– MagQuest Action TextView –> | |
<TextView | |
android:id="@+id/tv_mag_games" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:drawableTop="@drawable/ic_trophy" | |
android:drawablePadding="@dimen/_5dp" | |
android:gravity="center" | |
android:text="@string/games" | |
android:textColor="@color/black" | |
app:layout_constraintBottom_toBottomOf="@+id/tv_mag_doc_dashboard" | |
app:layout_constraintEnd_toStartOf="@+id/tv_mag_note_dashboard" | |
app:layout_constraintStart_toEndOf="@+id/tv_mag_doc_dashboard" | |
app:layout_constraintTop_toTopOf="@+id/tv_mag_doc_dashboard" /> | |
<!– MagNote Action TextView –> | |
<TextView | |
android:id="@+id/tv_mag_note_dashboard" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:drawableTop="@drawable/ic_notes_icon" | |
android:drawablePadding="@dimen/_5dp" | |
android:gravity="center" | |
android:text="@string/notes" | |
android:textColor="@color/black" | |
app:layout_constraintBottom_toBottomOf="@+id/tv_mag_games" | |
app:layout_constraintEnd_toStartOf="@+id/tv_mag_saved_dashboard" | |
app:layout_constraintStart_toEndOf="@+id/tv_mag_games" | |
app:layout_constraintTop_toTopOf="@+id/tv_mag_games" /> | |
<!– MagSaved Action TextView –> | |
<TextView | |
android:id="@+id/tv_mag_saved_dashboard" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="16dp" | |
android:layout_weight="1" | |
android:drawableTop="@drawable/ic_saved_home_icon" | |
android:drawablePadding="@dimen/_5dp" | |
android:gravity="center" | |
android:text="@string/saves" | |
android:textColor="@color/black" | |
app:layout_constraintBottom_toBottomOf="@+id/tv_mag_note_dashboard" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toEndOf="@+id/tv_mag_note_dashboard" | |
app:layout_constraintTop_toTopOf="@+id/tv_mag_note_dashboard" /> | |
<!– Exclusive For You Label –> | |
<TextView | |
android:id="@+id/tv_exclusive4u_label_dashboard" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="@dimen/_16dp" | |
android:layout_marginTop="24dp" | |
android:layout_marginEnd="@dimen/_8dp" | |
android:text="Exclusive For You" | |
android:textColor="@color/black" | |
android:textSize="14sp" | |
app:layout_constraintEnd_toStartOf="@+id/showInterests" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@+id/tv_mag_doc_dashboard" /> | |
<!– Expand Category Icon –> | |
<ImageView | |
android:id="@+id/showInterests" | |
android:layout_width="wrap_content" | |
android:layout_height="0dp" | |
android:layout_marginEnd="@dimen/_16dp" | |
android:layout_marginRight="@dimen/_16dp" | |
android:paddingLeft="@dimen/_10dp" | |
android:paddingRight="@dimen/_10dp" | |
app:layout_constraintBottom_toBottomOf="@+id/tv_exclusive4u_label_dashboard" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintTop_toTopOf="@+id/tv_exclusive4u_label_dashboard" | |
app:srcCompat="@drawable/ic_angle_arrow_down" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="8dp" | |
android:layout_marginRight="8dp" | |
android:text="Turn on interest" | |
android:textColor="#0070CD" | |
android:visibility="gone" | |
app:layout_constraintBottom_toBottomOf="@+id/showInterests" | |
app:layout_constraintEnd_toStartOf="@+id/showInterests" | |
app:layout_constraintTop_toTopOf="@+id/showInterests" />--> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
> | |
<ListView | |
android:id="@+id/lv_search_result_dashboard" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:visibility="gone" | |
tools:listitem="@layout/browser_search_suggestion_history" /> | |
<!-- <TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:textSize="@dimen/_25dp" | |
android:text="@string/fake_" | |
/>--> | |
<!-- News List RecyclerView --> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
> | |
<TextView | |
android:id="@+id/tv_mag_doc_dashboard" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="16dp" | |
android:layout_marginTop="@dimen/_50dp" | |
android:drawableTop="@drawable/ic_files_icon" | |
android:drawablePadding="@dimen/_5dp" | |
android:gravity="center" | |
android:paddingStart="@dimen/_15dp" | |
android:paddingEnd="@dimen/_15dp" | |
android:text="@string/mag_docs" | |
android:textColor="@color/black" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<!-- MagQuest Action TextView --> | |
<TextView | |
android:id="@+id/tv_mag_games" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:drawableTop="@drawable/ic_trophy" | |
android:drawablePadding="@dimen/_5dp" | |
android:gravity="center" | |
android:text="@string/games" | |
android:textColor="@color/black" | |
app:layout_constraintBottom_toBottomOf="@+id/tv_mag_doc_dashboard" | |
app:layout_constraintEnd_toStartOf="@+id/tv_mag_note_dashboard" | |
app:layout_constraintStart_toEndOf="@+id/tv_mag_doc_dashboard" | |
app:layout_constraintTop_toTopOf="@+id/tv_mag_doc_dashboard" /> | |
<!-- MagNote Action TextView --> | |
<TextView | |
android:id="@+id/tv_mag_note_dashboard" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:drawableTop="@drawable/ic_notes_icon" | |
android:drawablePadding="@dimen/_5dp" | |
android:gravity="center" | |
android:text="@string/notes" | |
android:textColor="@color/black" | |
app:layout_constraintBottom_toBottomOf="@+id/tv_mag_games" | |
app:layout_constraintEnd_toStartOf="@+id/tv_mag_saved_dashboard" | |
app:layout_constraintStart_toEndOf="@+id/tv_mag_games" | |
app:layout_constraintTop_toTopOf="@+id/tv_mag_games" /> | |
<!-- MagSaved Action TextView --> | |
<TextView | |
android:id="@+id/tv_mag_saved_dashboard" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="16dp" | |
android:drawableTop="@drawable/ic_saved_home_icon" | |
android:drawablePadding="@dimen/_5dp" | |
android:gravity="center" | |
android:text="@string/saves" | |
android:textColor="@color/black" | |
app:layout_constraintBottom_toBottomOf="@+id/tv_mag_note_dashboard" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toEndOf="@+id/tv_mag_note_dashboard" | |
app:layout_constraintTop_toTopOf="@+id/tv_mag_note_dashboard" /> | |
<!-- Exclusive For You Label --> | |
<TextView | |
android:id="@+id/tv_exclusive4u_label_dashboard" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="@dimen/_16dp" | |
android:layout_marginEnd="@dimen/_8dp" | |
android:layout_marginTop="@dimen/_35dp" | |
android:text="Exclusive For You" | |
android:textColor="@color/black" | |
android:textSize="14sp" | |
app:layout_constraintEnd_toStartOf="@+id/showInterests" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@+id/tv_mag_doc_dashboard" /> | |
<!-- Expand Category Icon --> | |
<ImageView | |
android:id="@+id/showInterests" | |
android:layout_width="wrap_content" | |
android:layout_height="0dp" | |
android:layout_marginEnd="@dimen/_16dp" | |
android:layout_marginRight="@dimen/_16dp" | |
android:paddingLeft="@dimen/_10dp" | |
android:paddingRight="@dimen/_10dp" | |
app:layout_constraintBottom_toBottomOf="@+id/tv_exclusive4u_label_dashboard" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintTop_toTopOf="@+id/tv_exclusive4u_label_dashboard" | |
app:srcCompat="@drawable/ic_angle_arrow_down" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="8dp" | |
android:layout_marginRight="8dp" | |
android:text="Turn on interest" | |
android:textColor="#0070CD" | |
android:visibility="gone" | |
app:layout_constraintBottom_toBottomOf="@+id/showInterests" | |
app:layout_constraintEnd_toStartOf="@+id/showInterests" | |
app:layout_constraintTop_toTopOf="@+id/showInterests" /> | |
<!-- Exclusive Category List RecyclerView --> | |
<androidx.recyclerview.widget.RecyclerView | |
android:id="@+id/rv_exclusive_category_dashbor" | |
android:layout_width="0dp" | |
android:layout_height="@dimen/_40dp" | |
android:layout_marginTop="@dimen/_10dp" | |
android:nestedScrollingEnabled="false" | |
android:scrollbars="none" | |
android:visibility="gone" | |
android:layout_marginBottom="@dimen/_8dp" | |
app:layout_constraintEnd_toEndOf="@+id/showInterests" | |
app:layout_constraintStart_toStartOf="@+id/tv_exclusive4u_label_dashboard" | |
app:layout_constraintTop_toBottomOf="@+id/tv_exclusive4u_label_dashboard" | |
tools:itemCount="5" | |
tools:listitem="@layout/row_dashboard_category" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
<androidx.recyclerview.widget.RecyclerView | |
android:id="@+id/rv_new_list_dashbor" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_marginTop="@dimen/_10dp" | |
android:paddingStart="@dimen/_5dp" | |
android:paddingEnd="@dimen/_5dp" | |
android:nestedScrollingEnabled="false" | |
android:visibility="visible" | |
tools:listitem="@layout/row_news_dashboard" | |
tools:itemCount="10" /> | |
</LinearLayout> | |
<!--Bottom navigation view for the Selection of the Tabs and Items in Menu--> | |
</androidx.core.widget.NestedScrollView> | |
<LinearLayout | |
android:id="@+id/browser_bottom_nav_view" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="@color/white" | |
android:orientation="horizontal" | |
android:layout_gravity="bottom" | |
> | |
<ImageView | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_margin="@dimen/_10dp" | |
android:layout_weight="1" | |
app:srcCompat="@drawable/ic_search" /> | |
<ImageView | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_margin="@dimen/_10dp" | |
android:layout_weight="1" | |
app:srcCompat="@drawable/ic_heart" /> | |
<ImageView | |
android:id="@+id/add_new_tab" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_margin="@dimen/_10dp" | |
android:layout_weight="1" | |
app:srcCompat="@drawable/ic_browser_new_tab" /> | |
<FrameLayout | |
android:id="@+id/showTabChanger" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" | |
android:layout_weight="1" | |
android:gravity="center"> | |
<TextView | |
android:id="@+id/showTabChangerTxt" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" | |
android:background="@drawable/ic_tabs" | |
android:gravity="center" | |
android:text="1" | |
android:textSize="13sp" | |
android:textStyle="bold" /> | |
</FrameLayout> | |
<ImageView | |
android:id="@+id/openOptionMenu" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_margin="@dimen/_10dp" | |
android:layout_weight="1" | |
app:srcCompat="@drawable/ic_more" /> | |
</LinearLayout> | |
<com.google.android.material.floatingactionbutton.FloatingActionButton | |
android:id="@+id/magtappAssistant" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
app:backgroundTint="@android:color/white" | |
app:layout_anchor="@id/nsv_home_frag" | |
app:layout_anchorGravity="bottom|right" | |
android:layout_marginBottom="?attr/actionBarSize" | |
android:layout_marginEnd="@dimen/_15dp" | |
app:srcCompat="@drawable/ic_magtapp_assistant" /> | |
</androidx.coordinatorlayout.widget.CoordinatorLayout> | |
</layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment