LeOS-Genesis/app/src/main/res/layouts/home/layout/hint_view.xml

125 lines
5.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingEnd="0dp"
android:paddingStart="0dp"
android:paddingBottom="0dp"
android:orientation="vertical">
<LinearLayout
android:id="@+id/pHintListener"
android:layout_width="match_parent"
android:layout_height="62dp"
android:background="@xml/gx_side_item_suggestions"
android:onClick="onSuggestionInvoked"
android:clickable="true"
android:focusable="true"
android:orientation="horizontal"
tools:ignore="UselessParent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:paddingTop="11dp"
android:paddingBottom="10dp">
<ImageView
android:id="@+id/pHindTypeIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:alpha="0.6"
android:contentDescription="@string/GENERAL_TODO"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@xml/ic_baseline_search"
app:tint="@color/c_navigation_tint" />
<ImageView
android:id="@+id/pHintWebIcon"
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_marginStart="5dp"
android:layout_marginBottom="3dp"
android:background="@color/clear_alpha"
android:contentDescription="@string/GENERAL_TODO"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@+id/pHindTypeIcon"
app:layout_constraintTop_toTopOf="parent"
android:src="@xml/ic_baseline_browser"
app:layout_constraintVertical_bias="0.578"/>
<TextView
android:id="@+id/pHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="false"
android:ellipsize="end"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:singleLine="true"
android:text="@string/GENERAL_DEFAULT_HINT_SUGGESTION"
android:textColor="@color/c_text_v1"
android:textSize="14sp"
app:layout_constraintStart_toEndOf="@+id/pHintWebIcon"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/pHeaderSingle"
android:layout_width="wrap_content"
android:layout_height="55dp"
android:layout_marginTop="6dp"
android:clickable="false"
android:ellipsize="end"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:singleLine="true"
android:text="@string/GENERAL_DEFAULT_HINT_SUGGESTION"
android:textColor="@color/c_text_v1"
android:textSize="16sp"
android:visibility="gone"
app:layout_constraintStart_toEndOf="@+id/pHintWebIcon"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/pURL"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:clickable="false"
android:ellipsize="end"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:singleLine="true"
android:text="@string/GENERAL_DEFAULT_HINT_SUGGESTION"
android:textColor="@color/c_text_v6"
android:textSize="12.5sp"
app:layout_constraintStart_toEndOf="@+id/pHintWebIcon"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<ImageButton
android:id="@+id/pMoveURL"
android:layout_width="55dp"
android:padding="8dp"
android:layout_height="55dp"
android:layout_gravity="center_vertical"
android:src="@xml/ic_arrow_right_tilted"
android:tag="@string/GENERAL_TODO"
android:onClick="onSuggestionMove"
android:layout_margin="2dp"
android:background="@xml/gx_ripple_default_round"
android:tint="@color/c_navigation_tint"
android:rotation="225"
android:contentDescription="@string/GENERAL_TODO" />
</LinearLayout>
</LinearLayout>