Last active
December 24, 2015 14:39
-
-
Save sourabh86/6814736 to your computer and use it in GitHub Desktop.
UI part of main activity for HashTags example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
tools:context=".MainActivity" > | |
<EditText | |
android:id="@+id/messageEditText" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentLeft="true" | |
android:layout_alignParentTop="true" | |
android:hint="Enter your message" | |
android:ems="10" > | |
<requestFocus /> | |
</EditText> | |
<Button | |
android:id="@+id/addButton" | |
style="?android:attr/buttonStyleSmall" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignBottom="@+id/messageEditText" | |
android:layout_alignParentRight="true" | |
android:layout_marginRight="15dp" | |
android:text="Add" /> | |
<ListView | |
android:id="@+id/messagesListView" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/addButton" > | |
</ListView> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment