Code Monkey home page Code Monkey logo

Comments (13)

pakerfeldt avatar pakerfeldt commented on August 28, 2024

If by that you mean that each of the views in the viewflow contains a listview, yes that's possible.

from android-viewflow.

sundarsan avatar sundarsan commented on August 28, 2024

yes absolutely
I am very much new to android......Kindly give me some sample for have
Listviews in all the view of viewflow as you said.
Looking for ur reply as sooon as possible

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

If by that you mean that each of the views in the viewflow contains a
listview, yes that's possible.


Reply to this email directly or view it on GitHub:

#54 (comment)

from android-viewflow.

pakerfeldt avatar pakerfeldt commented on August 28, 2024

Sorry, but I can't give you that kind of support. I simply don't have the time. You should look in the viewflow-examples folder for getting started help.

from android-viewflow.

sundarsan avatar sundarsan commented on August 28, 2024

I tried with ur sample ....
Let me tell you what i have done

 I added a listview in diff_View2.xml

 and added this

ListView listView = (ListView) findViewById(R.id.listView2);

String[] Values = new String[] { "Cupcake", "Donut", "Eclair", "Froyo",

"Gingerbread", "Honeycomb", "IceCream Sandwich"};

listView.setAdapter(new ArrayAdapter(this,

android.R.layout.simple_list_item_1, Values));

Bt whatever i add i am getting listView only in the First View of the
Viewflow

Kindly suggest me where i am doing mistake

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

Sorry, but I can't give you that kind of support. I simply don't have the
time. You should look in the viewflow-examples folder for getting started
help.


Reply to this email directly or view it on GitHub:

#54 (comment)

from android-viewflow.

pakerfeldt avatar pakerfeldt commented on August 28, 2024

Just as you have an ArrayAdapter for your listview you need an Adapter for the viewflow. This adapter implements getView(...) and here you need to inflate your listview and populate it with another adapter (like the one you just wrote).

If you get a listview for the first view only, you need to have a look at the adapter implementation and the getView(...) method. For each position you need to return a valid view (a listview in your case).

from android-viewflow.

sundarsan avatar sundarsan commented on August 28, 2024

Hi,

I have tried my level best with above code attached....Moreover i tried
debugging as well..
Bt cant able to find where i did mistake..Kindly help me in this issue

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

Just as you have an ArrayAdapter for your listview you need an Adapter for
the viewflow. This adapter implements getView(...) and here you need to
inflate your listview and populate with another adapter (like the one you
just wrote).

If you only get a listview for the first view only, you need to have a
look at the adapter implementation and the getView(...) method. For each
position you need to return a valid view (a listview in your case).


Reply to this email directly or view it on GitHub:

#54 (comment)

from android-viewflow.

sundarsan avatar sundarsan commented on August 28, 2024

Looking forward to your help in this...I done all things which you said in
the previous reply but still didnt work..

2012/1/9 sundar rajan [email protected]

Hi,

I have tried my level best with above code attached....Moreover i tried
debugging as well..
Bt cant able to find where i did mistake..Kindly help me in this
issue

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

Just as you have an ArrayAdapter for your listview you need an Adapter
for the viewflow. This adapter implements getView(...) and here you need to
inflate your listview and populate with another adapter (like the one you
just wrote).

If you only get a listview for the first view only, you need to have a
look at the adapter implementation and the getView(...) method. For each
position you need to return a valid view (a listview in your case).


Reply to this email directly or view it on GitHub:

#54 (comment)

from android-viewflow.

sundarsan avatar sundarsan commented on August 28, 2024

Whenever u find time try to provide me some sample with the above req

2012/1/10 sundar rajan [email protected]

Looking forward to your help in this...I done all things which you said in
the previous reply but still didnt work..

2012/1/9 sundar rajan [email protected]

Hi,

I have tried my level best with above code attached....Moreover i
tried debugging as well..
Bt cant able to find where i did mistake..Kindly help me in this
issue

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

Just as you have an ArrayAdapter for your listview you need an Adapter
for the viewflow. This adapter implements getView(...) and here you need to
inflate your listview and populate with another adapter (like the one you
just wrote).

If you only get a listview for the first view only, you need to have a
look at the adapter implementation and the getView(...) method. For each
position you need to return a valid view (a listview in your case).


Reply to this email directly or view it on GitHub:

#54 (comment)

from android-viewflow.

pakerfeldt avatar pakerfeldt commented on August 28, 2024

What you ask for is simply elementary knowledge of the Android platform. This tutorial might help you: http://www.vogella.de/articles/AndroidListView/article.html

from android-viewflow.

sundarsan avatar sundarsan commented on August 28, 2024

come on i knew this is elementary ...Just leave it ...Let me show with my
knowledge
what this elementary boy can do in future....

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

What you ask for is simply elementary knowledge of the Android platform.
This tutorial might help you:
http://www.vogella.de/articles/AndroidListView/article.html


Reply to this email directly or view it on GitHub:

#54 (comment)

from android-viewflow.

pakerfeldt avatar pakerfeldt commented on August 28, 2024

I'm sorry to hear that you get upset. But you have to accept the fact that I don't have time to give you the complete example you ask for. Especially when there's already a lot of very god tutorials which, together with the examples in android-viewflow should be enough to understand how to create a viewflow with multiple list views.

from android-viewflow.

sundarsan avatar sundarsan commented on August 28, 2024

Its k dude....I will try to manage

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

I'm sorry to hear that you get upset. But you have to accept the fact that
I don't have time to give you the complete example you ask for. Especially
when there's already a lot of very god tutorials which, together with the
examples in android-viewflow should be enough to understand how to create a
viewflow with multiple list views.


Reply to this email directly or view it on GitHub:

#54 (comment)

from android-viewflow.

gothion avatar gothion commented on August 28, 2024

Hello , Patrik!
I am a beginner in learning android . and I found one of your work viewflow, which I think very excellent, may contain some bug. According to the log ,I found that when Keep sliding the screen, strings in the green block (05-25 10:32:25.370: D/viewflow(2536): Size of mLoadedViews: 5, Size of mRecycledViews: 4, X: 640, Y: 0), and (05-25 10:32:25.380: D/viewflow(2536): IndexInAdapter: 5, IndexInBuffer: 3 can be get. And then the index out of bounds will occur.which will cause the appliacation of your example to crash.

May this string ,05-25 10:15:35.590: E/AndroidRuntime(1914): at org.taptwo.android.widget.ViewFlow.postViewSwitched(ViewFlow.java:667), be helpful in debugging.
it would be very helpful for you to fix this,and I will be very happy for your kindness responding
best regards!

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.