Instantly share code, notes, and snippets.
Created
January 23, 2016 00:12
-
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/75424190cea86814285b to your computer and use it in GitHub Desktop.
Android Custom Horizontal Icons Menu - custom_horizontal_icons_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:padding="16dp" | |
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="horizontalDropDownIconMenu" | |
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 Horizontal Dropdown Menu Icons Horizontal Icon on Dropdown Android : Custom spinner with custom object! Break line after Icon in Menu Item Android | |
Google design guidelines Android Vertical ScrollBar Styling android popup menu with icons android custom popup menu example popup menu with icon in android example android popup menu style listpopupwindow" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="16dp" | |
android:text="Android Custom Horizontal Dropdown Menu Icons" /> | |
</LinearLayout> | |
<LinearLayout | |
android:id="@+id/horizontal_dropdown_icon_menu_items" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_below="@+id/dropdown_custom_icon_menu" | |
android:layout_marginTop="5dp" | |
android:background="#333" | |
android:orientation="horizontal" | |
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="16dp" | |
android:paddingRight="16dp" | |
android:paddingTop="5dp" | |
android:src="@drawable/ic_action_send" | |
android:text="Android Custom Horizontal Dropdown Menu Icons" /> | |
<ImageButton | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:layout_marginLeft="2dp" | |
android:background="@drawable/onclick_press_color" | |
android:onClick="menuItemClick" | |
android:paddingBottom="5dp" | |
android:paddingLeft="16dp" | |
android:paddingRight="16dp" | |
android:paddingTop="5dp" | |
android:src="@drawable/ic_action_attach" | |
android:text="Android Custom Horizontal Dropdown Menu Icons" /> | |
<ImageButton | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:layout_marginLeft="2dp" | |
android:background="@drawable/onclick_press_color" | |
android:onClick="menuItemClick" | |
android:paddingBottom="5dp" | |
android:paddingLeft="16dp" | |
android:paddingRight="16dp" | |
android:paddingTop="5dp" | |
android:src="@drawable/ic_action_mail" | |
android:text="Android Custom Horizontal Dropdown Menu Icons" /> | |
<ImageButton | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:layout_marginLeft="2dp" | |
android:background="@drawable/onclick_press_color" | |
android:onClick="menuItemClick" | |
android:paddingBottom="5dp" | |
android:paddingLeft="16dp" | |
android:paddingRight="16dp" | |
android:paddingTop="5dp" | |
android:src="@drawable/ic_action_refresh" | |
android:text="Android Custom Horizontal Dropdown Menu Icons" /> | |
<ImageButton | |
android:layout_width="wrap_content" | |
android:layout_height="match_parent" | |
android:layout_marginLeft="2dp" | |
android:background="@drawable/onclick_press_color" | |
android:onClick="menuItemClick" | |
android:paddingBottom="5dp" | |
android:paddingLeft="16dp" | |
android:paddingRight="16dp" | |
android:paddingTop="5dp" | |
android:src="@drawable/ic_action_attach" | |
android:text="Android Custom Horizontal Dropdown Menu Icons" /> | |
</LinearLayout> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment