Deleted files related to ScrollingGridTimePicker

This commit is contained in:
Phillip Hsu
2016-07-20 20:34:58 -07:00
parent a07cf222b3
commit 886f10b06c
7 changed files with 0 additions and 264 deletions
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:grid="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<!-- We have to wrap this in a merge tag or else the GridLayout
attributes won't be picked up by the GridLayout that will be
the parent of this element. -->
<TextView
style="@style/hybrid_time_picker_grid_element"
android:text="01"/>
</merge>
@@ -1,88 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- TOneverDO: Use LinearLayout because it doesn't obey LWM -->
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<!-- The advantage in defining a single layout for an element
of this grid and including it N times, instead of defining each
element N times, is code deduplication and reduction. Now, whenever
we want to make changes to how grid elements appear, all we have
to do is go to the single element's layout and make the changes,
and all the following grid elements will be changed. -->
<android.support.v7.widget.GridLayout
android:id="@+id/grid"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="20dp"
app:columnCount="4">
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
</android.support.v7.widget.GridLayout>
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?android:listDividerAlertDialog"/>
<!-- We need to distribute excess space around the child views
without scaling them because they should have a fixed width.
LinearLayout and layout_weight cannot achieve this. A passable
workaround is to use LinearLayout with Spaces of layout_weight=1
to the left and right of each view, but the view will not be
exactly centered; besides, that leads to ugly duplicate code. -->
<android.support.v7.widget.GridLayout
android:id="@+id/ampm"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:columnCount="2"
app:rowCount="1">
<include layout="@layout/content_hybrid_time_picker"/>
<include layout="@layout/content_hybrid_time_picker"/>
</android.support.v7.widget.GridLayout>
</LinearLayout>
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_anchor="@id/divider"
app:layout_anchorGravity="center"
app:fabSize="mini"
android:src="@drawable/ic_done_24dp"/>
</android.support.design.widget.CoordinatorLayout>
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="40dp"
android:textSize="@dimen/grid_element_text_size"
android:gravity="center"
android:layout_gravity="center"/>