Comments (6)
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.
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.
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.
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.
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.
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:
Francisco A. Cavedon - SCJP
[email protected]
from android-viewflow.
Related Issues (20)
- adapter getview position always return 0?
- How to make the margin between images become zero? HOT 1
- how to run the examples ?
- "ant jar" build failure
- how to adjust the sensitivity of the switching bewteen views?
- native typeface cannot be made
- Inflate the same Layout?
- viewflow cause memory leak? HOT 2
- Unable to set Text for other layout HOT 1
- the return value of method getSelectedItemPosition() is not refreshed instantly
- NullPointerException occurs randomly while scrolling
- Increase Size of CircleFlowIndicator HOT 1
- ViewFlow displays only one title for Holo Light Theme.
- Request
- How to add Settings in DiffViewFlow
- the master version can`t support API below Level 11 HOT 13
- java.lang.NoSuchMethodError: android.view.View.getMeasuredState HOT 2
- view flow inside list view HOT 1
- Problem on ExpandableListView HOT 1
- IndexOutOfBoundException HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-viewflow.