viewpagerindicator

Using ViewPagerIndicator library with Android Studio and Gradle

荒凉一梦 提交于 2019-11-26 12:49:31
I'm trying to use Jake Wharton's ViewPagerIndicator library , but I'm unable to get it working with my Gradle project in Android Studio. I add it as a dependency like so: dependencies { // ... other ommitted compile 'com.viewpagerindicator:library:2.4.1' compile 'com.android.support:support-v4:19.0.1' compile 'com.nineoldandroids:library:2.4.0' // ... } but the project doesn't seem to recognize any components in the library. I'm wondering if there's a dependency issue with different support-v4 versions or something in nineoldandroids...? I just pushed a version inside maven central so you only

Android ViewPager with bottom dots

梦想的初衷 提交于 2019-11-26 05:54:55
问题 I want to add 3 bottom dots to my ViewPager, like this. I use FragmentActivity and support library ViewPager. 回答1: No need for that much code. You can do all this stuff without coding so much by using only viewpager with tablayout . Your main Layout: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.v4.view.ViewPager android:id