Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
warnings in activity_main.xml solved
Browse files Browse the repository at this point in the history
  • Loading branch information
sealor committed Feb 20, 2016
1 parent 1bf9351 commit 6bbc9aa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
34 changes: 18 additions & 16 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,42 @@
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="myespressotestapplication.android.sealor.github.io.testing.MainActivity">
tools:context="io.github.sealor.prototype.android.espresso.ui.testing.MainActivity">

<TextView
android:id="@+id/inputLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Type your name:"
android:id="@+id/inputLabel"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true" />
android:labelFor="@+id/input"
android:text="@string/type_your_name"
android:textAppearance="?android:attr/textAppearanceLarge" />

<EditText
android:id="@+id/input"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/input"
android:layout_alignParentTop="true"
android:layout_alignParentEnd="true"
android:layout_toEndOf="@+id/inputLabel" />
android:layout_alignParentTop="true"
android:layout_toEndOf="@+id/inputLabel"
android:inputType="text" />

<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="greet me"
android:id="@+id/button"
android:layout_below="@+id/input"
android:layout_alignParentStart="true"
android:layout_marginTop="26dp" />
android:layout_below="@+id/input"
android:layout_marginTop="26dp"
android:text="@string/greet_me" />

<TextView
android:id="@+id/output"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:id="@+id/output"
android:layout_below="@+id/button"
android:layout_alignParentStart="true"
android:layout_marginTop="53dp" />
android:layout_below="@+id/button"
android:layout_marginTop="53dp"
android:textAppearance="?android:attr/textAppearanceMedium" />
</RelativeLayout>
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<resources>
<string name="app_name">Prototype Android Espresso UI Testing</string>
<string name="action_settings">Settings</string>
<string name="type_your_name">Type your name:</string>
<string name="greet_me">greet me</string>
</resources>

0 comments on commit 6bbc9aa

Please sign in to comment.