mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-23 01:18:30 +00:00
157 lines
No EOL
6.5 KiB
XML
157 lines
No EOL
6.5 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="meetingListener"
|
|
type="View.OnClickListener" />
|
|
<variable
|
|
name="editionModeListener"
|
|
type="View.OnClickListener" />
|
|
<variable
|
|
name="muteListener"
|
|
type="View.OnClickListener" />
|
|
<variable
|
|
name="unmuteListener"
|
|
type="View.OnClickListener" />
|
|
<variable
|
|
name="groupInfoHidden"
|
|
type="Boolean" />
|
|
<variable
|
|
name="devicesHidden"
|
|
type="Boolean" />
|
|
<variable
|
|
name="ephemeralHidden"
|
|
type="Boolean" />
|
|
<variable
|
|
name="meetingHidden"
|
|
type="Boolean" />
|
|
<variable
|
|
name="muteHidden"
|
|
type="Boolean" />
|
|
<variable
|
|
name="unmuteHidden"
|
|
type="Boolean" />
|
|
<variable
|
|
name="addToContactsListener"
|
|
type="View.OnClickListener" />
|
|
<variable
|
|
name="addToContactsHidden"
|
|
type="Boolean" />
|
|
<variable
|
|
name="goToContactListener"
|
|
type="View.OnClickListener" />
|
|
<variable
|
|
name="goToContactHidden"
|
|
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="@{addToContactsHidden ? View.GONE : View.VISIBLE}"
|
|
android:background="@drawable/menu_background"
|
|
android:onClick="@{addToContactsListener}"
|
|
style="@style/popup_item_font"
|
|
android:text="@string/chat_message_context_menu_add_to_contacts"
|
|
app:drawableRightCompat="@drawable/chat_room_menu_add_contact" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/chat_room_popup_item_height"
|
|
android:visibility="@{goToContactHidden ? View.GONE : View.VISIBLE}"
|
|
android:background="@drawable/menu_background"
|
|
android:onClick="@{goToContactListener}"
|
|
style="@style/popup_item_font"
|
|
android:text="@string/chat_room_context_menu_go_to_contact"
|
|
app:drawableRightCompat="@drawable/chat_room_menu_view_contact" />
|
|
|
|
<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:visibility="@{meetingHidden ? View.GONE : View.VISIBLE}"
|
|
android:background="@drawable/menu_background"
|
|
android:onClick="@{meetingListener}"
|
|
style="@style/popup_item_font"
|
|
android:text="@string/conference_schedule_title"
|
|
app:drawableRightCompat="@drawable/chat_room_menu_meeting" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/chat_room_popup_item_height"
|
|
android:background="@drawable/menu_background"
|
|
android:visibility="@{muteHidden ? View.GONE : View.VISIBLE}"
|
|
android:onClick="@{muteListener}"
|
|
style="@style/popup_item_font"
|
|
android:text="@string/chat_message_context_menu_turn_off_notifications"
|
|
app:drawableRightCompat="@drawable/chat_room_menu_mute_notifications" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/chat_room_popup_item_height"
|
|
android:background="@drawable/menu_background"
|
|
android:visibility="@{unmuteHidden ? View.GONE : View.VISIBLE}"
|
|
android:onClick="@{unmuteListener}"
|
|
style="@style/popup_item_font"
|
|
android:text="@string/chat_message_context_menu_turn_on_notifications"
|
|
app:drawableRightCompat="@drawable/chat_room_menu_unmute_notifications" />
|
|
|
|
<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> |