|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + xmlns:tools="http://schemas.android.com/tools" |
| 5 | + android:id="@+id/stopwatch_fragment" |
| 6 | + android:layout_width="match_parent" |
| 7 | + android:layout_height="match_parent" |
| 8 | + android:animateLayoutChanges="true"> |
| 9 | + |
| 10 | + <org.fossify.clock.views.AutoFitTextView |
| 11 | + android:id="@+id/stopwatch_time" |
| 12 | + android:layout_width="0dp" |
| 13 | + android:layout_height="wrap_content" |
| 14 | + android:autoSizeMaxTextSize="@dimen/stopwatch_text_size" |
| 15 | + android:autoSizeMinTextSize="@dimen/extra_big_text_size" |
| 16 | + android:autoSizeStepGranularity="2sp" |
| 17 | + android:autoSizeTextType="uniform" |
| 18 | + android:background="?attr/selectableItemBackground" |
| 19 | + android:fontFeatureSettings="tnum" |
| 20 | + android:gravity="center_horizontal" |
| 21 | + android:includeFontPadding="false" |
| 22 | + android:maxLines="1" |
| 23 | + android:padding="@dimen/small_margin" |
| 24 | + android:textSize="@dimen/stopwatch_text_size" |
| 25 | + app:layout_constraintBottom_toBottomOf="parent" |
| 26 | + app:layout_constraintEnd_toStartOf="@id/stopwatch_list" |
| 27 | + app:layout_constraintStart_toStartOf="parent" |
| 28 | + app:layout_constraintTop_toTopOf="parent" |
| 29 | + tools:text="01:30:00" /> |
| 30 | + |
| 31 | + <androidx.constraintlayout.widget.ConstraintLayout |
| 32 | + android:id="@+id/stopwatch_sorting_indicators_holder" |
| 33 | + android:layout_width="wrap_content" |
| 34 | + android:layout_height="wrap_content" |
| 35 | + android:layout_marginTop="@dimen/small_margin" |
| 36 | + android:visibility="invisible" |
| 37 | + app:layout_constraintBottom_toTopOf="@id/stopwatch_list" |
| 38 | + app:layout_constraintEnd_toEndOf="@id/stopwatch_list" |
| 39 | + app:layout_constraintStart_toStartOf="@id/stopwatch_list" |
| 40 | + app:layout_constraintTop_toTopOf="parent" |
| 41 | + tools:visibility="visible"> |
| 42 | + |
| 43 | + <ImageView |
| 44 | + android:id="@+id/stopwatch_sorting_indicator_1" |
| 45 | + android:layout_width="@dimen/lap_time_size" |
| 46 | + android:layout_height="wrap_content" |
| 47 | + android:visibility="invisible" |
| 48 | + app:layout_constraintEnd_toStartOf="@+id/stopwatch_sorting_indicator_2" |
| 49 | + app:layout_constraintHorizontal_chainStyle="packed" |
| 50 | + app:layout_constraintStart_toStartOf="parent" /> |
| 51 | + |
| 52 | + <ImageView |
| 53 | + android:id="@+id/stopwatch_sorting_indicator_2" |
| 54 | + android:layout_width="@dimen/lap_time_size" |
| 55 | + android:layout_height="wrap_content" |
| 56 | + android:visibility="invisible" |
| 57 | + app:layout_constraintEnd_toStartOf="@+id/stopwatch_sorting_indicator_3" |
| 58 | + app:layout_constraintStart_toEndOf="@+id/stopwatch_sorting_indicator_1" |
| 59 | + app:layout_constraintTop_toTopOf="parent" /> |
| 60 | + |
| 61 | + <ImageView |
| 62 | + android:id="@+id/stopwatch_sorting_indicator_3" |
| 63 | + android:layout_width="@dimen/lap_time_size" |
| 64 | + android:layout_height="wrap_content" |
| 65 | + android:visibility="invisible" |
| 66 | + app:layout_constraintEnd_toEndOf="parent" |
| 67 | + app:layout_constraintStart_toEndOf="@+id/stopwatch_sorting_indicator_2" |
| 68 | + app:layout_constraintTop_toTopOf="parent" /> |
| 69 | + |
| 70 | + </androidx.constraintlayout.widget.ConstraintLayout> |
| 71 | + |
| 72 | + <org.fossify.commons.views.MyRecyclerView |
| 73 | + android:id="@+id/stopwatch_list" |
| 74 | + android:layout_width="0dp" |
| 75 | + android:layout_height="0dp" |
| 76 | + android:layout_marginEnd="@dimen/section_margin" |
| 77 | + android:layout_marginBottom="@dimen/medium_margin" |
| 78 | + android:clipToPadding="false" |
| 79 | + android:overScrollMode="ifContentScrolls" |
| 80 | + android:scrollbars="vertical" |
| 81 | + android:visibility="gone" |
| 82 | + app:layoutManager="org.fossify.commons.views.MyLinearLayoutManager" |
| 83 | + app:layout_constraintBottom_toBottomOf="parent" |
| 84 | + app:layout_constraintEnd_toStartOf="@id/stopwatch_play_pause" |
| 85 | + app:layout_constraintStart_toEndOf="@id/stopwatch_time" |
| 86 | + app:layout_constraintTop_toBottomOf="@+id/stopwatch_sorting_indicators_holder" |
| 87 | + tools:itemCount="18" |
| 88 | + tools:listitem="@layout/item_lap" |
| 89 | + tools:visibility="visible" /> |
| 90 | + |
| 91 | + <ImageView |
| 92 | + android:id="@+id/stopwatch_play_pause" |
| 93 | + android:layout_width="@dimen/stopwatch_button_size" |
| 94 | + android:layout_height="@dimen/stopwatch_button_size" |
| 95 | + android:layout_marginEnd="@dimen/section_margin" |
| 96 | + android:padding="@dimen/activity_margin" |
| 97 | + android:src="@drawable/ic_play_vector" |
| 98 | + app:layout_constraintBottom_toBottomOf="parent" |
| 99 | + app:layout_constraintEnd_toEndOf="parent" |
| 100 | + app:layout_constraintStart_toEndOf="@id/stopwatch_list" |
| 101 | + app:layout_constraintTop_toTopOf="parent" /> |
| 102 | + |
| 103 | + <ImageView |
| 104 | + android:id="@+id/stopwatch_reset" |
| 105 | + android:layout_width="@dimen/stopwatch_button_small_size" |
| 106 | + android:layout_height="@dimen/stopwatch_button_small_size" |
| 107 | + android:background="?attr/selectableItemBackgroundBorderless" |
| 108 | + android:padding="@dimen/normal_margin" |
| 109 | + android:src="@drawable/ic_reset_vector" |
| 110 | + android:visibility="gone" |
| 111 | + app:layout_constraintBottom_toBottomOf="parent" |
| 112 | + app:layout_constraintEnd_toEndOf="@id/stopwatch_play_pause" |
| 113 | + app:layout_constraintStart_toStartOf="@id/stopwatch_play_pause" |
| 114 | + app:layout_constraintTop_toBottomOf="@id/stopwatch_play_pause" |
| 115 | + tools:visibility="visible" /> |
| 116 | + |
| 117 | + <ImageView |
| 118 | + android:id="@+id/stopwatch_lap" |
| 119 | + android:layout_width="@dimen/stopwatch_button_small_size" |
| 120 | + android:layout_height="@dimen/stopwatch_button_small_size" |
| 121 | + android:background="?attr/selectableItemBackgroundBorderless" |
| 122 | + android:contentDescription="@string/lap" |
| 123 | + android:padding="@dimen/normal_margin" |
| 124 | + android:src="@drawable/ic_stopwatch_vector" |
| 125 | + android:visibility="gone" |
| 126 | + app:layout_constraintBottom_toTopOf="@id/stopwatch_play_pause" |
| 127 | + app:layout_constraintEnd_toEndOf="@id/stopwatch_play_pause" |
| 128 | + app:layout_constraintStart_toStartOf="@id/stopwatch_play_pause" |
| 129 | + app:layout_constraintTop_toTopOf="parent" |
| 130 | + tools:visibility="visible" /> |
| 131 | + |
| 132 | +</androidx.constraintlayout.widget.ConstraintLayout> |
| 133 | + |
0 commit comments