Refactored Report - New ‘Layout’

We now rework Report to render the actual donations - held in the Base class list.

First some layout additions. Include these new string in strings.xml

  1. <string name="defaultAmount">00</string>
  2. <string name="defaultMethod">N/A</string>

This is a new layout - to be called ‘row_donate.xml’. Place this in the ‘layout’ folder.

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent" >
  5. <TextView
  6. android:id="@+id/row_amount"
  7. android:layout_width="wrap_content"
  8. android:layout_height="wrap_content"
  9. android:layout_alignParentLeft="true"
  10. android:layout_alignParentTop="true"
  11. android:layout_marginLeft="48dp"
  12. android:layout_marginTop="20dp"
  13. android:text="@string/defaultAmount" />
  14. <TextView
  15. android:id="@+id/row_method"
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:layout_alignBaseline="@+id/row_amount"
  19. android:layout_alignBottom="@+id/row_amount"
  20. android:layout_marginLeft="106dp"
  21. android:layout_toRightOf="@+id/row_amount"
  22. android:text="@string/defaultMethod" />
  23. </RelativeLayout>