Chào mừng bạn đến Diễn Đàn ChơiMobile

Cộng đồng Mobile hàng đầu Việt Nam, Phát triển Android, iOS, Kỹ Thuật Mobile. Đăng ký ngay để tạo chủ để và cùng thảo luận !

Sky A870 - Topic chia sẻ những tùy biến trên nền SphinX

Thảo luận trong 'SKY A870' bắt đầu bởi dokyson, 11/3/14.

  1. dokyson

    dokyson Administrator
    Thành viên BQT Administrator

    9/12/12
    18,143
    37,714
    113
    Nam
    Sao lại có nút lock ở đâu vậy

    Gửi từ A870 SphinX
     
  2. atula77

    Senior Member

    16/4/13
    849
    1,416
    0
    Nam
    Sorry bác Dokyson . Em muon như hình . Mong bác giúp em ( hình em gủi không có nút lock ) Và em cũng không cần nút lock vi trong SphinX setting đã có
     
  3. hau

    hau
    Senior Member

    1/2/13
    1,000
    974
    0
    Nam
    83 3d lam theo hướng dẫn kia đc mà bác.hướng dẫn em đưa bác ấy
     
  4. s2ngheohd9x

    Senior Member

    4/11/13
    334
    411
    0
    Nam
    Em làm theo nó khoobg xoay ngang.bác sơn chỉ roài nhưng chưa vọc đc.hehe
     
  5. hau

    hau
    Senior Member

    1/2/13
    1,000
    974
    0
    Nam
    làm theo hướng dẫn của ai ah
     
    2 people like this.
  6. s2ngheohd9x

    Senior Member

    4/11/13
    334
    411
    0
    Nam
    Bên topic recent 3d đó bác.hehe bác sơn chỉ lại xml roài chỉ đợi ra net nghịch ngợm thoai bác ạ.hehe
     
  7. hau

    hau
    Senior Member

    1/2/13
    1,000
    974
    0
    Nam
    làm cho 83 dễ hơn 87.83 mình làm lâu rồi.
     
  8. s2ngheohd9x

    Senior Member

    4/11/13
    334
    411
    0
    Nam
    Các bác toàn cao thủ.chớ em cũng chưa có pc.toàn ra net nghịch ngợm lên cũng bất tiện bác ạ
     
    2 people like this.
  9. s2ngheohd9x

    Senior Member

    4/11/13
    334
    411
    0
    Nam
    Thế a có chuyển đc vị trí các phím điều hướng không làm tút hướng dẫn cho ae cùng vọc vạch ạ
     
    2 people like this.
  10. hau

    hau
    Senior Member

    1/2/13
    1,000
    974
    0
    Nam
    anh chưa làm thử.anh chỉ làm đc cái lock all navi cho 87 thôi.tối nay rảnh làm tút cho anh em
     
    2 people like this.
  11. phhieukts

    Senior Member

    15/3/14
    250
    359
    0
    Nam
    Mình thích ý tưởng này, mình cầm tay trái với sang phím back không tới, lại phải thò thêm 1 tay nữa vào. Nếu setting được vị trí thsnh điều hướng nữa thi rất tuyệt. Mong bác dokyson nghiên cứu cho bản V2.1 nhé

    Gửi Từ IM-A870 Trên App ChoiMobile.
     
    2 people like this.
  12. dokyson

    dokyson Administrator
    Thành viên BQT Administrator

    9/12/12
    18,143
    37,714
    113
    Nam
    Nhõ anh em khác lại thích ngược lại thì sao

    Gửi từ A870 SphinX
     
    2 people like this.
  13. hau

    hau
    Senior Member

    1/2/13
    1,000
    974
    0
    Nam
    Hướng dẫn all lock on navi_bar (mình làm trên 870l rom QT.các máy khác chưa thử.code sẽ khác đôi chút)

    1.Các file cần để làm:
    SystemUI.apk
    Framework-res.apk
    Ảnh lock kích thước 64*64

    2. Các bước thực hiện:


    -Dùng apktool. IF framework-res.apk trước sau đó bung SystemUI.apk ra.
    Xong vào SystemUI/res/layout/ tìm và mở file navigation_bar.xml và thêm vào các dòng cod sau:

    1.<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/lock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="-40.0dip" android:src="@drawable/ic_sysbar_lock" android:singleLine="true" android:layout_toRightOf="@id/recent_apps" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
    2.<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/lock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="-45.0dip" android:src="@drawable/ic_sysbar_lock" android:singleLine="true" android:layout_toRightOf="@id/recent_apps" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
    3.<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/lock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-30.0dip" android:src="@drawable/ic_sysbar_lock_90_270" android:singleLine="true" android:layout_toRightOf="@id/recent_apps" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
    4.<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/lock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-40.0dip" android:src="@drawable/ic_sysbar_lock_90_270" android:singleLine="true" android:layout_toRightOf="@id/recent_apps" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />

    Vào theo thứ tự đánh dấu như trong hình
    [​IMG]

    [​IMG]

    Mở tiếp file hidden_navi_view.xml
    Add thêm các dòng này

    1.<com.android.systemui.statusbar.policy.KeyButtonView android:layout_marginTop="5.0dip" android:id="@id/navi_bar_dock_lock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_sysbar_lock_normal_1" android:singleLine="true" android:layout_toRightOf="@id/recent_apps" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />

    2.<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/navi_bar_item_lock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:src="@drawable/ic_sysbar_lock_normal" android:singleLine="true" android:layout_toRightOf="@id/recent_apps" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />

    3.<ImageView android:id="@id/navi_fan_light_lock" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />

    4.<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/navi_fan_item_lock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/flexible_fan_btn_ic_lock" android:singleLine="true" android:layout_toRightOf="@id/recent_apps" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_lock" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />


    Và cod này
    android:layout_marginTop="5.0dip" android:layout_marginLeft="45.0dip"
    thay thế bằng code này :
    codandroid:layout_gravity="center"

    ở dòng số 0 như trong hình
    [​IMG]

    Mở tiếp file res/value/strings.xml và thêm code này vào cuối cùng.
    <string name="accessibility_lock">lock</string>

    Mở tiếp value/ids.xml và thêm code sau vào cuối cùng
    <item type="id" name="lock">false</item>
    <item type="id" name="navi_bar_dock_lock">false</item>
    <item type="id" name="navi_bar_item_lock">false</item>
    <item type="id" name="navi_fan_item_lock">false</item>
    <item type="id" name="navi_fan_light_lock">false</item>

    -Tạo các file ảnh .png size 64*64 với các tên bên dưới bỏ vào res/draweble-xhdpi
    ic_sysbar_lock
    ic_sysbar_lock_90_270
    flexible_fan_btn_ic_lock
    ic_sysbar_lock_normal
    ic_sysbar_lock_normal_1


    đóng Gói lại SystemUI bỏ vào lại system/app ste per 644 và reboot
     
    6 people like this.
  14. hau

    hau
    Senior Member

    1/2/13
    1,000
    974
    0
    Nam
    có gì sai bác @dokysondokyson sửa hộ em nhé
     
    4 people like this.
  15. phhieukts

    Senior Member

    15/3/14
    250
    359
    0
    Nam
    Ý mình là setting tùy chỉnh được, chứ ko phải đổi hẳn.

    Gửi Từ IM-A870 Trên App ChoiMobile.
     
    2 people like this.
  16. hau

    hau
    Senior Member

    1/2/13
    1,000
    974
    0
    Nam
    hướng dẫn thay đồng hồ phút- giây thành đồng hồ kim như hình
    [​IMG]

    bung SystemUI bằng apktool
    vào theo đường dẫn apktool\SystemUI\res\layout/status_bar_expanded_header.xml

    thay code này

    <AnalogClock android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" />

    vào dòng này (do mình đã thay code nên code nó vậy.các ban chưa thay sẽ code khác)
    [​IMG]

    đóng gói SystemUI đưa vào System/app nhớ sét 644
     
    2 people like this.
  17. Thành Mũm

    Senior Member

    12/9/13
    406
    461
    0
    Nam
    ngon quá tối học về rồi e test hehe
     
    2 people like this.
  18. hau

    hau
    Senior Member

    1/2/13
    1,000
    974
    0
    Nam
    nhanh hốt đầu tiên đê.hehe
     
    4 people like this.
  19. dokyson

    dokyson Administrator
    Thành viên BQT Administrator

    9/12/12
    18,143
    37,714
    113
    Nam
    Quá chất em ơi
     
    4 people like this.
  20. Thành Mũm

    Senior Member

    12/9/13
    406
    461
    0
    Nam
    h em phải đi học lát 10 h mới về đc a ạ cũng muốn phá trinh lắm =))
     
    4 people like this.

Chia sẻ trang này