简体   繁体   中英

how to use external library within a fragment?

请帮助如何在片段内使用外部库(图像滑块库),当扩展到 Fragment 时,findviewbyid 中出现错误,当扩展到 FragmentActivity 时,FragmentManager 不支持它。

did you add this?

dependencies {
        compile "com.android.support:support-v4:+"
        compile 'com.squareup.picasso:picasso:2.3.2'
        compile 'com.nineoldandroids:library:2.4.0'
        compile 'com.daimajia.slider:library:1.1.5@aar'
}

to the gradle?

Also, check if Fragment is imported from support library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM