Files
travel_post/TravelPost/res/layout/post.xml
ricky barrette dafa2f284c i migrated all strings to string.xml
i made PostActivity.java to get users input after a widget click

i added post options to the settings.xml

TravelPostWidget.java
i added an if block to check users settings for posting

LocationReceiver.java
i made a convince method for posting and added an if block that generates a post base on users settings
2011-02-07 01:08:44 +00:00

27 lines
898 B
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="wrap_content">
<RelativeLayout android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FFFFFF">
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@android:string/ok"
android:id="@+id/postOkButton"
android:layout_alignBottom="@+id/post"
android:layout_alignTop="@id/post"
android:layout_alignParentRight="true"></Button>
<EditText android:layout_toLeftOf="@id/postOkButton"
android:layout_width="fill_parent"
android:layout_alignParentTop="true"
android:layout_height="wrap_content"
android:hint="@string/post_hint"
android:id="@id/post">
</EditText>
</RelativeLayout>
</RelativeLayout>