Android Tutorial TabStripViewPager - Better ViewPager

Status
Not open for further replies.

achtrade

Active Member
Licensed User
Longtime User
Now you need to compare the example with your project.

I did it and I didn't find any difference, you can see in the previous pictures what I have in my project, everything is the same.

What else could be ?
 

MCU01

Member
Licensed User
Longtime User
Hi. I'm having a similar problem that other people are having. I'm trying to update my Android-SDK-Manager with the latest updates, but I'm not sure which one in particular is the update that I need. Thanks in advance for your help.





 

MCU01

Member
Licensed User
Longtime User
Okay. Here they are,

B4A version: 6.50
Parsing code. (0.04s)
Compiling code. (0.07s)
Compiling layouts code. (0.01s)
Organizing libraries. Error
Maven artifact not found: com.android.support/support-v4
 

jkhazraji

Active Member
Licensed User
Longtime User
I get this error on running @Erel Example:


Generating R file. Error
res\values-v20\theme.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.Light'.
The contents of res\values-v20\theme.xml look like:

<?xml version="1.0" encoding="utf-8" ?>
- <resources>
<style name="LightTheme" parent="@android:style/Theme.Material.Light" />
</resources>

What is causing the error??
 

jkhazraji

Active Member
Licensed User
Longtime User
I am using version 22
 

bigbadfred

Member
Licensed User
Longtime User
Just wanted to say thanks to Erel, because I changed my other viewpager with this one and I could replace 40 lines of code with just one.
I love to keep things simple...
 

ilan

Expert
Licensed User
Longtime User
Which event are you seeing in the Java code?

I think those are events (java is not my native language)

onPageScrollStateChanged
onPageScrolled

Will they raise after the tabstrip page select animation is finished and the page is visible?

The PageSelected event (that is available in b4a) will raise when you select the page and on scrolling it happens before the page scroll animation is finished.

Thank you
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…