<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
    android:id="@+id/result"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingLeft="16dp"
    android:paddingRight="16dp"
    android:paddingTop="4dp"
    android:paddingBottom="4dp"
    android:background="@color/result_purple">

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

    <TextView
        android:id="@+id/result_text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:text="result text"
        android:textColor="@color/white"
        android:layout_gravity="center_horizontal"
        android:layout_marginTop="8dp"
        android:layout_marginBottom="8dp" />

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

    <RelativeLayout
        android:id="@+id/result_signature"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:clickable="true"
        android:orientation="horizontal"
        android:layout_marginBottom="8dp"
        android:layout_marginTop="8dp">

        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/result_signature_image">

            <ImageView
                android:id="@+id/ic_signature"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/signed_large" />

            <ImageView
                android:id="@+id/ic_signature_status"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/overlay_error" />
        </RelativeLayout>

        <TextView
            android:id="@+id/mainUserId"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="4dp"
            android:layout_gravity="left"
            android:text="@string/label_main_user_id"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:layout_toRightOf="@+id/result_signature_image"
            android:textColor="@color/white" />

        <TextView
            android:id="@+id/mainUserIdRest"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="4dp"
            android:layout_gravity="left"
            android:text="Main User Id Rest"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:layout_below="@+id/mainUserId"
            android:layout_toRightOf="@+id/result_signature_image"
            android:textColor="@color/white" />

        <com.beardedhen.androidbootstrap.BootstrapButton
            android:id="@+id/lookup_key"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/btn_lookup_key"
            bootstrapbutton:bb_icon_left="fa-download"
            bootstrapbutton:bb_type="info"
            bootstrapbutton:bb_size="small"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true" />

    </RelativeLayout>

</LinearLayout>