1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright 2024 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 17<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 xmlns:tools="http://schemas.android.com/tools" 20 android:id="@+id/terminal_container" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:fitsSystemWindows="true" 24 tools:context=".MainActivity"> 25 26 <HorizontalScrollView 27 android:id="@+id/tab_scrollview" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:layout_alignParentStart="true" 31 android:layout_alignParentTop="true" 32 android:layout_toStartOf="@id/menu_container" 33 android:scrollbars="none"> 34 35 <LinearLayout 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:orientation="horizontal"> 39 40 <com.google.android.material.tabs.TabLayout 41 android:id="@+id/tab_layout" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:elevation="0dp" 45 app:tabIndicator="@drawable/background_tabitem_selected" 46 app:tabIndicatorColor="@color/material_on_surface_stroke" 47 app:tabRippleColor="@null" 48 app:tabIndicatorHeight="48dp" 49 app:tabPaddingStart="0dp" 50 app:tabPaddingEnd="0dp"/> 51 52 <Button 53 android:id="@+id/tab_add_button" 54 style="?attr/materialIconButtonStyle" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:enabled="false" 58 app:icon="@drawable/ic_add" /> 59 </LinearLayout> 60 </HorizontalScrollView> 61 62 <LinearLayout 63 android:id="@+id/menu_container" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:layout_alignParentTop="true" 67 android:layout_alignParentEnd="true" 68 android:orientation="horizontal"> 69 <Button 70 android:id="@+id/settings_button" 71 style="?attr/materialIconButtonStyle" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 app:icon="@drawable/ic_settings" /> 75 <Button 76 android:id="@+id/display_button" 77 style="?attr/materialIconButtonStyle" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:visibility="gone" 81 app:icon="@drawable/ic_display" /> 82 </LinearLayout> 83 84 85 <androidx.viewpager2.widget.ViewPager2 86 android:id="@+id/pager" 87 android:layout_width="match_parent" 88 android:layout_height="match_parent" 89 android:layout_alignParentStart="true" 90 android:layout_above="@+id/modifier_keys_container" 91 android:layout_below="@id/menu_container"/> 92 93 <LinearLayout 94 android:id="@+id/modifier_keys_container" 95 android:layout_width="match_parent" 96 android:layout_height="wrap_content" 97 android:layout_alignParentBottom="true" 98 android:layout_alignParentStart="true" 99 android:orientation="vertical"/> 100</RelativeLayout> 101