Giter Site home page Giter Site logo

Comments (6)

pakerfeldt avatar pakerfeldt commented on August 22, 2024

Have you looked at the examples? The circle flow example uses wrap_content and shows up as expected.
Make sure there is nothing else in your layout that is causing this behaviour.

from android-viewflow.

fcavedon avatar fcavedon commented on August 22, 2024

I have copied the layout exactly like the example. That's why I find it odd.

The only difference is that in your example, the view that is shown inside the viewFlow is a LinearLayout with a ScrollView, while mine is a LinearLayout with a bunch of TableLayouts; could this be the cause?

from android-viewflow.

pakerfeldt avatar pakerfeldt commented on August 22, 2024

It has most likely nothing to do what's inside your viewflow but rather how the parent layout looks like. The layout that contains the indicator and the viewflow. In the example, they both live in a FrameLayout. Which might not really be the way you want. Try adding them to a vertical oriented LinearLayout instead. But it's hard to give any advice without having a look at the layout xml.

from android-viewflow.

fcavedon avatar fcavedon commented on August 22, 2024

This is my parent layout. I tried switching it to a LinearLayout, but still no indicator is shown. With width=70dp the circles are shown, however, not centered with few elements.

<org.taptwo.android.widget.ViewFlow
    android:id="@+id/viewflow"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    app:sidebuffer="3" 
    android:layout_marginLeft="10dp" 
    android:layout_marginTop="10dp"/>

<org.taptwo.android.widget.CircleFlowIndicator
    android:id="@+id/viewflowindic"
    android:layout_width="70dp"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal|bottom"
    app:activeColor="#00bfff"
    app:inactiveColor="#1e90ff"
    app:inactiveType="stroke"
    app:radius="3.5dp"
    android:visibility="visible" 
    android:layout_marginBottom="10dp"/>

from android-viewflow.

pakerfeldt avatar pakerfeldt commented on August 22, 2024

Are you using Eclipse? Try select the CircleFlowIndicator in the Layout Editor and show should see where it's located. If it has been pushed down, outside the screen by the ViewFlow. Try moving the indicator above the ViewFlow just to see what happens.

from android-viewflow.

fcavedon avatar fcavedon commented on August 22, 2024

Yes, I'm using Eclipse. I tried your suggestion, but still nothing. The
indicator was inside the ViewFlow widget. I moved it down, and reduced the
ViewFlow's height, so the indicator could still be underneath it. Still no
luck..

What is bothering me is that your example works very well with
wrap_contents. And also, the indicator appears if I use ADT's HierarchyView
and load all views. This does not makes sense...

Thanks for your help!

2012/1/27 Patrik kerfeldt <
[email protected]

Are you using Eclipse? Try select the CircleFlowIndicator in the Layout
Editor and show should see where it's located. If it has been pushed down,
outside the screen by the ViewFlow. Try moving the indicator above the
ViewFlow just to see what happens.


Reply to this email directly or view it on GitHub:

#60 (comment)

Francisco A. Cavedon - SCJP
[email protected]

from android-viewflow.

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.