Friday, 21/7/2017 | 4:34 UTC+0

Tutorial Fab Floating Action Material

Oprekers android harusnya tahu yang namanya decompile recompile, entah itu DC RC system UI maupun smali hehe. Yang pasti basik dasarnya harus tahu. saya juga tahu tapi memang sangat sangat malas jika harus melakukan decompile recompile, alasanya karena memang males saja. Pusing kok haha. harus lihat scrip scrip di ulang ulang sampai beberapa kali. dc rc system UI saja sampai 3 hari. itupun baru dasar dan harus di tuntun hehe.

oke langsung saja :

guide-fab-floating-action-material

tutorial fab Floating Action Button Material

LINK bahan ada di bagian paling bawah. silahkan di ekstrak

yang pertama :

  • Decompile SystemUI.apk
  • merge bahannya ke TKP masing masing

tambahkan kode ini terserah mau di taro di layout mana Floating nya.

<include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/asus_fab" />
  • Compile.
  • Decompile lagi.
  • buka smali
smali/com/androstarkdevelopers/member/droidbusterxda/fab1.smali

0x7f050040 <public type="anim" name="subfabshowhide"

0x7f05003f <public type="anim" name="subfabshow"

smali/com/androstarkdevelopers/member/droidbusterxda/fab2.smali

0x7f050040 <public type="anim" name="subfabshow"

0x7f05003f <public type="anim" name="subfabshow"

smali/com/androstarkdevelopers/member/droidbusterxda/fabmain.smali
 
0x7f05003c <public type="anim" name="fabrotation"

0x7f05003d <public type="anim" name="fabrotationback"

smali com/androstarkdevelopers/member/droidbusterxda/fabtitlebtn.smali

0x7f05003e <public type="anim" name="hidebuttonsubfab"

0x7f05003b <public type="anim" name="buttonsubfab"

com/androstarkdevelopers/member/droidbusterxda/maintitlebtn.smali

0x7f05003e <public type="anim" name="hidebuttonsubfab"

0x7f05003b <public type="anim" name="buttonsubfab"

0x7f050041 <public type="anim" name="visitmainfabinlayout"

Buat Methode Onclick ke aplikasi (SKIP STEP INI JIKA UDAH PASANG METHODE ONCLICK)

BUAT JELLY BEAN/KITKAT :

com/android/systemui/SystemUIService.smali

tambahkan line ini di bawah # virtual methods

.method public izonk_deathsilence(Landroid/view/View;)V
 .locals 11
 .param p1, "v" # Landroid/view/View;

.prologue
 new-instance v0, Landroid/content/Intent;

invoke-direct {v0}, Landroid/content/Intent;-><init>()V

invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

move-result-object v5

check-cast v5, Ljava/lang/String;

:try_start_0
 const-string v3, ","

invoke-virtual {v5, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

move-result-object v6

const/4 v4, 0x0

aget-object v4, v6, v4

const/4 v7, 0x1

aget-object v7, v6, v7

invoke-virtual {v0, v4, v7}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

const/high16 v2, 0x10000000

invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

move-result-object v0

invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
 :try_end_0
 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

:goto_0
 const-string v1, "statusbar"

invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v0

check-cast v0, Landroid/app/StatusBarManager;

invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapsePanels()V

return-void

:catch_0
 move-exception v0

.local v0, "e":Ljava/lang/Exception;
 invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

const-string v10, "Application not found"

invoke-virtual {v10, v5}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

move-result-object v5

const/16 v9, 0x7d0

invoke-static {p0, v5, v9}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

move-result-object v8

invoke-virtual {v8}, Landroid/widget/Toast;->show()V

goto :goto_0
.end method

UNTUK LOLIPOP :

smali/com/android/systemui/SystemUIApplication.smali

tambahkan line ini di bawah # virtual methods

.method public izonk_deathsilence(Landroid/view/View;)V
 .locals 11
 .param p1, "v" # Landroid/view/View;

.prologue
 new-instance v0, Landroid/content/Intent;

invoke-direct {v0}, Landroid/content/Intent;-><init>()V

invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

move-result-object v5

check-cast v5, Ljava/lang/String;

:try_start_0
 const-string v3, ","

invoke-virtual {v5, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

move-result-object v6

const/4 v4, 0x0

aget-object v4, v6, v4

const/4 v7, 0x1

aget-object v7, v6, v7

invoke-virtual {v0, v4, v7}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

const/high16 v2, 0x10000000

invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

move-result-object v0

invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
 :try_end_0
 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

:goto_0
 const-string v1, "statusbar"

invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v0

check-cast v0, Landroid/app/StatusBarManager;

invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapsePanels()V

return-void

:catch_0
 move-exception v0

.local v0, "e":Ljava/lang/Exception;
 invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

const-string v10, "Application not found"

invoke-virtual {v10, v5}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

move-result-object v5

const/16 v9, 0x7d0

invoke-static {p0, v5, v9}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

move-result-object v8

invoke-virtual {v8}, Landroid/widget/Toast;->show()V

goto :goto_0
.end method

Done
Compile apk
Push
Created By : Izonk Deathsilence

Credits :
Droidbuster XDA
AndroStark Developer Fab Github Source

BACA : KARTU 3 BAGI BAGI NELFON GRATIS KE SEMUA OPERATOR

 

FILE BAHAN

DOWNLOAD VIA

DROBOX

MEDIAFIRE

About

Tempat nongkrong di internet paling kece, Cuma di Garasingibad.com | punya pertanyaan, share info ataupun saling sapa apapun tentang teknologi, kini garasingibad.com menyediakan tempat komunikasi yang lebih praktis. temukan garasingibad di : LINE ID : @garasingibad.com pakai @ ya | WA : 0895350659959 | PIN BBM : D4729E44 | CANNEL BBM ID : garasingbad.com