<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/message"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingLeft="@dimen/hs__listPreferredItemPaddingLeft"
    android:paddingRight="@dimen/hs__listPreferredItemPaddingRight"
    android:paddingTop="@dimen/hs__msgPreferredItemPaddingTop"
    android:paddingBottom="@dimen/hs__msgPreferredItemPaddingTop"
    android:orientation="vertical">

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

    <LinearLayout
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="0.80"
        android:gravity="left">

      <LinearLayout
          android:id="@+id/user_message"
          android:orientation="vertical"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="?attr/hs__chatBubbleAdminBackground"
          android:gravity="center">

        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content">

          <ImageView
              android:id="@android:id/summary"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:paddingTop="@dimen/hs__msgPreferredItemPaddingTop"
              android:paddingBottom="@dimen/hs__msgPreferredItemPaddingBottom"
              android:paddingLeft="@dimen/hs__msgPreferredItemPaddingLeft"
              android:paddingRight="@dimen/hs__msgPreferredItemPaddingRight"/>

          <ProgressBar
              android:id="@android:id/progress"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:gravity="center"
              style="?android:attr/progressBarStyleLarge"
              android:paddingBottom="@dimen/hs__msgPreferredItemPaddingTop"
              android:layout_centerInParent="true"/>

          <ImageButton
              android:id="@android:id/button1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:src="@drawable/hs__action_download"
              android:gravity="center"
              android:paddingBottom="@dimen/hs__msgPreferredItemPaddingBottom"
              android:layout_centerInParent="true"/>
        </RelativeLayout>
      </LinearLayout>
    </LinearLayout>

    <View
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="0.20"/>
  </LinearLayout>
</LinearLayout>
<!-- From: file:/Users/naiquevin/helpshift/code/r2d2/Helpshift/src/main/res/layout/hs__msg_attachment_image.xml -->