java - ScrollView inside a ViewPagerIndicator -


I have a ViewPagerIndicator, which brings me a piece, in this section I have a ScrollView

My ViewPager xml:

  & lt; RelativeLayout Android: ID = "@ + id / relativeViewPager" Android: layout_width = "match_parent" Android: layout_height = "300dp" & gt; & Lt; imageView Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_alignParentTop = "true" android: background = "@ drawable / cover_image2e3" / & gt; & Lt; android.support.v4.view.ViewPager android: id = "@ + id / pager" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_weight = "1" / & gt; & Lt; com.viewpagerindicator.CirclePageIndicator android: id = "@ + id / indicator" Android: layout_width = "fill_parent" Android: layout_height = "wrap_content" Android: layout_alignParentBottom = "true" android: padding = "10dp" / & gt; & Lt; / RelativeLayout & gt;  

My piece xml:

  & lt; Android: layout_width = "wrap_content" Android: layout_height = "215dp" Android: layout_margin = "30dp" Android: layout_margin right = "30dp" Android: layout_margintop = "55dp" Android: ID = "@ + id / relativeDogstar2" Android : Visibility = "invisible" & gt; & Lt; ScrollView Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" & gt; & Lt; TextView android: id = "@ + id / textDogstar2" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" android: text = "Lorem ipsum Loremipsum Lorem ipsum Lorem ipsum Loremipsum Lorem ipsum Lorem ipsum Lorem ipsum Powered By Lorem ipsum proud Email Marketing Advertising Home Business Advertising Business Advertising Home Business Advertising Home Business Advertising Home Business Advertising Home Business Advertising Contact Us Home Business Advertising Home Business Advertising "Android: textColor = I" @ Color / Brandy Micro "android: text size =" 20sp "/ & gt; & Lt; / Scrollview & gt; & Lt; / RelativeLayout & gt;  

creative in my activity:

  Drishypej = (Wupagr) Duँdenwubiaiaidi (Arkaidkpejr); MAdapter = New Test Fragmentation Adapter (getSupportFragmentManager ()); ViewPager.setAdapter (mAdapter); Find Page Indicator Mindicator = (PageInndicator) VVBIID (RID. Indicator); MIndicator.setViewPager (viewPager);  

The question is: Why does not my scroll work? I can make the slider horizontally (for ViewPager), but inside the piece I can not scroll vertically, or whatever.

Disables something in ViewPagerIndicator? How do I enable scrolling?

Thank you!

Your layout is small, most likely Your relativelayout is only 215dp in height, and everything is wrapping material. Therefore, there is simply nothing to scroll

Try setting the height of your relative layout, in section, match_parent , and the height of the scrollview to Match_parent (if desired, of course), and now the text is to test scrolling


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -