私のアプリケーションでViewPagerIndicatorを使用したいと思います。だから私はその図書館が必要です。ダウンロードのための2つのリンク、Link1とLink2が見つかりました。android studioでViewPagerIndicatorをインポートするには?
しかし、私は自分のプロジェクトにどのように追加できますか?
これは私のビルドGradleのファイルです:私はちょうどlibs.folder
で2つのファイルをコピーし
apply plugin: 'com.android.application'
android {
repositories {
maven { url 'http://repo1.maven.org/maven2' }
maven { url "http://dl.bintray.com/populov/maven" }
jcenter()
mavenCentral()
}
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "standup.maxsoft.com.standup"
minSdkVersion 13
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.viewpagerindicator:library:[email protected]'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.viewpagerindicator:library:[email protected]'
compile 'com.google.android.gms:play-services-ads:8.3.0'
compile 'com.google.android.gms:play-services-identity:8.3.0'
compile 'com.google.android.gms:play-services-gcm:8.3.0'
}
。あなたは私をステップ的に助けてくれますか?おかげであなたはこの依存関係を使用することができます
あなたが行く:https://www.youtube.com/watch?v=yTaIQ0LMLy0とhttps://github.com/codepath/android_guides/wiki/ViewPager-with-FragmentPagerAdapter –
@ErenUtku。どのようにアンドロイドスタジオでそれを使用するのですか? –
2番目のリンクを確認しましたか? –