summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TabWidget.java
Commit message (Collapse)AuthorAgeFilesLines
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-061-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I41e12e425284e74561c6b61663241df364ae54a1
* Add max target sdk for ActivityGroup related APIsCharles Chen2019-08-011-3/+15
| | | | | | Test: build and presubmit Bug: 137825207 Change-Id: Ie3125743b46e785bf3f5655518e5634da2f578b0
* Deprecate TabHost and TabWidgetCharles Chen2019-07-301-0/+5
| | | | | | | | | | Since the core implementation of TabHost is LocalActivityManager, which was deprecated for several years. It does not make sense to maintain TabHost and TabWidget. Test: flash and build Bug: 137825207 Change-Id: Ifb62dbe68c8ada8499dd5336a189c803f2ae3dc1
* docs: Fixed link in setCurrentTab() descriptionKevin Hufnagle2019-07-181-1/+1
| | | | | | | | | | Moving focus and selected tab requires focusCurrentTab(), not setCurrentTab(). Test: make ds-docs Bug: 137317608 Change-Id: I96f4f4c32cbf8a3dfa0aac8cfa6d6cd12e8f8259
* Update core widgets to save attribute source info.Aurimas Liutikas2019-02-071-0/+2
| | | | | | Bug: 111439551 Test: make -j Change-Id: I72997a87122f38b32e38e42a690385acc7d0e521
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-211-0/+4
| | | | | | | | | | | | | | | | For packages: android.widget This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: Ic61019b1df85448a158fc2ba55c326353222c6b9
* Handle null left and right tab strip drawablesAlan Viverette2017-09-151-8/+24
| | | | | | Change-Id: I7a44fadc33a05c884e81d9bbb12e868937ab95f3 Fixes: 65726084 Test: bit CtsWidgetTestCases:.TabWidgetTest\#testStripDrawables
* Fix import statements in android.widget package.Aurimas Liutikas2016-10-111-4/+4
| | | | | | | Additionally this CL removes spaces at the end of the line. Test: code still compiles. Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
* Custom pointer icon for standard widgetsVladislav Kaznacheev2016-09-231-0/+14
| | | | | | | | | | | | Implemented custom pointer icon for Button, ImageButton, Spinner and TabWidget. PointerIcon.TYPE_HAND will be shown if the widget is enabled, clickable and has not defined its own pointer icon through setPointerIcon or pointerIcon resource attribute. Bug: 31652293 Change-Id: I2a79786b12d15ea8223726d0949658801b046604
* Separate TabWidget selection from keyboard focusAlan Viverette2015-08-171-57/+2
| | | | | | | | Also removes a bunch of weird accessibility hacks that shouldn't have been there in the first place. Bug: 19382871 Change-Id: I8cbdfb6e2dab98cc88028dff5bc23376c98a077a
* Add accessors for TabWidget strip drawablesAlan Viverette2015-08-141-0/+28
| | | | Change-Id: Ia6aef6a2221096c2653ae39fcec60289fa0ee2fb
* Clean up TabWidgetAlan Viverette2015-08-141-93/+102
| | | | | | | | | | No functional changes, just refactoring and cleaning up comments. Actually, just one functional change so that setting the tab strip to @empty will actually remove the tab strip drawable. This makes it consistent with passing null to the accessor method. Change-Id: I6f5ba8bea4e8b30117de5f12a86957e995812cfe
* Check targetSdkVersion when passing size hints for UNSPECIFIED specsAdam Powell2015-06-111-1/+2
| | | | | | | | | | | | | | As of MNC stock widgets will pass a size in UNSPECIFIED MeasureSpec values as a hint of the container size. This lets things like list items size themselves at 1/3 the size of their container. This breaks assumptions in a few existing applications, so maintain the old expectation of 0 size in UNSPECIFIED MeasureSpecs for apps targeting older SDK versions. Bug 20975083 Change-Id: Ic7318e88854e00d96852dde2c0e10376b42bf77f
* Make UNSPECIFIED measure spec include size hint.Filip Gruszczynski2015-04-161-2/+3
| | | | Change-Id: I6c4f193d0590824c644e20e8af16d055a04ac9c9
* Remove unused imports in frameworks/base.John Spurlock2015-02-281-2/+0
| | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* Add @ResourceInt annotations on APIsTor Norbye2015-02-181-3/+4
| | | | Change-Id: I119cc059c2f8bd98fd585fc84ac2b1b7d5892a08
* First quick implementation of auto assist data.Dianne Hackborn2015-02-061-8/+5
| | | | | | | | | | | | | | Introduce new AssistData class that contains all data the framework automatically generates for assist. Currently populated with a very simple tree structure representing the app's view hierarchy. Reworked how we populate the class name for accessibility info, so this is provided through a new method call on View that subclasses can override. This method is also used to populate the class name in AssistData. Change-Id: Ibd0acdc8354727d4291473283b5e4b70894905dc
* Fix accessibility delegationAlan Viverette2015-01-071-7/+11
| | | | | | | | | | | | | | | Ensures that delegate code is run last. Previously, calling the super method from an accessibility delegate set on a widget would only run code in the widget's parent. Next, the delegate code would run. Finally, the widget's code would run. As a result, the widget code would override any data supplied by the delegate. By moving all overridden code to internal methods, we ensure that the call chain for super includes the widget's parent code followed by the widget's code. The delegate code will always run last. BUG: 17641433 Change-Id: Ib9d403156c1fc4fb04f65f3c126d1277a44b3740
* Add APIs for obtaining themed Drawable from Theme, ContextAlan Viverette2014-02-031-8/+7
| | | | | BUG: 12611005 Change-Id: Ic0057be4e4c2d0c61ce02a019b3f7d0625e3a016
* Add View constructor that supplies a default style resourceAlan Viverette2013-09-091-3/+7
| | | | | | | Also updates the constructor of every class that extends View. BUG: 10676369 Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
* Revert "Add accessibility scroll actions to TabWidget"Alan Viverette2012-09-131-37/+0
| | | | | | This reverts commit 6053088884171f67e2df253576eab116fd05b4fe Change-Id: Ia648d7e3e092c396a038740d708de37fe4169d80
* Add accessibility scroll actions to TabWidgetalanv2012-09-131-0/+37
| | | | | Bug: 6537369 Change-Id: I8a5bf1d6f85f0ceef316aa4a5938d32a545587db
* docs: various link fixes and other typos from external trackerScott Main2012-07-021-3/+0
| | | | Change-Id: I2a107f7e16429c0fe80c5e4cb67ecfaf267db301
* AccessibilityEvent/AccessibilityNodeInfo class name property should be set ↵Svetoslav Ganov2012-01-171-10/+19
| | | | | | | | | | | | | | | to only framework classes. AccessibilityEvent and AccessibilityNodeInfo have a property className which is set to the source Java class. This is problematic since leads to leaking private classes which would allow an accessibility service to load classes from other packages. This is strongly undesirable since not trusted code can be loaded, and hence executed, in the accessibility service. To address that the class name is set to the most concrete framework class extended by the info/event source. bug:5878943 Change-Id: I7b3114ece8772ea2773f5151e21b8a6f2006882a
* Adding accessibility delegate mechanism for backwards compatibility support.Svetoslav Ganov2011-09-121-0/+1
| | | | | | | | | | | | | | | | | | | 1. Added an AccessibilityDelegate class in View which can be set by a client that wants to cutomize accessibility behavior via composition as opposed to inheritance. Insead overriding a new method in View thus being bound to the API version that introduced this method a developer can conditionally inject the accessibility customization if the platform API version is heigh enough. The developer will have to override the method of interest of the delegate. The default implementation of the delegate methods is the same as that of View in the case that there is no delegate set. If a delegate is set calling an accessibility related method on View will be handed off to the corresponsing method of the delegate. bug:5259555 Change-Id: I00e750e22e5e7164a1b571cb3d12ecaf4ab93db4
* Not visible view should not be announced or interacted with.Svetoslav Ganov2011-09-071-1/+4
| | | | | | | | | | 1. Some invisible views' text was reported by accessibility events. 2. Accessibility actions could have been perfromed on invisible views. bug:5264355 Change-Id: I68184fb436a3e10e947ec6f1eae02aa3d0d1cb7f
* Adjust holo tabs to match spec.Jeff Sharkey2011-08-151-57/+19
| | | | Change-Id: I8653ab10cd45bed3c38b15362e80af6c3319f763
* Move data cycle methods to framework object.Jeff Sharkey2011-06-101-0/+6
| | | | | | | Moved so they can be used by both system service and Settings UI, since they both work with data usage cycles. Still covered by tests. Change-Id: I01c0c4db6da9457dd867c9167d31a5f9f8e5f5d9
* Factored out the Accessibility vertical initialization.Svetoslav Ganov2011-05-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | 1. Accessibility events were filled with data in dispatchPopulateAccessibilityEvent and onPopulateAccessibilityEvent. These events have two axis of population 1) up the class hierarchy to populate information for the event source; 2) down the view hierarchy to populated all the text contained in the source including its descendants. These two axis of population were done in on population pass now the populating the source properties happens in initializeAccessiblityEvent and the text in onPopulateAccessibilityEvent which is called from dispatchPopulateAccessiblityEvent. 2. Removed the string description from events fired from CompoundButton since the event has isChecked() property and it is responsibility of the clients to decide what utterrance to use and if to use such for announcing the checked state. Change-Id: I5d7f75cf8a87a7a4b3bb7b311e8e642ec9a0faa5
* Touch exploration feature, event bubling, refactorSvetoslav Ganov2011-04-221-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Added an Input Filter that interprets the touch screen motion events to perfrom accessibility exploration. One finger explores. Tapping within a given time and distance slop on the last exlopred location does click and long press, respectively. Two fingers close and in the same diretion drag. Multiple finglers or two fingers in different directions or two fingers too far away are delegated to the view hierarchy. Non moving fingers "accidentally grabbed the device for the scrren" are ignored. 2. Added accessibility events for hover enter, hover exit, touch exoloration gesture start, and end. Accessibility hover events are fired by the hover pipeline. An accessibility event is dispatched up the view tree and the topmost view fires it. Thus predecessors can augment the fired event. An accessibility event has several records and a predecessor can optionally modify, delete, and add such to the event. 3. Added onPopulateAccessibilityEvent and refactored the existing accessibility code to use it. 4. Added API for querying the currently enabled accessibility services by feedback type. Change-Id: Iea2258c07ffae9491071825d966dc453b07e5134
* Revert "Touch exploration feature, event bubling, refactor"Adam Powell2011-04-221-11/+4
| | | | | | | | | This reverts commit ac84d3ba81f08036308b17e1ab919e43987a3df5. There seems to be a problem with this API change. Reverting for now to fix the build. Change-Id: Ifa7426b080651b59afbcec2d3ede09a3ec49644c
* Touch exploration feature, event bubling, refactorSvetoslav Ganov2011-04-211-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Added an Input Filter that interprets the touch screen motion events to perfrom accessibility exploration. One finger explores. Tapping within a given time and distance slop on the last exlopred location does click and long press, respectively. Two fingers close and in the same diretion drag. Multiple finglers or two fingers in different directions or two fingers too far away are delegated to the view hierarchy. Non moving fingers "accidentally grabbed the device for the scrren" are ignored. 2. Added accessibility events for hover enter, hover exit, touch exoloration gesture start, and end. Accessibility hover events are fired by the hover pipeline. An accessibility event is dispatched up the view tree and the topmost view fires it. Thus predecessors can augment the fired event. An accessibility event has several records and a predecessor can optionally modify, delete, and add such to the event. 3. Added onPopulateAccessibilityEvent and refactored the existing accessibility code to use it. 4. Added API for querying the currently enabled accessibility services by feedback type. Change-Id: Iec03c6c3fe298de3f14cb6efdbb9b198cd531a0c
* Scrollable tabs are correctly displayed.Gilles Debunne2011-02-281-3/+6
| | | | | | Bug 3495561 Change-Id: I1fe4962ddbe2435c335c76769d37f57f4b30a3b3
* AIOOB exception fix in TabWidgetGilles Debunne2011-02-251-1/+1
| | | | | | | | | | | | | | Bug http://code.google.com/p/android/issues/detail?id=15005 The problem was not specific to the legacy theme. The code that first measure the tab's width with no contraint was incorrectly using the mImposedTabsWidth array which could not have the right size if a child was added. The first measure after a child is added should indeed crash. Could be investigated. This fix is sure anyway. Change-Id: I4c0594e92019aabc545619e874bdfd49ce69c90e
* Merge "Tabs are resized to make sure they fit in their parent." into honeycombGilles Debunne2011-01-311-36/+50
|\
| * Tabs are resized to make sure they fit in their parent.Gilles Debunne2011-01-281-36/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | Bug 3400841 The original bug 3365301 was fixed in https://android-git.corp.google.com/g/#change,92920 This new version fixes problems. super.measureHorizontal has to be called twice to correctly handle child padding, dividers... and to enforce the original spec mode provided. Change-Id: I1ba1c3f3b2c8296c13ca51ce330b540caaddb7eb
* | Fix issue #3403539: WordPress crashes on HoneycombDianne Hackborn2011-01-281-1/+11
|/ | | | Change-Id: Ia86e26b5bd266d8e3362a04e412a58b98a062d5f
* Tabs are resized to make sure they fit in their parent.Gilles Debunne2011-01-261-0/+50
| | | | | | | | | | | Bug 3365301 This is a first implementation. The text inside the tabs is clipped and can be hardly readable. A nicer complimentary solution is to reduce the 40dip padding in portrait mode. Change-Id: I19439ee6a63c3f9dcdcc944ddbbc18a81949db79
* am 41c73884: am 5b4d0e84: Merge "TabWidget orientation"Jean-Baptiste Queru2010-11-011-1/+0
|\ | | | | | | | | * commit '41c738849c1fdf29357048ec9f5e48143dbb026a': TabWidget orientation
| * am 5b4d0e84: Merge "TabWidget orientation"Jean-Baptiste Queru2010-11-011-1/+0
| |\ | | | | | | | | | | | | * commit '5b4d0e84d314bd58efb9dcf4e7f23f0d0e3fc630': TabWidget orientation
| | * TabWidget orientationRoger Olsson2010-10-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TabWidget orientation specified in tab_content.xml instead of TabWidget.java. Generally, the orientation of the TabWidget should be set in xml-files and not in TabWidget.java. A sub class of TabActivity may call setContentView() using a custom layout where the TabWidget orientation is vertical. This is the case in the UI Enablers Bottom Tab feature, for landscape display orientation. Change-Id: Ia677441a0af96a8d2ab47ef3298eb440c34924f6
* | | New Holo style for Tabs.Gilles Debunne2010-10-261-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Holo theme with new assets and style for TabWidgets. Legacy Themes still use GB style. Assets added in a previous bluk update were removed. Change-Id: Ia4a612678561fa5047bbd2a72488086c0f3d61a1
* | | Fix to display first tab as selected on tab widget creation.Gilles Debunne2010-10-201-11/+20
| | | | | | | | | | | | Change-Id: Icc6ec78d2392a300b43b522b3dc18d0ab1223116
* | | 2853037 AccessibilityEvent should describe Tab controlsSvetoslav Ganov2010-10-051-1/+27
|/ / | | | | | | Change-Id: I7121719135ba996000064a7468faeee62df98e14
* / docs: add links from widget classes to tutorialsScott Main2010-08-191-0/+3
|/ | | | Change-Id: I817e885524951853182b0458df4a32dea1614243
* Rename tab widget attributes, remove scroll barrier constant.Romain Guy2010-03-291-6/+6
| | | | | | Bug #2553515 #2553595 Change-Id: Id36280a57f00a1ee59251be6be1aae8df2189c09
* Rename private fields to break bad code examplesRomain Guy2010-03-291-18/+18
| | | | Change-Id: I4a3e8df5de159c703db244212f78824e4105ba90
* Fix Tabwidget copy/paste bug.Marco Nelissen2010-03-221-2/+2
| | | | Change-Id: I8e75ec65353748ec794862cfb0e76653ba4fc428
* Fix javadoc copy/paste error.Marco Nelissen2010-03-221-4/+4
| | | | Change-Id: I6a504176e96b8dc54356305cc00acfe3d1e5b1ed
* Apply alpha animations on ImageView instances.Romain Guy2010-03-011-1/+13
| | | | Bug #2479570