mirror of https://git.sr.ht/~oppen/ariane
96 lines
4.3 KiB
XML
96 lines
4.3 KiB
XML
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
<data>
|
|
<variable name="viewmodel" type="oppen.tva.ui.TvaViewModel" />
|
|
</data>
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
tools:context=".ui.TvaActivity">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/app_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fitsSystemWindows="true">
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
android:id="@+id/toolbar_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true"
|
|
app:contentScrim="?attr/colorPrimary"
|
|
app:layout_scrollFlags="scroll|enterAlways"
|
|
app:toolbarId="@+id/toolbar">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="@dimen/default_margin"
|
|
android:paddingBottom="@dimen/default_margin">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
android:id="@+id/home"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_margin="@dimen/button_margin"
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/vector_home" />
|
|
|
|
<androidx.appcompat.widget.AppCompatEditText
|
|
android:id="@+id/address_edit"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toRightOf="@+id/home"
|
|
android:layout_toLeftOf="@+id/tabs"
|
|
android:singleLine="true"
|
|
android:textSize="14sp"
|
|
android:imeOptions="actionGo"
|
|
android:hint="@string/gemini_protocol"/>
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
android:id="@+id/tabs"
|
|
android:layout_toLeftOf="@+id/more"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_margin="@dimen/button_margin"
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/vector_tab" />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
android:id="@+id/more"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_margin="@dimen/button_margin"
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/vector_overflow" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<!-- <androidx.appcompat.widget.Toolbar-->
|
|
<!-- android:id="@+id/toolbar"-->
|
|
<!-- android:layout_width="match_parent"-->
|
|
<!-- android:layout_height="?attr/actionBarSize"-->
|
|
<!-- app:layout_collapseMode="pin"-->
|
|
<!-- app:popupTheme="@style/AppTheme.PopupOverlay" />-->
|
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/gemtext_recycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
</layout> |