这是解释性代码.语言是Java,代码使用Android.
fg.setTextSize(height*0.50f); //<-'f' is in the brackets
Run Code Online (Sandbox Code Playgroud)
要么
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
sWidth = w / 3f; // <-'f' is here
}
Run Code Online (Sandbox Code Playgroud)
后缀'f'是什么意思?
Phi*_*unt 13
它表示float
文字.
归档时间: |
|
查看次数: |
5643 次 |
最近记录: |