Attributes

This page contains an implementation report of Android attributes.

todo: WE need columns for XML, Object, and AttributeSet

View

Gravity (gravity)

top x
bottom x
left x
right ?
center ?
center_horizontal ?
center_vertical ?

Layout Gravity (layout_gravity)

top x
bottom x
left x
right x
center x
center_horizontal x
center_vertical x

General

ID (id)
Width (layout_width)
Height (layout_height)

Padding and Margin

Padding
padding x
paddingLeft x
paddingRight x
paddingTop x
paddingBottom x
Margin
layout_marginLeft x
layout_marginRight x
layout_marginTop x
layout_marginBottom x

Color onclick Background Color Text (text) EMs (EMD) Relative Layout Align Parent Top, Left, Right Bottom Align Top, Left, Bottom, Right Center Horizontal Below, Above, Left, Right (layout_below)

TextView

card_view:cardBackgroundColor
card_view:cardElevation
card_view:cardCornerRadius
android:checkMark (CheckedTextView)
textSize
px
pt
in
mm
dp
sp
textColor
textStyle
normal
bold
italic
bold | italic
typeFace
normal
serif
sans
monospace
textFamily
hint

Menu

[http:// developer.android. com/guide/topics/ resources/menuresource. html]

@title x
@icon x
@on<x>click
@orderInCategory x
@showAsAction x
@checkable
@visible
@enabled
@menuCategory
group x
String
Style
Typed Array
PagerAdapter x
FragmentPagerAdapter x
FragmentStatePagerAdapter o
MySqlCursor x
System Applications
Manifest
OS
Bundle
BaseBundle
Parcelable

Activity

<activity android:allowEmbedded=["true" | "false"]
android:allowTaskReparenting=["true" | "false"]
android:alwaysRetainTaskState=["true" | "false"]
android:autoRemoveFromRecents=["true" | "false"]
android:banner="drawable resource"
android:clearTaskOnLaunch=["true" | "false"]
android:configChanges=["mcc", "mnc", "locale",
"touchscreen", "keyboard", "keyboardHidden",
"navigation", "screenLayout", "fontScale",
"uiMode", "orientation", "screenSize",
"smallestScreenSize"]
android:documentLaunchMode=["intoExisting" | "always" |
"none" | "never"]
android:enabled=["true" | "false"]
android:excludeFromRecents=["true" | "false"]
android:exported=["true" | "false"]
android:finishOnTaskLaunch=["true" | "false"]
android:hardwareAccelerated=["true" | "false"]
android:icon="drawable resource"
android:label="string resource"
android:launchMode=["standard" | "singleTop" |
"singleTask" | "singleInstance"]
android:maxRecents="integer"
android:multiprocess=["true" | "false"]
android:name="string"
android:noHistory=["true" | "false"]
android:parentActivityName="string"
android:permission="string"
android:process="string"
android:relinquishTaskIdentity=["true" | "false"]
android:screenOrientation=["unspecified" | "behind" |
"landscape" | "portrait" |
"reverseLandscape" | "reversePortrait" |
"sensorLandscape" | "sensorPortrait" |
"userLandscape" | "userPortrait" |
"sensor" | "fullSensor" | "nosensor" |
"user" | "fullUser" | "locked"]
android:stateNotNeeded=["true" | "false"]
android:taskAffinity="string"
android:theme="resource or theme"
android:uiOptions=["none" | "splitActionBarWhenNarrow"]
android:windowSoftInputMode=["stateUnspecified",
"stateUnchanged", "stateHidden",
"stateAlwaysHidden", "stateVisible",
"stateAlwaysVisible", "adjustUnspecified",
"adjustResize", "adjustPan"] >
</activity>