<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:card_view="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:paddingBottom="16dp"
    android:paddingLeft="16dp"
    android:paddingRight="16dp"
    android:paddingTop="16dp">

    <org.sufficientlysecure.keychain.ui.keyview.view.KeyHealthCardView
        android:id="@+id/subkey_status_card"
        android:layout_gravity="center"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:visibility="gone"
        tools:visibility="visible"
        card_view:cardBackgroundColor="?attr/colorCardViewBackground"
        card_view:cardElevation="2dp"
        card_view:cardUseCompatPadding="true"
        card_view:cardCornerRadius="4dp"
        />

    <org.sufficientlysecure.keychain.ui.keyview.view.LinkedIdentitiesCardView
        android:id="@+id/card_linked_ids"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:visibility="gone"
        card_view:cardBackgroundColor="?attr/colorCardViewBackground"
        card_view:cardCornerRadius="4dp"
        card_view:cardElevation="2dp"
        card_view:cardUseCompatPadding="true"
        tools:visibility="visible" />

    <android.support.v7.widget.CardView
        android:id="@+id/view_key_card_user_ids"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        card_view:cardBackgroundColor="?attr/colorCardViewBackground"
        card_view:cardCornerRadius="4dp"
        card_view:cardElevation="2dp"
        card_view:cardUseCompatPadding="true">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">

                <TextView
                    style="@style/CardViewHeader"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/section_user_ids" />

                <org.sufficientlysecure.keychain.ui.widget.FixedListView
                    android:id="@+id/view_key_user_ids"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="4dp" />

            </LinearLayout>

            <LinearLayout
                android:id="@+id/view_key_card_user_ids_buttons"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="left|start"
                android:orientation="vertical">

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dip"
                    android:background="?android:attr/listDivider" />

                <Button
                    android:id="@+id/view_key_card_user_ids_edit"
                    style="?android:attr/borderlessButtonStyle"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="@string/key_view_action_edit"
                    android:textColor="@color/card_view_button" />

            </LinearLayout>

        </LinearLayout>

    </android.support.v7.widget.CardView>

    <org.sufficientlysecure.keychain.ui.keyview.view.SystemContactCardView
        android:id="@+id/linked_system_contact_card"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:visibility="gone"
        card_view:cardBackgroundColor="?attr/colorCardViewBackground"
        card_view:cardCornerRadius="4dp"
        card_view:cardElevation="2dp"
        card_view:cardUseCompatPadding="true"
        tools:visibility="visible" />

</LinearLayout>
