package Ġcom . z ack rat os . ult imate bar x . library Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . os . Build Ċ import Ġandroid . view . View Ċ import Ġcom . z ack rat os . ult imate bar x . library . core . add NavigationBar Bottom Padding Ċ import Ġcom . z ack rat os . ult imate bar x . library . core . add StatusBar Top Padding Ċ import Ġcom . z ack rat os . ult imate bar x . library . extension . get NavigationBar Height Ċ import Ġcom . z ack rat os . ult imate bar x . library . extension . getStatus Bar Height Ċ Ċ /** Ċ Ġ* Ġ@ Author ĠĠ Ġ: Ġz hang w ench ao Ċ Ġ* Ġ@ Date ĠĠĠĠ Ġ: Ġ 2 0 2 1 / 1 / 5 ĠĠ 8 : 2 9 ĠPM Ċ Ġ* Ġ@ email ĠĠĠ Ġ: Ġ 8 6 9 6 4 9 3 3 8 @ qq . com Ċ Ġ* Ġ@ Describe Ġ: Ċ Ġ*/ Ċ fun ĠContext . getStatus Bar Height () Ġ= Ġget StatusBar Height () Ċ Ċ fun ĠContext . get NavigationBar Height () Ġ= Ġget NavigationBar Height () Ċ Ċ fun ĠView . add StatusBar Top Padding () Ġ{ ĊĠĠĠ Ġif Ġ( Build . VERSION . SDK _ INT Ġ>= ĠBuild . VERSION _ CODES . KIT K AT ) Ġadd StatusBar Top Padding () Ċ } Ċ Ċ fun ĠView . add NavigationBar Bottom Padding () Ġ{ ĊĠĠĠ Ġif Ġ( Build . VERSION . SDK _ INT Ġ>= ĠBuild . VERSION _ CODES . KIT K AT ) Ġadd NavigationBar Bottom Padding () Ċ }