Files
lun_launcher/library/src/main/res/layout/toolbar_content.xml
T

93 lines
3.7 KiB
XML
Raw Normal View History

2024-11-11 18:12:06 +09:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/toolbarLayout"
android:layout_width="match_parent"
android:layout_height="@dimen/toolbarHeight"
android:minHeight="@dimen/toolbarHeight">
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/close"
android:layout_width="48dp"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:background="@drawable/selector_light_theme"
android:src="@drawable/close" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/back"
android:layout_width="48dp"
android:layout_height="match_parent"
android:layout_toLeftOf="@+id/centerLayout"
android:background="@drawable/selector_light_theme"
android:src="@drawable/back"
android:visibility="gone" />
<LinearLayout
android:id="@id/centerLayout"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:gravity="center"
android:orientation="vertical">
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1.5dp"
android:layout_marginTop="1.5dp"
android:ellipsize="end"
android:gravity="center"
android:includeFontPadding="false"
android:singleLine="true"
android:textColor="@color/finestBlack"
android:textSize="@dimen/defaultTitleSize" />
<TextView
android:id="@+id/url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="1.5dp"
android:layout_marginTop="1.5dp"
android:ellipsize="end"
android:gravity="center"
android:includeFontPadding="false"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:singleLine="true"
android:textColor="@color/finestSilver"
android:textSize="@dimen/defaultUrlSize" />
</LinearLayout>
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/forward"
android:layout_width="48dp"
android:layout_height="match_parent"
android:layout_toRightOf="@+id/centerLayout"
android:background="@drawable/selector_light_theme"
android:src="@drawable/forward"
android:visibility="gone" />
<androidx.appcompat.widget.AppCompatImageButton
android:id="@+id/more"
android:layout_width="48dp"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="@drawable/selector_light_theme"
android:src="@drawable/more" />
</RelativeLayout>
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="@dimen/defaultDividerHeight"
android:background="@color/finestSilver" />
</LinearLayout>