102 lines
5.1 KiB
XML
102 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<data>
|
|
<variable
|
|
name="self"
|
|
type="com.github.kr328.clash.design.LogcatDesign" />
|
|
<variable
|
|
name="streaming"
|
|
type="boolean" />
|
|
<import type="android.view.View" />
|
|
<import type="com.github.kr328.clash.design.LogcatDesign.Request" />
|
|
</data>
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingStart="@{self.surface.insets.start}"
|
|
android:paddingEnd="@{self.surface.insets.end}">
|
|
|
|
<com.github.kr328.clash.design.view.AppRecyclerView
|
|
android:id="@+id/recycler_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipToPadding="false"
|
|
android:paddingTop="@{(float) self.surface.insets.top + @dimen/toolbar_height}"
|
|
android:paddingBottom="@{self.surface.insets.bottom}" />
|
|
|
|
<com.github.kr328.clash.design.view.ActivityBarLayout
|
|
android:id="@+id/activity_bar_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="@{self.surface.insets.top}">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingEnd="@dimen/item_tailing_margin">
|
|
|
|
<include
|
|
layout="@layout/common_activity_bar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_toStartOf="@id/action_layout" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/action_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="@{streaming ? View.GONE : View.VISIBLE}">
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/item_tailing_component_size"
|
|
android:layout_height="@dimen/item_tailing_component_size"
|
|
android:layout_marginStart="@dimen/item_tailing_margin"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:clickable="true"
|
|
android:contentDescription="@string/delete"
|
|
android:focusable="true"
|
|
android:onClick="@{() -> self.requests.offer(Request.Delete)}"
|
|
android:padding="@dimen/toolbar_image_action_padding"
|
|
android:src="@drawable/ic_baseline_delete" />
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/item_tailing_component_size"
|
|
android:layout_height="@dimen/item_tailing_component_size"
|
|
android:layout_marginStart="@dimen/item_tailing_margin"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:clickable="true"
|
|
android:contentDescription="@string/export"
|
|
android:focusable="true"
|
|
android:onClick="@{() -> self.requests.offer(Request.Export)}"
|
|
android:padding="@dimen/toolbar_image_action_padding"
|
|
android:src="@drawable/ic_baseline_publish" />
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/item_tailing_component_size"
|
|
android:layout_height="@dimen/item_tailing_component_size"
|
|
android:layout_gravity="end"
|
|
android:layout_marginStart="@dimen/item_tailing_margin"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:clickable="true"
|
|
android:contentDescription="@string/close"
|
|
android:focusable="true"
|
|
android:onClick="@{() -> self.requests.offer(Request.Close)}"
|
|
android:padding="@dimen/toolbar_image_action_padding"
|
|
android:src="@drawable/ic_baseline_stop"
|
|
android:visibility="@{streaming ? View.VISIBLE : View.GONE}" />
|
|
</FrameLayout>
|
|
|
|
</RelativeLayout>
|
|
</com.github.kr328.clash.design.view.ActivityBarLayout>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
</layout> |