20 lines
3.4 KiB
XML
20 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:focusable="true" android:clickable="true" android:layout_marginLeft="8dp" android:layout_marginTop="4dp" android:layout_marginRight="8dp" android:layout_marginBottom="4dp" android:foreground="?attr/bg_pressed_highlight" app:cardBackgroundColor="?attr/colorBackgroundSecondary" app:cardElevation="@dimen/app_elevation" style="@style/UiKit_ViewGroup_LinearLayout">
|
|
<LinearLayout android:id="@+id/invite_container" style="@style/UiKit_ViewGroup_LinearLayout">
|
|
<RelativeLayout android:paddingLeft="16dp" android:paddingTop="8dp" android:paddingRight="16dp" android:paddingBottom="8dp" style="@style/UiKit_ViewGroup_RelativeLayout">
|
|
<LinearLayout android:id="@+id/invite_name_container" android:layout_alignParentTop="true" android:layout_toStartOf="@+id/invite_expiration_container" android:layout_alignParentStart="true" style="@style/UiKit_ViewGroup_LinearLayout">
|
|
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?attr/primary_100" android:id="@+id/invite_code" style="@style/UiKit_TextView"/>
|
|
<TextView android:id="@+id/invite_channel" style="@style/UiKit_TextView"/>
|
|
</LinearLayout>
|
|
<LinearLayout android:id="@+id/invite_expiration_container" android:layout_width="wrap_content" android:layout_marginEnd="32dp" android:layout_toStartOf="@+id/invite_settings_icon" style="@style/UiKit_ViewGroup_LinearLayout">
|
|
<TextView android:textSize="@dimen/uikit_textsize_large" android:id="@+id/invite_expires_label" android:text="@string/expires_in" style="@style/UiKit_TextView"/>
|
|
<TextView android:id="@+id/invite_expiration_time" style="@style/UiKit_TextView"/>
|
|
</LinearLayout>
|
|
<ImageView android:id="@+id/invite_settings_icon" android:src="@drawable/ic_overflow_dark_24dp" android:layout_centerVertical="true" android:contentDescription="@string/settings" android:layout_alignParentEnd="true" style="@style/UiKit_ImageView"/>
|
|
<View android:id="@+id/invite_divider" android:layout_marginTop="8dp" android:layout_marginBottom="8dp" android:layout_below="@+id/invite_name_container" android:layout_alignStart="@+id/invite_name_container" android:layout_alignEnd="@+id/invite_expiration_container" style="@style/UiKit_Settings_Divider"/>
|
|
<com.discord.views.user.SettingsMemberView android:id="@+id/settings_member" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/invite_divider" android:layout_marginEnd="4dp" android:layout_alignParentStart="true" app:smv_background_color="?attr/colorBackgroundSecondary"/>
|
|
<TextView android:id="@+id/invite_uses_label" android:text="@string/instant_invite_uses" android:layout_alignTop="@+id/settings_member" android:layout_alignStart="@+id/invite_expiration_container" style="@style/UiKit_TextView_Semibold"/>
|
|
<TextView android:id="@+id/invite_uses" android:layout_below="@+id/invite_expiration_container" android:layout_alignBaseline="@+id/invite_uses_label" android:layout_marginStart="4dp" android:layout_toEndOf="@+id/invite_uses_label" style="@style/UiKit_TextView"/>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|