Dan Sandler | 45f17c5 | 2018-05-02 20:01:38 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2018 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | <com.android.egg.paint.CutoutAvoidingToolbar |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | xmlns:tools="http://schemas.android.com/tools" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="50dp" |
| 22 | android:orientation="horizontal" |
| 23 | android:gravity="left" |
| 24 | android:background="@drawable/toolbar_bg" |
| 25 | android:elevation="20dp" |
| 26 | > |
| 27 | |
| 28 | <Space |
| 29 | android:tag="cutoutLeft" |
| 30 | android:layout_width="0dp" |
| 31 | android:layout_height="match_parent" |
| 32 | /> |
| 33 | |
| 34 | <LinearLayout |
| 35 | android:layout_width="0dp" |
| 36 | android:tag="beforeCutout" |
| 37 | android:layout_height="match_parent" |
| 38 | android:orientation="horizontal" |
| 39 | android:layout_weight="1" |
| 40 | tools:ignore="UselessParent"> |
| 41 | |
| 42 | <ImageButton |
| 43 | android:id="@+id/btnBrush" |
| 44 | android:layout_width="48dp" |
| 45 | android:layout_height="match_parent" |
| 46 | android:layout_weight="1" |
| 47 | android:tint="@color/toolbar_icon_color" |
| 48 | android:background="@drawable/toolbar_button_bg" |
| 49 | /> |
| 50 | |
| 51 | <ImageButton |
| 52 | android:id="@+id/btnColor" |
| 53 | android:layout_width="48dp" |
| 54 | android:layout_height="match_parent" |
| 55 | android:layout_weight="1" |
| 56 | android:tint="@color/toolbar_icon_color" |
| 57 | android:background="@drawable/toolbar_button_bg" |
| 58 | /> |
| 59 | |
| 60 | <ImageButton |
| 61 | android:id="@+id/btnSample" |
| 62 | android:layout_width="48dp" |
| 63 | android:layout_height="match_parent" |
| 64 | android:layout_weight="1" |
| 65 | android:background="@drawable/toolbar_button_bg" |
| 66 | android:tint="@color/toolbar_icon_color" |
| 67 | android:src="@drawable/ic_dropper" /> |
| 68 | |
| 69 | </LinearLayout> |
| 70 | |
| 71 | <Space |
| 72 | android:tag="cutoutCenter" |
| 73 | android:layout_width="0dp" |
| 74 | android:layout_height="match_parent" |
| 75 | /> |
| 76 | |
| 77 | <LinearLayout |
| 78 | android:layout_width="0dp" |
| 79 | android:tag="afterCutout" |
| 80 | android:layout_height="match_parent" |
| 81 | android:orientation="horizontal" |
| 82 | android:layout_weight="1" |
| 83 | tools:ignore="UselessParent"> |
| 84 | |
| 85 | <ImageButton |
| 86 | android:id="@+id/btnZen" |
| 87 | android:layout_width="48dp" |
| 88 | android:layout_height="match_parent" |
| 89 | android:layout_weight="1" |
| 90 | android:background="@drawable/toolbar_button_bg" |
| 91 | android:tint="@color/toolbar_icon_color" |
| 92 | android:src="@drawable/ic_hourglass" /> |
| 93 | |
| 94 | <ImageButton |
| 95 | android:id="@+id/btnClear" |
| 96 | android:layout_width="48dp" |
| 97 | android:layout_height="match_parent" |
| 98 | android:layout_weight="1" |
| 99 | android:background="@drawable/toolbar_button_bg" |
| 100 | android:tint="@color/toolbar_icon_color" |
| 101 | android:src="@drawable/ic_clear" /> |
| 102 | |
| 103 | </LinearLayout> |
| 104 | |
| 105 | <Space |
| 106 | android:tag="cutoutRight" |
| 107 | android:layout_width="0dp" |
| 108 | android:layout_height="match_parent" |
| 109 | /> |
| 110 | |
| 111 | </com.android.egg.paint.CutoutAvoidingToolbar> |