-->

[Tutorial] Viewpager UI

[Tutorial] Viewpager UI - Hallo sobat Jogja Android Blog, Pada Artikel yang sobat baca kali ini dengan judul [Tutorial] Viewpager UI, kami telah mempersiapkan artikel ini dengan baik untuk sobat baca dan ambil informasi didalamnya. Mudah-mudahan isi postingan [Tutorial] Viewpager UI yang kami tulis ini dapat sobat Jogja Android Blog pahami. Baiklah, selamat membaca sambil menikmati kopi.


Viewpager UIViewpager UI


Viewpager UIViewpager UI

Viewpager UI

















SYARAT :

- ROM Deodex
- Disable signature check
- Download bahan di sini



TUTORIAL :

1. Decompile SystemUI.apk

2. Ekstrak bahannya

3. Compare/sesuaikan fiqih_status_bar_expanded_notifications.xml dengan gemini_status_bar_expanded.xml bawaan tanpa kepala & kaki layout serta <View android:id="@id/handle" ...>
   Jika sama persis, merge isi dari folder SystemUI KECUALI values, isi dari values tambahkan isinya sesuai xml-nya

4. Recompile SystemUI kemudian decompile lagi untuk mendapatkan id public yg baru

5. Perhatikan tanda di bawah ini kemudian sesuaikan dengan yg ada di dalam smali beserta id public-nya
   VVV = Tambahkan di bawahnya
   ^^^ = Tambahkan di atasnya

6. Untuk settingan/kustomisasi Power Toggles & menyembunyikan page tab-nya ada di drawer aplikasi dengan nama Power toggles


Smali
-----
R$styleable.smali
NotificationRowLayout.smali
StatusBarWindowView.smali
PhoneStatusBar$ExpandedPagerAdapter (untuk yg ini cm ganti id public-nya aja)
PhoneStatusBar.smali


=================
R$styleable.smali
=================

