[android-developers] fragments as a cell of Recycler view

2016-10-05 Thread qasim . majeed
i want to add fragments as a cell of recycler view, i have chat in this fragment . if that is not the recommended way, kindly guide me which way is best to suite this situation -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubs

[android-developers] Fragments: still use Activity for Smartphones?

2015-08-19 Thread Danny S.
Hi, we're migrating a project to Fragments support, because we support both, tablets and smartphones now. I'm familiar with Fragments already, but there is an unanswered question for which I already searched for an answer - for now without luck: Please have a look at the following code sample,

[android-developers] Fragments are not visible on orientation change

2015-04-03 Thread Nitin Khanna
In the following code, the fragments are being dynamically inflated from a layout xml. The issue i am facing is that I dont see the fragments when i rotate the device. If I look at the fragmentManager, I do see fragments are there. They are added and attached, but no where on the screen. M

Re: [android-developers] Fragments /Compatibility API Backstack Clearing Problem

2014-07-02 Thread m3n0R
Same here... Is there any good way to do that? El jueves, 3 de noviembre de 2011 08:10:21 UTC+1, Alexey Zakharov escribió: > > Even with POP_BACK_STACK_INCLUSIVE onResume of popped Fragment is called. > You need to add alternative method that will allow remove element from back > stack without r

[android-developers] Fragments navigation and backstack issue

2013-08-04 Thread user123
Im trying to implement a fragment based navigation pattern, which can be reduced to this:

[android-developers] Fragments slow to load when coming back

2012-11-27 Thread MathieuB
Hello! Here's the situation : I have a parent activity that have 3 fragments associated with it. Basically, there is the actionBar and three tabs. Each tab holds a fragment in which there is a listview. The data are the same for all the 3 listviews, just filtered in different way so, in the

Re: [android-developers] Fragments inside a ListFragment

2012-09-21 Thread Mark Murphy
Fragments inside of fragments is not supported: http://stackoverflow.com/questions/6847460/fragments-within-fragments/6847770#6847770 On Fri, Sep 21, 2012 at 6:51 AM, Raneez wrote: > I am using a custom viewpager which has Listfragment's loaded with > FragmentPagerAdapter. Each ListFragment repr

[android-developers] Fragments inside a ListFragment

2012-09-21 Thread Raneez
I am using a *custom viewpager* which has Listfragment's loaded with * FragmentPagerAdapter*. Each ListFragment represents a *dual panel layout*, where each list item(Left) loads some other fragments to a *framelayout*(Right Panel). Is this a best practice? -- You received this message becau

[android-developers] fragments transactions

2012-08-07 Thread vani reddy
Hi friends Can we use the setResult(Bundle b,int requestCode) and OnActivityResult() of activity , to pass result between two fragments. Or is there any methods of such kind in fragments. I checked the setTargetFragment

[android-developers] Fragments : Advanced example or tutorials?

