[android-developers] ViewPager

2012-05-02 Thread Hans
I want to disable swype to next page in a ViewPager when som itemes are uncecked on current page. when all items are checked i want to enable swyping. But still it shold be posible to swype to previus. How am i doning that? -- You received this message because you are subscribed to the Google

[android-developers] Viewpager

2012-06-18 Thread Androtech
Does any one know how to put preference in viewpager? Please give me the example code if any. -- 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

Re: [android-developers] ViewPager

2012-05-02 Thread Jason Teagle
I want to disable swype to next page in a ViewPager when som itemes are uncecked on current page. when all items are checked i want to enable swyping. But still it shold be posible to swype to previus. Nothing in ViewPager or its adapter particularly looks useful. A rather inelegant solution mi

Re: [android-developers] ViewPager

2012-05-03 Thread Hans
Thank you. I try onTouch() and se if it helps me. /Hans Den onsdagen den 2:e maj 2012 kl. 21:10:50 UTC+2 skrev JTeagle: > >I want to disable swype to next page in a ViewPager when som itemes are > >uncecked on current page. when all items are checked i want to enable > >swyping. But still it

[android-developers] ViewPager jumpy/laggy

2012-03-30 Thread Phil Bayfield
I'm using a ViewPager with ListViews inside them but the transitions are quite jumpy. Can anyone tell me a good way to improve the performance of this? Thanks Phil -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

[android-developers] Viewpager and fragments

2012-09-30 Thread Lars
Hi, I want to have an ongoing viewpager (something like the calendar app) where i can show the days of the year each fragment represents one day. i like to fill that fragment with data from the web but i don't want it too load it again and again each time i add a fragment to the viewpager, so i

[android-developers] ViewPager subclass + onMeasure

2012-10-12 Thread Chris Sarbora
I'm trying to develop a ViewPager subclass that, among other things, limits itself to a specific aspect ratio (2:1 W:H), and accepts a BaseAdapter instead of only a PagerAdapter. I've built a PagerAdapter implementation that can take a BaseAdapter and translate to/from, without any apparent pro

[android-developers] Viewpager within NavigationDrawer

2013-12-15 Thread subha
I have MainActivity which extends Fragment Activity, has a NavigationDrawer and a ViewPager(3 fragments) in its layout On each Item click of NavigationDrawer corresponding fragment is called. On every launch of the application, I can able to slide between the 3 views in the View Pager, But if I na

[android-developers] ViewPager in Fragment

2015-11-11 Thread Jonathan Fajardo Roa
Hello, I have a ViewPager a Fragment, the first time I call the fragment is well shows the ViewPager, but not the second shows the info ViewPager, can you help me? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, sen

[android-developers] Viewpager shows wrong pages

2013-01-26 Thread Teknoinfo
I have a viewpagerindicator by Jake Wharton and in that viewpager i have 6 pages.All of the pages contains listviews and i'm loading them with an AsyncTask.Sometimes viewpager shows wrong pages at wrong indexes.Here is my viewpager adapter: public class TestFragmentAdapter extends FragmentP

[android-developers] ViewPager and android.text.GlyphItem.getWidth ArrayIndexOutOfBoundsException

2012-02-24 Thread Dang Sananikone
Hi, Recently I updated my app to use ViewPager and changed my activities to use fragments using the Compatibility Package (v4, r6). This has worked well, however I have just received a bug report form the Android Market Developer Console (see stack trace below). I am somewhat at a loss as to how t

