habitica-android/Habitica/res/layout/view_invitation.xml

63 lines
3 KiB
XML
Raw Permalink Normal View History

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-03-13 19:27:11 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-09-18 16:34:53 +00:00
style="@style/FlatCardView"
android:id="@+id/party_invitation_wrapper"
android:padding="4dp"
android:layout_margin="0dp">
2020-03-13 19:27:11 +00:00
<LinearLayout
android:orientation="horizontal"
android:layout_gravity="center_vertical"
android:layout_width="match_parent"
2020-09-29 10:48:20 +00:00
android:layout_height="match_parent">
2020-03-13 19:27:11 +00:00
<com.habitrpg.android.habitica.ui.RoundedFrameLayout
2023-03-16 13:59:50 +00:00
android:layout_width="@dimen/avatar_chat_size"
android:layout_height="@dimen/avatar_chat_size"
android:clipChildren="true"
android:layout_marginEnd="@dimen/spacing_medium"
android:background="@drawable/rounded_avatar_bg">
<com.habitrpg.common.habitica.views.AvatarView
android:id="@+id/groupleader_avatar_view"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_gravity="center"
app:showMount="false"
app:showPet="false" />
</com.habitrpg.android.habitica.ui.RoundedFrameLayout>
2020-03-13 19:27:11 +00:00
<TextView
android:id="@+id/groupleader_text_view"
android:layout_width="0dp"
android:layout_weight="1"
2020-03-13 19:27:11 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/party_invite_separator"
2020-09-29 10:48:20 +00:00
android:text="@string/invitation_title_no_leader" />
2020-03-13 19:27:11 +00:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
2023-03-16 13:59:50 +00:00
android:layout_marginEnd="@dimen/party_invite_separator">
2020-09-29 10:48:20 +00:00
<ImageButton
2023-03-16 13:59:50 +00:00
android:id="@+id/reject_button"
2020-09-29 10:48:20 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2023-03-16 13:59:50 +00:00
android:layout_marginStart="@dimen/party_accept_button_start_margin"
android:src="@drawable/party_invite_reject"
2020-03-13 19:27:11 +00:00
android:layout_marginEnd="@dimen/party_accept_button_start_margin"
2023-03-16 13:59:50 +00:00
android:background="@color/transparent"
android:contentDescription="@string/reject" />
2020-09-29 10:48:20 +00:00
<ImageButton
2023-03-16 13:59:50 +00:00
android:id="@+id/accept_button"
2020-09-29 10:48:20 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2023-03-16 13:59:50 +00:00
android:src="@drawable/party_invite_accept"
android:background="@color/transparent"
android:contentDescription="@string/accept"/>
2020-03-13 19:27:11 +00:00
</LinearLayout>
</LinearLayout>
2020-09-18 16:34:53 +00:00
</FrameLayout>