Langsung ke konten utama

Mengubah-ubah layar Android sesuka kita

The advanced of wm command

~Purpose:
resize the screen as you want

~Requires:
root access

As the command output:
usage: wm [subcommand] [options]
       wm size [reset|WxH]
       wm density [reset|DENSITY]
       wm overscan [reset|LEFT,TOP,RIGHT,BOTTOM]

wm size: return or override display size.

wm density: override display density.

wm overscan: set overscan area for display.

~The basic is:
wm size : mengubah ukuran layar. Jika kalian pernah bermain game di hp java, tentu kalian pernah menggunakan app yg digunakan untuk mengubah ukuran app/game java sesuai dengan ukuran hp kita. Misal game 320x280 di ubah menjadi 280x280 sehingga tampilan game yg sudah diubah ukurannya akan pas di layar saat dimainkan.
wm size reset : sesuai namanya untuk reset ke kondisi awal layar.
wm size WxH : W artinya width atau lebar sedang H artinya height atau tinggi. Misal layar berukuran 480x800 diubah menjadi 400x800.
wm density DENSITY : ubah kepadatan pixel dengan DENSITY. Semakin kecil DENSITY maka semakin kecil pula apa yg nampak di layar. Namun adakalanya DENSITY yg terlalu kecil akan membuat sebuah object di layar menjadi duplicate. Misal icon baterai akan menjadi 4 bila density yg diberikan terlalu kecil.
wm overscan [KIRI, ATAS, KANAN, BAWAH] : menambah sebuah "padding"/indent (spasi) pada pinggir layar. Misal: wm overscan 0,0,0,320 yg artinya menambah padding pada bagian bawah layar sebesar 320. 0 artinya tidak ada padding, sama seperti wm overscan reset.

Komentar

Postingan populer dari blog ini

how to install postgresql and use it with php on termux

first of all you need to install it: apt install postgresql then specify data dir for it by typing: initd -D YOUR_DATA_DIR example YOUR_DATA_DIR is /data/data/com.termux/files/home/mydb note that you don't need to make the dir first, you just need the dir name then initdb will create it automatically :) in this example like this: initdb -D /data/data/com.termux/files/home/mydb The files belonging to this database system will be owned by user "u0_a171". This user must also own the server process. The database cluster will be initialized with locale "C.UTF-8". The default text search configuration will be set to "english". Data page checksums are disabled. creating directory test ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... sysv selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default time zone ... Asia/Jakarta creating configuration files

How to fix Apache httpd error: [:crit] [pid xxxx] (2)No such file or directory: AH00141: Could not initialize random number generator

How to fix Apache httpd error: [:crit] [pid xxxx] (2)No such file or directory: AH00141: Could not initialize random number generator. This error might be offen happen when using chroot  and no urandom in /dev folder of your chroot dir. Simply just mount the /dev folder to your chroot dir: mount -o bind /dev $chroot_dir/dev/ Then test it: httpd -v Server version: Apache/2.4.34 (Unix) Server built: Jul 19 2018 03:32:51