Instantly share code, notes, and snippets.
Last active
June 24, 2018 23:53
-
Star
(0)
0
You must be signed in to star a gist -
Fork
(0)
0
You must be signed in to fork a gist
-
Save pacificregmi/1cb47cd14c80ea4e9d46 to your computer and use it in GitHub Desktop.
Android Custom Vertical Dropdown Icons Menu - custom_vertical_dropdown_icon_menu.xml
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" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="#c2ec97" | |
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="viralandroid.com.androidxmluserinterfacetutorial.MainActivity"> | |
<Button | |
android:id="@+id/dropdown_custom_icon_menu" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:background="#5bace6" | |
android:drawableRight="@android:drawable/arrow_down_float" | |
android:onClick="verticalDropDownIconMenu" | |
android:padding="16dp" | |
android:text="DropDown\t" | |
android:textColor="#eee" /> | |
<LinearLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/dropdown_custom_icon_menu" | |
android:orientation="vertical"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Android Custom Vertical Dropdown Menu IconsAndroid Custom Vertical. Break line after Icon in Menu Item Android. | |
Dropdown Menu IconsAndroid Custom Vertical Dropdown. popup menu with icon in android example. | |
Android Custom Vertical Dropdown Menu Icons. Android Custom Vertical Dropdown Menu Icons" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="16dp" | |
android:text="Android Custom Vertical Dropdown Menu Icons" /> | |
</LinearLayout> | |
<LinearLayout | |
android:id="@+id/vertical_dropdown_icon_menu_items" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/dropdown_custom_icon_menu" | |
android:background="#333" | |
android:orientation="vertical" | |
android:padding="3dp" | |
android:visibility="invisible"> | |
<ImageButton | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:background="@drawable/onclick_press_color" | |
android:onClick="menuItemClick" | |
android:paddingBottom="5dp" | |
android:paddingLeft="26dp" | |
android:paddingRight="26dp" | |
android:paddingTop="5dp" | |
android:src="@drawable/ic_action_send" | |
android:text="Android Vertical Custom DropDown Menu" /> | |
<ImageButton | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:layout_marginTop="2dp" | |
android:background="@drawable/onclick_press_color" | |
android:onClick="menuItemClick" | |
android:paddingBottom="5dp" | |
android:paddingLeft="26dp" | |
android:paddingRight="26dp" | |
android:paddingTop="5dp" | |
android:src="@drawable/ic_action_attach" | |
android:text="Android Vertical Custom DropDown Menu" /> | |
<ImageButton | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:layout_marginTop="2dp" | |
android:background="@drawable/onclick_press_color" | |
android:onClick="menuItemClick" | |
android:paddingBottom="5dp" | |
android:paddingLeft="26dp" | |
android:paddingRight="26dp" | |
android:paddingTop="5dp" | |
android:src="@drawable/ic_action_mail" | |
android:text="Android Vertical Custom DropDown Menu" /> | |
<ImageButton | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:layout_marginTop="2dp" | |
android:background="@drawable/onclick_press_color" | |
android:onClick="menuItemClick" | |
android:paddingBottom="5dp" | |
android:paddingLeft="26dp" | |
android:paddingRight="26dp" | |
android:paddingTop="5dp" | |
android:src="@drawable/ic_action_refresh" | |
android:text="Android Vertical Custom DropDown Menu" /> | |
<ImageButton | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:layout_marginTop="2dp" | |
android:background="@drawable/onclick_press_color" | |
android:onClick="menuItemClick" | |
android:paddingBottom="5dp" | |
android:paddingLeft="26dp" | |
android:paddingRight="26dp" | |
android:paddingTop="5dp" | |
android:src="@drawable/ic_action_attach" | |
android:text="Android Vertical Custom DropDown Menu" /> | |
<ImageButton | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:layout_marginTop="2dp" | |
android:background="@drawable/onclick_press_color" | |
android:onClick="menuItemClick" | |
android:paddingBottom="5dp" | |
android:paddingLeft="26dp" | |
android:paddingRight="26dp" | |
android:paddingTop="5dp" | |
android:src="@drawable/ic_action_mail" | |
android:text="Android Vertical Custom DropDown Menu" /> | |
</LinearLayout> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment