aboutsummaryrefslogblamecommitdiff
path: root/app/src/main/res/layout/app_bar_main.xml
blob: 9c1dfa84480a34c0766cf9fe1c502d3ab804cc1a (plain) (tree)
1
2
3
4
5
6
7
8
9
                                      
                                                                                                               





                                                                      
                                                    



                                                      

                                                                
                                               
















                                                                
 
                                                      
 







                                                           

                                             
                                                      
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="ml.docilealligator.infinityforreddit.MainActivity">

    <com.google.android.material.appbar.AppBarLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:theme="@style/AppTheme.AppBarOverlay">

        <FrameLayout
            android:id="@+id/toolbar_frame_layout_main_activity"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <androidx.appcompat.widget.Toolbar
                android:id="@+id/toolbar"
                android:layout_width="match_parent"
                android:layout_height="?attr/actionBarSize"
                android:background="?attr/colorPrimary"
                app:popupTheme="@style/AppTheme.PopupOverlay" />

            <com.ferfalk.simplesearchview.SimpleSearchView
                android:id="@+id/search_view_main_activity"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:textColor="@android:color/white"
                app:voiceSearch="true"/>

        </FrameLayout>

    </com.google.android.material.appbar.AppBarLayout>

    <View
        android:id="@+id/transparent_overlay_main_activity"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="#40000000"
        android:elevation="1dp"
        android:visibility="gone"/>

    <include layout="@layout/content_main" />

</androidx.coordinatorlayout.widget.CoordinatorLayout>