74c671b3b67000bf16b4865a8d361344310dccbe |
26-Sep-2012 |
Dianne Hackborn <hackbod@google.com> |
Fix how fragment/tab interaction works to avoid list view state loss. The implementation of FragmentTabHost would cause us to toggle between the default and selected tab fragments when restoring our state. Because of an issue in ListView (fixed by another change), this would cause us to lose the state because ListView tripped over itself if you asked it to save its state immediately after restoring it. We are now more careful about switching fragments, so we don't run in to this problem at least in most cases. Also pull over framework change to not let inactive fragments be more than CREATED. Bug #7232088: ListView saved state being lost in some cases Change-Id: Id9f20c207409d2479ff8bce8ed5b0553510cdd63
ragmentTabHost.java
|
6d6186b9a2503200844febe1b8ba083206c7cbcd |
28-Jul-2012 |
Veeti Paananen <veeti.paananen@rojekti.fi> |
Set the user-visible hint on fragments in FragmentStatePagerAdapter Unlike FragmentPagerAdapter, FragmentStatePagerAdapter did not set the user-visible hint on fragments when they were paged. This commit fixes the inconsistency. Change-Id: I8098279ee398dfcd37f999e67688d7cb591f9d65 Signed-off-by: Veeti Paananen <veeti.paananen@rojekti.fi>
ragmentStatePagerAdapter.java
|
1a1c2acbc15f8bc9dba05d09dcb18e340474e1c6 |
10-May-2012 |
Adam Powell <adamp@google.com> |
ViewPager data set change fixes Clean up ViewPager data set change operations a bit and update FragmentPagerAdapter to allow for items changing positions within the adapter during a data set change. Bug 6347192 Change-Id: Ib0aaa31190fca561f9b2c6c94f37e0b5eb1d1e90
ragmentPagerAdapter.java
|
7dc96cc2410f551eefaa973ddc144146ad72d1ec |
13-Dec-2011 |
Dianne Hackborn <hackbod@google.com> |
SDK only: fix up support documentation and visibility. Now that the support library appears in the SDK documentation, it is worth cleaning up some of its java docs. Change-Id: I63d4d04be8ee69abf9385597fddbddcaa030477f
ragmentPagerAdapter.java
ragmentStatePagerAdapter.java
|
0574ca37da4619afe4e26753f5a1b4de314b6565 |
17-Nov-2011 |
Svetoslav Ganov <svetoslavganov@google.com> |
Add the support libraries to the platform documentation (support libs). Updated the support libraries' documentation. bug:5629339 Change-Id: Ia026696e541ab200ce05601aabe062a303bcbb97
ragmentCompat.java
ragmentStatePagerAdapter.java
ackage.html
|
583d8a1ff64c7c59dd4e11759f3d8e994ce878d9 |
17-Nov-2011 |
Adam Powell <adamp@google.com> |
Bug 5327146 - ViewPager API tweaks and docs PagerAdapter previously took View instances as parameters to several of its methods leading to lots of casting to ViewGroup in adapter implementations. Change these to take ViewGroups. Default implementation calls through to deprecated stubs with the existing signatures, allowing current adapters to keep working unmodified. Add some documentation to PagerAdapter to explain how adapters should be implemented and the basic mechanics behind ViewPager. Change-Id: If18a3e4d18a0f84b781518833a23184832808838
ragmentPagerAdapter.java
ragmentStatePagerAdapter.java
|
79398eaefea45e61d839cf4e0534f0eafee70a09 |
07-Nov-2011 |
Adam Powell <adamp@google.com> |
Change the "start deferred" fragment API to "user visible hint" - Support lib edition Allow a fragment to set a hint of whether or not it is currently user visible. This will be used implicitly to defer the start of fragments that are not user visible until the loaders for visible fragments have run. This hint defaults to true. Modify FragmentPagerAdapter to use the new APIs both in frameworks/base and here. Change-Id: Idb5bce8a9ddf484186942555cd3c581d833eba7c
ragmentCompat.java
ragmentPagerAdapter.java
|
abc968f1eba800c34a4008deb43b015da5d23a5f |
26-Oct-2011 |
Adam Powell <adamp@google.com> |
Defer starting fragments in FragmentPagerAdapter for offscreen pages. Add FragmentCompatICSMR1 to work with deferring fragment starts. Fix some slightly dodgy layout behavior in ViewPager when extra child views are present. Add deferred start feature to support library fragment/loader framework. Change-Id: Ied454a6f3e11024eafc970ed9d091788c2d80bab
ragmentCompat.java
ragmentPagerAdapter.java
|
2a4d8518f36346ea25a22a736453ff28f2954165 |
30-Aug-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix issues 5158104 and 4981556 (fragment problems) 5158104: com.android.contacts: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1201) The ViewPager can just commit without worrying about a state loss, since it can correctly reconstruct its state later. 4981556: Fragment.mImmediateActivity doesn't get restored on orientation change I am giving up on this thing; I just don't see how it can actually be correct. So now instead of getting an exception about a dup add/remove at point of the add/remove call, this will happen later when processing the transaction. Also add an API for controlling the visibility of menus, which ViewPager uses to have the correct menus shows. And add a method to get the name of a back stack entry. Finally fix a recent problem in ViewPager with dealing with focus, and make ViewPager smart about handling keyboard focus navigation inside itself. Change-Id: I280269ac64079d171e9c899ea1cff7e80246c924
ragmentCompat.java
ragmentPagerAdapter.java
ragmentStatePagerAdapter.java
|
5c1637087453de15e31861f073eae5133c4e9f7b |
06-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
Move PagerView down to the v4 support lib. Adds in standard adapters for using PagerView with the fragment support library. Also bring in the most recent HC fragment API and impl changes so that the support lib matches it. Change-Id: Id8a590378b8c544a92df4f3c11af323c930aa5fd
ragmentPagerAdapter.java
ragmentStatePagerAdapter.java
|
ea2c91b0198855073983b4a8437aa71cbd83872f |
03-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
New super-spiffier ViewPager class. Replaces FragmentPager. But spiffier. Like I said. Change-Id: I8a61a2bb613c8efcb95bf458e968e4a35d156491
ragmentPager.java
ragmentPagerAdapter.java
ragmentStatePagerAdapter.java
|
d59dd1decc75fb41e19928c21b90d25e3eda2559 |
16-Apr-2011 |
Dianne Hackborn <hackbod@google.com> |
DO NOT MERGE: from master - Add new FragmentPager class for the HC fragment API. This introduces a new v13 library for stuff that requires at least ICS. It relies on new fragment APIs being introduced in ICS. Change-Id: I2fcf3def0aa02d3ab7bc7b966ff03251f71a7e20
ragmentPager.java
|