helpshift-plugin-phonegap
Version:
Plugin for integrating Helpshift's SDK into a Phonegap/Cordova project
126 lines (115 loc) • 5.7 kB
text/xml
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
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">
<LinearLayout
android:id="@+id/file_details"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/hs__chatBubbleAdminBackground">
<TextView
android:id="@android:id/text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:singleLine="true"
android:ellipsize="middle"
android:textColor="?attr/hs__messagesTextColor"
android:paddingTop="@dimen/hs__msgPreferredItemPaddingTop"
android:paddingBottom="@dimen/hs__msgPreferredItemPaddingBottom"
android:paddingLeft="@dimen/hs__msgPreferredItemPaddingLeft"
android:paddingRight="@dimen/hs__msgPreferredItemPaddingRight"
android:layout_gravity="center"/>
<RelativeLayout
android:id="@+id/file_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@android:id/text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:alpha="0.5"
android:textColor="?attr/hs__messagesTextColor"
android:singleLine="true"
android:paddingLeft="@dimen/hs__msgPreferredItemPaddingLeft"
android:paddingRight="@dimen/hs__msgPreferredItemPaddingRight"
android:paddingBottom="@dimen/hs__msgPreferredItemPaddingBottom"/>
<TextView
android:id="@android:id/summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:alpha="0.5"
android:textColor="?attr/hs__messagesTextColor"
android:singleLine="true"
android:paddingLeft="@dimen/hs__msgPreferredItemPaddingLeft"
android:paddingRight="@dimen/hs__msgPreferredItemPaddingRight"
android:paddingBottom="@dimen/hs__msgPreferredItemPaddingBottom"
android:layout_alignParentRight="true"/>
</RelativeLayout>
<View
android:id="@android:id/custom"
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="?attr/hs__chatBubbleSeparatorColor"
android:alpha="0.5"/>
<ImageButton
android:id="@android:id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/hs__selectableItemBackground"
android:src="@drawable/hs__action_download"
android:paddingTop="@dimen/hs__msgActionButtonPadding"
android:paddingBottom="@dimen/hs__msgActionButtonPadding"/>
<ProgressBar
android:id="@android:id/secondaryProgress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
style="?android:attr/progressBarStyleSmall"
android:paddingTop="@dimen/hs__msgActionButtonPadding"
android:paddingBottom="@dimen/hs__msgActionButtonPadding"
android:paddingLeft="@dimen/hs__msgPreferredItemPaddingLeft"
android:paddingRight="@dimen/hs__msgPreferredItemPaddingRight"/>
<ProgressBar
android:id="@android:id/progress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="?android:attr/progressBarStyleHorizontal"
android:paddingTop="@dimen/hs__msgActionButtonPadding"
android:paddingBottom="@dimen/hs__msgActionButtonPadding"
android:paddingLeft="@dimen/hs__msgPreferredItemPaddingLeft"
android:paddingRight="@dimen/hs__msgPreferredItemPaddingRight"
android:max="10000"/>
<ImageButton
android:id="@android:id/button2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/hs__selectableItemBackground"
android:src="@drawable/hs__action_launch"
android:paddingTop="@dimen/hs__msgActionButtonPadding"
android:paddingBottom="@dimen/hs__msgActionButtonPadding"/>
</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_generic.xml -->