Questions tagged [viewpage]
79 questions
50
votes
11 answers
Get focused View from ViewPager
i use the ViewPager for switching views with left/right swipe.
The ViewPager needs an Adapter, so I've built this one:
public class ListViewPagerAdapter extends PagerAdapter {
protected static final String TAG = "ListViewPagerAdapter";
protected…

Superroot
- 661
- 1
- 6
- 4
29
votes
5 answers
How play video on VideoView inside ViewPager from server
I try to develop an app that retrieve videos from server and play on videoview inside viewpager, video from raw folder is worked fine but their are 2 issues:
1: some video isn't played. or black activity show.
2: video is not stop when Page is…

Attaullah
- 3,856
- 3
- 48
- 63
12
votes
4 answers
Dynamic typed ViewPage
Is this possible? Here's what I'm trying:
public ActionResult Index()
{
dynamic p = new { Name = "Test", Phone = "111-2222" };
return View(p);
}
And then my view inherits from System.Web.Mvc.ViewPage and tries…

Matthew Groves
- 25,181
- 9
- 71
- 121
9
votes
1 answer
ViewPager with indicator without Android's support library
Right now I'm using the ViewPagerIndicator for swipe-able fragments with an indicator in my program and it's working like a charm. But since Google is pushing more and more into the direction of Fragments without using the Android support library…

Kris
- 4,595
- 7
- 32
- 50
6
votes
1 answer
Try to inflate a custom viewpage android
I have extend Viewpage class but the problem is I always get java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pindak.sarito/com.pindak.sarito.ui.ws.MagazineReaderActivity}: android.view.InflateException: Binary XML file line…

Chris Ian
- 771
- 1
- 7
- 19
4
votes
4 answers
Access WebViewPage from custom HTML Helper
I've got a ASP.NET MVC 3 Razor Web Application.
I've got a WebViewPage extension:
public static bool Blah(this WebViewPage webViewPage)
{
return blah && blah;
}
And i want to access this from my HtmlHelper extension:
public static MvcHtmlString…

RPM1984
- 72,246
- 58
- 225
- 350
3
votes
2 answers
android only show first viewpager inside recyclerview
i have a viewpager with FragmentStatePagerAdapter inside recyclerview
and its show only the first row in recyclerview
please help me
viewpager adapter:
public class CustomPagerAdapter extends FragmentStatePagerAdapter {
private static…

tom
- 31
- 2
3
votes
1 answer
How to visible all the time 3 tab on PagerTabStrip?
I have a android application which try to implement android PagerTabStrip on ViewPager.I have three tab
1) Tab1 2)Tab2 and 3) Tab3. When Tab1 are selected then only show Tab1>>Tab2(pic_01).When Tab2 selected then it show Tab1>>Tab2>>Tab3(pic_02).…

Prosanto
- 914
- 3
- 15
- 27
3
votes
2 answers
Add vertical scrolling to a section of android viewPager
I have a viewPager that I populate using a FragmentStatePagerAdapter. It works fine, can go through populated pages horizontally.
However the middle section of each page on the viewPager is made up of a listView. This listview will sometimes not…

ngwane
- 133
- 1
- 4
- 8
3
votes
3 answers
Swipe Horizontal
I need to swipe horizontally between list of questions and their respective choices in a radio group. I have read that I have different choices such as:
1- Gesture Detector
2- ViewPage
3- ViewPage with fragments
I have tried ViewPage but I am facing…

Wael Showair
- 3,092
- 2
- 22
- 29
2
votes
1 answer
Razor: How to force views in a folder, inherit from a special class
I want to force views in a folder (for example folder associated with ArticleController, named Article in View directory) that inherits from a CustomViewClass. Note that I know how to change inheritance in Razor views, I do it. Now I want to change…

amiry jd
- 27,021
- 30
- 116
- 215
2
votes
0 answers
Passing data between parent fragment to child fragment using Nagivation Jetpack
I have a fragment name is HomeNavHostFragment và trong layout của nó tôi có chứa một FragmentContainerView:
I have a fragment named HomeNavHostFragment and its layout contains a FragmentContainerView
And specifically my code snippets are like…

Thang
- 409
- 1
- 6
- 17
2
votes
1 answer
ASP.NET MVC ViewPage rendered in a ViewPage
I'm wondering if it is possible to render a ViewPage inside of a ViewPage.
Normally, you'd have this:
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage"%>
and then in the page you can render a user…

macca1
- 9,541
- 9
- 32
- 41
2
votes
1 answer
view page dependencyresolver
I using MVC4 and DependencyResolver with Unity. Like in Brad Wilson's blog page http://bradwilson.typepad.com/blog/2010/07/service-location-pt3-views.html, i want to use dependency injection for my views. But it seems that MVC4 view engine does not…

user1593294
- 315
- 1
- 2
- 10
1
vote
1 answer
Forcing animation on ViewPager
I'd like to force the animation triggered by the finger-swipe on a ViewPager - something like, when I press a button outside the ViewPager, it does the fancy animation.
I've tried something like:
myPagerAdapter.instantiateItem(myPager,…

trenpixster
- 390
- 1
- 3
- 12