Merge "Categorizing exported view properties." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
f39d5987b9
@ -1358,14 +1358,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
* Width as measured during measure pass.
|
* Width as measured during measure pass.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "measurement")
|
||||||
protected int mMeasuredWidth;
|
protected int mMeasuredWidth;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Height as measured during measure pass.
|
* Height as measured during measure pass.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "measurement")
|
||||||
protected int mMeasuredHeight;
|
protected int mMeasuredHeight;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1575,28 +1575,28 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
* to the left edge of this view.
|
* to the left edge of this view.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
protected int mLeft;
|
protected int mLeft;
|
||||||
/**
|
/**
|
||||||
* The distance in pixels from the left edge of this view's parent
|
* The distance in pixels from the left edge of this view's parent
|
||||||
* to the right edge of this view.
|
* to the right edge of this view.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
protected int mRight;
|
protected int mRight;
|
||||||
/**
|
/**
|
||||||
* The distance in pixels from the top edge of this view's parent
|
* The distance in pixels from the top edge of this view's parent
|
||||||
* to the top edge of this view.
|
* to the top edge of this view.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
protected int mTop;
|
protected int mTop;
|
||||||
/**
|
/**
|
||||||
* The distance in pixels from the top edge of this view's parent
|
* The distance in pixels from the top edge of this view's parent
|
||||||
* to the bottom edge of this view.
|
* to the bottom edge of this view.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
protected int mBottom;
|
protected int mBottom;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1604,14 +1604,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
* horizontally.
|
* horizontally.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "scrolling")
|
||||||
protected int mScrollX;
|
protected int mScrollX;
|
||||||
/**
|
/**
|
||||||
* The offset, in pixels, by which the content of this view is scrolled
|
* The offset, in pixels, by which the content of this view is scrolled
|
||||||
* vertically.
|
* vertically.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "scrolling")
|
||||||
protected int mScrollY;
|
protected int mScrollY;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1619,28 +1619,28 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
* left edge of this view and the left edge of its content.
|
* left edge of this view and the left edge of its content.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "padding")
|
||||||
protected int mPaddingLeft;
|
protected int mPaddingLeft;
|
||||||
/**
|
/**
|
||||||
* The right padding in pixels, that is the distance in pixels between the
|
* The right padding in pixels, that is the distance in pixels between the
|
||||||
* right edge of this view and the right edge of its content.
|
* right edge of this view and the right edge of its content.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "padding")
|
||||||
protected int mPaddingRight;
|
protected int mPaddingRight;
|
||||||
/**
|
/**
|
||||||
* The top padding in pixels, that is the distance in pixels between the
|
* The top padding in pixels, that is the distance in pixels between the
|
||||||
* top edge of this view and the top edge of its content.
|
* top edge of this view and the top edge of its content.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "padding")
|
||||||
protected int mPaddingTop;
|
protected int mPaddingTop;
|
||||||
/**
|
/**
|
||||||
* The bottom padding in pixels, that is the distance in pixels between the
|
* The bottom padding in pixels, that is the distance in pixels between the
|
||||||
* bottom edge of this view and the bottom edge of its content.
|
* bottom edge of this view and the bottom edge of its content.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "padding")
|
||||||
protected int mPaddingBottom;
|
protected int mPaddingBottom;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1651,13 +1651,13 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
/**
|
/**
|
||||||
* Cache the paddingRight set by the user to append to the scrollbar's size.
|
* Cache the paddingRight set by the user to append to the scrollbar's size.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "padding")
|
||||||
int mUserPaddingRight;
|
int mUserPaddingRight;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cache the paddingBottom set by the user to append to the scrollbar's size.
|
* Cache the paddingBottom set by the user to append to the scrollbar's size.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "padding")
|
||||||
int mUserPaddingBottom;
|
int mUserPaddingBottom;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1764,14 +1764,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
* The minimum height of the view. We'll try our best to have the height
|
* The minimum height of the view. We'll try our best to have the height
|
||||||
* of this view to at least this amount.
|
* of this view to at least this amount.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "measurement")
|
||||||
private int mMinHeight;
|
private int mMinHeight;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The minimum width of the view. We'll try our best to have the width
|
* The minimum width of the view. We'll try our best to have the width
|
||||||
* of this view to at least this amount.
|
* of this view to at least this amount.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "measurement")
|
||||||
private int mMinWidth;
|
private int mMinWidth;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2602,7 +2602,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
*
|
*
|
||||||
* @return True if this view has or contains focus, false otherwise.
|
* @return True if this view has or contains focus, false otherwise.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "focus")
|
||||||
public boolean hasFocus() {
|
public boolean hasFocus() {
|
||||||
return (mPrivateFlags & FOCUSED) != 0;
|
return (mPrivateFlags & FOCUSED) != 0;
|
||||||
}
|
}
|
||||||
@ -2780,7 +2780,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
*
|
*
|
||||||
* @return True if this view has focus, false otherwise.
|
* @return True if this view has focus, false otherwise.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "focus")
|
||||||
public boolean isFocused() {
|
public boolean isFocused() {
|
||||||
return (mPrivateFlags & FOCUSED) != 0;
|
return (mPrivateFlags & FOCUSED) != 0;
|
||||||
}
|
}
|
||||||
@ -3191,7 +3191,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
*
|
*
|
||||||
* @return true if this view has nothing to draw, false otherwise
|
* @return true if this view has nothing to draw, false otherwise
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "drawing")
|
||||||
public boolean willNotDraw() {
|
public boolean willNotDraw() {
|
||||||
return (mViewFlags & DRAW_MASK) == WILL_NOT_DRAW;
|
return (mViewFlags & DRAW_MASK) == WILL_NOT_DRAW;
|
||||||
}
|
}
|
||||||
@ -3214,7 +3214,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
*
|
*
|
||||||
* @return true if this view does not cache its drawing, false otherwise
|
* @return true if this view does not cache its drawing, false otherwise
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "drawing")
|
||||||
public boolean willNotCacheDrawing() {
|
public boolean willNotCacheDrawing() {
|
||||||
return (mViewFlags & WILL_NOT_CACHE_DRAWING) == WILL_NOT_CACHE_DRAWING;
|
return (mViewFlags & WILL_NOT_CACHE_DRAWING) == WILL_NOT_CACHE_DRAWING;
|
||||||
}
|
}
|
||||||
@ -3357,7 +3357,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
* @return True if this view can take focus, or false otherwise.
|
* @return True if this view can take focus, or false otherwise.
|
||||||
* @attr ref android.R.styleable#View_focusable
|
* @attr ref android.R.styleable#View_focusable
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "focus")
|
||||||
public final boolean isFocusable() {
|
public final boolean isFocusable() {
|
||||||
return FOCUSABLE == (mViewFlags & FOCUSABLE_MASK);
|
return FOCUSABLE == (mViewFlags & FOCUSABLE_MASK);
|
||||||
}
|
}
|
||||||
@ -4666,7 +4666,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
*
|
*
|
||||||
* @return The width of your view, in pixels.
|
* @return The width of your view, in pixels.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
public final int getWidth() {
|
public final int getWidth() {
|
||||||
return mRight - mLeft;
|
return mRight - mLeft;
|
||||||
}
|
}
|
||||||
@ -4676,7 +4676,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
*
|
*
|
||||||
* @return The height of your view, in pixels.
|
* @return The height of your view, in pixels.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
public final int getHeight() {
|
public final int getHeight() {
|
||||||
return mBottom - mTop;
|
return mBottom - mTop;
|
||||||
}
|
}
|
||||||
@ -4848,7 +4848,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
* of ViewGroup that are responsible for arranging their children.
|
* of ViewGroup that are responsible for arranging their children.
|
||||||
* @return The LayoutParams associated with this view
|
* @return The LayoutParams associated with this view
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty(deepExport = true, prefix = "layout_")
|
@ViewDebug.ExportedProperty(deepExport = true, category = "layout")
|
||||||
public ViewGroup.LayoutParams getLayoutParams() {
|
public ViewGroup.LayoutParams getLayoutParams() {
|
||||||
return mLayoutParams;
|
return mLayoutParams;
|
||||||
}
|
}
|
||||||
@ -5162,7 +5162,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
*
|
*
|
||||||
* @return True if this View is guaranteed to be fully opaque, false otherwise.
|
* @return True if this View is guaranteed to be fully opaque, false otherwise.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "drawing")
|
||||||
public boolean isOpaque() {
|
public boolean isOpaque() {
|
||||||
return (mPrivateFlags & OPAQUE_MASK) == OPAQUE_MASK;
|
return (mPrivateFlags & OPAQUE_MASK) == OPAQUE_MASK;
|
||||||
}
|
}
|
||||||
@ -6247,7 +6247,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
* @see #setDrawingCacheEnabled(boolean)
|
* @see #setDrawingCacheEnabled(boolean)
|
||||||
* @see #getDrawingCache()
|
* @see #getDrawingCache()
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "drawing")
|
||||||
public boolean isDrawingCacheEnabled() {
|
public boolean isDrawingCacheEnabled() {
|
||||||
return (mViewFlags & DRAWING_CACHE_ENABLED) == DRAWING_CACHE_ENABLED;
|
return (mViewFlags & DRAWING_CACHE_ENABLED) == DRAWING_CACHE_ENABLED;
|
||||||
}
|
}
|
||||||
@ -8116,7 +8116,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
|
|||||||
* @return the offset of the baseline within the widget's bounds or -1
|
* @return the offset of the baseline within the widget's bounds or -1
|
||||||
* if baseline alignment is not supported
|
* if baseline alignment is not supported
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
public int getBaseline() {
|
public int getBaseline() {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -255,6 +255,14 @@ public class ViewDebug {
|
|||||||
* @see #deepExport()
|
* @see #deepExport()
|
||||||
*/
|
*/
|
||||||
String prefix() default "";
|
String prefix() default "";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specifies the category the property falls into, such as measurement,
|
||||||
|
* layout, drawing, etc.
|
||||||
|
*
|
||||||
|
* @return the category as String
|
||||||
|
*/
|
||||||
|
String category() default "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1368,9 +1376,13 @@ public class ViewDebug {
|
|||||||
// TODO: This should happen on the UI thread
|
// TODO: This should happen on the UI thread
|
||||||
Object methodValue = method.invoke(view, (Object[]) null);
|
Object methodValue = method.invoke(view, (Object[]) null);
|
||||||
final Class<?> returnType = method.getReturnType();
|
final Class<?> returnType = method.getReturnType();
|
||||||
|
final ExportedProperty property = sAnnotations.get(method);
|
||||||
|
String fullName = (property.category().length() == 0) ?
|
||||||
|
method.getName() :
|
||||||
|
(property.category() + ":" + method.getName());
|
||||||
|
|
||||||
if (returnType == int.class) {
|
if (returnType == int.class) {
|
||||||
final ExportedProperty property = sAnnotations.get(method);
|
|
||||||
if (property.resolveId() && context != null) {
|
if (property.resolveId() && context != null) {
|
||||||
final int id = (Integer) methodValue;
|
final int id = (Integer) methodValue;
|
||||||
methodValue = resolveId(context, id);
|
methodValue = resolveId(context, id);
|
||||||
@ -1378,7 +1390,7 @@ public class ViewDebug {
|
|||||||
final FlagToString[] flagsMapping = property.flagMapping();
|
final FlagToString[] flagsMapping = property.flagMapping();
|
||||||
if (flagsMapping.length > 0) {
|
if (flagsMapping.length > 0) {
|
||||||
final int intValue = (Integer) methodValue;
|
final int intValue = (Integer) methodValue;
|
||||||
final String valuePrefix = prefix + method.getName() + '_';
|
final String valuePrefix = prefix + fullName + '_';
|
||||||
exportUnrolledFlags(out, flagsMapping, intValue, valuePrefix);
|
exportUnrolledFlags(out, flagsMapping, intValue, valuePrefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1402,21 +1414,22 @@ public class ViewDebug {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (returnType == int[].class) {
|
} else if (returnType == int[].class) {
|
||||||
final ExportedProperty property = sAnnotations.get(method);
|
|
||||||
final int[] array = (int[]) methodValue;
|
final int[] array = (int[]) methodValue;
|
||||||
final String valuePrefix = prefix + method.getName() + '_';
|
final String valuePrefix = prefix + fullName + '_';
|
||||||
final String suffix = "()";
|
final String suffix = "()";
|
||||||
|
|
||||||
exportUnrolledArray(context, out, property, array, valuePrefix, suffix);
|
exportUnrolledArray(context, out, property, array, valuePrefix, suffix);
|
||||||
|
|
||||||
|
// Probably want to return here, same as for fields.
|
||||||
|
return;
|
||||||
} else if (!returnType.isPrimitive()) {
|
} else if (!returnType.isPrimitive()) {
|
||||||
final ExportedProperty property = sAnnotations.get(method);
|
|
||||||
if (property.deepExport()) {
|
if (property.deepExport()) {
|
||||||
dumpViewProperties(context, methodValue, out, prefix + property.prefix());
|
dumpViewProperties(context, methodValue, out, prefix + property.prefix());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
writeEntry(out, prefix, method.getName(), "()", methodValue);
|
writeEntry(out, prefix, fullName, "()", methodValue);
|
||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
} catch (InvocationTargetException e) {
|
} catch (InvocationTargetException e) {
|
||||||
}
|
}
|
||||||
@ -1436,9 +1449,13 @@ public class ViewDebug {
|
|||||||
try {
|
try {
|
||||||
Object fieldValue = null;
|
Object fieldValue = null;
|
||||||
final Class<?> type = field.getType();
|
final Class<?> type = field.getType();
|
||||||
|
final ExportedProperty property = sAnnotations.get(field);
|
||||||
|
String fullName = (property.category().length() == 0) ?
|
||||||
|
field.getName() :
|
||||||
|
(property.category() + ":" + field.getName());
|
||||||
|
|
||||||
if (type == int.class) {
|
if (type == int.class) {
|
||||||
final ExportedProperty property = sAnnotations.get(field);
|
|
||||||
if (property.resolveId() && context != null) {
|
if (property.resolveId() && context != null) {
|
||||||
final int id = field.getInt(view);
|
final int id = field.getInt(view);
|
||||||
fieldValue = resolveId(context, id);
|
fieldValue = resolveId(context, id);
|
||||||
@ -1446,7 +1463,7 @@ public class ViewDebug {
|
|||||||
final FlagToString[] flagsMapping = property.flagMapping();
|
final FlagToString[] flagsMapping = property.flagMapping();
|
||||||
if (flagsMapping.length > 0) {
|
if (flagsMapping.length > 0) {
|
||||||
final int intValue = field.getInt(view);
|
final int intValue = field.getInt(view);
|
||||||
final String valuePrefix = prefix + field.getName() + '_';
|
final String valuePrefix = prefix + fullName + '_';
|
||||||
exportUnrolledFlags(out, flagsMapping, intValue, valuePrefix);
|
exportUnrolledFlags(out, flagsMapping, intValue, valuePrefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1468,9 +1485,8 @@ public class ViewDebug {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (type == int[].class) {
|
} else if (type == int[].class) {
|
||||||
final ExportedProperty property = sAnnotations.get(field);
|
|
||||||
final int[] array = (int[]) field.get(view);
|
final int[] array = (int[]) field.get(view);
|
||||||
final String valuePrefix = prefix + field.getName() + '_';
|
final String valuePrefix = prefix + fullName + '_';
|
||||||
final String suffix = "";
|
final String suffix = "";
|
||||||
|
|
||||||
exportUnrolledArray(context, out, property, array, valuePrefix, suffix);
|
exportUnrolledArray(context, out, property, array, valuePrefix, suffix);
|
||||||
@ -1478,7 +1494,6 @@ public class ViewDebug {
|
|||||||
// We exit here!
|
// We exit here!
|
||||||
return;
|
return;
|
||||||
} else if (!type.isPrimitive()) {
|
} else if (!type.isPrimitive()) {
|
||||||
final ExportedProperty property = sAnnotations.get(field);
|
|
||||||
if (property.deepExport()) {
|
if (property.deepExport()) {
|
||||||
dumpViewProperties(context, field.get(view), out,
|
dumpViewProperties(context, field.get(view), out,
|
||||||
prefix + property.prefix());
|
prefix + property.prefix());
|
||||||
@ -1490,7 +1505,7 @@ public class ViewDebug {
|
|||||||
fieldValue = field.get(view);
|
fieldValue = field.get(view);
|
||||||
}
|
}
|
||||||
|
|
||||||
writeEntry(out, prefix, field.getName(), "", fieldValue);
|
writeEntry(out, prefix, fullName, "", fieldValue);
|
||||||
} catch (IllegalAccessException e) {
|
} catch (IllegalAccessException e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -363,7 +363,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
|||||||
* @return one of {@link #FOCUS_BEFORE_DESCENDANTS}, {@link #FOCUS_AFTER_DESCENDANTS},
|
* @return one of {@link #FOCUS_BEFORE_DESCENDANTS}, {@link #FOCUS_AFTER_DESCENDANTS},
|
||||||
* {@link #FOCUS_BLOCK_DESCENDANTS}.
|
* {@link #FOCUS_BLOCK_DESCENDANTS}.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty(mapping = {
|
@ViewDebug.ExportedProperty(category = "focus", mapping = {
|
||||||
@ViewDebug.IntToString(from = FOCUS_BEFORE_DESCENDANTS, to = "FOCUS_BEFORE_DESCENDANTS"),
|
@ViewDebug.IntToString(from = FOCUS_BEFORE_DESCENDANTS, to = "FOCUS_BEFORE_DESCENDANTS"),
|
||||||
@ViewDebug.IntToString(from = FOCUS_AFTER_DESCENDANTS, to = "FOCUS_AFTER_DESCENDANTS"),
|
@ViewDebug.IntToString(from = FOCUS_AFTER_DESCENDANTS, to = "FOCUS_AFTER_DESCENDANTS"),
|
||||||
@ViewDebug.IntToString(from = FOCUS_BLOCK_DESCENDANTS, to = "FOCUS_BLOCK_DESCENDANTS")
|
@ViewDebug.IntToString(from = FOCUS_BLOCK_DESCENDANTS, to = "FOCUS_BLOCK_DESCENDANTS")
|
||||||
@ -2764,7 +2764,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
|||||||
* @see #setChildrenDrawnWithCacheEnabled(boolean)
|
* @see #setChildrenDrawnWithCacheEnabled(boolean)
|
||||||
* @see View#setDrawingCacheEnabled(boolean)
|
* @see View#setDrawingCacheEnabled(boolean)
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "drawing")
|
||||||
public boolean isAlwaysDrawnWithCacheEnabled() {
|
public boolean isAlwaysDrawnWithCacheEnabled() {
|
||||||
return (mGroupFlags & FLAG_ALWAYS_DRAWN_WITH_CACHE) == FLAG_ALWAYS_DRAWN_WITH_CACHE;
|
return (mGroupFlags & FLAG_ALWAYS_DRAWN_WITH_CACHE) == FLAG_ALWAYS_DRAWN_WITH_CACHE;
|
||||||
}
|
}
|
||||||
@ -2799,7 +2799,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
|||||||
* @see #setAlwaysDrawnWithCacheEnabled(boolean)
|
* @see #setAlwaysDrawnWithCacheEnabled(boolean)
|
||||||
* @see #setChildrenDrawnWithCacheEnabled(boolean)
|
* @see #setChildrenDrawnWithCacheEnabled(boolean)
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "drawing")
|
||||||
protected boolean isChildrenDrawnWithCacheEnabled() {
|
protected boolean isChildrenDrawnWithCacheEnabled() {
|
||||||
return (mGroupFlags & FLAG_CHILDREN_DRAWN_WITH_CACHE) == FLAG_CHILDREN_DRAWN_WITH_CACHE;
|
return (mGroupFlags & FLAG_CHILDREN_DRAWN_WITH_CACHE) == FLAG_CHILDREN_DRAWN_WITH_CACHE;
|
||||||
}
|
}
|
||||||
@ -2831,7 +2831,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
|||||||
* @see #setChildrenDrawingOrderEnabled(boolean)
|
* @see #setChildrenDrawingOrderEnabled(boolean)
|
||||||
* @see #getChildDrawingOrder(int, int)
|
* @see #getChildDrawingOrder(int, int)
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "drawing")
|
||||||
protected boolean isChildrenDrawingOrderEnabled() {
|
protected boolean isChildrenDrawingOrderEnabled() {
|
||||||
return (mGroupFlags & FLAG_USE_CHILD_DRAWING_ORDER) == FLAG_USE_CHILD_DRAWING_ORDER;
|
return (mGroupFlags & FLAG_USE_CHILD_DRAWING_ORDER) == FLAG_USE_CHILD_DRAWING_ORDER;
|
||||||
}
|
}
|
||||||
@ -2868,7 +2868,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
|||||||
* {@link #PERSISTENT_ANIMATION_CACHE}, {@link #PERSISTENT_SCROLLING_CACHE}
|
* {@link #PERSISTENT_ANIMATION_CACHE}, {@link #PERSISTENT_SCROLLING_CACHE}
|
||||||
* and {@link #PERSISTENT_ALL_CACHES}
|
* and {@link #PERSISTENT_ALL_CACHES}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty(mapping = {
|
@ViewDebug.ExportedProperty(category = "drawing", mapping = {
|
||||||
@ViewDebug.IntToString(from = PERSISTENT_NO_CACHE, to = "NONE"),
|
@ViewDebug.IntToString(from = PERSISTENT_NO_CACHE, to = "NONE"),
|
||||||
@ViewDebug.IntToString(from = PERSISTENT_ALL_CACHES, to = "ANIMATION"),
|
@ViewDebug.IntToString(from = PERSISTENT_ALL_CACHES, to = "ANIMATION"),
|
||||||
@ViewDebug.IntToString(from = PERSISTENT_SCROLLING_CACHE, to = "SCROLLING"),
|
@ViewDebug.IntToString(from = PERSISTENT_SCROLLING_CACHE, to = "SCROLLING"),
|
||||||
@ -3501,7 +3501,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
|||||||
* constants FILL_PARENT (replaced by MATCH_PARENT ,
|
* constants FILL_PARENT (replaced by MATCH_PARENT ,
|
||||||
* in API Level 8) or WRAP_CONTENT. or an exact size.
|
* in API Level 8) or WRAP_CONTENT. or an exact size.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty(mapping = {
|
@ViewDebug.ExportedProperty(category = "layout", mapping = {
|
||||||
@ViewDebug.IntToString(from = MATCH_PARENT, to = "MATCH_PARENT"),
|
@ViewDebug.IntToString(from = MATCH_PARENT, to = "MATCH_PARENT"),
|
||||||
@ViewDebug.IntToString(from = WRAP_CONTENT, to = "WRAP_CONTENT")
|
@ViewDebug.IntToString(from = WRAP_CONTENT, to = "WRAP_CONTENT")
|
||||||
})
|
})
|
||||||
@ -3512,7 +3512,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
|||||||
* constants FILL_PARENT (replaced by MATCH_PARENT ,
|
* constants FILL_PARENT (replaced by MATCH_PARENT ,
|
||||||
* in API Level 8) or WRAP_CONTENT. or an exact size.
|
* in API Level 8) or WRAP_CONTENT. or an exact size.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty(mapping = {
|
@ViewDebug.ExportedProperty(category = "layout", mapping = {
|
||||||
@ViewDebug.IntToString(from = MATCH_PARENT, to = "MATCH_PARENT"),
|
@ViewDebug.IntToString(from = MATCH_PARENT, to = "MATCH_PARENT"),
|
||||||
@ViewDebug.IntToString(from = WRAP_CONTENT, to = "WRAP_CONTENT")
|
@ViewDebug.IntToString(from = WRAP_CONTENT, to = "WRAP_CONTENT")
|
||||||
})
|
})
|
||||||
@ -3637,25 +3637,25 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
|
|||||||
/**
|
/**
|
||||||
* The left margin in pixels of the child.
|
* The left margin in pixels of the child.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
public int leftMargin;
|
public int leftMargin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The top margin in pixels of the child.
|
* The top margin in pixels of the child.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
public int topMargin;
|
public int topMargin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The right margin in pixels of the child.
|
* The right margin in pixels of the child.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
public int rightMargin;
|
public int rightMargin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The bottom margin in pixels of the child.
|
* The bottom margin in pixels of the child.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
public int bottomMargin;
|
public int bottomMargin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3830,7 +3830,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
|||||||
* View type for this view, as returned by
|
* View type for this view, as returned by
|
||||||
* {@link android.widget.Adapter#getItemViewType(int) }
|
* {@link android.widget.Adapter#getItemViewType(int) }
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty(mapping = {
|
@ViewDebug.ExportedProperty(category = "list", mapping = {
|
||||||
@ViewDebug.IntToString(from = ITEM_VIEW_TYPE_IGNORE, to = "ITEM_VIEW_TYPE_IGNORE"),
|
@ViewDebug.IntToString(from = ITEM_VIEW_TYPE_IGNORE, to = "ITEM_VIEW_TYPE_IGNORE"),
|
||||||
@ViewDebug.IntToString(from = ITEM_VIEW_TYPE_HEADER_OR_FOOTER, to = "ITEM_VIEW_TYPE_HEADER_OR_FOOTER")
|
@ViewDebug.IntToString(from = ITEM_VIEW_TYPE_HEADER_OR_FOOTER, to = "ITEM_VIEW_TYPE_HEADER_OR_FOOTER")
|
||||||
})
|
})
|
||||||
@ -3842,7 +3842,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
|||||||
* been added to the list view and whether they should be treated as
|
* been added to the list view and whether they should be treated as
|
||||||
* recycled views or not.
|
* recycled views or not.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "list")
|
||||||
boolean recycledHeaderFooter;
|
boolean recycledHeaderFooter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3853,7 +3853,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
|||||||
* view to be attached to the window rather than just attached to the
|
* view to be attached to the window rather than just attached to the
|
||||||
* parent.
|
* parent.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "list")
|
||||||
boolean forceAdd;
|
boolean forceAdd;
|
||||||
|
|
||||||
public LayoutParams(Context c, AttributeSet attrs) {
|
public LayoutParams(Context c, AttributeSet attrs) {
|
||||||
|
@ -56,7 +56,7 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup {
|
|||||||
/**
|
/**
|
||||||
* The position of the first child displayed
|
* The position of the first child displayed
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "scrolling")
|
||||||
int mFirstPosition = 0;
|
int mFirstPosition = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -141,7 +141,7 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup {
|
|||||||
* The position within the adapter's data set of the item to select
|
* The position within the adapter's data set of the item to select
|
||||||
* during the next layout.
|
* during the next layout.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "list")
|
||||||
int mNextSelectedPosition = INVALID_POSITION;
|
int mNextSelectedPosition = INVALID_POSITION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -152,7 +152,7 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup {
|
|||||||
/**
|
/**
|
||||||
* The position within the adapter's data set of the currently selected item.
|
* The position within the adapter's data set of the currently selected item.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "list")
|
||||||
int mSelectedPosition = INVALID_POSITION;
|
int mSelectedPosition = INVALID_POSITION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -168,7 +168,7 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup {
|
|||||||
/**
|
/**
|
||||||
* The number of items in the current adapter.
|
* The number of items in the current adapter.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "list")
|
||||||
int mItemCount;
|
int mItemCount;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -46,27 +46,32 @@ import android.widget.RemoteViews.RemoteView;
|
|||||||
*/
|
*/
|
||||||
@RemoteView
|
@RemoteView
|
||||||
public class FrameLayout extends ViewGroup {
|
public class FrameLayout extends ViewGroup {
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "measurement")
|
||||||
boolean mMeasureAllChildren = false;
|
boolean mMeasureAllChildren = false;
|
||||||
|
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "drawing")
|
||||||
private Drawable mForeground;
|
private Drawable mForeground;
|
||||||
@ViewDebug.ExportedProperty
|
|
||||||
|
@ViewDebug.ExportedProperty(category = "padding")
|
||||||
private int mForegroundPaddingLeft = 0;
|
private int mForegroundPaddingLeft = 0;
|
||||||
@ViewDebug.ExportedProperty
|
|
||||||
|
@ViewDebug.ExportedProperty(category = "padding")
|
||||||
private int mForegroundPaddingTop = 0;
|
private int mForegroundPaddingTop = 0;
|
||||||
@ViewDebug.ExportedProperty
|
|
||||||
|
@ViewDebug.ExportedProperty(category = "padding")
|
||||||
private int mForegroundPaddingRight = 0;
|
private int mForegroundPaddingRight = 0;
|
||||||
@ViewDebug.ExportedProperty
|
|
||||||
|
@ViewDebug.ExportedProperty(category = "padding")
|
||||||
private int mForegroundPaddingBottom = 0;
|
private int mForegroundPaddingBottom = 0;
|
||||||
|
|
||||||
private final Rect mSelfBounds = new Rect();
|
private final Rect mSelfBounds = new Rect();
|
||||||
private final Rect mOverlayBounds = new Rect();
|
private final Rect mOverlayBounds = new Rect();
|
||||||
@ViewDebug.ExportedProperty
|
|
||||||
|
@ViewDebug.ExportedProperty(category = "drawing")
|
||||||
private int mForegroundGravity = Gravity.FILL;
|
private int mForegroundGravity = Gravity.FILL;
|
||||||
|
|
||||||
/** {@hide} */
|
/** {@hide} */
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "drawing")
|
||||||
protected boolean mForegroundInPadding = true;
|
protected boolean mForegroundInPadding = true;
|
||||||
|
|
||||||
boolean mForegroundBoundsChanged = false;
|
boolean mForegroundBoundsChanged = false;
|
||||||
|
@ -50,7 +50,7 @@ public class LinearLayout extends ViewGroup {
|
|||||||
* Whether the children of this layout are baseline aligned. Only applicable
|
* Whether the children of this layout are baseline aligned. Only applicable
|
||||||
* if {@link #mOrientation} is horizontal.
|
* if {@link #mOrientation} is horizontal.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
private boolean mBaselineAligned = true;
|
private boolean mBaselineAligned = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -60,7 +60,7 @@ public class LinearLayout extends ViewGroup {
|
|||||||
* Note: this is orthogonal to {@link #mBaselineAligned}, which is concerned
|
* Note: this is orthogonal to {@link #mBaselineAligned}, which is concerned
|
||||||
* with whether the children of this layout are baseline aligned.
|
* with whether the children of this layout are baseline aligned.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
private int mBaselineAlignedChildIndex = -1;
|
private int mBaselineAlignedChildIndex = -1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -68,12 +68,13 @@ public class LinearLayout extends ViewGroup {
|
|||||||
* We'll calculate the baseline of this layout as we measure vertically; for
|
* We'll calculate the baseline of this layout as we measure vertically; for
|
||||||
* horizontal linear layouts, the offset of 0 is appropriate.
|
* horizontal linear layouts, the offset of 0 is appropriate.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "measurement")
|
||||||
private int mBaselineChildTop = 0;
|
private int mBaselineChildTop = 0;
|
||||||
|
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "measurement")
|
||||||
private int mOrientation;
|
private int mOrientation;
|
||||||
@ViewDebug.ExportedProperty(mapping = {
|
|
||||||
|
@ViewDebug.ExportedProperty(category = "measurement", mapping = {
|
||||||
@ViewDebug.IntToString(from = -1, to = "NONE"),
|
@ViewDebug.IntToString(from = -1, to = "NONE"),
|
||||||
@ViewDebug.IntToString(from = Gravity.NO_GRAVITY, to = "NONE"),
|
@ViewDebug.IntToString(from = Gravity.NO_GRAVITY, to = "NONE"),
|
||||||
@ViewDebug.IntToString(from = Gravity.TOP, to = "TOP"),
|
@ViewDebug.IntToString(from = Gravity.TOP, to = "TOP"),
|
||||||
@ -88,13 +89,14 @@ public class LinearLayout extends ViewGroup {
|
|||||||
@ViewDebug.IntToString(from = Gravity.FILL, to = "FILL")
|
@ViewDebug.IntToString(from = Gravity.FILL, to = "FILL")
|
||||||
})
|
})
|
||||||
private int mGravity = Gravity.LEFT | Gravity.TOP;
|
private int mGravity = Gravity.LEFT | Gravity.TOP;
|
||||||
@ViewDebug.ExportedProperty
|
|
||||||
|
@ViewDebug.ExportedProperty(category = "measurement")
|
||||||
private int mTotalLength;
|
private int mTotalLength;
|
||||||
|
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
private float mWeightSum;
|
private float mWeightSum;
|
||||||
|
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
private boolean mUseLargestChild;
|
private boolean mUseLargestChild;
|
||||||
|
|
||||||
private int[] mMaxAscent;
|
private int[] mMaxAscent;
|
||||||
@ -1364,7 +1366,7 @@ public class LinearLayout extends ViewGroup {
|
|||||||
* 0 if the view should not be stretched. Otherwise the extra pixels
|
* 0 if the view should not be stretched. Otherwise the extra pixels
|
||||||
* will be pro-rated among all views whose weight is greater than 0.
|
* will be pro-rated among all views whose weight is greater than 0.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
public float weight;
|
public float weight;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1372,7 +1374,7 @@ public class LinearLayout extends ViewGroup {
|
|||||||
*
|
*
|
||||||
* @see android.view.Gravity
|
* @see android.view.Gravity
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty(mapping = {
|
@ViewDebug.ExportedProperty(category = "layout", mapping = {
|
||||||
@ViewDebug.IntToString(from = -1, to = "NONE"),
|
@ViewDebug.IntToString(from = -1, to = "NONE"),
|
||||||
@ViewDebug.IntToString(from = Gravity.NO_GRAVITY, to = "NONE"),
|
@ViewDebug.IntToString(from = Gravity.NO_GRAVITY, to = "NONE"),
|
||||||
@ViewDebug.IntToString(from = Gravity.TOP, to = "TOP"),
|
@ViewDebug.IntToString(from = Gravity.TOP, to = "TOP"),
|
||||||
|
@ -1140,7 +1140,7 @@ public class ListView extends AbsListView {
|
|||||||
* UNSPECIFIED/AT_MOST modes, false otherwise.
|
* UNSPECIFIED/AT_MOST modes, false otherwise.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "list")
|
||||||
protected boolean recycleOnMeasure() {
|
protected boolean recycleOnMeasure() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -336,7 +336,7 @@ public class ProgressBar extends View {
|
|||||||
*
|
*
|
||||||
* @return true if the progress bar is in indeterminate mode
|
* @return true if the progress bar is in indeterminate mode
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "progress")
|
||||||
public synchronized boolean isIndeterminate() {
|
public synchronized boolean isIndeterminate() {
|
||||||
return mIndeterminate;
|
return mIndeterminate;
|
||||||
}
|
}
|
||||||
@ -609,7 +609,7 @@ public class ProgressBar extends View {
|
|||||||
* @see #setMax(int)
|
* @see #setMax(int)
|
||||||
* @see #getMax()
|
* @see #getMax()
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "progress")
|
||||||
public synchronized int getProgress() {
|
public synchronized int getProgress() {
|
||||||
return mIndeterminate ? 0 : mProgress;
|
return mIndeterminate ? 0 : mProgress;
|
||||||
}
|
}
|
||||||
@ -626,7 +626,7 @@ public class ProgressBar extends View {
|
|||||||
* @see #setMax(int)
|
* @see #setMax(int)
|
||||||
* @see #getMax()
|
* @see #getMax()
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "progress")
|
||||||
public synchronized int getSecondaryProgress() {
|
public synchronized int getSecondaryProgress() {
|
||||||
return mIndeterminate ? 0 : mSecondaryProgress;
|
return mIndeterminate ? 0 : mSecondaryProgress;
|
||||||
}
|
}
|
||||||
@ -640,7 +640,7 @@ public class ProgressBar extends View {
|
|||||||
* @see #getProgress()
|
* @see #getProgress()
|
||||||
* @see #getSecondaryProgress()
|
* @see #getSecondaryProgress()
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "progress")
|
||||||
public synchronized int getMax() {
|
public synchronized int getMax() {
|
||||||
return mMax;
|
return mMax;
|
||||||
}
|
}
|
||||||
|
@ -1011,7 +1011,7 @@ public class RelativeLayout extends ViewGroup {
|
|||||||
* @attr ref android.R.styleable#RelativeLayout_Layout_layout_centerVertical
|
* @attr ref android.R.styleable#RelativeLayout_Layout_layout_centerVertical
|
||||||
*/
|
*/
|
||||||
public static class LayoutParams extends ViewGroup.MarginLayoutParams {
|
public static class LayoutParams extends ViewGroup.MarginLayoutParams {
|
||||||
@ViewDebug.ExportedProperty(resolveId = true, indexMapping = {
|
@ViewDebug.ExportedProperty(category = "layout", resolveId = true, indexMapping = {
|
||||||
@ViewDebug.IntToString(from = ABOVE, to = "above"),
|
@ViewDebug.IntToString(from = ABOVE, to = "above"),
|
||||||
@ViewDebug.IntToString(from = ALIGN_BASELINE, to = "alignBaseline"),
|
@ViewDebug.IntToString(from = ALIGN_BASELINE, to = "alignBaseline"),
|
||||||
@ViewDebug.IntToString(from = ALIGN_BOTTOM, to = "alignBottom"),
|
@ViewDebug.IntToString(from = ALIGN_BOTTOM, to = "alignBottom"),
|
||||||
@ -1040,7 +1040,7 @@ public class RelativeLayout extends ViewGroup {
|
|||||||
* When true, uses the parent as the anchor if the anchor doesn't exist or if
|
* When true, uses the parent as the anchor if the anchor doesn't exist or if
|
||||||
* the anchor's visibility is GONE.
|
* the anchor's visibility is GONE.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
public boolean alignWithParent;
|
public boolean alignWithParent;
|
||||||
|
|
||||||
public LayoutParams(Context c, AttributeSet attrs) {
|
public LayoutParams(Context c, AttributeSet attrs) {
|
||||||
|
@ -387,13 +387,13 @@ public class TableRow extends LinearLayout {
|
|||||||
/**
|
/**
|
||||||
* <p>The column index of the cell represented by the widget.</p>
|
* <p>The column index of the cell represented by the widget.</p>
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
public int column;
|
public int column;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>The number of columns the widgets spans over.</p>
|
* <p>The number of columns the widgets spans over.</p>
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "layout")
|
||||||
public int span;
|
public int span;
|
||||||
|
|
||||||
private static final int LOCATION = 0;
|
private static final int LOCATION = 0;
|
||||||
|
@ -5733,7 +5733,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
|||||||
/**
|
/**
|
||||||
* Convenience for {@link Selection#getSelectionStart}.
|
* Convenience for {@link Selection#getSelectionStart}.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "text")
|
||||||
public int getSelectionStart() {
|
public int getSelectionStart() {
|
||||||
return Selection.getSelectionStart(getText());
|
return Selection.getSelectionStart(getText());
|
||||||
}
|
}
|
||||||
@ -5741,7 +5741,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
|||||||
/**
|
/**
|
||||||
* Convenience for {@link Selection#getSelectionEnd}.
|
* Convenience for {@link Selection#getSelectionEnd}.
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "text")
|
||||||
public int getSelectionEnd() {
|
public int getSelectionEnd() {
|
||||||
return Selection.getSelectionEnd(getText());
|
return Selection.getSelectionEnd(getText());
|
||||||
}
|
}
|
||||||
@ -7295,7 +7295,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ViewDebug.ExportedProperty
|
@ViewDebug.ExportedProperty(category = "text")
|
||||||
private CharSequence mText;
|
private CharSequence mText;
|
||||||
private CharSequence mTransformed;
|
private CharSequence mTransformed;
|
||||||
private BufferType mBufferType = BufferType.NORMAL;
|
private BufferType mBufferType = BufferType.NORMAL;
|
||||||
|
Reference in New Issue
Block a user