Skip to content

Commit

Permalink
Merge pull request #38 from opus-ua/Kodachrome
Browse files Browse the repository at this point in the history
Updated submission description box.
  • Loading branch information
jdorbeck committed Dec 3, 2015
2 parents db54dd1 + 7c0ffdc commit 5d6eba5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.beacon_submission_view);
Intent intent = getIntent();
beaconImage = (ImageView) findViewById(R.id.thumbnail);
descriptionBox = (EditText) findViewById(R.id.descrBox);
descriptionBox = (EditText) findViewById(R.id.description_textbox);
pictureTaken = false;
context = this;
try {
Expand Down
48 changes: 33 additions & 15 deletions app/src/main/res/layout/beacon_submission_view.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">



<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/thumbnail" />
android:id="@+id/thumbnail"
android:scaleType="fitXY"
android:layout_weight="1"/>

<EditText
<RelativeLayout
android:orientation="horizontal"
android:layout_height="@dimen/textbox_height"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/descrBox"
android:hint="@string/description_hint" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/submit_beacon"
android:text="@string/submitBeacon"
android:layout_gravity="center_horizontal"
android:onClick="onSubmitBeacon" />
android:id="@+id/descritpion_layout"
android:background="@drawable/textbox_back"
android:layout_gravity="bottom">

<EditText android:id="@+id/description_textbox"
android:inputType="textMultiLine|textCapSentences"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:hint="@string/description_hint"
android:layout_alignParentBottom="true"
android:maxLines="4"
android:background="@null"
android:textSize="@dimen/descriptionSize"
android:padding="@dimen/textbox_padding"/>

<ImageButton android:id="@+id/submit_button"
android:layout_height="@dimen/textbox_height"
android:layout_width="@dimen/textbox_height"
android:onClick="onSubmitBeacon"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:background="@null"
android:src="@drawable/comment_submit"/>

</RelativeLayout>

</LinearLayout>

0 comments on commit 5d6eba5

Please sign in to comment.