[android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Thesalan
Hi! I started Android development last week, and I have a problem with a code on some devices : I have to develop an application with a specific controller like a horizontal wheel. To do this, I want to use the ViewPager, with setClipChildren(false) to extend the view. I based on the following

[android-developers] ViewPager problem on SlidingPaneLayout

2014-01-16 Thread Jia Li
In my app, I need to put a ViewPager on SlidingPaneLayout, but the ViewPager doesn't scroll. I found someone's solution at http://stackoverflow.com/questions/17490899/using-androids-slidingpanelayout-with-viewpager It solves the scroll problem. But, if I set onclick listener to the views on t

[android-developers] ViewPager pages not drawn

2014-12-19 Thread Doug Gordon
I haven't received any responses on stackoverflow about this, so am giving it a shot here. My app, which is fairly large and complex (hard to post meaningful code) uses as its main view a ViewPager with a FragmentPagerAdapter. Since the minSDK is 14, I originally wrote it to use the native Fra

Re: [android-developers] ViewPager in Fragment

2015-11-11 Thread Justin Anderson
"can you help me?" Not without code... On Wed, Nov 11, 2015, 12:18 PM Jonathan Fajardo Roa wrote: > Hello, I have a ViewPager a Fragment, the first time I call the fragment > is well shows the ViewPager, but not the second shows the info ViewPager, > can you help me? > > -- > You received this

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Mark Murphy
That's rather strange, particularly considering that ViewPager is part of the Android Support package, not the firmware. If you can create a complete sample project that demonstrates this, upload the source somewhere, as I'd like to take a look at it. On Mon, Aug 27, 2012 at 4:29 AM, Thesalan wr

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Mark Murphy
I'll try to take a look at this later today. On Tue, Aug 28, 2012 at 8:54 AM, Thesalan wrote: > Thanks a lot!! > > The project is attached to this post, at this lighter version (like we can > found here https://gist.github.com/8cbe094bb7a783e37ad1) > > I repeat : this works greats on emulator an

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Mark Murphy
On Tue, Aug 28, 2012 at 8:54 AM, Thesalan wrote: > The project is attached to this post, at this lighter version (like we can > found here https://gist.github.com/8cbe094bb7a783e37ad1) > > I repeat : this works greats on emulator and older devices, but not on my > HTC One X with last OTA (Android

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Romain Guy
Sounds like a bug, please file a report with an apk or a sample project that reproduces the issue and I'll fix it. On Tue, Aug 28, 2012 at 11:05 PM, Mark Murphy wrote: > On Tue, Aug 28, 2012 at 8:54 AM, Thesalan wrote: >> The project is attached to this post, at this lighter version (like we can

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Romain Guy
To file a bug report, go to http://b.android.com btw On Tue, Aug 28, 2012 at 11:10 PM, Romain Guy wrote: > Sounds like a bug, please file a report with an apk or a sample > project that reproduces the issue and I'll fix it. > > On Tue, Aug 28, 2012 at 11:05 PM, Mark Murphy wrote: >> On Tue, Aug

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Mark Murphy
On Tue, Aug 28, 2012 at 5:10 PM, Romain Guy wrote: > Sounds like a bug, please file a report with an apk or a sample > project that reproduces the issue and I'll fix it. Posted as http://code.google.com/p/android/issues/detail?id=36788 Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Thesalan
Mark, a huge thank you!! I never thought the problem would come from hardware acceleration (I'm a beginner after all ^_^). Indeed, my current rom force hardware acceleration for all applications. I tried to force software mode just on the ViewPager with setLayerType(View.LAYER_TYPE_SOFTWARE, nu

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Kostya Vasilyev
2012/8/29 Thesalan > Mark, a huge thank you!! I never thought the problem would come from > hardware acceleration (I'm a beginner after all ^_^). Indeed, my current > rom force hardware acceleration for all applications. > > I tried to force software mode just on the ViewPager with > setLayerType

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Thesalan
Ok, thank you for the precision! Le mercredi 29 août 2012 00:05:24 UTC+2, Kostya Vasilyev a écrit : > > > 2012/8/29 Thesalan > > >> Mark, a huge thank you!! I never thought the problem would come from >> hardware acceleration (I'm a beginner after all ^_^). Indeed, my current >> rom force hardwa

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Romain Guy
Kostya, you are wrong :) setLayerType() always lets you go back to software. It doesn't let you go to hardware if the app is not hardware accelerated. The whole point of setLayerType(SOFTWARE) is to be able to selectively disable hardware acceleration for small parts of the app (to work around mis

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Romain Guy (Google)
Thesalan, it's incorrect. setLayeType(View.LAYER_TYPE_SOFTWARE, null) always works, no matter how or if hardware acceleration is enabled. On Tuesday, August 28, 2012 3:18:18 PM UTC-7, Thesalan wrote: > > Ok, thank you for the precision! > > Le mercredi 29 août 2012 00:05:24 UTC+2, Kostya Vasilyev

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Thesalan
Ok thanks! But when I do it on the ViewPager, the clipping stay... I will try again tomorrow, it's late for me here ;) Thanks again! Le mercredi 29 août 2012 00:23:03 UTC+2, Romain Guy (Google) a écrit : > > Thesalan, it's incorrect. setLayeType(View.LAYER_TYPE_SOFTWARE, null) > always works, n

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Kostya Vasilyev
Thanks for clarifying, I stand corrected. -- K 2012/8/29 Romain Guy > Kostya, you are wrong :) > > setLayerType() always lets you go back to software. It doesn't let you > go to hardware if the app is not hardware accelerated. The whole point > of setLayerType(SOFTWARE) is to be able to selecti

[android-developers] ViewPager and OnItemClickListener in ListView

2011-11-22 Thread keyboardr
I'm working on creating a swipe-to-dismiss list view adapter. My basic methodology is to wrap the list item's view as the second view in a ViewPager and provide the necessary callbacks in the item change listener of the ViewPager. Through much pain I've got the View recycler working as intend

[android-developers] ViewPager with WebViews using hardwareAccelerated

2011-07-28 Thread Macarse
Hi, I have been trying to create a ViewPager to swipe between WebViews using the compatibility package. This WebViews will have some html with images and text. Without the hardwareAccelerated the app works fine but the scroll feels slow. It gets better having the hardwareAccelerated turned on bu

[android-developers] ViewPager does not respect WRAP_CONTENT?

2013-11-22 Thread Ab
I would like to create a ViewPager whose width wrap's to its contents, and is centered horizontally in it's parent. The first code snippet uses a LinearLayout to create this effect, as shown in the first screenshot. The second code snippet is my attempt to do this with a ViewPager instead of

Re: [android-developers] ViewPager pages not drawn

2014-12-19 Thread Kostya Vasilyev
Have you tried debugging into ViewPager code? To see if your fragments' views are actually there and how they're laid out? Another thing I often use in cases like this -- is to set the background color of various views to distinct noticeable colors, like pink, cyan, etc. In this case, I'd try the

Re: [android-developers] ViewPager pages not drawn

2014-12-20 Thread Doug Gordon
Kostya, I have done that and what I am seeing is the background of the ViewPager, but not my fragments' views. I set a breakpoint so I could go back into the ViewPager, and examining its data structure I find that not only does its mItems array contain my instantiated fragments, but also the mC

Re: [android-developers] ViewPager pages not drawn

2014-12-20 Thread Kostya Vasilyev
Ok, so the items are there and the views are there. What I would do at this point is check the attributes (data) of those views: - Their positions and sizes - Visibility - Animation state - Translation / scaling - Scroll positions Or I would try to debug into the view pager's onMeasure / onLayou

Re: [android-developers] ViewPager pages not drawn

2014-12-20 Thread Doug Gordon
SOLVED! After tracing the execution through ViewPager and FragmentPagerAdapter and trying to explain the very strange behavior I was seeing, I eventually discovered that when I wrote my fragments extending Fragment and ListFragment a long time ago, I had added a getView() method that was (inadv

Re: [android-developers] ViewPager pages not drawn

2014-12-22 Thread Kostya Vasilyev
On Sunday, December 21, 2014 6:15:44 AM UTC+3, Doug Gordon wrote: > > SOLVED! After tracing the execution through ViewPager and > FragmentPagerAdapter and trying to explain the very strange behavior I was > seeing, I eventually discovered that when I wrote my fragments extending > Fragment and

[android-developers] ViewPager in honeycomb ignoring Application theme.

2011-11-01 Thread Ivan Soto
Hello, For some reason my application is ignoring the theme applied to the Application in the manifest file only inside a viewpager. I have an activity with 2 fragments: The first fragment loads Holo.light just fine. But the second only applied Holo.Light on the button (which is outside the

[android-developers] ViewPager with Fragments fails with MATCH_PARENT

2012-05-13 Thread NataliaPC
Hi I'm trying to create a ViewPager with a FragmentPagerAdapter. All works fine with devices API-10 but ViewPage measure fails in devices API-13 stretching the Fragment childs like adding a margin left and right. Seems a problem of measurement because if I change the ViewPager layout_width from M

[android-developers] ViewPager fragment views data updating issue

2013-10-10 Thread asha b
Hi, ViewPager fragment is getting updated with next fragment view data on display. How to avoid it? Thanks -- 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

[android-developers] ViewPager MotionEvent changes between onInterceptTouchEvent and onTouchEvent

2012-01-26 Thread harvinder
Setup: I am using a custom ViewGroup withing ViewPager(horizontal scroll) . custom viewgroup provides vertical scrolling and has implemented OnGestureListener with the help of GestureDetector. I am using android.support.v4.view (revision 6) with android 4.03 +ViewPager (horizontal scrolling)

[android-developers] ViewPager, change page on page title click

2012-02-06 Thread Lazarus 101
Hi everyone, i'm using a ViewPager with a custom PagerAdapter. The swipe works well but I would like to change the current page when the title is clicked. The Market app has implemented this so I assume it is achievable but I couldn't find a way to do it. Thanks in advance -- You received this m

[android-developers] ViewPager - Replace Java View with XML Layout

2011-09-30 Thread DStudio
Hi, I am trying to replace the code below with a fragment or layout from xml. Does anyone know how to call the xml from inside these brackets? FindByID doesn't work and it also doesn't let me use Inflate, as it says that it is inside a pagerAdapter. ---private class AwesomePagerAdapter extends Page

[android-developers] ViewPager and ListFragments with onLongClick listener problem

2013-12-20 Thread Παύλος-Πέτρος Τουρνάρης
Hello to everyone! I tried asking this in StackOverflow and had to no luck so you are my last hope! http://stackoverflow.com/questions/20681055/viewpager-and-listfragment-with-onlongclick-strange-behaviour The problem is clearly described in the above link! If you want me to clarify anything more

[android-developers] Viewpager overscrolls when width is changed when swiping

2012-12-12 Thread spotleo
Dear all, I am having trouble with ViewPager overscrolling to the next or previous page if ViewPager's width is changed in onPageSelected. I'm looking at ViewPager's setCurrentItemInternal code and the steps of swiping to the next page seems to be 1. smoothScrollTo 2. calls onPageSelecte

[android-developers] ViewPager using FragmentPagerAdapter remove invisible pages from memory

2013-02-22 Thread Captain Comando
hi, i am developing an application which has view pager that includes 5 different fragments. Each fragment has many views, animations and listeners so my app runs slower. When i add only first second and third pages there is no problem but after adding others performance problem starts. I t

Re: [android-developers] ViewPager, change page on page title click

2012-02-08 Thread TreKing
On Mon, Feb 6, 2012 at 8:29 PM, Lazarus 101 wrote: > The Market app has implemented this so I assume it is achievable but I > couldn't find a way to do it. > What did you try? - TreKing

[android-developers] ViewPager Not Loading in Genymotion Emulator - Android 4.2.2.

2016-02-24 Thread Troy Chuinard
I have recently been testing devices using Amazon Web Services Device Farm. I noticed that on some devices, my activity loads but the fragment attached to the activity does not load. I have identified Android 4.2.2 as one of the common variables for the issue, but do not want to say that it is o

Re: [android-developers] ViewPager Not Loading in Genymotion Emulator - Android 4.2.2.

2016-02-25 Thread TreKing
Thanks for sharing. On Wed, Feb 24, 2016 at 9:40 PM, Troy Chuinard wrote: > I have recently been testing devices using Amazon Web Services Device > Farm. I noticed that on some devices, my activity loads but the fragment > attached to the activity does not load. I have identified Android 4.2.2 a

[android-developers] ViewPager swipe between fragments only with gesture on specific view

2013-01-07 Thread Fisiu
Hi, I have a classic ViewPager (xml snippet ) in my app and fragments are displayed inside 'pager'. Screen of example fragment is here . By default, whole view (with white and gray background) reacts on sw

[android-developers] ViewPager in a ListView - how to lock the scrolling axis?

2011-10-26 Thread Zsombor
I have a ViewPager widget in every row of a ListView. This provides a shelf-like UI, so the user can scroll around searching for a shelf vertically, and then scroll horizontally amongst the contents of a shelf. This works. But the scrolling experience is terrible: if I start to drag a shelf's View

Re: [android-developers] ViewPager in a ListView - how to lock the scrolling axis?

2011-10-26 Thread Dianne Hackborn
How exactly do you recycle the list view items correctly? This is... crazy. On Wed, Oct 26, 2011 at 2:25 AM, Zsombor wrote: > I have a ViewPager widget in every row of a ListView. This provides a > shelf-like UI, so the user can scroll around searching for a shelf > vertically, and then scroll

[android-developers] ViewPager not updating the current item using setCurrentItem on orientation change.

2012-10-22 Thread Francesco Noya
I've got a ViewPager that should change the page displayed upon orientation change. What I would like to achieve is to restart from the first fragment when i switch from landscape to portrait or vice-versa. I supposed was just necessary to set a mViewPager.setCurrentItem(0, false); in the onCr