yoyocx

Tema dan Fullscreen View

Nov 10th, 2015
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. ====================== General Tema dan FullscreenView di BBM ======================
  2.  
  3. 1. Lcom/bbm/c/b;
  4.  
  5. .method public final onActivityCreated(Landroid/app/Activity;Landroid/os/Bundle;)V
  6. .locals 0
  7. .param p1, "activity" # Landroid/app/Activity;
  8. .param p2, "savedInstanceState" # Landroid/os/Bundle;
  9.  
  10. .prologue
  11. .line 46
  12. invoke-static {p1}, Lid/delta/utils/ThemeUtils;->applyTheme(Landroid/app/Activity;)V
  13.  
  14. .line 50
  15. sget-object v0, Lcom/bbm/Alaska;->ctx:Landroid/content/Context;
  16.  
  17. invoke-static {v0, p1}, Lid/delta/utils/ThemeUtils;->setFullScreen(Landroid/content/Context;Landroid/app/Activity;)V
  18.  
  19. .line 48
  20. return-void
  21. .end method
  22.  
  23.  
  24. 2. Preference Activity
  25.  
  26. <ListPreference android:icon="@drawable/delta_themes" android:entries="@array/labels_list_preference" android:layout="@layout/delta_preference" android:title="@string/theme" android:key="delta_themes" android:summary="%s" android:dialogTitle="@string/theme" android:entryValues="@array/values_list_preference" />
  27. <CheckBoxPreference android:icon="@drawable/delta_statusbar" android:layout="@layout/delta_preference" android:title="@string/fullscreen" android:key="key_fullscreen" android:summary="@string/sum_fullscreen" android:widgetLayout="@layout/delta_preference_widget_checkbox" android:defaultValue="false" />
  28.  
  29. 3. Dengan metode ini tanpa perlu merubah/mengedit semua Activity... :D Lebih simpel dibanding metode yang lama..
  30.  
  31. 4. Untuk bahan bisa hubungi saya di Facebook...
Advertisement
Add Comment
Please, Sign In to add comment