67 lines
2.7 KiB
XML
67 lines
2.7 KiB
XML
|
<!--
|
||
|
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"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:clipChildren="false">
|
||
|
|
||
|
<com.github.ksoichiro.android.observablescrollview.TouchInterceptionFrameLayout
|
||
|
android:id="@+id/scroll_wrapper"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:clipChildren="false">
|
||
|
|
||
|
<com.github.ksoichiro.android.observablescrollview.ObservableGridView
|
||
|
android:id="@+id/scrollable"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_marginTop="@dimen/header_bar_height"
|
||
|
android:numColumns="2" />
|
||
|
|
||
|
<FrameLayout
|
||
|
android:id="@+id/header"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:clipChildren="false">
|
||
|
|
||
|
<View
|
||
|
android:id="@+id/header_background"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="@dimen/header_bar_height"
|
||
|
android:background="@color/primary"
|
||
|
android:minHeight="@dimen/header_bar_height" />
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/header_bar"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="@dimen/header_bar_height"
|
||
|
android:minHeight="@dimen/header_bar_height"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/title"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="@dimen/action_bar_size"
|
||
|
android:ellipsize="end"
|
||
|
android:gravity="center_vertical"
|
||
|
android:maxLines="1"
|
||
|
android:textColor="@android:color/white"
|
||
|
android:textSize="20sp" />
|
||
|
</LinearLayout>
|
||
|
</FrameLayout>
|
||
|
</com.github.ksoichiro.android.observablescrollview.TouchInterceptionFrameLayout>
|
||
|
</FrameLayout>
|