1<?xml version="1.0" encoding="utf-8"?> 2<HorizontalScrollView 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 xmlns:app="http://schemas.android.com/apk/res-auto" 5 android:id="@+id/controlBar" 6 android:layout_width="match_parent" 7 android:layout_height="wrap_content" 8 android:scrollbars="none"> 9 <LinearLayout 10 android:layout_width="wrap_content" 11 android:layout_height="wrap_content" 12 android:orientation="horizontal" 13 android:paddingLeft="4dp" 14 android:paddingRight="4dp" 15 android:paddingTop="8dp" 16 android:paddingBottom="8dp" 17 android:clipToPadding="false"> 18 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 19 android:id="@+id/renderGraphToggle" 20 style="@style/ControlBarItem" 21 app:src="@drawable/ic_chart" 22 app:text="@string/control_bar_render_graph" /> 23 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 24 android:id="@+id/warningsButton" 25 style="@style/ControlBarItem" /> 26 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 27 android:id="@+id/scaleToggle" 28 style="@style/ControlBarItem" 29 app:src="@drawable/ic_scale" 30 app:text="@string/control_bar_scale" /> 31 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 32 android:id="@+id/borderToggle" 33 style="@style/ControlBarItem" 34 app:src="@drawable/ic_device" 35 app:text="@string/control_bar_border" /> 36 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 37 android:id="@+id/backgroundColorToggle" 38 style="@style/ControlBarItem" 39 app:src="@drawable/ic_color" 40 app:text="@string/control_bar_background_color" /> 41 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 42 android:id="@+id/trimToggle" 43 style="@style/ControlBarItem" 44 app:src="@drawable/ic_content_cut" 45 app:text="@string/control_bar_trim" /> 46 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 47 android:id="@+id/speedToggle" 48 style="@style/ControlBarItem" 49 app:src="@drawable/ic_fast_forward" 50 app:text="@string/control_bar_speed" /> 51 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 52 android:id="@+id/keyPathsToggle" 53 style="@style/ControlBarItem" 54 app:src="@drawable/ic_layers" 55 app:text="@string/control_bar_key_paths" /> 56 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 57 android:id="@+id/hardwareAccelerationToggle" 58 style="@style/ControlBarItem" 59 app:src="@drawable/ic_memory" 60 app:text="@string/control_bar_hardware_acceleration" /> 61 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 62 android:id="@+id/mergePathsToggle" 63 style="@style/ControlBarItem" 64 app:src="@drawable/ic_merge_paths" 65 app:text="@string/control_bar_merge_paths" /> 66 <com.airbnb.lottie.samples.views.ControlBarItemToggleView 67 android:id="@+id/enableApplyingOpacityToLayers" 68 style="@style/ControlBarItem" 69 app:src="@drawable/ic_layers" 70 app:text="@string/control_bar_apply_opacity_to_layers" /> 71 </LinearLayout> 72</HorizontalScrollView> 73