Reputation: 1070
I have added the cresentroContainer for rounded image bottom and KenBurnsView library to animate the image. After that I am getting out of memory error and also android studio become very slow.
Upvotes: 0
Views: 895
Reputation: 10244
Since that library make use of images just update your manifest as,
<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="Mall"
android:largeHeap="true"
android:logo="@drawable/logo_for_up"
android:screenOrientation="portrait"
android:theme="@style/AppTheme" >
</application>
Upvotes: 0
Reputation: 1616
You would have large images (perhaps large w.r.t your current device whihch has lower heap size in which you are testing) in your drawable, which you are assigning to your views in XML. You can downscale your images and then assign to views programticaly, for downscaling simply load your images via Picasso or Glid. Also You can do android:largeHeap = "true" in your manifest under application tag which is obviously not recommended by many of programmers.
Upvotes: 1