mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-14 19:47:43 +00:00
92 lines
3.9 KiB
XML
92 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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/info_layout"
|
|
android:fitsSystemWindows="true"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:context=".InfoActivity" >
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/titlebar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:popupTheme="@style/ThemeOverlay.AppCompat.Light">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/close_button" >
|
|
|
|
<!-- Navigation buttons in a LinearLayout to mirror on RTL -->
|
|
<ImageButton
|
|
android:id="@+id/back_button"
|
|
style="?android:attr/actionButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
android:contentDescription="@string/label_back"
|
|
android:src="@drawable/ic_action_back"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:tint="@color/image_button_color" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/forward_button"
|
|
style="?android:attr/actionButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:contentDescription="@string/label_forward"
|
|
android:src="@drawable/ic_action_forward"
|
|
app:layout_constraintStart_toEndOf="@id/back_button"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:tint="@color/image_button_color" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<ImageButton
|
|
android:id="@+id/close_button"
|
|
style="?android:attr/actionButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="end"
|
|
android:contentDescription="@string/label_close"
|
|
android:src="@drawable/ic_action_close"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
<!-- layout_height 0dp to fill the remaining area -->
|
|
<WebView
|
|
android:id="@+id/infoWebView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_below="@id/titlebar"
|
|
android:layout_marginStart="4dp"
|
|
app:layout_constraintTop_toBottomOf="@id/titlebar"
|
|
app:layout_constraintBottom_toTopOf="@+id/infoVersion"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
<!-- Version string on the bottom of the page -->
|
|
<TextView
|
|
android:id="@id/infoVersion"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:gravity="center"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:text="@string/title_version"
|
|
android:textSize="@dimen/info_label_textsize"
|
|
android:layout_alignParentBottom="true"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|