Git Product home page Git Product logo

Comments (7)

romandanylyk avatar romandanylyk commented on June 8, 2024 1

Thanks, I will try to figure out what's wrong with it.

from pageindicatorview.

romandanylyk avatar romandanylyk commented on June 8, 2024 1

Looks like I found what was wrong.
Please see latest version for fix. (Will be released soon)

from pageindicatorview.

romandanylyk avatar romandanylyk commented on June 8, 2024

Hi,
while using PageIndicatorView you can use any of layout, it does not depends on it.
To fix visibility issue, can you please specify what setters in customisation do you use in java code? This issue could be related to it.

Thanks.

from pageindicatorview.

manijak avatar manijak commented on June 8, 2024

For example, I use the following settings:
selectedColor = #ffffff
unselectedColor = #33ffffff
animationType = com.rd.animation.AnimationType.COLOR
animationDuration = 500

Trimmed code example (NativeScript code):

_viewPager = new android.support.v4.view.ViewPager(this._context);
_viewPager.setId(this._androidViewId);
        
_pageIndicatorView = new com.rd.PageIndicatorView(this._context);
_pageIndicatorView.setId(this._indicatorViewId);

_viewPager.setAdapter(new CarouselPagerAdapterClass(this));
_viewPager.setOnPageChangeListener(new CarouselPageChangedListenerClass(this));
        
_pagerIndicatorLayoutParams = parentViewContainer.getLayoutParams();
_pagerIndicatorLayoutParams.height = android.support.v4.view.ViewPager.LayoutParams.WRAP_CONTENT;
_pagerIndicatorLayoutParams.width = android.support.v4.view.ViewPager.LayoutParams.WRAP_CONTENT;
_pagerIndicatorLayoutParams.setMargins(0, 0, 0, 20);
_pagerIndicatorLayoutParams.gravity = android.view.Gravity.BOTTOM;

_pageIndicatorView.setViewPager(this._viewPager);
_pageIndicatorView.setCount(this._childrenCount);
_pageIndicatorView.setSelection(this.selectedPage);

As I mentioned before, the same code works with version 6.0.

from pageindicatorview.

manijak avatar manijak commented on June 8, 2024

@romandanylyk Thanks for the last update! It works!

There is another issue now, the indicators are all aligned to the left of the view. Cannot seem to center them.

from pageindicatorview.

manijak avatar manijak commented on June 8, 2024

Never mind, fixed. LayoutParams was off. :) Thanks again!

from pageindicatorview.

romandanylyk avatar romandanylyk commented on June 8, 2024

Thank you for reporting issues.
Glad it helped

from pageindicatorview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.