1<?xml version="1.0" encoding="utf-8"?> 2<FrameLayout 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 xmlns:app="http://schemas.android.com/apk/res-auto" 5 android:id="@+id/speedContainer" 6 android:layout_width="match_parent" 7 android:layout_height="wrap_content" 8 android:visibility="gone"> 9 10 <LinearLayout 11 android:id="@+id/speedButtonsContainer" 12 android:layout_width="wrap_content" 13 android:layout_height="wrap_content" 14 android:clipToPadding="false" 15 android:orientation="horizontal" 16 android:paddingBottom="8dp" 17 android:paddingLeft="4dp" 18 android:paddingTop="8dp"> 19 20 <View 21 android:layout_width="0dp" 22 android:layout_height="0dp" 23 android:layout_weight="0.5"/> 24 25 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 26 style="@style/SpeedItem" 27 app:text="@string/minus_one_x"/> 28 29 <View 30 android:layout_width="0dp" 31 android:layout_height="0dp" 32 android:layout_weight="1"/> 33 34 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 35 style="@style/SpeedItem" 36 app:text="@string/minus_half_x"/> 37 38 <View 39 android:layout_width="0dp" 40 android:layout_height="0dp" 41 android:layout_weight="1"/> 42 43 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 44 style="@style/SpeedItem" 45 app:text="@string/half_x"/> 46 47 <View 48 android:layout_width="0dp" 49 android:layout_height="0dp" 50 android:layout_weight="1"/> 51 52 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 53 style="@style/SpeedItem" 54 app:text="@string/one_x"/> 55 56 <View 57 android:layout_width="0dp" 58 android:layout_height="0dp" 59 android:layout_weight="1"/> 60 61 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 62 style="@style/SpeedItem" 63 app:text="@string/two_x"/> 64 65 <View 66 android:layout_width="0dp" 67 android:layout_height="0dp" 68 android:layout_weight="0.5"/> 69 70 <ImageButton 71 android:id="@+id/closeSpeedButton" 72 android:layout_width="32dp" 73 android:layout_height="32dp" 74 android:layout_marginRight="16dp" 75 android:background="?attr/selectableItemBackgroundBorderless" 76 app:srcCompat="@drawable/ic_close"/> 77 </LinearLayout> 78 79 <View 80 android:layout_width="match_parent" 81 android:layout_height="@dimen/divider_height" 82 android:layout_gravity="bottom" 83 android:background="@color/divider"/> 84</FrameLayout> 85