Manifest

<?xml version="1.0" encoding=Mutf-8M?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.openideals.inaugreport" android:versionCode="1" android:versionName="1.0.0">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.READ_PHONE_STATE"/>

<application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".InaugReportMainActivityM android:label="@string/app_name"> <intent-filter>

<action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>

<activity android:name="com.openideals.android.geo.LocationFinderActivity" android:label="@string/view_location_finder"/> <activity android:name=".ReportFormActivity" android:label="@string/view_report_form"/> <activity android:name="com.openideals.android.ui.InternalWebView" android:label="@string/internal_web_view" /> <activity android:name="com.openideals.android.geo.GeoRSSMapView" android:label="@string/geo_map_view" />

<uses-library android:name="com.google.android.maps" />

</application> </manifest>

Layout

<?xml version="1.0" encoding="utf-8M?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android' android:id="@+id/scrollReportForm" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/inaug_report_no_seal_">

<LinearLayout android:id="@+id/layoutReportForm" android:label="Text Report" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:gravity="top" android:padding="6.0sp">

<TextView android:id="@+id/labelTitle"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="Title:"/>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="10dp" android:layout_marginTop="10px" >

<Button android:id="@+id/btnReportFormSubmit" android:layout_width="100px" android:layout_height="wrap_content" android:background="@drawable/submit" android:layout_margin="10sp"

<Button android:id="@+id/btnReportFormCancel" android:layout_width="100px" android:layout_height="wrap_content" android:background="@drawable/cancel" android:layout_toRightOf="@+id/btnReportFormSubmit" android:layout_margin="10sp"

<EditText android:id="@+id/entryTitle"

android:layout_width="fill_parent" android:layout_height="wrap_content"

android:background="@android:drawable/editbox_background"

<TextView android:id="@+id/labelReport"

android:layout_width="wrap_content" android:layout_height="wrap_content"

android:paddingTop="10dpM android:text="Your Report:"/>

<EditText android:id="@+id/entryReport"

android:layout_width="fill_parent" android:layout_height="wrap_content"

android:background="@android:drawable/editbox_background" android:lines="5"

</RelativeLayout>

TextView -

• height: wrap content

EditText -

ID: textEntry width: Fill Parent height: wrap content below: "label 1"

' Activity Title property

Views/Layouts/RelativeLayout/Exainple

' Activity Title property

Views/Layouts/RelativeLayout/Exainple

TextView -

• height: wrap content

EditText -

ID: textEntry width: Fill Parent height: wrap content below: "label 1"

RelativeLayout

• background: blue

Button width: wrap content height: wrap content toLeft: "okButton" alignTop: 'okButton" text- "CaneaT

Button

RelativeLayout

• background: blue

Button width: wrap content height: wrap content toLeft: "okButton" alignTop: 'okButton" text- "CaneaT

Button

ID: okButton width; wrap content height: wrap content below: "textEntry" alignParentRight: true marginLeft 10 text: "OK"

0 0

Post a comment