summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TabHost.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-7/+35
| | | | | | Test: build and presubmit Bug: 137825207 Change-Id: Ie3125743b46e785bf3f5655518e5634da2f578b0
* Deprecate TabHost and TabWidgetCharles Chen2019-07-301-0/+4
| | | | | | | | | | 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
* 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/+8
| | | | | | | | | | | | | | | | 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
* Fixed some small keyboard nav bugs (TabHost, directional focus)Evan Rosky2017-07-311-0/+5
| | | | | | | | | | | | | - TabHost was forwarding Tab/shift+tab/space to its content instead of navigating through the tabs. - FocusFinder's directional focus considered 2 touching Views to be overlapping which would yield confusing directional movement at times. Bug: 62943663 Bug: 62911028 Test: Added CTS tests Change-Id: I253f66b7513daf5c2c9fdeed8a2fb930b4fd8db4
* Remove unnecessary casts on calls to findViewByIdAlan Viverette2017-04-141-2/+2
| | | | | | | | Just frameworks/ this time. More paths to come. Bug: 24137209 Test: make -j32 Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
* Implicitly cast views obtained via View.findView methodsAlan Viverette2017-02-271-3/+3
| | | | | | | | | | Removes all explicit casts from android.widget classes. Also @removes methods on ListView that were overriding @hidden methods and should never have been exposed as public API. Bug: 24137209 Test: make Change-Id: I89f0e51258560987b3942251fd249210f825ac2a
* Revert "Implicitly cast views obtained via View.findView methods"Alan Viverette2017-02-031-3/+3
| | | | | | | | This reverts commit 06c2fffdaa81544522de751846754f781a9970a9. Reason for revert: Java 8 doesn't support this magic. Change-Id: Iaa41f4e4d0072b9a97cff9cd3788403d4ab79d13
* Implicitly cast views obtained via View.findView methodsAlan Viverette2017-01-271-3/+3
| | | | | | | | | | Removes all explicit casts from android.widget classes. Also @removes methods on ListView that were overriding @hidden methods and should never have been exposed as public API. Bug: 24137209 Test: make Change-Id: I6ccfc6f001b355c4880f2b54e1a5474df78d6228
* Fix import statements in android.widget package.Aurimas Liutikas2016-10-111-2/+3
| | | | | | | Additionally this CL removes spaces at the end of the line. Test: code still compiles. Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
* Document exception throwing in TabHostKirill Grouchnikov2016-08-021-0/+3
| | | | | Bug: 30589663 Change-Id: I2dc0ab0fff4d837a85bd1914f99711eca5dd73ca
* Clean up annotations and docs for TabHostAlan Viverette2016-07-221-8/+49
| | | | | Bug: 30034992 Change-Id: I532772347a5e73fc7a98d9627c54065248ca1ee7
* Fix TabHost stealing focus on hardware keyboard keypressJames Cook2015-06-021-24/+1
| | | | | | | | | Don't try to change focus at all on exit from touch mode. The old behavior might have been useful for very old apps with a TabHost as their primary UI, but that's not a modern app structure. Bug: 21417491 Change-Id: I3db2ab42c90b6c82f23216244a8183c4290eb7d7
* Replace usages of deprecated Resources.getColor() and getColorStateList()Alan Viverette2015-03-181-2/+2
| | | | Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
* Remove unused imports in frameworks/base.John Spurlock2015-02-281-3/+0
| | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* First quick implementation of auto assist data.Dianne Hackborn2015-02-061-11/+2
| | | | | | | | | | | | | | 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-5/+8
| | | | | | | | | | | | | | | 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 View constructor that supplies a default style resourceAlan Viverette2013-09-091-3/+10
| | | | | | | Also updates the constructor of every class that extends View. BUG: 10676369 Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
* Merge "TabHost key handling corrected"Jean-Baptiste Queru2012-08-171-8/+63
|\
| * TabHost key handling correctedRoger Olsson2012-06-081-8/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When receiving key presses in TabHost.java, focus should be requested for the selected tab indicator provided that the following conditions are fulfilled: 1) A content view inside an embedded activity is currently focused. 2) No focusable view exists in the direction of the navigation key press inside the embedded activity. 3) The TabWidget is located in the direction of the navigation key press. This should work for all locations of the TabWidget, not only when the TabWidget is located above the tab content. Change-Id: Ic5862cb72d2cc95aed9de92e42d6e0faf959fd43
* | docs: various link fixes and other typos from external trackerScott Main2012-07-021-2/+0
| | | | | | | | Change-Id: I2a107f7e16429c0fe80c5e4cb67ecfaf267db301
* | AccessibilityEvent/AccessibilityNodeInfo class name property should be set ↵Svetoslav Ganov2012-01-171-0/+14
|/ | | | | | | | | | | | | | | 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
* Adjust holo tabs to match spec.Jeff Sharkey2011-08-151-2/+8
| | | | Change-Id: I8653ab10cd45bed3c38b15362e80af6c3319f763
* Removed ViewTreeObserver null checksGilles Debunne2011-02-221-6/+2
| | | | Change-Id: Ib11cbe188ac059cc3eaa24c178b2746a8b519918
* Support custom themes in TabHost.Gilles Debunne2010-12-151-3/+5
| | | | | | | | | | | CL 76118 introduced style customized tab layout. However, applications which tabWidgetStyle has been overriden and does not inherit from Widget.TabWidget will not be able to access tabLayout. Use the default holo layout for these. Bug 3235944 Change-Id: I5666c5ef2886060a2175a3d642b012cdaf0a1d50
* New Holo style for Tabs.Gilles Debunne2010-10-261-5/+24
| | | | | | | | | | 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
* 2853037 AccessibilityEvent should describe Tab controlsSvetoslav Ganov2010-10-051-0/+5
| | | | Change-Id: I7121719135ba996000064a7468faeee62df98e14
* docs: add links from widget classes to tutorialsScott Main2010-08-191-0/+3
| | | | Change-Id: I817e885524951853182b0458df4a32dea1614243
* Let apps change the bottom strip in TabWidget.Romain Guy2010-03-011-1/+1
| | | | | | Bug #2478088 Also expose a few useful APIs.
* Closed tabs removed from layout.Gilles Debunne2010-02-101-3/+3
| | | | | | | TabHost sets closed tabs visibility to GONE instead of INVISIBLE, so that they are no longer considered by the layout. Change-Id: I74efea13d43e3c7ce21476c7bbcb3bb1cca8bf29
* Deprecate fill_parent and introduce match_parent.Romain Guy2010-01-081-2/+2
| | | | Bug: #2361749.
* Fix TabHost NPE when there are no tabsBjorn Bringert2009-12-111-1/+4
| | | | | | Fixes http://b/issue?id=2318588 Change-Id: If90ee7e2b777e4c77fdd0ae768d1ececa792ee1b
* Fix 2146581: Make tabs work for donut appsMike Cleron2009-09-251-7/+19
| | | | | Use different tab assets with the original coloring scheme for apps that are not Eclair-aware.
* New List and Tab assets.Evan Millar2009-08-261-10/+14
| | | | | | | | | | | New tab assets. We decided to do a straight swap and then assess the damage. New default dark background color. New list divider assets. Change-Id: Ia00a9bb0ee1bad4f955f1c3b5b67526f62572015
* Fix possible NPE on touch mode change in TabHost.Romain Guy2009-08-181-3/+4
|
* Add support for custom tab views in TabHost and TabWidget.Jack Veenstra2009-06-101-4/+34
| | | | | | This change adds the ability to specify an arbitrary view for a tab indicator. It also adds support for specifying a drawable to use as the divider between tab views.
* Fix javadoc typos. No code changes.Jack Veenstra2009-05-271-5/+6
| | | | Also reformatted a comment that was too long.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+632
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-632/+0
|
* auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-191-3/+3
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+632