ariane/app/src/main/res/layout/activity_tva.xml

123 lines
5.5 KiB
XML
Raw Normal View History

2020-08-15 14:52:27 +00:00
<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"
2020-08-16 21:30:24 +00:00
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/address_bar"
android:layout_width="match_parent"
2020-08-15 14:52:27 +00:00
android:layout_height="wrap_content"
2020-08-16 21:30:24 +00:00
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:inputType="textNoSuggestions|textUri"
android:singleLine="true"
android:textSize="14sp"
android:imeOptions="actionGo"
2020-08-20 14:57:38 +00:00
android:hint="@string/main_input_hint"/>
2020-08-16 21:30:24 +00:00
<FrameLayout
2020-08-16 21:30:24 +00:00
android:id="@+id/tabs"
android:layout_width="20dp"
android:layout_height="20dp"
2020-08-16 21:30:24 +00:00
android:layout_toLeftOf="@+id/more"
android:layout_centerVertical="true"
android:layout_margin="@dimen/button_margin"
android:background="@drawable/drawable_rounded_rect"
android:foreground="?android:attr/selectableItemBackgroundBorderless">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tab_count"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:textColor="?attr/colorControlNormal"
android:textSize="12dp"
android:text="1"/>
</FrameLayout>
2020-08-16 21:30:24 +00:00
<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" />
2020-08-15 14:52:27 +00:00
2020-08-16 21:30:24 +00:00
</RelativeLayout>
<ProgressBar
android:id="@+id/progress_bar"
2020-08-15 14:52:27 +00:00
android:layout_width="match_parent"
2020-08-16 21:30:24 +00:00
android:layout_height="2dp"
android:indeterminateTint="#ffffff"
style="?android:attr/progressBarStyleHorizontal"
android:layout_below="@+id/address_bar"
android:indeterminate="true" />
2020-08-15 14:52:27 +00:00
</RelativeLayout>
2020-08-16 21:30:24 +00:00
2020-08-15 14:52:27 +00:00
</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"
2020-08-15 20:20:15 +00:00
android:clipToPadding="false"
android:paddingTop="@dimen/default_margin"
android:paddingBottom="@dimen/default_margin"
2020-08-15 14:52:27 +00:00
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</layout>