Sorry, I'm pretty new to android myself. I don't think I can be much
help to you on that.
On Feb 10, 1:09 pm, Adi wrote:
> @tatebn - Hi, I desperately needed this post! But as yours seems to be
> an internal web view, mine is an external file on the SD-Card. I'm
> trying to read it using this,
>
@tatebn - Hi, I desperately needed this post! But as yours seems to be
an internal web view, mine is an external file on the SD-Card. I'm
trying to read it using this,
BufferedReader in = new BufferedReader(new FileReader("/sdcard/
TextFiles/post.txt"));
And I cannot further decide how to split t
I ended up getting this solved as follows.
I basically just created a new adapter every time the data set needed
to change and replaced the adapter for the view pager.
InternalContentAdapter adapter = new InternalContentAdapter();
adapter.loadContents(someContentList);
this.internalContentPager.
tatebn, did you ever solve this problem? I have been going crazy trying to
dynamically add views to a viewpager based on database items.
If I find one more sample with three statically defined views each adding a
textview with the index I will go crazy!
--
You received this message because y
The destroyItem will work, but the instantiateItem will not. The
instatiateItem method is called the number of times returned in
getCount, which is overrided to return a specific number.
instantiateItem doesn't not take a parameter for a view or object to
add. It just creates and adds one based o
On Tue, Dec 27, 2011 at 2:10 PM, tatebn wrote:
> I don't see add and remove items.
>
Try the official docs instead of some random open source project.
http://developer.android.com/reference/android/support/v4/view/PagerAdapter.html
---
I don't see add and remove items.
http://www.java2s.com/Open-Source/Android/App/appsorganizer/com/google/code/appsorganizer/prova/PageAdapter.java.htm
There are add and remove methods in the ViewPager. But using them
outside of the adapter doesn't seem to do anything.
On Dec 27, 12:43 pm, TreKi
7 matches
Mail list logo