| 23410 |
tejbeer |
1 |
<?xml version="1.0" encoding="utf-8"?>
|
|
|
2 |
<!--
|
|
|
3 |
The use of android:tag rather than android:id is a workaround to a (bug? very strange feature?)
|
|
|
4 |
of Android views that results in ListViews sharing internal state after saving/restoring state
|
|
|
5 |
(For example, when the screen is rotated) if they share the same ids.
|
|
|
6 |
|
|
|
7 |
https://groups.google.com/forum/#!msg/android-developers/qcclW4oekVY/IeQtoAruCTgJ
|
|
|
8 |
|
|
|
9 |
-->
|
|
|
10 |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
11 |
xmlns:tools="http://schemas.android.com/tools"
|
|
|
12 |
android:layout_width="match_parent"
|
|
|
13 |
android:layout_height="match_parent"
|
|
|
14 |
android:orientation="vertical"
|
|
|
15 |
tools:targetApi="ICE_CREAM_SANDWICH">
|
|
|
16 |
|
|
|
17 |
<TextView
|
|
|
18 |
android:tag="com_mixpanel_android_TAG_prompt_text"
|
|
|
19 |
android:layout_width="wrap_content"
|
|
|
20 |
android:layout_height="wrap_content"
|
|
|
21 |
android:layout_gravity="center"
|
|
|
22 |
android:ellipsize="end"
|
|
|
23 |
android:maxLines="3"
|
|
|
24 |
android:minHeight="80dp"
|
|
|
25 |
android:paddingBottom="20dp"
|
|
|
26 |
android:textColor="#ffffff"
|
|
|
27 |
android:textSize="18sp" />
|
|
|
28 |
|
|
|
29 |
<com.mixpanel.android.surveys.AlwaysSubmittableEditText
|
|
|
30 |
android:tag="com_mixpanel_android_TAG_text_answer"
|
|
|
31 |
android:layout_width="match_parent"
|
|
|
32 |
android:layout_height="wrap_content"
|
|
|
33 |
android:background="@drawable/com_mixpanel_android_text_answer_border"
|
|
|
34 |
android:textColor="#ffffff"
|
|
|
35 |
android:textSize="18sp"
|
|
|
36 |
android:inputType="text|textCapSentences|textAutoCorrect|textMultiLine"
|
|
|
37 |
android:scrollHorizontally="true"
|
|
|
38 |
android:imeOptions="actionDone"
|
|
|
39 |
android:lines="3" android:singleLine="true"
|
|
|
40 |
android:padding="5dp"
|
|
|
41 |
android:gravity="top|left"
|
|
|
42 |
android:visibility="gone" />
|
|
|
43 |
|
|
|
44 |
<!-- cacheColorHint setting from http://android-developers.blogspot.com/2009/01/why-is-my-list-black-android.html -->
|
|
|
45 |
<ListView
|
|
|
46 |
android:tag="com_mixpanel_android_TAG_choice_list"
|
|
|
47 |
android:layout_width="match_parent"
|
|
|
48 |
android:layout_height="0dp" android:layout_weight="1"
|
|
|
49 |
android:textColor="#ffffff" android:textSize="18sp"
|
|
|
50 |
android:scrollbars="none"
|
|
|
51 |
android:requiresFadingEdge="vertical"
|
|
|
52 |
android:fadingEdgeLength="30dp"
|
|
|
53 |
android:cacheColorHint="#00000000" android:listSelector="@drawable/com_mixpanel_android_nocolor_list"
|
|
|
54 |
android:background="@android:color/transparent" android:divider="@android:color/transparent"
|
|
|
55 |
android:choiceMode="singleChoice" />
|
|
|
56 |
</LinearLayout>
|
|
|
57 |
<!-- From: file:/Users/joe/Desktop/mixpanel-android/src/main/res/layout/com_mixpanel_android_question_card.xml -->
|