Files
Clockplus/app/src/main/res/layout-land/fragment_stopwatch.xml
T
2016-09-29 03:02:33 -07:00

83 lines
3.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2016 Phillip Hsu
~
~ 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.
-->
<android.support.design.widget.CoordinatorLayout
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">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:layout_above="@+id/mini_fab_layout">
<com.philliphsu.clock2.stopwatch.ui.ChronometerWithMillis
android:id="@+id/chronometer"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
style="@style/Stopwatch"/>
<!--
- Unfortunately, we can't include fragment_recycler_view
- because we don't want the bottom padding
-->
<android.support.v7.widget.RecyclerView
android:id="@+id/list"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:layout_marginTop="@dimen/laps_container_margin_top"/>
</LinearLayout>
<android.support.v7.widget.GridLayout
android:id="@id/mini_fab_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/fab_total_height"
android:layout_alignParentBottom="true"
app:columnCount="3">
<ImageButton
android:id="@+id/new_lap"
style="@style/AddLapButton"/>
<Space app:layout_columnWeight="1"
app:layout_gravity="center"/> <!--Necessary to get correct spacing-->
<ImageButton
android:id="@+id/stop"
style="@style/StopButton"/>
</android.support.v7.widget.GridLayout>
</RelativeLayout>
<com.philliphsu.clock2.UntouchableSeekBar
android:id="@+id/seek_bar"
app:layout_anchor="@id/mini_fab_layout"
app:layout_anchorGravity="top"
style="@style/BaseSeekBar"/>
</android.support.design.widget.CoordinatorLayout>