Also if I add the fragment then the backstack logic works well. But then my
first fragment is not completely hidden by the second fragment that I add
over it.
On Mon, Oct 1, 2012 at 1:32 PM, Apurva Goyal wrote:
> Thanks Blake. However when I try to replace one fragment with another
> using this
Thanks Blake. However when I try to replace one fragment with another using
this code, I am still not able to get backstack stuff working. Here is my
new code-
private void handleRuralRoutesClick(){
FragmentTransaction xact=
getSupportFragmentManager().beginTransaction();
xact.rep
This code works:
https://github.com/bmeike/ProgrammingAndroid2Examples/blob/master/SimpleFragment/src/com/oreilly/demo/android/pa/simplefragment/SimpleFragment.java
G. Blake Meike
Marakana
The second edition of Programming Android is now available:
http://shop.oreilly.com/product/0636920023005
Thanks Blake. The RouteCategoryFragment is not a splash screen. There is a
separate splash screen activity with a button. Clicking that button
launches another activity which has the RouteCategoryFragment. Please let
me know what I need to do replace fragment and add it to backstack.
Thanks
Apurv
It's already been mentioned:
http://developer.android.com/reference/android/app/FragmentTransaction.html#commitAllowingStateLoss()
Which is explicitly referenced from the commit documentation:
http://developer.android.com/reference/android/app/FragmentTransaction.html#commit()
You just need to
I am also trying to figure out the correct (or suggested) way to perform a
fragment transaction from onLoadFinished(). I understand that it is "bad
user experience" to cause the UI to change in some way the user is not
expecting while they are doing something. However I have a dual-pane view
co
It's a bad user experience to show a dialog (or do any other major shift in
the UI) as the result of a loader. Here is what you are doing: setting off
some operation to run in the background for an in-determinant amount of
time, which upon completion may throw something in front of the user
yankin
Sorry custom animations are broken when popping the back stack. This will
be fixed in a future release. Until then, you just won't be able to do this
-- you will need to either stick with the standard transitions, or manually
add/remove the fragments yourself.
On Tue, Mar 22, 2011 at 3:32 PM, Ke
8 matches
Mail list logo