Quite interesting tool..
http://jimulabs.com/
Just checked this tool and make hands on it...finally felt awesome...
http://jimulabs.com/
Just checked this tool and make hands on it...finally felt awesome...
I am passionate android developer ..And love to learn and do new things .
<?xml version="1.0" encoding="utf-8"?> android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/RootView">
Then,
on the onDestroy() method of your Activity, call the unbindDrawables()
method passing a refence to the parent View and then do a System.gc().
@Override
protected void onDestroy() {
super.onDestroy();
unbindDrawables(findViewById(R.id.RootView));
System.gc();
}
private void unbindDrawables(View view) {
if (view.getBackground() != null) {
view.getBackground().setCallback(null);
}
if (view instanceof ViewGroup) {
for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {
unbindDrawables(((ViewGroup) view).getChildAt(i));
}
((ViewGroup) view).removeAllViews();
}
}
This unbindDrawables() method explores the view tree recursively and:
- Removes callbacks on all the background drawables
- Removes childs on every viewgroup.