Download this file

ratings.xml    135 lines (117 with data), 5.2 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/root"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="0.5"
android:layout_margin="20dp">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/describe_problem"
android:id="@+id/textView2"
android:background="@color/gray"
android:padding="5dp"
android:textColor="@color/DarkGray"
android:textStyle="bold"
android:gravity="center" />
<RatingBar
android:id="@+id/ratingWrite"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:max="5"
android:numStars="5"
android:stepSize="1"
android:progressDrawable="@drawable/rating_bar_big_full"
android:layout_gravity="center" />
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/editWrite"
android:layout_weight="1"
android:layout_marginBottom="10dp"
android:textSize="@dimen/TextBig" />
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="0dp"
android:layout_height="fill_parent"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/cancel"
android:id="@+id/cancelWrite"
android:layout_weight="0.5"
android:padding="3dp"
android:layout_marginRight="20dp"
android:textStyle="bold"
android:textColor="@color/White"
android:textSize="@dimen/cancel"
android:background="@drawable/btn_cancel"
android:gravity="center" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/send"
android:id="@+id/sendWrite"
android:layout_weight="0.5"
android:padding="10dp"
android:textSize="@dimen/TextBig"
android:textColor="@color/White"
android:background="@drawable/btn_enter"
android:textStyle="bold"
android:gravity="center" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="0.6">
<ListView
android:id="@+id/ratingsList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:cacheColorHint="#0000"
android:clickable="false"
android:divider="#000"
android:dividerHeight="0dp"
android:listSelector="#0000"
android:visibility="visible" >
</ListView>
<TextView
android:id="@+id/noReviews"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="30dp"
android:layout_marginRight="10dp"
android:text="@string/no_reviews"
android:textColor="@android:color/black"
android:visibility="gone"
android:textSize="@dimen/TextBig" />
</LinearLayout>
</LinearLayout>
<ProgressBar
android:id="@+id/ratingsProgress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true"
android:layout_centerVertical="true"
android:indeterminate="true"
android:visibility="visible" />
</RelativeLayout>