我想在Android Wear中創建一個曲面佈局。這是tutorial。在Android Wear中找不到CurvedChildLayoutManager com.google.android.support:wearable:2.0.0
在這個網站上,谷歌讓我創建一個類MyLauncherChildLayoutManager extends CurvedChildLayoutManager
,但我在我的Android工作室找不到CurvedChildLayoutManager
。
我找到了帶有android.support.wearable.view
的API,並且此CurvedChildLayoutManager
類包含在列表中。 這是API網站:CurvedChildLayoutManager
這是我的Gradle模塊的依賴
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:+'
compile 'com.google.android.gms:play-services-wearable:+'
//this provided is auto create when I create my android wear project, I try to annotation it,but also can't find
provided 'com.google.android.wearable:wearable:+'
}
但在我的Android工作室外部庫目錄 - >可佩戴2.0.0,我找不到CurvedChildLayoutManager
類。我爲什麼找不到?這個可穿戴的圖書館版本是最新版本。 請幫助我,謝謝。