Skip to content

Instantly share code, notes, and snippets.

<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/search_label" ... >
<actionkey android:keycode="KEYCODE_CALL" ... >
</searchable>
<style name=string [parent=string] >
<item name=string>Hex value | string value | reference</item>
</style>
<style name=string [parent=string] >
<item name=string>Hex value | string value | reference</item>
</style>
<style name=string [parent=string] >
<item name=string>Hex value | string value | reference</item>
</style>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:padding="4" // Inherited View property
android:gravity="center" // The object’s own property
android:layout_width="fill_parent"
// Parent object’s LinearLayout.LayoutParams.width
android:layout_height="fill_parent">
// Parent object’s LinearLayout.LayoutParams.height
<menu xmlns:android=”http://schemas.android.com/apk/res/android”>
<item android:id=”@+id/example_item
android:title="Example Item"
android:icon="@drawable/example_item_icon" />
<group android:id="@+id/example_group">
<item android:id=”@+id/example_item2
android:title="Example Item 2"
android:icon="@drawable/example_item2_icon" />
</group>
<item android:id=”@+id/example_submenu
<menu xmlns:android=”http://schemas.android.com/apk/res/android”>
<item android:id=”@+id/example_item
android:title="Example Item"
android:icon="@drawable/example_item_icon" />
<group android:id="@+id/example_group">
<item android:id=”@+id/example_item2
android:title="Example Item 2"
android:icon="@drawable/example_item2_icon" />
</group>
<item android:id=”@+id/example_submenu
<menu xmlns:android=”http://schemas.android.com/apk/res/android”>
<item android:id=”@+id/example_item
android:title=”Example Item”
android:icon=”@drawable/example_item_icon” />
<group android:id=”@+id/example_group”>
<item android:id=”@+id/example_item2
android:title=”Example Item 2”
android:icon=”@drawable/example_item2_icon” />
</group>
<item android:id=”@+id/example_submenu
<set android:shareInterpolator=boolean> // Only required
// if multiple tags are used.
<alpha android:fromAlpha=float
android:toAlpha=float > |
<scale android:fromXScale=float
android:toXScale=float
android:fromYScale=float
android:toYScale=float
android:pivotX=string
<TextView android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:textAlign=”center”
android:background=”@drawable/solid_red”/>