Created
June 10, 2013 21:04
-
-
Save Cheesebaron/5752281 to your computer and use it in GitHub Desktop.
Just a simple PopupMenu sample.
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
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"> | |
<Button | |
android:id="@+id/MyButton" | |
android:layout_width="100dp" | |
android:layout_height="wrap_content" | |
android:text="Click Me!" /> | |
<ImageView | |
android:layout_below="@+id/MyButton" | |
android:src="@android:drawable/ic_menu_gallery" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:id="@+id/MyImageView" | |
android:layout_alignParentRight="true" /> | |
<TextView | |
android:id="@+id/MyTextView" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Click me as well!" | |
android:layout_centerInParent="true" | |
android:layout_centerVertical="true" /> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice example Cheesebaron....very helpfull