美文网首页
Photopicker集成的几个问题

Photopicker集成的几个问题

作者: ae12 | 来源:发表于2018-06-05 16:11 被阅读11次

要按照提供的步骤来

1.Gradle
dependencies {
compile 'me.iwf.photopicker:PhotoPicker:0.9.12@aar'

compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.github.bumptech.glide:glide:4.1.1'

}
appcompat-v7version >= 23.0.0

2。manifest <activity android:name="me.iwf.photopicker.PhotoPickerActivity"
android:theme="@style/Theme.AppCompat.NoActionBar"
/>

<activity android:name="me.iwf.photopicker.PhotoPagerActivity"
  android:theme="@style/Theme.AppCompat.NoActionBar"/>

3.style
<style name="actionBarTheme" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
<item name="android:textColorPrimary">@android:color/primary_text_light</item>
<item name="actionBarSize">@dimen/actionBarSize</item>
</style>

<style name="customTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="actionBarTheme">@style/actionBarTheme</item>
<item name="colorPrimary">#FFA500</item>
<item name="actionBarSize">@dimen/actionBarSize</item>
<item name="colorPrimaryDark">#CCa500</item>
</style>

否则回报各种错。

相关文章

网友评论

      本文标题:Photopicker集成的几个问题

      本文链接:https://www.haomeiwen.com/subject/imfmsftx.html