[Android General] Droidbuster:
Hi Friends .Today I am going to share my new guide. How to add fab in your app with animated Submenu. Well great news is it support in GingerBread too. Thats why I named it Droidbuster Fabulous fab . ;). Here I created fab circle view by using xml. well i saw many developer create their fab circle imageView using Photoshop or gimps etc. but it take time and more skills. So i thought to create Fab circle image view using xml drawable. And here i will also help you to create Fab images in xmls ;).
​

So let Start.

Decompile that application in which you want to add fab Button.

Now download This droidbuster_fabulous_fab_res.zip

Now we need to extract above droidbuster_fabulous_fab_res.zip .then copy my resources in your app res folder.

Now we need to place this Fab button in our layout.

then put this code in it.

<RelativeLayout android:id="@+id/fabcontent" android:layout_width="400.0dip" android:layout_height="200.0dip" android:layout_marginBottom="34.0dip" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true">
<com.droidbusterfabolous.fab1 android:id="@+id/fab1" android:background="@drawable/fab_shape" android:layout_width="72.0dip" android:layout_height="72.0dip" android:layout_marginTop="22.0dip" android:layout_marginRight="24.0dip" android:src="@drawable/ic_call" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<com.droidbusterfabolous.fabmain android:id="@+id/fabu" android:background="@drawable/fab_shape" android:layout_width="92.0dip" android:layout_height="92.0dip" android:src="@drawable/fab_ic_add" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
<com.droidbusterfabolous.fab3 android:id="@+id/FAB3" android:background="@drawable/fab_shape" android:layout_width="72.0dip" android:layout_height="72.0dip" android:layout_marginRight="15.0dip" android:src="@drawable/ic_supervisor" android:layout_toLeftOf="@+id/fab1" android:layout_alignParentBottom="true" />
<com.droidbusterfabolous.fab2 android:id="@+id/fab2" android:background="@drawable/fab_shape" android:layout_width="72.0dip" android:layout_height="72.0dip" android:src="@drawable/ic_chat" android:layout_toLeftOf="@+id/fabu" android:layout_centerVertical="true" />
</RelativeLayout>

Now download this Smali source of Fabs_animation_smali.zip .

After download Extract the Fabs_animation_smali.zip .- Now, Copy the "droidbusterfabolous" folder to \smali\com\(here)

Well you have done your first part .Now Recompile your Application :fingers-crossed:

Now Decompile your application .Now this is our smalli editing part.

Remember search for fab1.smali fab2.smali fab3.smali .

open fab1.smali . Search for 0x7f040002 .Now open your public.xml find anim_rotate_show_fab . Now replace it public id with 0x7f040002 .

Now again search for 0x7f040001 . Now again open your public.xml find anim_rotate_hide_fab . Now replace it public id with 0x7f040001 .

Do same step with fab2.smali .Search for 0x7f040002 .Now open your public.xml find anim_rotate_show_fab . Now replace it public id with 0x7f040002 .

Now again search for 0x7f040001 . Now again open your public.xml find anim_rotate_hide_fab . Now replace it public id with 0x7f040001 .

Do same step with fab3.smali .Search for 0x7f040002 .Now open your public.xml find anim_rotate_show_fab . Now replace it public id with 0x7f040002 .

Now again search for 0x7f040001 . Now again open your public.xml find anim_rotate_hide_fab . Now replace it public id with 0x7f040001 .

Now search open this smalis .Now open fab1$1.smali , fab2$1.smali, fab3$1.smali with Notepad++ .

In this smali you have to Search for <!-- android:targetPackage --> Now change this your desired target package name.dont know what is this? targetPackage Name? I will explain in another post .haha!

and Now Search for <!-- android:targetClass --> Change this code to your desired target Class Name.

For example here is my my Targetpackage Name and targetClass name

android:targetPackage="com.android.mms"
android:targetClass="com.android.mms.ui.ConversationList

Now every thing done. compile your apk now push to your system.so now you can see your working fab button in Relativelayout :fingers-crossed:

I am here attaching my source of app where i added fab button so you can get pngs and example of layouts.:highfive:

I want to make my work aosp so i will upload my codes to Github

Download Fabulous Fab Github Source

​

​

Press Thanks Button If you Like My Work.

NOTE : Please Dont Rename Smali To your . Please Respect devs work .Like you always do Hehe . :fingers-crossed:
​

​