Questions tagged [viewpage]
79 questions
0
votes
1 answer
Multiple View Folders Based on URL parameter
I have developed an MVC5 application for one of our client. It works fine. Now we have more clients where all the functionalities are same, but the view is different for each client(Not only the layout, but the html structure itself is different in…
0
votes
2 answers
Problem in swipe between tabs in Use PagerAdapter and ViewPager
I use PagerAdapter for ViewPager Adapter without any fragment and just with one layout for Tabs and It is Ok and I can Put my data and ... But I have a problem with swipe ...It is upside down ...I want right to left but Swipe left to right…
user7268353
0
votes
2 answers
null cannot be cast to non-null type android.support.v4.view.ViewPager - KOTLIN
I know that these question has been already answered, but I think it's a different deal. So, I have the following code:
viewPager = findViewById(R.id.viewPagerGaleria) as ViewPager
val adapter = ViewPageAdapter(this)
viewPager.adapter =…

Pedro Relvas
- 678
- 7
- 19
0
votes
1 answer
getItem function calling twice in FragmentStatePagerAdapter?
I Have a problem with getItem() function why because it is called twice in FragmentStatePagerAdapter class.
Actually the main reason is in application having TextoSpeech functionality so getItem() function twice the text also speech twice. This is…

user2454588
- 23
- 4
0
votes
1 answer
add new fragment on pageview swipe
I want to add a new fragment everytime I swype right on the last fragment or left on the first one, dynamically. This fragment will be add to my adapater that will be set to my viewPager. Right now I have a static number of fragments defined in the…

Nelson Silva
- 429
- 7
- 22
0
votes
4 answers
Change Text View on button click in ViewPager
I have used a viewpager in my app in which i have a number of pagers. In this pages i have a TextView and a Button and i want to be able to change the textview in the one pager when the button in that pager is clicked.
I have the code below, but the…

John
- 347
- 1
- 5
- 16
0
votes
1 answer
why setCurrentItem() of viewPager works for next page and not for previous page?
I am using Tabbed Activity of Android Studio.
I'm moving between the pages swiping but i added 2 views to move next and previous by onclick method but it doesn't work to go back only to go next.
nextAbitudini.setOnClickListener(new…

alfo888_ibg
- 1,847
- 5
- 25
- 43
0
votes
1 answer
Calendar Swipe View Android
I'm trying to create a calendar similar to Google Calendar on Day mode, where you swipe through the days and see the hours
I'm stuck on how to update the date as the user swipes
here's what I have:
ListView Adapter
public class ListViewItems extends…

user3479468
- 45
- 4
0
votes
2 answers
Tabs at tablet in android
I have a problem in one of my apps. I have a viewpage with two tabs that show different content. In my phone this tabs habe the full width of the phone. But in tablet the are a black space at both side of the screen. In the example you can see what…

kartGIS
- 667
- 1
- 6
- 10
0
votes
0 answers
get imageview from viewpager to save and share from button
I have a list of images from picasa. I put it in grid view and then on click have the fullscreen image that is done by viewpager. I tried many ways to get bitmap or get imageview from view pager adapter but it is giving null. Please help me, I'm…

Soha Gamal
- 1
- 1
0
votes
1 answer
how to combine images with mp3 to look like video in android
I am trying to combine images in view-pager with mp3 audio file.
I have 26 images of ABC alphabets in view-pager, and a ABC song in mp3 audio file. I want that when i click start button mp3 song file play and alphabets images in view-pager…

M Usama
- 60
- 1
- 5
0
votes
1 answer
Adding ViewPager inside a RelativeLayout
I am working on Android ViewPager. I wrote code which can create ViewPager and also another layout having some controls. I would like to show my other controls first. then i want to show the viewpage (having tabs).
Problem is: it shows viewpage…

mirzapinku
- 61
- 8
0
votes
2 answers
Asp.Net MVC View function and ViewData
I have a small confusion in Asp.Net MVC
How rendering works in Asp.net MVC? We invoke View function - > Which will find the view and ask ViewEngine to parse it. Because of ViewEngine final outcome is HTML.
1)Whatever ViewData we create its available…

Sukesh Marla
- 178
- 11
0
votes
0 answers
ViewPager with header view should scroll to correct position?
I want to make an effect like twitter profile.
I use a ViewPager, and each Fragment has a ListView.
Each ListView has a header as a placeholder view.
I have a register callback method, so when the ListView Scrolls, in the main Activity…

LiFei
- 407
- 3
- 8
0
votes
1 answer
Inheriting from ViewPage forces explicit casting of model in view
I try to inhering from ViewPage as shown in this question Inheriting from ViewPage
But I get a
Compiler Error Message: CS1061: 'object' does not contain a definition for 'Spot' and no extension method 'Spot' accepting a first argument of type…

Martin Hansen
- 5,154
- 3
- 32
- 53