2012-08-06 Thread Simon Engler
Good Day, I am trying to create a user interface for driving a robotic platform around. I have a number of programs that work indpendantly displaying video, logs, or graphical representation of a compass etc. I follow tutorials given online, but when I try to implement my programs crash. The t

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread RichardC
On Tuesday, July 31, 2012 5:28:19 PM UTC+1, Latimerius wrote: > On Tue, Jul 31, 2012 at 2:51 AM, Dianne Hackborn > wrote: > > Btw, I love how more and more I see people dragging out this quote every > > time they encounter some limit that they have to deal with, as if there > > should just no

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread Latimerius
On Tue, Jul 31, 2012 at 2:51 AM, Dianne Hackborn wrote: > Btw, I love how more and more I see people dragging out this quote every > time they encounter some limit that they have to deal with, as if there > should just not be limits on the resources they can use. There should not be arbitrary lim

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread lbendlin
There's your problem Kostya - your paying for the wrong thing - you need insurance for/against out of memory errors, not exceptions. On Tuesday, July 31, 2012 5:34:19 AM UTC-4, Kostya Vasilyev wrote: > > An insurance policy that covers out of memory exceptions? > > 2012/7/31 gjs > >> Hi, >> >> I

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread Kostya Vasilyev
An insurance policy that covers out of memory exceptions? 2012/7/31 gjs > Hi, > > I saw recently I could take out an insurance policy that had unlimited > cover amount, I guess the premium has unlimited cost as well ;-) > > Regards > > > On Tuesday, July 31, 2012 10:51:11 AM UTC+10, Dianne Hackb

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-31 Thread gjs
Hi, I saw recently I could take out an insurance policy that had unlimited cover amount, I guess the premium has unlimited cost as well ;-) Regards On Tuesday, July 31, 2012 10:51:11 AM UTC+10, Dianne Hackborn wrote: > > Btw, I love how more and more I see people dragging out this quote every

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-30 Thread Dianne Hackborn
Btw, I love how more and more I see people dragging out this quote every time they encounter some limit that they have to deal with, as if there should just not be limits on the resources they can use. On Mon, Jul 30, 2012 at 5:50 PM, Dianne Hackborn wrote: > On Mon, Jul 30, 2012 at 10:59 AM, bob

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-30 Thread Dianne Hackborn
On Mon, Jul 30, 2012 at 10:59 AM, bob wrote: > *“640K ought to be enough for anyone”* > Um, no. There is nothing similar to these two things. Our limit is: "devices don't have an infinite amount of RAM, applications must be written to live within the available RAM on the device." In fact the R

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-30 Thread bob
*“640K ought to be enough for anyone”* On Monday, July 30, 2012 1:30:46 AM UTC-5, Dianne Hackborn wrote: > > On Sun, Jul 29, 2012 at 5:45 PM, bob wrote: > >> Worried about memory? Try this: >> >> > > No. > > First of all, this only helps you on higher-end devices that have lots of > memory

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-29 Thread Dianne Hackborn
On Sun, Jul 29, 2012 at 5:45 PM, bob wrote: > Worried about memory? Try this: > > No. First of all, this only helps you on higher-end devices that have lots of memory to give you. So you still need to look at the memory available and make sure you don't exceed it, and the limit may not be an

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-29 Thread bob
Worried about memory? Try this: On Sunday, July 29, 2012 4:11:55 AM UTC-5, Dmitriy F wrote: > > I've written a simple test where I have: > FragmentManager fm = getSupportFragmentManager(); > FragmentTransaction ft = fm.beginTransaction(); > ft.hide(_sv); > ft.commit(); > When the fragment gets

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-29 Thread Dmitriy F
I've written a simple test where I have: FragmentManager fm = getSupportFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft.hide(_sv); ft.commit(); When the fragment gets hidden - onPause doesn't get fired. However, system fires a chain of callbacks up to onDestroyView when I use

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-28 Thread Dianne Hackborn
If you have a fragment that holds on to a lot of memory in its view hierarchy and are concerned about this, then use FragmentTransaction.remove() to make it no longer visible -- that will remove it from its parent view and destroy its view hierarchy, so it doesn't hold on to any references. (If yo

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-28 Thread Dmitriy F
Thanks for the answers! Would you mind to suggest on the part about fragments, bitmaps and memory management ? I decided to implement the app with 3 activities and about 8 fragments. The fragment number might slightly increase yet I think it's not the fragments but their bitmaps that gonna caus

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-28 Thread Dmitriy F
Thanks for the answers! Would you mind to suggest on the part about fragments and memory management ? I decided to implement the app with 3 activities and about 8 fragments. The activity number might slightly increase yet I think it's not the fragments but their bitmaps that gonna cause trouble

Re: [android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-28 Thread Romain Guy
> > 1) Does ImageView.SetImageResource applied against the same id twice or > thrice consumes memory for the same bitmap or uses a separate range for > every imageview element ? > I don't quite understand your question. When a Bitmap is loaded as a Drawable (which is what ImageView does), it gets

[android-developers] Fragments Bitmap Recycling + a bunch of bitmap oriented questions.

2012-07-28 Thread Dmitriy F
Hi, I'm developing an app which uses ViewPager(holds 4 fragments) and a layout that hosts single-page fragments. I haven't populated my fragments with bitmap data but I'm already anxious about memory management. Because of the bogus design I can't extract ViewPager to a separate activity which

[android-developers] Fragments, removing only 1 item from the backstack.

