helpshift-plugin-phonegap
Version:
Plugin for integrating Helpshift's SDK into a Phonegap/Cordova project
170 lines (152 loc) • 6.38 kB
text/xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:focusable="true"
android:focusableInTouchMode="true" >
<ListView
android:id="@+id/hs__messagesList"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@+id/hs__confirmation"
android:scrollingCache="false"
android:transcriptMode="alwaysScroll" />
<LinearLayout
android:id="@+id/hs__confirmation"
android:layout_above="@+id/hs__new_conversation"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:gravity="center" >
<TextView
android:gravity="center"
android:text="@string/hs__confirmation_msg"
android:id="@android:id/text1"
android:textColor="?android:attr/textColorPrimary"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autoLink="all"
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/progressBarStyle"
android:visibility="gone"
android:paddingBottom="@dimen/hs__msgPreferredItemPaddingTop" />
<LinearLayout
android:id="@android:id/widget_frame"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<View
android:id="@android:id/custom"
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="?attr/hs__contentSeparatorColor"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:splitMotionEvents="false" >
<ImageButton
android:contentDescription="@string/hs__unsolved_btn"
android:text="@string/hs__unsolved_btn"
android:id="@android:id/button2"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:background="?attr/hs__selectableItemBackground"
android:src="@drawable/hs__action_no"
android:paddingTop="@dimen/hs__msgActionButtonPadding"
android:paddingBottom="@dimen/hs__msgActionButtonPadding" />
<View
android:layout_height="fill_parent"
android:layout_width="1dp"
android:background="?attr/hs__contentSeparatorColor"
/>
<ImageButton
android:contentDescription="@string/hs__solved_btn"
android:text="@string/hs__solved_btn"
android:id="@android:id/button1"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:background="?attr/hs__selectableItemBackground"
android:src="@drawable/hs__action_yes"
android:paddingTop="@dimen/hs__msgActionButtonPadding"
android:paddingBottom="@dimen/hs__msgActionButtonPadding" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/hs__new_conversation"
android:layout_above="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="gone"
android:layout_alignParentBottom="true"
android:gravity="center" >
<View
android:background="?attr/hs__contentSeparatorColor"
android:layout_width="fill_parent"
android:layout_height="1dp"
/>
<ViewStub
android:id="@+id/csat_view_stub"
android:layout="@layout/hs__csat_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Button
style="?attr/hs__contactUsButtonStyle"
android:text="@string/hs__new_conversation_btn"
android:id="@+id/hs__new_conversation_btn"
android:drawableLeft="@drawable/hs__report_issue"
/>
</LinearLayout>
<View
android:background="?attr/hs__contentSeparatorColor"
android:id="@+id/textView1"
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_above="@+id/relativeLayout1"
/>
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" >
<EditText
android:id="@+id/hs__messageText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/hs__sendMessageBtn"
android:hint="@string/hs__chat_hint"
android:imeOptions="actionSend"
android:inputType="textMultiLine"
android:maxLines="@integer/hs__chat_max_lines"
android:layout_marginTop="4dp"
android:layout_marginLeft="4dp"
android:paddingBottom="16dp"
android:autoText="true"
android:layout_alignBaseline="@+id/hs__sendMessageBtn" />
<ImageButton
android:contentDescription="@string/hs__send_msg_btn"
android:id="@+id/hs__sendMessageBtn"
android:background="?attr/hs__selectableItemBackground"
android:src="@drawable/hs__send"
android:layout_alignParentRight="true"
android:layout_width="wrap_content"
android:layout_height="52dp"
android:paddingLeft="8dp"
android:paddingRight="8dp" />
</RelativeLayout>
</RelativeLayout>
<!-- From: file:/Users/naiquevin/helpshift/code/r2d2/Helpshift/src/main/res/layout/hs__messages_fragment.xml -->