| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright 2024 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. |
| --> |
| |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:id="@+id/terminal_container" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:fitsSystemWindows="true" |
| tools:context=".MainActivity"> |
| |
| <HorizontalScrollView |
| android:id="@+id/tab_scrollview" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignParentStart="true" |
| android:layout_alignParentTop="true" |
| android:layout_toStartOf="@id/menu_container" |
| android:scrollbars="none"> |
| |
| <LinearLayout |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal"> |
| |
| <com.google.android.material.tabs.TabLayout |
| android:id="@+id/tab_layout" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:elevation="0dp" |
| app:tabIndicator="@drawable/background_tabitem_selected" |
| app:tabIndicatorColor="@color/material_on_surface_stroke" |
| app:tabRippleColor="@null" |
| app:tabIndicatorHeight="48dp" |
| app:tabPaddingStart="0dp" |
| app:tabPaddingEnd="0dp"/> |
| |
| <Button |
| android:id="@+id/tab_add_button" |
| style="?attr/materialIconButtonStyle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:enabled="false" |
| app:icon="@drawable/ic_add" /> |
| </LinearLayout> |
| </HorizontalScrollView> |
| |
| <LinearLayout |
| android:id="@+id/menu_container" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentTop="true" |
| android:layout_alignParentEnd="true" |
| android:orientation="horizontal"> |
| <Button |
| android:id="@+id/settings_button" |
| style="?attr/materialIconButtonStyle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| app:icon="@drawable/ic_settings" /> |
| <Button |
| android:id="@+id/display_button" |
| style="?attr/materialIconButtonStyle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:visibility="gone" |
| app:icon="@drawable/ic_display" /> |
| </LinearLayout> |
| |
| |
| <androidx.viewpager2.widget.ViewPager2 |
| android:id="@+id/pager" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_alignParentStart="true" |
| android:layout_above="@+id/modifier_keys_container" |
| android:layout_below="@id/menu_container"/> |
| |
| <LinearLayout |
| android:id="@+id/modifier_keys_container" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignParentBottom="true" |
| android:layout_alignParentStart="true" |
| android:orientation="vertical"/> |
| </RelativeLayout> |