Changeset 98
- Timestamp:
- 02/03/09 10:38:49 (12 months ago)
- Location:
- trunk/rapidandroid/org.rapidandroid
- Files:
-
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/rapidandroid/org.rapidandroid/AndroidManifest.xml
r97 r98 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 3 android:versionCode="1" android:versionName="1.0.0" package="org.rapidandroid">3 package="org.rapidandroid" android:versionName="0.5.0" android:versionCode="97"> 4 4 5 5 -
trunk/rapidandroid/org.rapidandroid/res/layout/date_range.xml
r97 r98 6 6 android:layout_width="fill_parent"> 7 7 <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/btn_daterange_startdate" android:id="@+id/range_btn_startdate"></Button> 8 <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/txv_startdate" android:layout_weight="2" android:textSize="16sp"></TextView>8 9 9 10 < /TableRow>10 <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/btn_daterange_enddate" android:id="@+id/range_btn_enddate"></Button></TableRow> 11 11 12 12 13 13 <TableRow android:id="@+id/TableRow02" android:layout_height="wrap_content" 14 android:layout_width="fill_parent"> 14 android:layout_width="fill_parent"><TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/txv_startdate" android:textSize="16sp" android:layout_gravity="center_horizontal" android:layout_weight="1"></TextView> 15 15 16 16 <TextView android:id="@+id/txv_enddate" android:layout_width="wrap_content" 17 android:layout_height="wrap_content" android: layout_weight="2" android:textSize="16sp"></TextView>18 <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="@string/btn_daterange_enddate" android:id="@+id/range_btn_enddate"></Button>17 android:layout_height="wrap_content" android:textSize="16sp" android:layout_gravity="center_horizontal" android:layout_weight="1"></TextView> 18 19 19 </TableRow> 20 20 21 21 <TextView android:id="@+id/TextView02" android:layout_width="wrap_content" 22 22 android:layout_height="20px" android:text=" " ></TextView> 23 <Button android:layout_width="wrap_content" 24 android:layout_height="wrap_content" android:id="@+id/range_btn_lastday" 25 android:text="@string/range_btn_lastday"> 26 </Button> 27 <Button android:layout_width="wrap_content" 28 android:layout_height="wrap_content" android:id="@+id/range_btn_lastweek" 29 android:text="@string/range_btn_lastweek"></Button> 30 <Button android:layout_width="wrap_content" 31 android:layout_height="wrap_content" android:id="@+id/range_btn_last_month" 32 android:text="@string/range_btn_lastmonth"></Button> 23 24 25 33 26 34 <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/range_btn_last_threemonth" android:text="@string/range_btn_lastthreemonth"></Button> 27 28 29 <TableRow android:id="@+id/TableRow04" android:layout_height="wrap_content" android:layout_width="fill_parent"><Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/range_btn_lastday" android:text="@string/range_btn_lastday" android:layout_weight="1"> 30 </Button><Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/range_btn_lastweek" android:text="@string/range_btn_lastweek" android:layout_weight="1"></Button></TableRow><TableRow android:id="@+id/TableRow03" android:layout_height="wrap_content" android:layout_width="fill_parent"><Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/range_btn_last_month" android:text="@string/range_btn_lastmonth" android:layout_weight="1"></Button><Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/range_btn_last_threemonth" android:text="@string/range_btn_lastthreemonth" android:layout_weight="1"></Button></TableRow> 31 <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/range_btn_entire_range" android:text="@string/btn_entire_range"></Button> 35 32 </TableLayout> -
trunk/rapidandroid/org.rapidandroid/res/values/colors.xml
r97 r98 30 30 <color name="solid_yellow">#ffffff00</color> 31 31 32 <color name="background_red">#C 14747</color>33 <color name="background_gray"># 636363</color>32 <color name="background_red">#C59774</color> 33 <color name="background_gray">#738BC4</color> 34 34 </resources> -
trunk/rapidandroid/org.rapidandroid/res/values/strings.xml
r97 r98 43 43 <string name="btn_daterange_startdate">Start Date</string> 44 44 <string name="btn_daterange_enddate">End Date</string> 45 <string name="range_btn_lastthreemonth">End Date</string> 45 <string name="range_btn_lastthreemonth">Three Months</string> 46 <string name="btn_entire_range">Entire Range</string> 46 47 </resources> -
trunk/rapidandroid/org.rapidandroid/src/org/rapidandroid/activity/DateRange.java
r97 r98 77 77 private int mEndDay; 78 78 79 80 79 int mStartBeginningYear; 80 int mStartBeginningMonth; 81 int mStartBeginningDay; 81 82 82 83 static final int DATE_DIALOG_START_ID = 0; … … 112 113 Calendar e = Calendar.getInstance(); 113 114 e.setTime(mEndDate); 115 116 mStartBeginningYear = s.get(Calendar.YEAR); 117 mStartBeginningMonth = s.get(Calendar.MONTH); 118 mStartBeginningDay = s.get(Calendar.DAY_OF_MONTH); 114 119 115 120 … … 260 265 Calendar newStart = Calendar.getInstance(); 261 266 newStart.set(Calendar.MONTH, newEnd.get(Calendar.MONTH) - 3); 267 setUpdateCalendar(newStart,newEnd); 268 } 269 }); 270 271 Button btnAll = (Button) findViewById(R.id.range_btn_entire_range); 272 btnAll.setOnClickListener(new OnClickListener() { 273 274 public void onClick(View v) { 275 Calendar newEnd = Calendar.getInstance(); 276 Calendar newStart = Calendar.getInstance(); 277 newStart.set(Calendar.YEAR, mStartBeginningYear); 278 newStart.set(Calendar.MONTH, mStartBeginningMonth); 279 newStart.set(Calendar.DATE, mStartBeginningDay); 262 280 setUpdateCalendar(newStart,newEnd); 263 281 } -
trunk/rapidandroid/org.rapidandroid/src/org/rapidandroid/view/SummaryCursorView.java
r97 r98 88 88 TextView txvFieldName = new TextView(getContext()); 89 89 txvFieldName.setTextSize(14); 90 txvFieldName.setBackgroundColor(R.color.background_red); 90 91 txvFieldName.setGravity(Gravity.LEFT); 91 92 mFieldLabels[i] = txvFieldName; … … 94 95 txvFieldData.setGravity(Gravity.LEFT); 95 96 txvFieldData.setTextSize(14); 97 txvFieldData.setBackgroundColor(R.color.background_red); 96 98 mFieldValues[i] = txvFieldData; 97 99