Ignoring some logs in Logcat filter – Android Studio – solution

Categories: ANDROID like

Here is a little help to remove from our logcat some logs we don’t want like: dalvikvm or OpenGL All what you need is to click in top right corner of logcat, select our package name and click Edit Filter Configuration Then in the field called Log Tag regex You need insert this ^((?!(?:dalvikvm|OpenGLRenderer)).)*$ which […]

Working example – changing drawable background in runtime, dynamically

Categories: NON ANDROID like

Here is a short example code how to do it: I’ve created xml file shape.xml and one method for flexible changing color of shape. shape.xml: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid android:color="@android:color/holo_blue_bright" /> <corners android:radius="30dp" /> <size android:height="15dp" android:width="15dp" /> </shape> And here is a method for flexible changing color: