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
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
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.
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
Im trying to implement a fragment based navigation pattern, which can be
reduced to this:
https://lh4.googleusercontent.com/-Ws0I4LcPFNA/Uf4irMURI3I/A0s/D1wYtJBCwXc/s1600/screen2.png
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
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
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 rane...@gmail.com wrote:
I am using a custom viewpager which has Listfragment's loaded with
FragmentPagerAdapter. Each
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
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
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
An insurance policy that covers out of memory exceptions?
2012/7/31 gjs garyjamessi...@gmail.com
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
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
On Tue, Jul 31, 2012 at 2:51 AM, Dianne Hackborn hack...@android.com 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
On Tuesday, July 31, 2012 5:28:19 PM UTC+1, Latimerius wrote:
On Tue, Jul 31, 2012 at 2:51 AM, Dianne Hackborn hack...@android.com
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
On Sun, Jul 29, 2012 at 5:45 PM, bob b...@coolfone.comze.com wrote:
Worried about memory? Try this:
application android:largeHeap=true
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
*“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 b...@coolfone.comze.com wrote:
Worried about memory? Try this:
application android:largeHeap=true
No.
First of all, this only helps you on
On Mon, Jul 30, 2012 at 10:59 AM, bob b...@coolfone.comze.com 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
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 hack...@android.comwrote:
On Mon, Jul 30,
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
Worried about memory? Try this:
application android:largeHeap=true
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);
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
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
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
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
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
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
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
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.
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 faustnijh...@gmail.com wrote:
I am searching for a fragments example for my purpose.
I have made a app which has 7
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),
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
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.
Presumably because you have your build target set below API Level 13.
On Sun, Dec 18, 2011 at 5:55 PM, Mark Ayers markthe...@gmail.com 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
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 mmur...@commonsware.comwrote:
Presumably because you have your build target set below API Level 13.
On Sun, Dec 18, 2011 at 5:55 PM,
On Sun, Dec 18, 2011 at 6:06 PM, Mark Ayers markthe...@gmail.com 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
On Fri, Nov 18, 2011 at 1:52 AM, Navindian navind...@gmail.com 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
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
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,
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
linkhttp://www.onskreen.com/cornerstone/
.
Hope anyone can help me in figure out this situation, and can give me some
directions.
Thanks BR,
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
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
On Sun, Sep 25, 2011 at 10:21 AM, Rimma Sukhovsky drim...@gmail.com 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
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
On Mon, Sep 26, 2011 at 11:13 AM, Rimma Sukhovsky drim...@gmail.com 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
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:
LinearLayout
android:id=@+id/linearLayout1
android:layout_width=fill_parent
android:layout_height=wrap_content
fragment
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:
LinearLayout
android:id=@+id/linearLayout1
android:layout_width=fill_parent
android:layout_height=wrap_content
fragment
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:
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:
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.
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 jaia...@gmail.com wrote:
Hi All,
I am doing application in Honeycomb but i am not clear with
Fragments
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
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
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
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
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
@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
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
On Mon, May 2, 2011 at 12:54 PM, Varun Tewari varuntewari2...@gmail.comwrote:
Is it possible to achieve with current Fragment Support ?
http://groups.google.com/group/android-developers/browse_thread/thread/b705bbd72d28d000
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
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 this
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 compatibility
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
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 bpap...@sixgreen.com написал:
I'm very confused on why my fragments refuse to draw in portrait mode and
draw fine in
Er, I meant wrong in portrait mode. Where the orientation is vertical.
17.04.2011 12:52 пользователь Kostya Vasilyev kmans...@gmail.com
написал:
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
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 bpap...@sixgreen.com wrote:
I'm very confused on why my fragments refuse to draw in
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
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,
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
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
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
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
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
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
On Fri, Mar 4, 2011 at 12:37 AM, Dianne Hackborn hack...@android.com 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
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
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 petedo...@gmail.com wrote:
Anyone know if / when the Google Maps add-on will support the new Fragments
api?
Also,
77 matches
Mail list logo