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ó
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.
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 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 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
hướng dẫn thay đồng hồ phút- giây thành đồng hồ kim như hình 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) đóng gói SystemUI đưa vào System/app nhớ sét 644