.field public static final NotificationRowLayout_rowHeight:I
VVV
.field public static final PowerTogglesIconPreference:[I

.field public static final PowerTogglesIconPreference_icon:I

------------------------------------------------------------

    sput-object v0, Lcom/android/systemui/R$styleable;->ToggleSlider:[I
VVV
    new-array v0, v3, [I

    const v1, 0x7f01000c    <public type="attr" name="icon" >

    aput v1, v0, v2

    sput-object v0, Lcom/android/systemui/R$styleable;->PowerTogglesIconPreference:[I

-------------------------------------------------------------------------------------

    nop
^^^
    :array_0
    .array-data 0x4

-------------------

===========================
NotificationRowLayout.smali
===========================

.field private mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;
^^^
.field private mOnSizeChangedListener:Lcom/android/systemui/statusbar/policy/OnSizeChangedListener;

---------------------------------------------------------------------------------------------------

    invoke-direct {p0, p1, p2, p3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
VVV
    const/4 v2, 0x0

    iput-object v2, p0, Lcom/android/systemui/statusbar/policy/NotificationRowLayout;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

------------------------------------------------------------------------------------------------------------------------------------------------

.method public setExpandedViewPager(Lcom/serajr/viewpager/CustomViewPager;)V
    .locals 0
    .parameter "expandedViewPager"

    .prologue
    .line 110
    iput-object p1, p0, Lcom/android/systemui/statusbar/policy/NotificationRowLayout;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

    .line 112
    return-void
.end method
^^^
.method public setLayoutTransitionsEnabled(Z)V

----------------------------------------------

=========================
StatusBarWindowView.smali
=========================

HAPUS
.method protected onAttachedToWindow()V
    .locals 5

    .prologue
    .line 58
    invoke-super {p0}, Landroid/widget/FrameLayout;->onAttachedToWindow()V

    .line 59
    const v2, 0x7f08005d    <public type="id" name="latestItems" >

    invoke-virtual {p0, v2}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/android/systemui/statusbar/policy/NotificationRowLayout;

    iput-object v2, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->latestItems:Lcom/android/systemui/statusbar/policy/NotificationRowLayout;

    .line 60
    const v2, 0x7f08005c    <public type="id" name="scroll" >

    invoke-virtual {p0, v2}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ScrollView;

    iput-object v2, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mScrollView:Landroid/widget/ScrollView;

    .line 61
    const v2, 0x7f080058    <public type="id" name="notification_panel" >

    invoke-virtual {p0, v2}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/android/systemui/statusbar/phone/NotificationPanelView;

    iput-object v2, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mNotificationPanel:Lcom/android/systemui/statusbar/phone/NotificationPanelView;

    .line 62
    invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0d001a    <public type="dimen" name="notification_row_min_height" >

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 63
    .local v1, minHeight:I
    invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0d001b    <public type="dimen" name="notification_row_max_height" >

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    .line 64
    .local v0, maxHeight:I
    new-instance v2, Lcom/android/systemui/ExpandHelper;

    iget-object v3, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mContext:Landroid/content/Context;

    iget-object v4, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->latestItems:Lcom/android/systemui/statusbar/policy/NotificationRowLayout;

    invoke-direct {v2, v3, v4, v1, v0}, Lcom/android/systemui/ExpandHelper;-><init>(Landroid/content/Context;Lcom/android/systemui/ExpandHelper$Callback;II)V

    iput-object v2, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mExpandHelper:Lcom/android/systemui/ExpandHelper;

    .line 65
    iget-object v2, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mExpandHelper:Lcom/android/systemui/ExpandHelper;

    invoke-virtual {v2, p0}, Lcom/android/systemui/ExpandHelper;->setEventSource(Landroid/view/View;)V

    .line 66
    iget-object v2, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mExpandHelper:Lcom/android/systemui/ExpandHelper;

    iget-object v3, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mScrollView:Landroid/widget/ScrollView;

    invoke-virtual {v2, v3}, Lcom/android/systemui/ExpandHelper;->setScrollView(Landroid/view/View;)V

    .line 68
    invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v2

    iget-object v3, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mGlobalLayoutListener:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    invoke-virtual {v2, v3}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    .line 70
    return-void
.end method

---------------------------------------

GANTI menjadi
.method protected onAttachedToWindow()V
    .locals 6

    .prologue
    .line 57
    invoke-super {p0}, Landroid/widget/FrameLayout;->onAttachedToWindow()V

    iget-object v3, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mService:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

    invoke-virtual {v3}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->getNotificationsLayout()Landroid/view/View;

    move-result-object v2

    const v3, 0x7f08005d    <public type="id" name="latestItems" >

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Lcom/android/systemui/statusbar/policy/NotificationRowLayout;

    iput-object v3, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->latestItems:Lcom/android/systemui/statusbar/policy/NotificationRowLayout;

    iget-object v3, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mService:Lcom/android/systemui/statusbar/phone/PhoneStatusBar;

    invoke-virtual {v3}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->getNotificationsLayout()Landroid/view/View;

    move-result-object v2

    const v3, 0x7f08005c    <public type="id" name="scroll" >

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ScrollView;

    iput-object v3, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mScrollView:Landroid/widget/ScrollView;

    const v3, 0x7f080058    <public type="id" name="notification_panel" >

    invoke-virtual {p0, v3}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Lcom/android/systemui/statusbar/phone/NotificationPanelView;

    iput-object v3, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mNotificationPanel:Lcom/android/systemui/statusbar/phone/NotificationPanelView;

    .line 61
    invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f0d001a    <public type="dimen" name="notification_row_min_height" >

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 62
    .local v1, minHeight:I
    invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f0d001b    <public type="dimen" name="notification_row_max_height" >

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    .line 63
    .local v0, maxHeight:I
    new-instance v3, Lcom/android/systemui/ExpandHelper;

    iget-object v4, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mContext:Landroid/content/Context;

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->latestItems:Lcom/android/systemui/statusbar/policy/NotificationRowLayout;

    invoke-direct {v3, v4, v5, v1, v0}, Lcom/android/systemui/ExpandHelper;-><init>(Landroid/content/Context;Lcom/android/systemui/ExpandHelper$Callback;II)V

    iput-object v3, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mExpandHelper:Lcom/android/systemui/ExpandHelper;

    .line 64
    iget-object v3, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mExpandHelper:Lcom/android/systemui/ExpandHelper;

    invoke-virtual {v3, p0}, Lcom/android/systemui/ExpandHelper;->setEventSource(Landroid/view/View;)V

    .line 65
    iget-object v3, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mExpandHelper:Lcom/android/systemui/ExpandHelper;

    iget-object v4, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mScrollView:Landroid/widget/ScrollView;

    invoke-virtual {v3, v4}, Lcom/android/systemui/ExpandHelper;->setScrollView(Landroid/view/View;)V

    invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v3

    iget-object v4, p0, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->mGlobalLayoutListener:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    invoke-virtual {v3, v4}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    return-void
.end method

-----------------------------------

===================================
PhoneStatusBar$ExpandedPagerAdapter
===================================

0x7f0b00f2
<public type="string" name="notifications_page_title" >

0x7f0b00f3
<public type="string" name="power_toggles_page_title" >

0x7f0b012c
<public type="string" name="slider_control_page_title" >

====================
PhoneStatusBar.smali
====================

        Lcom/android/systemui/statusbar/phone/PhoneStatusBar$H;,
VVV
        Lcom/android/systemui/statusbar/phone/PhoneStatusBar$ExpandedPagerAdapter;

----------------------------------------------------------------------------------

.field private mAppName:Ljava/lang/String;
VVV
.field private mAudioManager:Landroid/media/AudioManager;

---------------------------------------------------------

.field mExpandedContents:Landroid/view/View;
VVV
.field private mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

.field private mExpandedViewPagerTabStrip:Landroid/support/v4/view/PagerTabStrip;

---------------------------------------------------------------------------------

.field mNotificationPanelMinHeightFrac:F
VVV
.field private mNotificationsLayout:Landroid/view/View;

-------------------------------------------------------

.field mPostCollapseCleanup:Ljava/lang/Runnable;
VVV
.field private mPowerToggles:Lcom/serajr/powertoggles/PowerToggles;

.field private mPowerTogglesLayout:Landroid/view/View;

------------------------------------------------------

.field private mSimIndicatorIconShow:Z
VVV
.field private mSlidersLayout:Landroid/view/View;

-------------------------------------------------

.method static synthetic access$6200(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 21
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationsLayout:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$6300(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 22
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerTogglesLayout:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$6400(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 18
    iget-object v0, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$6500(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 22
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSlidersLayout:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$6600(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)Landroid/media/AudioManager;
    .locals 1
    .parameter

    .prologue
    .line 23
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    return-object v0
.end method

.method static synthetic access$6700(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 97
    iget-boolean v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedVisible:Z

    return v0
.end method

.method static synthetic access$6800(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)Lcom/serajr/viewpager/CustomViewPager;
    .locals 1
    .parameter

    .prologue
    .line 32
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

    return-object v0
.end method

.method static synthetic access$6900(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 22
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedContents:Landroid/view/View;

    return-object v0
.end method
^^^
.method static synthetic access$700(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)Lcom/android/systemui/statusbar/BaseStatusBar$H;

------------------------------------------------------------------------------------------------------------------------------------------

.method private disableExpandedViewPager()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 96
    iget-boolean v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedVisible:Z

    if-eqz v0, :cond_0

    .line 99
    invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->animateCollapsePanels()V

    .line 104
    :cond_0
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

    invoke-virtual {v0, v1}, Lcom/serajr/viewpager/CustomViewPager;->setCurrentItem(I)V

    .line 107
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

    invoke-virtual {v0, v1}, Lcom/serajr/viewpager/CustomViewPager;->setPagingEnabled(Z)V

    .line 110
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPagerTabStrip:Landroid/support/v4/view/PagerTabStrip;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/support/v4/view/PagerTabStrip;->setVisibility(I)V

    .line 112
    return-void
.end method

.method private enableExpandedViewPager()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    iget-boolean v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedVisible:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->animateCollapsePanels()V

    :cond_0
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

    invoke-virtual {v0, v2}, Lcom/serajr/viewpager/CustomViewPager;->setCurrentItem(I)V

    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/serajr/viewpager/CustomViewPager;->setPagingEnabled(Z)V

    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPagerTabStrip:Landroid/support/v4/view/PagerTabStrip;

    invoke-virtual {v0, v2}, Landroid/support/v4/view/PagerTabStrip;->setVisibility(I)V

    return-void
.end method
^^^
.method private getNavigationBarLayoutParams()Landroid/view/WindowManager$LayoutParams;

---------------------------------------------------------------------------------------

Sesuaikan dgn id public/code yg udh di-recompile

HAPUS
mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;
GANTI menjadi
mNotificationsLayout:Landroid/view/View;

HAPUS
Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;
GANTI menjadi
Landroid/view/View;->findViewById(I)Landroid/view/View;

..............................................

    const v8, 0x7f0800ad
<public type="id" name="notification_button" >

..............................................
   
    invoke-virtual {v7}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->hasFullWidthNotifications()Z

    move-result v7

    if-eqz v7, :cond_2

    .line xxxx
(Diantara ini)

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    .line xxxx
    .local v6, settingsButton:Landroid/widget/ImageView;

........................................................

    const v8, 0x7f0800aa
<public type="id" name="clear_all_button" >

...........................................

    const v8, 0x7f0800a9
<public type="id" name="header_settings_button" >

.................................................

    .line xxxx
    .end local v0           #clearButton:Landroid/widget/ImageView;
    .end local v2           #headerSettingsButton:Landroid/widget/ImageView;
    :cond_3

    (Diantara ini)

    move-result-object v6

    check-cast v6, Landroid/widget/ImageView;

    .line xxxx
    .restart local v6       #settingsButton:Landroid/widget/ImageView;

......................................................................

    const v2, 0x7f08000d
<public type="id" name="header" >

.................................

    const v2, 0x7f08005a
<public type="id" name="toolBarSwitchPanel" >

.............................................

    const v2, 0x7f080123
<public type="id" name="tool_bar_view" >

........................................

    const v2, 0x7f08011d
<public type="id" name="indicator" >

....................................

    const v2, 0x7f08005d
<public type="id" name="latestItems" >

......................................

    const v2, 0x7f0800a7
<public type="id" name="date" >

...............................

    const v2, 0x7f0800ac
<public type="id" name="settings_button" >

..........................................

    const v2, 0x7f08005c
<public type="id" name="scroll" >

.................................

    const v2, 0x7f080014
<public type="id" name="carrier1" >

...................................

    const v2, 0x7f080016
<public type="id" name="carrier2" >

...................................

    const v2, 0x7f080018
<public type="id" name="carrier3" >

...................................

    const v2, 0x7f08001a
<public type="id" name="carrier4" >

...................................

    const v2, 0x7f080015
<public type="id" name="carrier_divider" >

...........................................

    const v2, 0x7f080017
<public type="id" name="carrier_divider2" >

...........................................

    const v2, 0x7f080019
<public type="id" name="carrier_divider3" >

...........................................

    const v2, 0x7f080013
<public type="id" name="carrier_label_gemini" >

...............................................

    const v2, 0x7f08005b
<public type="id" name="flip_settings_stub" >

.............................................

    const v2, 0x7f080012
<public type="id" name="quick_settings_container" >

...................................................

    const v2, 0x7f0800ab
<public type="id" name="settings_button_holder" >

.................................................

------------------------------------------------------

.method private setExpandedViewPagerBlockPagingView()V
    .locals 2

    .prologue
    .line 55
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

    iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedContents:Landroid/view/View;

    invoke-virtual {v0, v1}, Lcom/serajr/viewpager/CustomViewPager;->setBlockPagingView(Landroid/view/View;)V

    .line 86
    return-void
.end method
^^^
.method private setIntruderAlertVisibility(Z)V

----------------------------------------------

.method private setupPowerToggles()V
    .locals 2

    .prologue
    .line 107
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerTogglesLayout:Landroid/view/View;

    const v1, 0x7f080133    <public type="id" name="power_toggles" >

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/serajr/powertoggles/PowerToggles;

    iput-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerToggles:Lcom/serajr/powertoggles/PowerToggles;

    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerToggles:Lcom/serajr/powertoggles/PowerToggles;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/serajr/powertoggles/PowerToggles;->buttonMeProfileCellSpan(I)V

    .line 108
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerToggles:Lcom/serajr/powertoggles/PowerToggles;

    invoke-virtual {v0}, Lcom/serajr/powertoggles/PowerToggles;->setupPowerToggles()V

    .line 109
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerToggles:Lcom/serajr/powertoggles/PowerToggles;

    invoke-virtual {v0}, Lcom/serajr/powertoggles/PowerToggles;->updatePowerToggles()V

    .line 111
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerToggles:Lcom/serajr/powertoggles/PowerToggles;

    new-instance v1, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$54;

    invoke-direct {v1, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$54;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

    invoke-virtual {v0, v1}, Lcom/serajr/powertoggles/PowerToggles;->setChangeContentObserverListener(Lcom/serajr/powertoggles/PowerToggles$ChangeObserverCallbackInterface;)V

    .line 115
    return-void
.end method

.method private setupStatusBarExpandedViewPager()V
    .locals 7

    .prologue
    const/4 v5, 0x0

    const/4 v4, 0x0

    .line 44
    iget-object v2, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

    const-string v3, "layout_inflater"

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

    move-result-object v1

    check-cast v1, Landroid/view/LayoutInflater;

    .local v1, inflater:Landroid/view/LayoutInflater;
    iget-object v2, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f04004e <public type="layout" name="fiqih_status_bar_expanded_notifications" >

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getLayout(I)Landroid/content/res/XmlResourceParser;

    move-result-object v2

    invoke-virtual {v1, v2, v4}, Landroid/view/LayoutInflater;->inflate(Lorg/xmlpull/v1/XmlPullParser;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationsLayout:Landroid/view/View;

    iget-object v2, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f04004f <public type="layout" name="fiqih_status_bar_expanded_power_toggles" >

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getLayout(I)Landroid/content/res/XmlResourceParser;

    move-result-object v2

    invoke-virtual {v1, v2, v4}, Landroid/view/LayoutInflater;->inflate(Lorg/xmlpull/v1/XmlPullParser;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPowerTogglesLayout:Landroid/view/View;

    iget-object v2, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f040050 <public type="layout" name="fiqih_status_bar_expanded_sliders" >

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getLayout(I)Landroid/content/res/XmlResourceParser;

    move-result-object v2

    invoke-virtual {v1, v2, v4}, Landroid/view/LayoutInflater;->inflate(Lorg/xmlpull/v1/XmlPullParser;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSlidersLayout:Landroid/view/View;

    new-instance v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$ExpandedPagerAdapter;

    invoke-direct {v0, p0, v4}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$ExpandedPagerAdapter;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;Lcom/android/systemui/statusbar/phone/PhoneStatusBar$ExpandedPagerAdapter;)V

    .local v0, expandedPagerAdapter:Lcom/android/systemui/statusbar/phone/PhoneStatusBar$ExpandedPagerAdapter;
    iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanel:Lcom/android/systemui/statusbar/phone/NotificationPanelView;

    const v3, 0x7f080131 <public type="id" name="expanded_view_pager" >

    invoke-virtual {v2, v3}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/serajr/viewpager/CustomViewPager;

    iput-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

    iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

    new-instance v3, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$46;

    invoke-direct {v3, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$46;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

    invoke-virtual {v2, v5, v3}, Lcom/serajr/viewpager/CustomViewPager;->setPageTransformer(ZLandroid/support/v4/view/ViewPager$PageTransformer;)V

    iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

    invoke-virtual {v2, v0}, Lcom/serajr/viewpager/CustomViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V

    iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lcom/serajr/viewpager/CustomViewPager;->setCurrentItem(I)V

    iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

    new-instance v3, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$45;

    invoke-direct {v3, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$45;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

    invoke-virtual {v2, v3}, Lcom/serajr/viewpager/CustomViewPager;->setOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V

    iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanel:Lcom/android/systemui/statusbar/phone/NotificationPanelView;

    const v3, 0x7f080132 <public type="id" name="expanded_view_pager_tab_strip" >

    invoke-virtual {v2, v3}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/support/v4/view/PagerTabStrip;

    iput-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPagerTabStrip:Landroid/support/v4/view/PagerTabStrip;

    iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPagerTabStrip:Landroid/support/v4/view/PagerTabStrip;

    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Landroid/support/v4/view/PagerTabStrip;->setDrawFullUnderline(Z)V

    iget-object v2, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPagerTabStrip:Landroid/support/v4/view/PagerTabStrip;

    iget-object v3, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f090007 <public type="color" name="view_pager_tab_strip_indicator_color" >

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getColor(I)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/support/v4/view/PagerTabStrip;->setTabIndicatorColor(I)V

    return-void
.end method

.method private setupVolumeSliders()V
    .locals 12

    .prologue
    const/4 v11, 0x3

    const/4 v10, 0x2

    const/4 v9, 0x0

    const/4 v7, 0x1

    iget-object v5, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

    const-string v6, "audio"

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

    move-result-object v5

    check-cast v5, Landroid/media/AudioManager;

    iput-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSlidersLayout:Landroid/view/View;

    const v8, 0x7f08013e <public type="id" name="ringer_volume_slider" >

    invoke-virtual {v5, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/SeekBar;

    .local v3, ringSlider:Landroid/widget/SeekBar;
    invoke-virtual {v3, v7}, Landroid/widget/SeekBar;->setKeyProgressIncrement(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    invoke-virtual {v5, v10}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

    move-result v5

    invoke-virtual {v3, v5}, Landroid/widget/SeekBar;->setMax(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    invoke-virtual {v5, v10}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v5

    invoke-virtual {v3, v5}, Landroid/widget/SeekBar;->setProgress(I)V

    new-instance v5, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$47;

    invoke-direct {v5, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$47;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

    invoke-virtual {v3, v5}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSlidersLayout:Landroid/view/View;

    const v8, 0x7f080144 <public type="id" name="notifications_volume_slider" >

    invoke-virtual {v5, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/SeekBar;

    .local v2, notificationSlider:Landroid/widget/SeekBar;
    invoke-virtual {v2, v7}, Landroid/widget/SeekBar;->setKeyProgressIncrement(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    const/4 v6, 0x5

    invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

    move-result v5

    invoke-virtual {v2, v5}, Landroid/widget/SeekBar;->setMax(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    const/4 v6, 0x5

    invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v5

    invoke-virtual {v2, v5}, Landroid/widget/SeekBar;->setProgress(I)V

    new-instance v5, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$48;

    invoke-direct {v5, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$48;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

    invoke-virtual {v2, v5}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSlidersLayout:Landroid/view/View;

    const v8, 0x7f080142 <public type="id" name="voice_call_volume_slider" >

    invoke-virtual {v5, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/SeekBar;

    .local v4, voiceCallSlider:Landroid/widget/SeekBar;
    invoke-virtual {v4, v7}, Landroid/widget/SeekBar;->setKeyProgressIncrement(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    invoke-virtual {v5, v9}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

    move-result v5

    invoke-virtual {v4, v5}, Landroid/widget/SeekBar;->setMax(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    invoke-virtual {v5, v9}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v5

    invoke-virtual {v4, v5}, Landroid/widget/SeekBar;->setProgress(I)V

    new-instance v5, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$41;

    invoke-direct {v5, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$41;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

    invoke-virtual {v4, v5}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSlidersLayout:Landroid/view/View;

    const v8, 0x7f08013c <public type="id" name="media_volume_slider" >

    invoke-virtual {v5, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/SeekBar;

    .local v1, mediaSlider:Landroid/widget/SeekBar;
    invoke-virtual {v1, v7}, Landroid/widget/SeekBar;->setKeyProgressIncrement(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    invoke-virtual {v5, v11}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

    move-result v5

    invoke-virtual {v1, v5}, Landroid/widget/SeekBar;->setMax(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    invoke-virtual {v5, v11}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v5

    invoke-virtual {v1, v5}, Landroid/widget/SeekBar;->setProgress(I)V

    new-instance v5, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$42;

    invoke-direct {v5, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$42;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

    invoke-virtual {v1, v5}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSlidersLayout:Landroid/view/View;

    const v8, 0x7f080140 <public type="id" name="alarm_volume_slider" >

    invoke-virtual {v5, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/SeekBar;

    .local v0, alarmSlider:Landroid/widget/SeekBar;
    invoke-virtual {v0, v7}, Landroid/widget/SeekBar;->setKeyProgressIncrement(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    const/4 v6, 0x4

    invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

    move-result v5

    invoke-virtual {v0, v5}, Landroid/widget/SeekBar;->setMax(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    const/4 v6, 0x4

    invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v5

    invoke-virtual {v0, v5}, Landroid/widget/SeekBar;->setProgress(I)V

    new-instance v5, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$43;

    invoke-direct {v5, p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$43;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)V

    invoke-virtual {v0, v5}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    return-void
.end method
^^^
.method private showAlwaysAskOrInternetCall(J)V

-----------------------------------------------

.method getNotificationsLayout()Landroid/view/View;
    .locals 1

    .prologue
    .line 115
    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationsLayout:Landroid/view/View;

    return-object v0
.end method
^^^
.method protected getRecentsLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/WindowManager$LayoutParams;

------------------------------------------------------------------------------------------------------------------------

    iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedViewPager:Lcom/serajr/viewpager/CustomViewPager;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Lcom/serajr/viewpager/CustomViewPager;->setCurrentItem(I)V
^^^
    .line xxxx
    if-eqz p1, :cond_2
   
    .line xxxx
    :cond_2
    iget-object v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDateView:Lcom/android/systemui/statusbar/policy/DateView;

-----------------------------------------------------------------------------------------------------------------------------------------
    iput-object v1, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNotificationPanel:Lcom/android/systemui/statusbar/phone/NotificationPanelView;
VVV
    .line xxx
    move-object/from16 v0, p0
   
    invoke-direct/range {p0 .. p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setupStatusBarExpandedViewPager()V

-----------------------------------------------------------------------------------------------------------------------------

    const-string v1, "android.provider.Telephony.SPN_STRINGS_UPDATED"

    invoke-virtual {v12, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
VVV
    const-string v1, "android.media.VOLUME_CHANGED_ACTION"

    invoke-virtual {v12, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

--------------------------------------------------------------------------------------------

    invoke-direct/range {p0 .. p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->resetUserSetupObserver()V
VVV
    invoke-direct/range {p0 .. p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setupVolumeSliders()V

    invoke-direct/range {p0 .. p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setExpandedViewPagerBlockPagingView()V

    invoke-direct/range {p0 .. p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->setupPowerToggles()V

    invoke-virtual/range {p0 .. p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->powerTogglesEnabledCallback()V

--------------------------------------------------------------------------------------------------------------------------

.method public powerTogglesEnabledCallback()V
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 146
    iget-object v0, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v1, "power_toggles_enabled"

    invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v0

    if-ne v0, v2, :cond_0

    .line 149
    const-string v0, "powerTogglesEnabledCallback"

    const-string v1, "enabled"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 151
    invoke-direct {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->enableExpandedViewPager()V

    .line 153
    :goto_0
    invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->loadDimens()V

    .line 154
    return-void

    .line 155
    :cond_0
    const-string v0, "powerTogglesEnabledCallback"

    const-string v1, "disabled"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 157
    invoke-direct {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->disableExpandedViewPager()V

    goto :goto_0
.end method
^^^
.method public removeNotification(Landroid/os/IBinder;)V

--------------------------------------------------------

.method public updateVolumeSliders()V
    .locals 8

    .prologue
    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSlidersLayout:Landroid/view/View;

    const v7, 0x7f08013e <public type="id" name="ringer_volume_slider" >

    invoke-virtual {v5, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/SeekBar;

    .local v3, ringSlider:Landroid/widget/SeekBar;
    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    const/4 v6, 0x2

    invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v5

    invoke-virtual {v3, v5}, Landroid/widget/SeekBar;->setProgress(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSlidersLayout:Landroid/view/View;

    const v7, 0x7f080144 <public type="id" name="notifications_volume_slider" >

    invoke-virtual {v5, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/SeekBar;

    .local v2, notificationSlider:Landroid/widget/SeekBar;
    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    const/4 v6, 0x5

    invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v5

    invoke-virtual {v2, v5}, Landroid/widget/SeekBar;->setProgress(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSlidersLayout:Landroid/view/View;

    const v7, 0x7f080142 <public type="id" name="voice_call_volume_slider" >

    invoke-virtual {v5, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/SeekBar;

    .local v4, voiceCallSlider:Landroid/widget/SeekBar;
    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    const/4 v6, 0x0

    invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v5

    invoke-virtual {v4, v5}, Landroid/widget/SeekBar;->setProgress(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSlidersLayout:Landroid/view/View;

    const v7, 0x7f08013c <public type="id" name="media_volume_slider" >

    invoke-virtual {v5, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/SeekBar;

    .local v1, mediaSlider:Landroid/widget/SeekBar;
    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    const/4 v6, 0x3

    invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v5

    invoke-virtual {v1, v5}, Landroid/widget/SeekBar;->setProgress(I)V

    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mSlidersLayout:Landroid/view/View;

    const v7, 0x7f080140 <public type="id" name="alarm_volume_slider" >

    invoke-virtual {v5, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/SeekBar;

    .local v0, alarmSlider:Landroid/widget/SeekBar;
    iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mAudioManager:Landroid/media/AudioManager;

    const/4 v6, 0x4

    invoke-virtual {v5, v6}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v5

    invoke-virtual {v0, v5}, Landroid/widget/SeekBar;->setProgress(I)V

    return-void
.end method
^^^
.method public userSwitched(I)V

-------------------------------

===================
AndroidManifest.xml
===================

yg ditambahkan cuma < android:sharedUserId="android.uid.system" android:process="system" >

<manifest android:sharedUserId="android.uid.system" android:process="system" android:versionCode="17" android:versionName="4.2.2-eng.dadimesin.20140316.195954" package="com.android.systemui" coreApp="true"

----------------------------------------------------------------
Tambahkan diakhir <uses-permission

    <uses-permission android:name="android.permission.REBOOT" />
    <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
   
------------------------------------------------------------------------------
Tambahkan diakhir <activity atau di atas </application>

        <activity android:theme="@style/DeviceDefault" android:label="@string/power_toggles_preferences_category_power_toggles" android:icon="@drawable/ic_launcher_settings" android:name="com.serajr.powertoggles.preferences.PowerTogglesPreferencesActivity" android:exported="true" android:configChanges="orientation|screenSize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="com.serajr.powertoggles.preferences.intent.PREFERENCES" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:theme="@style/DeviceDefault" android:label="@string/power_toggles_preferences_category_order" android:icon="@drawable/ic_launcher_settings" android:name="com.serajr.powertoggles.preferences.PowerTogglesPreferencesOrderActivity" android:exported="false" android:configChanges="orientation|screenSize">
            <intent-filter>
                <action android:name="com.serajr.powertoggles.preferences.intent.ORDER" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

---------------------------------------------------------------------------



CREDIT : Adi Sukahadi atau Adi Aishiteru Reborn@XDA

Re-created : Dadi Rizaldi

Demikian Artikel dengan judul [Tutorial] Viewpager UI

Mudah-mudahan bisa memberi manfaat untuk sobat Jogja Android Blog semua. Baiklah, sampai jumpa di postingan artikel lainnya.
Sobat Jogja Android Blog sekarang membaca artikel [Tutorial] Viewpager UI dengan alamat link https://jogjandroidz.blogspot.com/2014/11/tutorial-viewpager-ui.html

0 Response to "[Tutorial] Viewpager UI"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Artikel Terkait