menu

Attribute

Translatable attributes list

What is Attribute List

The attribute list shows what XML attributes are supported in the newest version beta release v0.1. Each row tells you the relative Java method/member of the XML attribute. And the comment column tells you what you need to do additionally to make it effective, like reflection, etc.

The list will be updated continuously.

Attribute List

ClassAttributeMethodComment
Viewandroid:accessibilityTraversalAftersetAccessibilityTraversalAfter(int)API_22
Viewandroid:alphasetAlpha(float)API_11
Viewandroid:backgroundsetBackgroundColor(int)
Viewandroid:backgroundTintModesetBackgroundTintMode(Mode)API_21
Viewandroid:contentDescriptionsetContentDescription(CharSequence)API_4
Viewandroid:drawingCacheQualitysetDrawingCacheQuality(int)
Viewandroid:elevationsetElevation(float)API_21
Viewandroid:fadingEdgeLengthgetVerticalFadingEdgeLength
Viewandroid:fitsSystemWindowssetFitsSystemWindows(boolean)API_14
Viewandroid:focusableInTouchModesetFocusableInTouchMode(boolean)
Viewandroid:foregroundsetForeground(Drawable)
Viewandroid:foregroundTintsetForegroundTintList(ColorStateList)API_21
Viewandroid:hapticFeedbackEnabledsetHapticFeedbackEnabled(boolean)API_3
Viewandroid:importantForAccessibilitysetImportantForAccessibility(int)API_16
Viewandroid:keepScreenOnsetKeepScreenOn(boolean)
Viewandroid:layoutDirectionsetLayoutDirection(int)API_17
Viewandroid:minHeightsetMinimumHeight(int)
Viewandroid:nextFocusDownsetNextFocusDownId(int)
Viewandroid:nextFocusLeftsetNextFocusLeftId(int)
Viewandroid:nextFocusUpsetNextFocusUpId(int)
Viewandroid:paddingsetPaddingRelative(int,int,int,int)API_17
Viewandroid:paddingBottomsetPadding(int,int,int,int)ARGUMENT_4
Viewandroid:paddingLeftsetPadding(int,int,int,int)
Viewandroid:paddingStartsetPaddingRelative(int,int,int,int)API_17
Viewandroid:paddingTopsetPadding(int,int,int,int)ARGUMENT_2
Viewandroid:rotationsetRotation(float)API_11
Viewandroid:rotationYsetRotationY(float)API_11
Viewandroid:scaleXsetScaleX(float)API_11
Viewandroid:scrollIndicatorssetScrollIndicators(int)API_23
Viewandroid:scrollYNOT SUPPORTED YET
Viewandroid:scrollbarAlwaysDrawVerticalTrackNOT SUPPORTED YET
Viewandroid:scrollbarFadeDurationsetScrollBarFadeDuration(int)API_16
Viewandroid:scrollbarStylesetScrollBarStyle(int)
Viewandroid:scrollbarThumbVerticalNOT SUPPORTED YET
Viewandroid:scrollbarTrackVerticalNOT SUPPORTED YET
Viewandroid:soundEffectsEnabledsetSoundEffectsEnabled(boolean)
Viewandroid:tagNOT SUPPORTED YET
Viewandroid:textDirectionsetTextDirection(int)API_17
Viewandroid:transformPivotXsetPivotX(float)API_11
Viewandroid:transitionNameNOT SUPPORTED YET
Viewandroid:translationYsetTranslationY(float)API_11
Viewandroid:visibilitysetVisibility(int)
Viewandroid:layout_widthwidth(int)LAYOUT_PARAMATERS, VARIABLE_ASSIGNMENT
Viewandroid:layout_weightweight(float)LAYOUT_PARAMATERS, VARIABLE_ASSIGNMENT
Viewandroid:layout_marginToptopMargin(int)LAYOUT_PARAMATERS, VARIABLE_ASSIGNMENT
Viewandroid:layout_marginLeftleftMargin(int)LAYOUT_PARAMATERS, VARIABLE_ASSIGNMENT
Viewandroid:layout_marginStartsetMarginStart(int)LAYOUT_PARAMATERS
Viewandroid:layout_marginsetMargins(int,int,int,int)SAME_ARGUMENTS, LAYOUT_PARAMATERS
ViewGroupandroid:addStatesFromChildrenNOT SUPPORTED YET
ViewGroupandroid:animateLayoutChangessetLayoutTransition(LayoutTransition)API_11
ViewGroupandroid:clipChildrensetClipChildren(boolean)
ViewGroupandroid:descendantFocusabilityNOT SUPPORTED YET
ViewGroupandroid:layoutModesetLayoutMode(int)API_18
ViewGroupandroid:splitMotionEventssetMotionEventSplittingEnabled(boolean)API_11
AbsListViewandroid:choiceModeNOT SUPPORTED YET
AbsListViewandroid:fastScrollEnabledNOT SUPPORTED YET
AbsListViewandroid:scrollingCacheNOT SUPPORTED YET
AbsListViewandroid:stackFromBottomNOT SUPPORTED YET
CompoundButtonandroid:buttonsetButtonDrawable(Drawable)
CompoundButtonandroid:buttonTintModesetButtonTintMode(Mode)API_21
ToggleButtonandroid:textOffNOT SUPPORTED YET
Spinnerandroid:dropDownHorizontalOffsetsetDropDownHorizontalOffset(int)API_16
Spinnerandroid:dropDownVerticalOffsetsetDropDownVerticalOffset(int)API_16
Spinnerandroid:gravitysetGravity(int)API_11
Spinnerandroid:promptNOT SUPPORTED YET
RatingBarandroid:isIndicatorsetIsIndicator(boolean)
RatingBarandroid:ratingNOT SUPPORTED YET
Switchandroid:splitTracksetSplitTrack(boolean)API_21
Switchandroid:switchPaddingsetSwitchPadding(int)API_16
Switchandroid:textOffsetTextOff(CharSequence)API_14
Switchandroid:textStylesetSwitchTypeface(Typeface)API_14
Switchandroid:thumbTextPaddingsetThumbTextPadding(int)API_16
Switchandroid:thumbTintModesetThumbTintMode(Mode)API_23
Switchandroid:trackTintsetTrackTintList(ColorStateList)API_23
Switchandroid:typefacesetSwitchTypeface(Typeface)API_14
ProgressBarandroid:indeterminateNOT SUPPORTED YET
ProgressBarandroid:indeterminateDrawableNOT SUPPORTED YET
ProgressBarandroid:indeterminateOnlyNOT SUPPORTED YET
ProgressBarandroid:indeterminateTintModesetIndeterminateTintMode(Mode)API_21
ProgressBarandroid:maxNOT SUPPORTED YET
ProgressBarandroid:maxWidthNOT SUPPORTED YET
ProgressBarandroid:minWidthNOT SUPPORTED YET
ProgressBarandroid:progressNOT SUPPORTED YET
ProgressBarandroid:progressBackgroundTintModesetProgressBackgroundTintMode(Mode)API_21
ProgressBarandroid:progressTintsetProgressTintList(ColorStateList)API_21
ProgressBarandroid:secondaryProgressNOT SUPPORTED YET
ProgressBarandroid:secondaryProgressTintModesetSecondaryProgressTintMode(Mode)API_21
TextViewandroid:autoTextsetKeyListener(KeyListener)
TextViewandroid:capitalizesetKeyListener(KeyListener)
TextViewandroid:digitssetKeyListener(KeyListener)
TextViewandroid:drawableBottomsetCompoundDrawablesRelativeWithIntrinsicBounds(
int,int,int,int)
ARGUMENT_4
TextViewandroid:drawableBottomsetCompoundDrawablesWithIntrinsicBounds(Drawable,
Drawable,Drawable,Drawable)
ARGUMENT_4
TextViewandroid:drawableEndsetCompoundDrawablesRelativeWithIntrinsicBounds(
Drawable,Drawable,Drawable,Drawable)
ARGUMENT_3
TextViewandroid:drawableLeftsetCompoundDrawablesWithIntrinsicBounds(Drawable,
Drawable,Drawable,Drawable)
ARGUMENT_1
TextViewandroid:drawableRightsetCompoundDrawablesWithIntrinsicBounds(int,int,
int,int)
API_3
TextViewandroid:drawableStartsetCompoundDrawablesRelativeWithIntrinsicBounds(
int,int,int,int)
API_17
TextViewandroid:drawableTintsetCompoundDrawableTintList(ColorStateList)API_23
TextViewandroid:drawableTopsetCompoundDrawablesWithIntrinsicBounds(int,int,
int,int)
API_3
TextViewandroid:drawableTopsetCompoundDrawablesRelativeWithIntrinsicBounds(
Drawable,Drawable,Drawable,Drawable)
ARGUMENT_2
TextViewandroid:editableNOT SUPPORTED YET
TextViewandroid:elegantTextHeightsetElegantTextHeight(boolean)API_21
TextViewandroid:emssetEms(int)
TextViewandroid:fontFeatureSettingssetFontFeatureSettings(String)API_21
TextViewandroid:gravitysetGravity(int)
TextViewandroid:hintsetHint(int)
TextViewandroid:imeActionIdsetImeActionLabel(CharSequence,int)API_3
TextViewandroid:imeOptionssetImeOptions(int)API_3
TextViewandroid:inputMethodsetKeyListener(KeyListener)
TextViewandroid:letterSpacingsetLetterSpacing(float)API_21
TextViewandroid:lineSpacingMultipliersetLineSpacing(float,float)
TextViewandroid:linksClickablesetLinksClickable(boolean)
TextViewandroid:maxEmssetMaxEms(int)
TextViewandroid:maxLengthsetFilters(InputFilter)
TextViewandroid:maxWidthsetMaxWidth(int)
TextViewandroid:minHeightsetMinHeight(int)
TextViewandroid:minWidthsetMinWidth(int)
TextViewandroid:passwordsetTransformationMethod(TransformationMethod)
TextViewandroid:privateImeOptionssetPrivateImeOptions(String)API_3
TextViewandroid:selectAllOnFocussetSelectAllOnFocus(boolean)
TextViewandroid:shadowDxsetShadowLayer(float,float,float,int)
TextViewandroid:shadowRadiussetShadowLayer(float,float,float,int)
TextViewandroid:textsetText(CharSequence)
TextViewandroid:textAppearancesetTextAppearance(int)API_23
TextViewandroid:textColorsetTextColor(ColorStateList)
TextViewandroid:textColorHintsetHintTextColor(int)
TextViewandroid:textIsSelectableisTextSelectableAPI_11
TextViewandroid:textSizesetTextSize(float)
TextViewandroid:typefacesetTypeface(Typeface,int)
GridLayoutandroid:alignmentModesetAlignmentMode(int)API_14
GridLayoutandroid:columnOrderPreservedsetColumnOrderPreserved(boolean)API_14
GridLayoutandroid:rowCountsetRowCount(int)API_14
GridLayoutandroid:useDefaultMarginssetUseDefaultMargins(boolean)API_14
RelativeLayoutandroid:ignoreGravitysetIgnoreGravity(int)
LinearLayoutandroid:baselineAlignedChildIndexsetBaselineAlignedChildIndex(int)
LinearLayoutandroid:gravitysetGravity(int)
LinearLayoutandroid:orientationsetOrientation(int)
FrameLayoutandroid:foregroundGravitysetForegroundGravity(int)
TableLayoutandroid:collapseColumnssetColumnCollapsed(int,boolean)
TableLayoutandroid:stretchColumnssetStretchAllColumns(boolean)
Fragmentandroid:fragmentAllowReturnTransitionOverlapsetAllowReturnTransitionOverlap(boolean)API_21
Fragmentandroid:fragmentExitTransitionsetReturnTransition(Transition)API_21
Fragmentandroid:fragmentSharedElementEnterTransitionsetSharedElementEnterTransition(Transition)API_21
ListViewandroid:dividersetDivider(Drawable)
ListViewandroid:entriesNOT SUPPORTED YET
ListViewandroid:headerDividersEnabledsetHeaderDividersEnabled(boolean)
ExpandableListViewandroid:childIndicatorNOT SUPPORTED YET
ExpandableListViewandroid:childIndicatorLeftNOT SUPPORTED YET
ExpandableListViewandroid:childIndicatorStartNOT SUPPORTED YET
ExpandableListViewandroid:indicatorEndNOT SUPPORTED YET
ExpandableListViewandroid:indicatorRightNOT SUPPORTED YET
GridViewandroid:gravitysetGravity(int)
GridViewandroid:numColumnssetNumColumns(int)
GridViewandroid:verticalSpacingsetVerticalSpacing(int)
HorizontalScrollViewandroid:fillViewportsetFillViewport(boolean)API_3
TabWidgetandroid:tabStripEnabledNOT SUPPORTED YET
TabWidgetandroid:tabStripRightsetRightStripDrawable(Drawable)API_8
ImageViewandroid:baselinesetBaseline(int)API_11
ImageViewandroid:cropToPaddingsetCropToPadding(boolean)API_16
ImageViewandroid:maxWidthsetMaxWidth(int)
ImageViewandroid:srcsetImageResource(int)
ImageViewandroid:tintModesetImageTintMode(Mode)API_21
Galleryandroid:gravitysetGravity(int)
Galleryandroid:unselectedAlphasetUnselectedAlpha(float)
DatePickerandroid:calendarViewShownNOT SUPPORTED YET
DatePickerandroid:dayOfWeekBackgroundNOT SUPPORTED YET
DatePickerandroid:endYearNOT SUPPORTED YET
DatePickerandroid:headerBackgroundNOT SUPPORTED YET
DatePickerandroid:headerMonthTextAppearanceNOT SUPPORTED YET
DatePickerandroid:maxDateNOT SUPPORTED YET
DatePickerandroid:spinnersShownNOT SUPPORTED YET
DatePickerandroid:yearListItemTextAppearanceNOT SUPPORTED YET
CalendarViewandroid:firstDayOfWeeksetFirstDayOfWeek(int)API_11
CalendarViewandroid:maxDatesetMaxDate(long)API_11
CalendarViewandroid:selectedDateVerticalBarsetSelectedDateVerticalBar(Drawable)API_16
CalendarViewandroid:showWeekNumbersetShowWeekNumber(boolean)API_11
CalendarViewandroid:unfocusedMonthDateColorsetUnfocusedMonthDateColor(int)API_16
CalendarViewandroid:weekNumberColorsetWeekNumberColor(int)API_16
Chronometerandroid:countDownNOT SUPPORTED YET
AdapterViewFlipperandroid:flipIntervalsetFlipInterval(int)API_11
ViewAnimatorandroid:inAnimationNOT SUPPORTED YET
ViewStubandroid:inflatedIdsetInflatedId(int)
GestureOverlayViewandroid:eventsInterceptionEnabledNOT SUPPORTED YET
GestureOverlayViewandroid:fadeEnabledNOT SUPPORTED YET
GestureOverlayViewandroid:gestureColorNOT SUPPORTED YET
GestureOverlayViewandroid:gestureStrokeLengthThresholdNOT SUPPORTED YET
GestureOverlayViewandroid:gestureStrokeTypeNOT SUPPORTED YET
GestureOverlayViewandroid:orientationNOT SUPPORTED YET
TextClockandroid:format24HoursetFormat24Hour(CharSequence)API_17
Toolbarandroid:buttonGravityNOT SUPPORTED YET
Toolbarandroid:collapseIconNOT SUPPORTED YET
Toolbarandroid:contentInsetEndWithActionssetContentInsetEndWithActions(int)API_24
Toolbarandroid:contentInsetRightsetContentInsetsAbsolute(int,int)API_21
Toolbarandroid:contentInsetStartWithNavigationsetContentInsetStartWithNavigation(int)API_24
Toolbarandroid:logoNOT SUPPORTED YET
Toolbarandroid:maxButtonHeightNOT SUPPORTED YET
Toolbarandroid:navigationIconsetNavigationIcon(int)API_21
Toolbarandroid:subtitleNOT SUPPORTED YET
Toolbarandroid:subtitleTextColorNOT SUPPORTED YET
Toolbarandroid:titleMarginsetTitleMargin(int,int,int,int)API_24
Toolbarandroid:titleMarginEndsetTitleMarginEnd(int)API_24
Toolbarandroid:titleMarginTopsetTitleMarginTop(int)API_24
GradientDrawableandroid:anglesetOrientation(int)
GradientDrawableandroid:centerColorsetColors(int,int,int)ARGUMENT_2
GradientDrawableandroid:centerYsetGradientCenter(float,float)ARGUMENT_2
GradientDrawableandroid:colorsetColor(int)
GradientDrawableandroid:dashWidthsetStroke(int,int,int,int)ARGUMENT_3
GradientDrawableandroid:endColorsetColors(int,int)ARGUMENT_2
GradientDrawableandroid:heightNOT SUPPORTED YET
GradientDrawableandroid:innerRadiusRatioNOT SUPPORTED YET
GradientDrawableandroid:rightNOT SUPPORTED YET
GradientDrawableandroid:startColorsetColors(int,int,int)ARGUMENT_1
GradientDrawableandroid:thicknessNOT SUPPORTED YET
GradientDrawableandroid:topNOT SUPPORTED YET
GradientDrawableandroid:useLevelsetUseLevel(boolean)
GradientDrawableandroid:widthsetStroke(int,int,int,int)ARGUMENT_1
GradientDrawableandroid:topLeftRadiussetCornerRadii(float,float,float,float)ARGUMENT_1
GradientDrawableandroid:bottomRightRadiussetCornerRadii(float,float,float,float)ARGUMENT_3
ColorStateListandroid:alphaNOT SUPPORTED YET
StateListDrawableandroid:state_activatedNOT SUPPORTED YET
StateListDrawableandroid:state_checkableNOT SUPPORTED YET
StateListDrawableandroid:state_enabledNOT SUPPORTED YET
StateListDrawableandroid:state_focusedNOT SUPPORTED YET
StateListDrawableandroid:state_middleNOT SUPPORTED YET
StateListDrawableandroid:state_selectedNOT SUPPORTED YET
StateListDrawableandroid:state_window_focusedNOT SUPPORTED YET

Comment

  • API_X: This method has is available on upper API X.
  • CALL_FIRST: This method should call before others, or it may be overridden and has no effect.
  • SAME_ARGUMENTS: This method has multiple arguments, and the values of these parameters are the same as the value of attribute.
  • ARGUMENT_X: This method has multiple arguments, the value of attribute should place at X.
  • LAYOUT_PARAMATERS: This attribute value should be assigned to LayoutParamaters.
  • VARIABLE_ASSIGNMENT: This attribute value is assigned to the member of the class directly.
  • VARIABLE_REFLECTION: This attribute can only assigned by variable reflection.
  • METHOD_REFLECTION: This attribute can only assigned by method reflection.