Comments (7)
I will add a method, to set a static background and test the result.
from advancedmaterialdrawer.
See the latest git version. I have add an option, to set a static background. I will release the next version, if i have found the sliding tab bug.
from advancedmaterialdrawer.
Thanks for adding a static method!! I downloaded the latest apk from the github link and your 100+ static background seems to be failing on my end.
04-19 21:28:10.726 E/AndroidRuntime(32054): java.lang.OutOfMemoryError: Failed to allocate a 3111708 byte allocation with 2044872 free bytes and 1996KB until OOM
Any ideas?
from advancedmaterialdrawer.
Here is the full logs
04-19 21:30:44.496 E/AndroidRuntime(833): Process: de.madcyph3r.MaterialDrawer, PID: 833
04-19 21:30:44.496 E/AndroidRuntime(833): java.lang.OutOfMemoryError: Failed to allocate a 3111708 byte allocation with 2034696 free bytes and 1987KB until OOM
04-19 21:30:44.496 E/AndroidRuntime(833): at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:609)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:444)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:467)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:497)
04-19 21:30:44.496 E/AndroidRuntime(833): at de.madcyph3r.example.example.headItemTypes.HeadItem100StaticBackgroundActivity.getHeadItem(HeadItem100StaticBackgroundActivity.java:66)
04-19 21:30:44.496 E/AndroidRuntime(833): at de.madcyph3r.example.example.headItemTypes.HeadItem100StaticBackgroundActivity.init(HeadItem100StaticBackgroundActivity.java:46)
04-19 21:30:44.496 E/AndroidRuntime(833): at de.madcyph3r.materialnavigationdrawer.MaterialNavigationDrawer.onCreate(MaterialNavigationDrawer.java:218)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.app.Activity.performCreate(Activity.java:5938)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2282)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2389)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.app.ActivityThread.access$900(ActivityThread.java:147)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1296)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.os.Handler.dispatchMessage(Handler.java:102)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.os.Looper.loop(Looper.java:135)
04-19 21:30:44.496 E/AndroidRuntime(833): at android.app.ActivityThread.main(ActivityThread.java:5254)
04-19 21:30:44.496 E/AndroidRuntime(833): at java.lang.reflect.Method.invoke(Native Method)
04-19 21:30:44.496 E/AndroidRuntime(833): at java.lang.reflect.Method.invoke(Method.java:372)
04-19 21:30:44.496 E/AndroidRuntime(833): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
04-19 21:30:44.496 E/AndroidRuntime(833): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
from advancedmaterialdrawer.
Do you use images for the headItem avatar?
from advancedmaterialdrawer.
I've been using TextDrawable's as the avatar heads, and this stack trace is from the sample app.
from advancedmaterialdrawer.
Ok, then i must implement lazy load for the icons.
from advancedmaterialdrawer.
Related Issues (20)
- RTL slide shod HOT 1
- Header title text font HOT 1
- Account photo is changed to color HOT 9
- retain selected fragment on rotation HOT 1
- Master Child Navigation - Update? HOT 1
- support navigation bar in different api levels
- Toolbar cut off HOT 6
- Crashes on API 10 HOT 1
- app:theme is now deprecated. Please move to using android:theme instead. HOT 1
- Color of divider for section bottom HOT 1
- how to change drawer icon? HOT 1
- how to change height of actionbar? HOT 1
- PreferenceFragment support HOT 2
- failed to resolve HOT 2
- Keep fragment on orientation change HOT 2
- ActionBarActivity is deprecated HOT 3
- change background color of ActionBar to primaryColor HOT 2
- ActionBar Style (Colors and background)
- Closed
- Customize Item Background Colour HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from advancedmaterialdrawer.