59 lines
2.2 KiB
XML
Executable file
59 lines
2.2 KiB
XML
Executable file
<!--
|
|
Copyright 2014 Soichiro Kashima
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<!--
|
|
Padding for ViewPager must be set outside the ViewPager itself
|
|
because with padding, EdgeEffect of ViewPager become strange.
|
|
-->
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingTop="@dimen/tab_height">
|
|
|
|
<android.support.v4.view.ViewPager
|
|
android:id="@+id/pager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/header"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorPrimary"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorPrimary"
|
|
android:minHeight="?attr/actionBarSize"
|
|
app:popupTheme="@style/Theme.AppCompat.Light.DarkActionBar"
|
|
app:theme="@style/Toolbar" />
|
|
|
|
<com.google.samples.apps.iosched.ui.widget.SlidingTabLayout
|
|
android:id="@+id/sliding_tabs"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/tab_height"
|
|
android:background="@color/primary" />
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|