blob: 84d64b9c4894adb60bafa0383131c2bac3b328e8 [file] [log] [blame]
<!--
~ Copyright (C) 2014 The Android Open Source Project
~
~ 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
-->
<!-- Extends FrameLayout -->
<com.android.systemui.statusbar.SpeedBumpView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="true"
android:clickable="true"
android:visibility="gone"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/speed_bump_height_collapsed"
android:layout_gravity="top"
android:orientation="horizontal">
<com.android.systemui.statusbar.AlphaOptimizedView
android:id="@+id/speedbump_line_left"
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1"
android:background="#6fdddddd"
android:layout_gravity="center_vertical"/>
<com.android.systemui.statusbar.SpeedBumpDotsLayout
android:id="@+id/speed_bump_dots_layout"
android:layout_width="34dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_height="match_parent"
android:layout_weight="0"/>
<com.android.systemui.statusbar.AlphaOptimizedView
android:id="@+id/speedbump_line_right"
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1"
android:background="#6fdddddd"
android:layout_gravity="center_vertical"/>
</LinearLayout>
<TextView
android:id="@+id/speed_bump_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|center_horizontal"
android:fontFamily="sans-serif-condensed"
android:textSize="15sp"
android:singleLine="true"
android:textColor="#eeeeee"
android:visibility="invisible"
android:text="@string/speed_bump_explanation"
android:paddingTop="4dp" />
</com.android.systemui.statusbar.SpeedBumpView>