19066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project/* 29066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Copyright (C) 2006 The Android Open Source Project 39066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 49066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Licensed under the Apache License, Version 2.0 (the "License"); 59066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * you may not use this file except in compliance with the License. 69066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * You may obtain a copy of the License at 79066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 89066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * http://www.apache.org/licenses/LICENSE-2.0 99066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 109066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Unless required by applicable law or agreed to in writing, software 119066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * distributed under the License is distributed on an "AS IS" BASIS, 129066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 139066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * See the License for the specific language governing permissions and 149066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * limitations under the License. 159066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 169066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 179066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectpackage android.view; 189066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 199066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.graphics.Rect; 20736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganovimport android.view.accessibility.AccessibilityEvent; 219066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 229066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project/** 239066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Defines the responsibilities for a class that will be a parent of a View. 249066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * This is the API that a view sees when it wants to interact with its parent. 259066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 269066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 279066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectpublic interface ViewParent { 289066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 299066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Called when something has changed which has invalidated the layout of a 309066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * child of this view parent. This will schedule a layout pass of the view 319066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * tree. 329066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 339066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public void requestLayout(); 349066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 359066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 369066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Indicates whether layout was requested on this view parent. 379066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 389066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @return true if layout was requested, false otherwise 399066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 409066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public boolean isLayoutRequested(); 419066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 429066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 439066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Called when a child wants the view hierarchy to gather and report 449066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * transparent regions to the window compositor. Views that "punch" holes in 459066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * the view hierarchy, such as SurfaceView can use this API to improve 469066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * performance of the system. When no such a view is present in the 479066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * hierarchy, this optimization in unnecessary and might slightly reduce the 489066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * view hierarchy performance. 499066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 509066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param child the view requesting the transparent region computation 519066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 529066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 539066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public void requestTransparentRegion(View child); 549066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 559066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 569066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * All or part of a child is dirty and needs to be redrawn. 579066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 589066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param child The child which is dirty 599066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param r The area within the child that is invalid 609066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 619066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public void invalidateChild(View child, Rect r); 629066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 639066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 649066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * All or part of a child is dirty and needs to be redrawn. 659066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 66cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * <p>The location array is an array of two int values which respectively 67cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * define the left and the top position of the dirty child.</p> 689066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 69cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * <p>This method must return the parent of this ViewParent if the specified 709066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * rectangle must be invalidated in the parent. If the specified rectangle 719066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * does not require invalidation in the parent or if the parent does not 72cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * exist, this method must return null.</p> 739066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 74cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * <p>When this method returns a non-null value, the location array must 75cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * have been updated with the left and top coordinates of this ViewParent.</p> 769066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 779066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param location An array of 2 ints containing the left and top 789066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * coordinates of the child to invalidate 799066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param r The area within the child that is invalid 809066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 819066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @return the parent of this ViewParent or null 829066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 839066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public ViewParent invalidateChildInParent(int[] location, Rect r); 849066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 859066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 869066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Returns the parent if it exists, or null. 879066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 889066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @return a ViewParent or null if this ViewParent does not have a parent 899066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 909066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public ViewParent getParent(); 919066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 929066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 939066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Called when a child of this parent wants focus 949066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 959066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param child The child of this ViewParent that wants focus. This view 969066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * will contain the focused view. It is not necessarily the view that 979066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * actually has focus. 989066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param focused The view that is a descendant of child that actually has 999066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * focus 1009066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1019066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public void requestChildFocus(View child, View focused); 1029066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1039066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 1049066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Tell view hierarchy that the global view attributes need to be 1059066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * re-evaluated. 1069066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 1079066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param child View whose attributes have changed. 1089066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1099066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public void recomputeViewAttributes(View child); 1109066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1119066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 1129066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Called when a child of this parent is giving up focus 1139066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 1149066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param child The view that is giving up focus 1159066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1169066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public void clearChildFocus(View child); 1179066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 118cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne /** 119cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * Compute the visible part of a rectangular region defined in terms of a child view's 120cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * coordinates. 121cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * 122cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * <p>Returns the clipped visible part of the rectangle <code>r</code>, defined in the 123cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * <code>child</code>'s local coordinate system. <code>r</code> is modified by this method to 124cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * contain the result, expressed in the global (root) coordinate system.</p> 125cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * 126cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * <p>The resulting rectangle is always axis aligned. If a rotation is applied to a node in the 127cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * View hierarchy, the result is the axis-aligned bounding box of the visible rectangle.</p> 128cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * 129cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * @param child A child View, whose rectangular visible region we want to compute 130cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * @param r The input rectangle, defined in the child coordinate system. Will be overwritten to 131cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * contain the resulting visible rectangle, expressed in global (root) coordinates 132cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * @param offset The input coordinates of a point, defined in the child coordinate system. 133cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * As with the <code>r</code> parameter, this will be overwritten to contain the global (root) 134cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * coordinates of that point. 135cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * A <code>null</code> value is valid (in case you are not interested in this result) 136cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * @return true if the resulting rectangle is not empty, false otherwise 137cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne */ 1389066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public boolean getChildVisibleRect(View child, Rect r, android.graphics.Point offset); 1399066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1409066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 1419066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Find the nearest view in the specified direction that wants to take focus 1429066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 1439066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param v The view that currently has focus 1449066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param direction One of FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, and FOCUS_RIGHT 1459066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1469066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public View focusSearch(View v, int direction); 1479066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1489066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 1490187a5d424c8618709b8f11dd7200caa0178c40eChet Haase * Change the z order of the child so it's on top of all other children. 1500187a5d424c8618709b8f11dd7200caa0178c40eChet Haase * This ordering change may affect layout, if this container 151cb96db8d144a01aa41ec396247c548d8aa496131Chet Haase * uses an order-dependent layout scheme (e.g., LinearLayout). Prior 152e8222dddaf2e3da14380101e818d4254899e0c0dChet Haase * to {@link android.os.Build.VERSION_CODES#KITKAT} this 1530187a5d424c8618709b8f11dd7200caa0178c40eChet Haase * method should be followed by calls to {@link #requestLayout()} and 154cb96db8d144a01aa41ec396247c548d8aa496131Chet Haase * {@link View#invalidate()} on this parent to force the parent to redraw 155cb96db8d144a01aa41ec396247c548d8aa496131Chet Haase * with the new child ordering. 1569066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 1570187a5d424c8618709b8f11dd7200caa0178c40eChet Haase * @param child The child to bring to the top of the z order 1589066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1599066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public void bringChildToFront(View child); 1609066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1619066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 1629066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Tells the parent that a new focusable view has become available. This is 1639066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * to handle transitions from the case where there are no focusable views to 1649066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * the case where the first focusable view appears. 1659066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 1669066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param v The view that has become newly focusable 1679066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1689066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public void focusableViewAvailable(View v); 1699066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1709066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 1719066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Bring up a context menu for the specified view or its ancestors. 172cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * 173cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * <p>In most cases, a subclass does not need to override this. However, if 1749066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * the subclass is added directly to the window manager (for example, 1759066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * {@link ViewManager#addView(View, android.view.ViewGroup.LayoutParams)}) 176cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * then it should override this and show the context menu.</p> 1779066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 1789066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param originalView The source view where the context menu was first invoked 1799066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @return true if a context menu was displayed 1809066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1819066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public boolean showContextMenuForChild(View originalView); 1829066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1839066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 1849066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Have the parent populate the specified context menu if it has anything to 1859066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * add (and then recurse on its parent). 1869066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 1879066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param menu The menu to populate 1889066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1899066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public void createContextMenu(ContextMenu menu); 1909066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1919066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 1926e34636749217654f43221885afb7a29bb5ca96aAdam Powell * Start an action mode for the specified view. 193cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * 194cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * <p>In most cases, a subclass does not need to override this. However, if the 1956e34636749217654f43221885afb7a29bb5ca96aAdam Powell * subclass is added directly to the window manager (for example, 1966e34636749217654f43221885afb7a29bb5ca96aAdam Powell * {@link ViewManager#addView(View, android.view.ViewGroup.LayoutParams)}) 197cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * then it should override this and start the action mode.</p> 1986e34636749217654f43221885afb7a29bb5ca96aAdam Powell * 1996e34636749217654f43221885afb7a29bb5ca96aAdam Powell * @param originalView The source view where the action mode was first invoked 2006e34636749217654f43221885afb7a29bb5ca96aAdam Powell * @param callback The callback that will handle lifecycle events for the action mode 2016e34636749217654f43221885afb7a29bb5ca96aAdam Powell * @return The new action mode if it was started, null otherwise 2026e34636749217654f43221885afb7a29bb5ca96aAdam Powell */ 2036e34636749217654f43221885afb7a29bb5ca96aAdam Powell public ActionMode startActionModeForChild(View originalView, ActionMode.Callback callback); 2046e34636749217654f43221885afb7a29bb5ca96aAdam Powell 2056e34636749217654f43221885afb7a29bb5ca96aAdam Powell /** 2069066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * This method is called on the parent when a child's drawable state 2079066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * has changed. 2089066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 2099066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param child The child whose drawable state has changed. 2109066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 2119066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public void childDrawableStateChanged(View child); 2129066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 2139066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 2149066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Called when a child does not want this parent and its ancestors to 2159066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * intercept touch events with 2169066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * {@link ViewGroup#onInterceptTouchEvent(MotionEvent)}. 217cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * 218cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * <p>This parent should pass this call onto its parents. This parent must obey 2199066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * this request for the duration of the touch (that is, only clear the flag 220cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * after this parent has received an up or a cancel.</p> 2219066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 2229066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param disallowIntercept True if the child does not want the parent to 2239066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * intercept touch events. 2249066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 2259066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public void requestDisallowInterceptTouchEvent(boolean disallowIntercept); 2269066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 2279066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 2289066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Called when a child of this group wants a particular rectangle to be 2299066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * positioned onto the screen. {@link ViewGroup}s overriding this can trust 2309066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * that: 2319066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * <ul> 2329066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * <li>child will be a direct child of this group</li> 2339066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * <li>rectangle will be in the child's coordinates</li> 2349066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * </ul> 2359066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 2369066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * <p>{@link ViewGroup}s overriding this should uphold the contract:</p> 2379066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * <ul> 2389066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * <li>nothing will change if the rectangle is already visible</li> 2399066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * <li>the view port will be scrolled only just enough to make the 2409066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * rectangle visible</li> 2419066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * <ul> 2429066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 2439066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param child The direct child making the request. 2449066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param rectangle The rectangle in the child's coordinates the child 2459066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * wishes to be on the screen. 2469066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param immediate True to forbid animated or delayed scrolling, 2479066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * false otherwise 2489066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @return Whether the group scrolled to handle the operation 2499066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 2509066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public boolean requestChildRectangleOnScreen(View child, Rect rectangle, 2519066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project boolean immediate); 252736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov 253736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov /** 254736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov * Called by a child to request from its parent to send an {@link AccessibilityEvent}. 255736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov * The child has already populated a record for itself in the event and is delegating 256736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov * to its parent to send the event. The parent can optionally add a record for itself. 257736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov * <p> 258736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov * Note: An accessibility event is fired by an individual view which populates the 259736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov * event with a record for its state and requests from its parent to perform 260736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov * the sending. The parent can optionally add a record for itself before 261736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov * dispatching the request to its parent. A parent can also choose not to 262736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov * respect the request for sending the event. The accessibility event is sent 263cea45132e3d5d32a6fc737abf10b8893a50f465bGilles Debunne * by the topmost view in the view tree.</p> 264736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov * 265736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov * @param child The child which requests sending the event. 266736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov * @param event The event to be sent. 267736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov * @return True if the event was sent. 268736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov */ 269736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov public boolean requestSendAccessibilityEvent(View child, AccessibilityEvent event); 270539ee8716b4f81260bab2e9f3dc5d88d81c99985Adam Powell 271539ee8716b4f81260bab2e9f3dc5d88d81c99985Adam Powell /** 272539ee8716b4f81260bab2e9f3dc5d88d81c99985Adam Powell * Called when a child view now has or no longer is tracking transient state. 273539ee8716b4f81260bab2e9f3dc5d88d81c99985Adam Powell * 2740da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * <p>"Transient state" is any state that a View might hold that is not expected to 2750da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * be reflected in the data model that the View currently presents. This state only 2760da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * affects the presentation to the user within the View itself, such as the current 2770da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * state of animations in progress or the state of a text selection operation.</p> 2780da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * 2790da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * <p>Transient state is useful for hinting to other components of the View system 2800da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * that a particular view is tracking something complex but encapsulated. 2810da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * A <code>ListView</code> for example may acknowledge that list item Views 2820da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * with transient state should be preserved within their position or stable item ID 2830da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * instead of treating that view as trivially replaceable by the backing adapter. 2840da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * This allows adapter implementations to be simpler instead of needing to track 2850da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * the state of item view animations in progress such that they could be restored 2860da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * in the event of an unexpected recycling and rebinding of attached item views.</p> 2870da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * 2880da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * <p>This method is called on a parent view when a child view or a view within 2890da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * its subtree begins or ends tracking of internal transient state.</p> 2900da4a282eec40364d54f9e658632c5aab85142b7Adam Powell * 291539ee8716b4f81260bab2e9f3dc5d88d81c99985Adam Powell * @param child Child view whose state has changed 292539ee8716b4f81260bab2e9f3dc5d88d81c99985Adam Powell * @param hasTransientState true if this child has transient state 293539ee8716b4f81260bab2e9f3dc5d88d81c99985Adam Powell */ 294539ee8716b4f81260bab2e9f3dc5d88d81c99985Adam Powell public void childHasTransientStateChanged(View child, boolean hasTransientState); 2953a3a6cfd8ec12208ca75c0d0d871d19d76c34194Dianne Hackborn 2963a3a6cfd8ec12208ca75c0d0d871d19d76c34194Dianne Hackborn /** 2973a3a6cfd8ec12208ca75c0d0d871d19d76c34194Dianne Hackborn * Ask that a new dispatch of {@link View#fitSystemWindows(Rect) 2983a3a6cfd8ec12208ca75c0d0d871d19d76c34194Dianne Hackborn * View.fitSystemWindows(Rect)} be performed. 2993a3a6cfd8ec12208ca75c0d0d871d19d76c34194Dianne Hackborn */ 3003a3a6cfd8ec12208ca75c0d0d871d19d76c34194Dianne Hackborn public void requestFitSystemWindows(); 3014213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov 3024213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov /** 3034213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov * Gets the parent of a given View for accessibility. Since some Views are not 3044213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov * exposed to the accessibility layer the parent for accessibility is not 3054213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov * necessarily the direct parent of the View, rather it is a predecessor. 3064213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov * 3074213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov * @return The parent or <code>null</code> if no such is found. 3084213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov */ 3094213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov public ViewParent getParentForAccessibility(); 3104213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov 3114213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov /** 31277e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette * Notifies a view parent that the accessibility state of one of its 31377e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette * descendants has changed and that the structure of the subtree is 31477e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette * different. 31577e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette * @param child The direct child whose subtree has changed. 31677e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette * @param source The descendant view that changed. 31777e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette * @param changeType A bit mask of the types of changes that occurred. One 31877e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette * or more of: 31977e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette * <ul> 32077e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette * <li>{@link AccessibilityEvent#CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION} 32177e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette * <li>{@link AccessibilityEvent#CONTENT_CHANGE_TYPE_SUBTREE} 32277e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette * <li>{@link AccessibilityEvent#CONTENT_CHANGE_TYPE_TEXT} 32377e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette * <li>{@link AccessibilityEvent#CONTENT_CHANGE_TYPE_UNDEFINED} 32477e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette * </ul> 3254213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov */ 32677e9a28e2faa36f127231b842476d47f9823a83aAlan Viverette public void notifySubtreeAccessibilityStateChanged(View child, View source, int changeType); 3279dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio 3289dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio /** 3299dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * Tells if this view parent can resolve the layout direction. 3309dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * See {@link View#setLayoutDirection(int)} 3319dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * 3329dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * @return True if this view parent can resolve the layout direction. 3339dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio */ 3349dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio public boolean canResolveLayoutDirection(); 3359dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio 3369dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio /** 3379dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * Tells if this view parent layout direction is resolved. 3389dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * See {@link View#setLayoutDirection(int)} 3399dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * 3409dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * @return True if this view parent layout direction is resolved. 3419dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio */ 3429dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio public boolean isLayoutDirectionResolved(); 3439dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio 3449dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio /** 3459dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * Return this view parent layout direction. See {@link View#getLayoutDirection()} 3469dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * 3479dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * @return {@link View#LAYOUT_DIRECTION_RTL} if the layout direction is RTL or returns 3489dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * {@link View#LAYOUT_DIRECTION_LTR} if the layout direction is not RTL. 3499dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio */ 3509dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio public int getLayoutDirection(); 3519dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio 3529dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio /** 3539dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * Tells if this view parent can resolve the text direction. 3549dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * See {@link View#setTextDirection(int)} 3559dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * 3569dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * @return True if this view parent can resolve the text direction. 3579dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio */ 3589dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio public boolean canResolveTextDirection(); 3599dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio 3609dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio /** 3619dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * Tells if this view parent text direction is resolved. 3629dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * See {@link View#setTextDirection(int)} 3639dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * 3649dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * @return True if this view parent text direction is resolved. 3659dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio */ 3669dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio public boolean isTextDirectionResolved(); 3679dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio 3689dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio /** 3699dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * Return this view parent text direction. See {@link View#getTextDirection()} 3709dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * 3719dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * @return the resolved text direction. Returns one of: 3729dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * 3739dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * {@link View#TEXT_DIRECTION_FIRST_STRONG} 3749dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * {@link View#TEXT_DIRECTION_ANY_RTL}, 3759dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * {@link View#TEXT_DIRECTION_LTR}, 3769dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * {@link View#TEXT_DIRECTION_RTL}, 3779dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * {@link View#TEXT_DIRECTION_LOCALE} 3789dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio */ 3799dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio public int getTextDirection(); 3809dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio 3819dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio /** 3829dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * Tells if this view parent can resolve the text alignment. 3839dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * See {@link View#setTextAlignment(int)} 3849dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * 3859dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * @return True if this view parent can resolve the text alignment. 3869dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio */ 3879dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio public boolean canResolveTextAlignment(); 3889dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio 3899dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio /** 3909dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * Tells if this view parent text alignment is resolved. 3919dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * See {@link View#setTextAlignment(int)} 3929dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * 3939dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * @return True if this view parent text alignment is resolved. 3949dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio */ 3959dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio public boolean isTextAlignmentResolved(); 3969dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio 3979dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio /** 3989dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * Return this view parent text alignment. See {@link android.view.View#getTextAlignment()} 3999dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * 4009dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * @return the resolved text alignment. Returns one of: 4019dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * 4029dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * {@link View#TEXT_ALIGNMENT_GRAVITY}, 4039dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * {@link View#TEXT_ALIGNMENT_CENTER}, 4049dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * {@link View#TEXT_ALIGNMENT_TEXT_START}, 4059dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * {@link View#TEXT_ALIGNMENT_TEXT_END}, 4069dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * {@link View#TEXT_ALIGNMENT_VIEW_START}, 4079dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio * {@link View#TEXT_ALIGNMENT_VIEW_END} 4089dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio */ 4099dd4c5c6867f8b6de19096d2d68365dccb744c19Fabrice Di Meglio public int getTextAlignment(); 4109066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project} 411