session-android/res/layout/tooltip.xml
Greyson Parrelli 2a644437fb Add sticker support.
No sticker packs are available for use yet, but we now have the
latent ability to send and receive.
2019-05-30 01:08:01 -04:00

105 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:clipChildren="false"
android:clipToPadding="false">
<ImageView
android:id="@+id/tooltip_arrow_start"
android:layout_width="8dp"
android:layout_height="16dp"
android:visibility="gone"
android:tint="?tooltip_default_color"
android:scaleType="fitXY"
android:elevation="6dp"
app:srcCompat="@drawable/ic_triangle_left"
tools:visibility="visible"
tools:tint="@color/core_blue"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:clipChildren="false"
android:clipToPadding="false">
<ImageView
android:id="@+id/tooltip_arrow_top"
android:layout_width="16dp"
android:layout_height="8dp"
android:visibility="gone"
android:tint="?tooltip_default_color"
android:scaleType="fitXY"
android:elevation="6dp"
app:srcCompat="@drawable/ic_triangle_up"
tools:visibility="visible"
tools:tint="@color/core_blue"/>
<LinearLayout
android:id="@+id/tooltip_bubble"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingTop="6dp"
android:paddingBottom="6dp"
android:paddingStart="12dp"
android:paddingEnd="12dp"
android:background="@drawable/tooltip_background"
android:gravity="center_vertical"
android:elevation="6dp"
android:clipChildren="false"
android:clipToPadding="false">
<ImageView
android:id="@+id/tooltip_icon"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginEnd="2dp"
android:visibility="gone"
tools:src="@drawable/ic_person_white_24dp"
tools:tint="@color/core_blue"
tools:visibility="visible"/>
<TextView
android:id="@+id/tooltip_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/Signal.Text.Body"
tools:text="It is my gift. It is my curse." />
</LinearLayout>
<ImageView
android:id="@+id/tooltip_arrow_bottom"
android:layout_width="16dp"
android:layout_height="8dp"
android:visibility="gone"
android:tint="?tooltip_default_color"
android:scaleType="fitXY"
android:elevation="6dp"
app:srcCompat="@drawable/ic_triangle_down"
tools:visibility="visible"
tools:tint="@color/core_blue"/>
</LinearLayout>
<ImageView
android:id="@+id/tooltip_arrow_end"
android:layout_width="8dp"
android:layout_height="16dp"
android:visibility="gone"
android:tint="?tooltip_default_color"
android:scaleType="fitXY"
android:elevation="6dp"
app:srcCompat="@drawable/ic_triangle_right"
tools:visibility="visible"
tools:tint="@color/core_blue"/>
</LinearLayout>