2012-07-15 Thread Niffy Shibby
I have a problem of managing fragments. (Using Support Package, revision 9 (June 2012)) I have an activity with 2 fragments on the screen. If I add fragment A, then add Fragment B, then destroy fragment A Fragment B is also destroyed. I'm managing fragments this way (there is the begin and comm

[android-developers] Fragments

2012-06-29 Thread Samuel
hey everyone, I have been working with fragments recently and I was wondering what the best practice was for landscape on a handset? There are really only two options here: keep the fragmented layout (as a tablet would) or split into activity (as would in portrait) any advice would be fantastic

Re: [android-developers] fragments, buttons and activities

2012-04-26 Thread Justin Anderson
http://lmgtfy.com/?q=android+fragment+example Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 24, 2012 at 3:02 AM, Fausteric wrote: > > I am searching for a fragments example for my purpose. > > I have made a app which has 7 pages with icons a

[android-developers] fragments, buttons and activities

2012-04-26 Thread Fausteric
I am searching for a fragments example for my purpose. I have made a app which has 7 pages with icons and each icon represents a tool. Now i want to make a special layout for Tablets. I want to place all the icons on the left side of the screen and on the right side i want to show the tool. Whe

[android-developers] Fragments and rotation

2012-03-27 Thread Gyscos
Hello, I made a simple application with layouts, based on screen orientation. Each layout used a different custom Fragment class. When the phone is in a given orientation and I start the application, the correct layout is loaded. If I then rotate the phone (after the application started), then

[android-developers] Fragments with custom list adapter causing crash on inflate view

2012-01-26 Thread Ste
I am attempting to convert one of my apps to use Fragments to improve how the app looks and works on ICS / Honeycomb but I've come across a problem which although I've spent many hours Googleing and reading answers on here I can't seem to find a fix for. I have a custom list adapter which is used

[android-developers] Fragments with respect to activity

2011-12-20 Thread Geet
Hi, I am starting a Listview fragment in an activity.Once the user clicks on list itel, i am showing another listview in the same fragment(with fragment replace).Now if i turn my device, I am shown with first listview as the activity is getting re-started. I want my secong listview to be shown. How

Re: [android-developers] Fragments help

