Standardize includes of toolbar (#2646)

This commit is contained in:
Adam Jones 2019-03-19 14:54:22 +00:00 committed by neslihanturan
parent adf23c257f
commit fd6c4821aa
13 changed files with 17 additions and 70 deletions

View file

@ -9,11 +9,7 @@
android:id="@+id/toolbarLayout" android:id="@+id/toolbarLayout"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="?attr/actionBarSize"> android:layout_height="?attr/actionBarSize">
<include <include layout="@layout/toolbar"/>
android:id="@+id/toolbar"
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"

View file

@ -9,11 +9,7 @@
android:id="@+id/toolbarLayout" android:id="@+id/toolbarLayout"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="?attr/actionBarSize"> android:layout_height="?attr/actionBarSize">
<include <include layout="@layout/toolbar"/>
android:id="@+id/toolbar"
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout

View file

@ -9,12 +9,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<include <include layout="@layout/toolbar"/>
android:id="@+id/toolbar"
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_scrollFlags="scroll" />
<com.google.android.material.tabs.TabLayout <com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout" android:id="@+id/tab_layout"

View file

@ -15,11 +15,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@color/primaryDarkColor"> android:background="@color/primaryDarkColor">
<include <include layout="@layout/toolbar"/>
android:id="@+id/toolbar"
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<com.google.android.material.tabs.TabLayout <com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout" android:id="@+id/tab_layout"

View file

@ -8,11 +8,7 @@
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<include <include layout="@layout/toolbar"/>
android:id="@+id/toolbar"
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -12,11 +12,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center_horizontal" android:gravity="center_horizontal"
> >
<include <include layout="@layout/toolbar"/>
android:id="@+id/toolbar"
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<com.google.android.material.tabs.TabLayout <com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout" android:id="@+id/tab_layout"

View file

@ -15,11 +15,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@color/primaryDarkColor"> android:background="@color/primaryDarkColor">
<include <include layout="@layout/toolbar"/>
android:id="@+id/toolbar"
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<com.google.android.material.tabs.TabLayout <com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout" android:id="@+id/tab_layout"

View file

@ -10,11 +10,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<include <include layout="@layout/toolbar"/>
android:id="@+id/toolbar"
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<RelativeLayout <RelativeLayout
android:id="@+id/container" android:id="@+id/container"

View file

@ -11,11 +11,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<include <include layout="@layout/toolbar"/>
android:id="@+id/toolbar"
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -5,11 +5,7 @@
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent"> android:layout_width="match_parent">
<include <include layout="@layout/toolbar"/>
android:id="@+id/toolbar"
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:layout_height="match_parent" android:layout_height="match_parent"

View file

@ -15,12 +15,8 @@
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<!-- Toolbar for viewing media --> <!-- Toolbar for viewing media -->
<include <include layout="@layout/toolbar"
android:visibility="gone" android:visibility="gone" />
android:id="@+id/toolbar"
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!--Toolbar containing search bar --> <!--Toolbar containing search bar -->
<androidx.appcompat.widget.Toolbar <androidx.appcompat.widget.Toolbar

View file

@ -10,11 +10,7 @@
android:id="@+id/toolbarLayout" android:id="@+id/toolbarLayout"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="?attr/actionBarSize"> android:layout_height="?attr/actionBarSize">
<include <include layout="@layout/toolbar" />
android:id="@+id/toolbar"
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" />
</LinearLayout> </LinearLayout>
<RelativeLayout <RelativeLayout

View file

@ -1,13 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.Toolbar <androidx.appcompat.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimaryDark"
android:fitsSystemWindows="true" android:fitsSystemWindows="true"
android:minHeight="?attr/actionBarSize" app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" />
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:background="?attr/colorPrimaryDark">
</androidx.appcompat.widget.Toolbar>