px in pt dp(dip) sp in Android
px
Pixels - corresponds to actual pixels on the screen.
in
Inches - based on the physical size of the screen.
1 Inch = 2.54 centimeters
mm
Millimeters - based on the physical size of the screen.
pt
Points - 1/72 of an inch based on the physical size of the screen.
dp or dip
Density-independent Pixels - an abstract unit that is based on the physical density of the screen. These units are relative to a 160 dpi screen, so one dp is one pixel on a 160 dpi screen. The ratio of dp-to-pixel will change with the screen density, but not necessarily in direct proportion. Note: The compiler accepts both “dip” and “dp”, though “dp” is more consistent with “sp”.
sp
Scale-independent Pixels - this is like the dp unit, but it is also scaled by the user’s font size preference. It is recommend you use this unit when specifying font sizes, so they will be adjusted for both the screen density and user’s preference.
相關文章
- Android中dip(dp)、dpi、ppi、px、density、sp的概念Android
- iOS 2020年最新螢幕尺寸(pt 、px)iOS
- 關於dp、px的換算
- 【笛卡爾樹+DP】【SP3734】 PERIODNI - Periodni
- Android適配:DP簡述Android
- android kotlin dp 轉換工具AndroidKotlin
- CSS · 0.1px,0.2px......0.9px,1px效果CSS
- DIP、IoC、DI、JSJS
- percona-toolkit 之 【pt-summary】、【pt-mysql-summary】、【pt-config-diff】、【pt-variable-advisor】說明MySql
- 數字影象處理DIP
- 紅橙Darren視訊筆記 自定義RatingBar touch事件學習 dp轉px listener監聽筆記事件
- dp 套 dp(dp of dp)小記
- Android dp方式的螢幕適配工具使用(Android Studio外掛方式)Android
- px30-android8.1-USB攝像頭錄製視訊異常Android
- DP套DP
- pt-query-digest
- sp4487-solution
- MUR6060PT-ASEMI逆變焊機MUR6060PT
- MUR4060PT-ASEMI逆變焊機MUR4060PT
- [DP] 數位DP
- 【DP】Educational DP Contest
- MBR40200PT-ASEMI無人機專用MBR40200PT無人機
- MBR60200PT-ASEMI逆變箱專用MBR60200PT
- dp套dp 隨寫
- GreatSQL的sp中新增新的sp_instr引入的bug解析SQL
- Android P DP3釋出:SDK/API敲定、應用適AndroidAPI
- 0.5 px的邊框
- px em rem 探討REM
- Sp效率分析和理解
- SOLDI原則之DIP:依賴倒置原則
- 【DP】區間DP入門
- percona-toolkit之pt-index-usage和pt-duplicate-key-checker詳解Index
- dp
- pt-ost python封裝Python封裝
- pt-query-digest安裝
- 淺談px,em與remREM
- em、rem、px、的區別REM
- [DP] DP最佳化總結
- SP14329的題解