I just read a blogpost by Romain Guy on how to speed up an app UI. He basically says that if your app uses opaque views you can set the background to @null
in your Activity
's style using:
<item name="android:windowBackground">@null</item>
Does this work? I was willing to test this using FPS as he did but I didn't find a clear way of getting that info.
I have read some threads saying you need to do it yourself.
I am about to add a custom view that draws the FPS in the onDraw()
method and calls invalidate()
to get call all the time.
Although this works, I would like to know if there is a better way to analyse FPS in an application.
That blogpost has a source code of samples. Check FpsImageView.java
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With