2011-12-18 Thread Mark Murphy
On Sun, Dec 18, 2011 at 6:06 PM, Mark Ayers wrote: > Build target decides which jar is added as a resource, correct? If so, you > can see that the jar for 3.0 is loaded. Which proves that your build target is set below API Level 13, since Android 3.0 is API Level 11. -- Mark Murphy (a Commons G

Re: [android-developers] Fragments help

2011-12-18 Thread Mark Ayers
Build target decides which jar is added as a resource, correct? If so, you can see that the jar for 3.0 is loaded. On Sun, Dec 18, 2011 at 3:02 PM, Mark Murphy wrote: > Presumably because you have your build target set below API Level 13. > > On Sun, Dec 18, 2011 at 5:55 PM, Mark Ayers wrote: >

Re: [android-developers] Fragments help

2011-12-18 Thread Mark Murphy
Presumably because you have your build target set below API Level 13. On Sun, Dec 18, 2011 at 5:55 PM, Mark Ayers wrote: > Why is Eclipse saying this is undefined when it's right here??? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" grou

Re: [android-developers] Fragments sample?

2011-11-18 Thread TreKing
On Fri, Nov 18, 2011 at 1:52 AM, Navindian wrote: > Can I get a fragment sample eclipse project which could be tested on my > emulator. http://developer.android.com/guide/topics/fundamentals/fragments.html

[android-developers] Fragments sample?

2011-11-17 Thread Navindian
Hi Can I get a fragment sample eclipse project which could be tested on my emulator. Thanks navindian -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

Re: [android-developers] Fragments

2011-11-08 Thread Pawan Singh Rathore
Ok I understood, But can you please give me some direction from where can I start. We have our own hardware. So I can change work on platform level also. But don't know that from which part I should start. I have also posted this question on android-porting group, But no luck yet. Thanks & BR, Pa

Re: [android-developers] Fragments

2011-11-07 Thread Dianne Hackborn
You can't. That is not what fragments are for. And please stop posting that link. That is someone's hack on Android to add features that are not in the current platform, so not a topic for discussion on this list. On Mon, Nov 7, 2011 at 9:41 PM, Pawan Singh Rathore < pawan.s.rath...@gmail.com>

[android-developers] Fragments

2011-11-07 Thread Pawan Singh Rathore
Hi All, I want to know that, how can we launch any app present in the device inside a fragment. For better idea about question you can check out this link . Hope anyone can help me in figure out this situation, and can give me some directions. Thanks & BR, Pa

Re: [android-developers] Fragments /Compatibility API Backstack Clearing Problem

2011-11-03 Thread Alexey Zakharov
Even with POP_BACK_STACK_INCLUSIVE onResume of popped Fragment is called. You need to add alternative method that will allow remove element from back stack without resuming it. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

Re: [android-developers] Fragments with fragment tabs

2011-09-26 Thread Rimma Sukhovsky
ActionBarSherlock - looks intersting i will look into it. re: That still sounds like you are putting fragments in fragments. This is the layout i'm trying to build: I don't TabHost will contain empty tabs, and the actual tab content will be placed On Mon, Sep 26, 2011 at 6:18 PM, Mark Mur

Re: [android-developers] Fragments with fragment tabs

2011-09-26 Thread Rimma Sukhovsky
ActionBarSherlock - looks intersting i will look into it. re: That still sounds like you are putting fragments in fragments. This is the layout i'm trying to build: The TabHost will hold empty tabs (sort of dummy TabHost), and the actual tab content will be in the separate fragment tab_co

Re: [android-developers] Fragments with fragment tabs

2011-09-26 Thread Mark Murphy
On Mon, Sep 26, 2011 at 11:13 AM, Rimma Sukhovsky wrote: > I did consider that, but that will cause a problem with pre 3.0 devices. Try ActionBarSherlock, then. > I thought of: > 1. Place the TabHost in a separate Fragment (adding each Tab an empty view), > and place the actual tab content in a

Re: [android-developers] Fragments with fragment tabs

2011-09-26 Thread Rimma Sukhovsky
Thanks for your reply Mark! I did consider that, but that will cause a problem with pre 3.0 devices. I thought of: 1. Place the TabHost in a separate Fragment (adding each Tab an empty view), and place the actual tab content in a second Fragment. 2. Put a OnTabChangeListener for the TabHost to mana

Re: [android-developers] Fragments with fragment tabs

2011-09-26 Thread Mark Murphy
On Sun, Sep 25, 2011 at 10:21 AM, Rimma Sukhovsky wrote: > Is it possible to use fragments inside fragments No. > and if not what > should be the best practice for implementing this? Put the tabs in the action bar (controlling the contents of a FrameLayout to the right of your fixed ListFragmen

[android-developers] Fragments with fragment tabs

2011-09-25 Thread Rimma Sukhovsky
I'm converting my app to work with fragments, and i have a layout similar to "manage applications" in honeycomb. That is, there is a list fragment on the left and a tab fragment on the right. Each tab should contain another inner ListFragment. The problem is that i'm getting the following exception

Re: [android-developers] [Fragments/supportv4] How do I make ViewPager/TabHost attatch all tabs and not just the current and the one next to it?

2011-09-16 Thread Ralph Bergmann | the4thFloor.eu
Am 15.09.11 12:59, schrieb leson: > How can I make the ViewPager/TabHost attach all tabs immediately? I think you can't. You have to choose another holder for your tabs views. I recommend the ViewAnimator. see also: http://code.google.com/p/openintents/source/browse/trunk/compatibility/AndroidS

[android-developers] [Fragments/supportv4] How do I make ViewPager/TabHost attatch all tabs and not just the current and the one next to it?

2011-09-15 Thread leson
I'm building a tabbed UI in Android based on the supportv4 demo FragmentTabsPager.java. After adding my tabs (there are four of them) only the current tab and the one next to it is attached (and thus not instatiated yet I guess). The other two tabs are attached only when I swipe to or tap them. Ho

Re: [android-developers] Fragments

2011-07-04 Thread Bryan Liles
The Google IO app has its source available. (http://code.google.com/p/iosched/source/checkout). They make a good use of fragments in there. On Fri, Jul 1, 2011 at 10:08 AM, Jayanthi wrote: > Hi All, >          I am doing application in Honeycomb but i am not clear with > Fragments > 1.How Fragmen

[android-developers] Fragments

2011-07-01 Thread Jayanthi
Hi All, I am doing application in Honeycomb but i am not clear with Fragments 1.How Fragments is used 2. When the activity call fragments refered lots of article yet not clear all the article have same listview as example can you please few more example like button with onclickListener

[android-developers] Fragments duplicated on config change

2011-05-22 Thread Dave Johnston
I'm encountering a peculiar issue with the user of FragmentActivity. In my test app, my FragmentActivity's onCreate method calls setContentView, which inflates a simple layout consisting of a single Fragment. However, I'm finding that when the device is rotated, this process causes additional Fra

[android-developers] Fragments API 11+ vs Compatibility package

2011-05-13 Thread Phil Bayfield
Hi, I've just started playing around with fragments to make some apps work better with tablets. I've got this working nicely with my SGS and Xoom using just the compatibility package (trying to mix both resulted in crashes as I'm using the same fragment classes for both), which means I had to ext

Re: [android-developers] Fragments - crash on restoring spinner state

2011-05-13 Thread Dianne Hackborn
That kind of stack crawl looks like the view IDs of the fragment's view hierarchy being restored are not consistent with the hierarchy that was saved. That is, the previous view hierarchy saved the state for some view ID of a view that is not an AbsSpinner subclass as is the same ID here where it

[android-developers] Fragments - crash on restoring spinner state

2011-05-12 Thread Karl Wagner
Hi, I have a fragment that contains a linearlayout with a bunch of controls to make an edit form (edittexts, spinners, buttons, etc). We have a "review" button that replaces that fragment with a view form (again a linearlayout, but with textviews only) and this transition gets added to the back st

Re: [android-developers] Fragments Map Support in Honeycomb

2011-05-03 Thread Varun Tewari
@TreKing: Thanks for sharing this thread. I actually fixed my problem by moving my fragments to a Root MapActivity. While inflating mapView with other children of Fragment didn't cause any problem this way. Hope this will be helpful for others. Thanks & Reg, Varun On Mon, May 2, 2011 at 11:29 PM

Re: [android-developers] Fragments Map Support in Honeycomb

2011-05-02 Thread TreKing
On Mon, May 2, 2011 at 12:54 PM, Varun Tewari wrote: > Is it possible to achieve with current Fragment Support ? http://groups.google.com/group/android-developers/browse_thread/thread/b705bbd72d28d000 --

[android-developers] Fragments Map Support in Honeycomb

2011-05-02 Thread Varun Tewari
Hey Guys, I saw many blogs and forums for this. Their are no updates after mid April on this. Have we reached any conclusion ? Are there any upgrades provided by Android Native itself ? My app's minSdkVersion is 11, having List Frag in Left Panel and Details Frag in Right Panel which contains Maps

Re: [android-developers] Fragments for Google Maps add on?

2011-04-25 Thread Streets Of Boston
You're right. That's still the same (btw, the docs say you can have multiple MapActivities per app, as long as they are in different processes "... *Only one MapActivity is supported per process* ..."). The post above describes how you can have a MapView in a Fragment using the V4 compatibilit

Re: [android-developers] Fragments for Google Maps add on?

2011-04-25 Thread lbendlin
This would not change the limitation that an application can only have one MapActivity, right? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from thi

Re: [android-developers] Fragments for Google Maps add on?

2011-04-25 Thread Streets Of Boston
The option from Valentin in stackoverflow doesn't work well with the *compatibility library*. This is what i did to make it MapActivity work with Fragments using the compatibility library (it is not the best solution, but it seems to work so far): 1. Use the source of the compatibililty l

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Brill Pappin
Do you mean in the code for the fragment? Wouldn't the fragment already know the orientation from the system? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubs

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Brill Pappin
Ahh, that was the problem... such a simple mistake (but isn't it always). -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Brill Pappin
I always develop on real devices so i'm not sure I can use the viewer, but I can give it a shot for this instance. - Brill -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroup

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Kostya Vasilyev
A quick and dirty trick that works very well for me, is to set the background of a Layout / View in the XML to something really distinct, like #FF008040, and then switch to the UI editor or run the application. Not as complete and detailed as the hierarchy viewer, but still very useful, fast,

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Dianne Hackborn
Also whenever you have problems with the UI not showing correctly, "hierarchyviewer" is a very valuable tool to look at what is going on in the view hierarchy. Problems like these are very unlikely to be related to fragments, but in how the view hierarchy has been constructed. 2011/4/17 Kostya Va

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Samson Akisanya
Aren't you also supposed to specify the orientation of the fragment as well ...so the xml definition is fine but i think u should look at the fragment definition as well. On 17 Apr 2011 09:42, "Brill Pappin" wrote: > I'm very confused on why my fragments refuse to draw in portrait mode and > draw

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Kostya Vasilyev
Er, I meant wrong in portrait mode. Where the orientation is "vertical". 17.04.2011 12:52 пользователь "Kostya Vasilyev" написал: > Your fragments in landscape mode have wrong width/height. Should be: > width=match_parent, height=0, whereas you have them switched. > 17.04.2011 12:42 пользователь "

Re: [android-developers] Fragments won't display in port orientation

2011-04-17 Thread Kostya Vasilyev
Your fragments in landscape mode have wrong width/height. Should be: width=match_parent, height=0, whereas you have them switched. 17.04.2011 12:42 пользователь "Brill Pappin" написал: > I'm very confused on why my fragments refuse to draw in portrait mode and > draw fine in landscape mode. > > I'

[android-developers] Fragments won't display in port orientation

2011-04-17 Thread Brill Pappin
I'm very confused on why my fragments refuse to draw in portrait mode and draw fine in landscape mode. I'm build a screen with two fragments. in landscape they are side-by-side and in portrait they are supposed to stack one above the other. however now matter what I seem to try, the portrait mod

Re: [android-developers] Fragments /Compatibility API Backstack Clearing Problem

2011-03-28 Thread Dianne Hackborn
You can use do this a few ways: - Use a name for your initial back stack state and use FragmentManager.popBackStack(String name, FragmentManager.POP_BACK_STACK_INCLUSIVE). - Use FragmentManager.getBackStackEntryCount()/getBackStackEntryAt().getId() to retrieve the ID of the first entry on the back

[android-developers] Fragments /Compatibility API Backstack Clearing Problem

2011-03-28 Thread Josh L
All, I am rewriting an existing application to use the Fragments/Android Compatibility API so that we can more easily add custom Tablet layouts and I have come across a problem that I'm not sure how to solve. The application has a custom tab-like control across the bottom which represent different

Re: [android-developers] Fragments for Google Maps add on?

2011-03-07 Thread Pete Doyle
Sweet, so it turns out you can make the Activity which manages your Fragments extend MapActivity. Then you can make a MapFragment with a MapView. Seems to work so far. Thanks to Valentin here: http://stackoverflow.com/questions/5109336/mapview-in-a-fragment-honeycomb On Fri, Mar 4, 2011 at 4:07

Re: [android-developers] Fragments for Google Maps add on?

2011-03-04 Thread Mark Murphy
On Fri, Mar 4, 2011 at 12:37 AM, Dianne Hackborn wrote: > Sorry, nothing scheduled.  There is nothing preventing you from writing a > little code to put MapView in your own fragment, is there? The bigger issue is that MapView has to be in a MapActivity, and there may be some problems there: http

Re: [android-developers] Fragments for Google Maps add on?

2011-03-03 Thread Dianne Hackborn
Sorry, nothing scheduled. There is nothing preventing you from writing a little code to put MapView in your own fragment, is there? On Thu, Mar 3, 2011 at 7:48 PM, Pete Doyle wrote: > Anyone know if / when the Google Maps add-on will support the new Fragments > api? > > Also, any chance of a ve

[android-developers] Fragments for Google Maps add on?

2011-03-03 Thread Pete Doyle
Anyone know if / when the Google Maps add-on will support the new Fragments api? Also, any chance of a version that works with the static library released today? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send e