linphone-android/app/src/main/res/layout/chat_room_menu.xml
2022-02-11 10:11:50 +01:00

77 lines
No EOL
3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<data>
<import type="android.view.View" />
<variable
name="groupInfoListener"
type="View.OnClickListener" />
<variable
name="devicesListener"
type="View.OnClickListener" />
<variable
name="ephemeralListener"
type="View.OnClickListener" />
<variable
name="editionModeListener"
type="View.OnClickListener" />
<variable
name="groupInfoHidden"
type="Boolean" />
<variable
name="devicesHidden"
type="Boolean" />
<variable
name="ephemeralHidden"
type="Boolean" />
</data>
<LinearLayout
android:layout_width="@dimen/chat_message_popup_width"
android:layout_height="wrap_content"
android:orientation="vertical"
android:background="?attr/backgroundColor">
<TextView
android:layout_width="match_parent"
android:layout_height="@dimen/chat_room_popup_item_height"
android:visibility="@{groupInfoHidden ? View.GONE : View.VISIBLE}"
android:background="@drawable/menu_background"
android:onClick="@{groupInfoListener}"
style="@style/popup_item_font"
android:text="@string/chat_room_context_menu_group_info"
app:drawableRightCompat="@drawable/chat_room_menu_group_info" />
<TextView
android:layout_width="match_parent"
android:layout_height="@dimen/chat_room_popup_item_height"
android:visibility="@{devicesHidden ? View.GONE : View.VISIBLE}"
android:background="@drawable/menu_background"
android:onClick="@{devicesListener}"
style="@style/popup_item_font"
android:text="@string/chat_room_context_menu_participants_devices"
app:drawableRightCompat="@drawable/chat_room_menu_devices" />
<TextView
android:layout_width="match_parent"
android:layout_height="@dimen/chat_room_popup_item_height"
android:visibility="@{ephemeralHidden ? View.GONE : View.VISIBLE}"
android:background="@drawable/menu_background"
android:onClick="@{ephemeralListener}"
style="@style/popup_item_font"
android:text="@string/chat_message_context_menu_ephemeral_messages"
app:drawableRightCompat="@drawable/chat_room_menu_ephemeral" />
<TextView
android:layout_width="match_parent"
android:layout_height="@dimen/chat_room_popup_item_height"
android:background="@drawable/menu_background"
android:onClick="@{editionModeListener}"
style="@style/popup_item_font"
android:text="@string/chat_message_context_menu_delete_messages"
app:drawableRightCompat="@drawable/chat_room_menu_delete" />
</LinearLayout>
</layout>