红鱼儿

取得android设置中的字大小
procedure TForm10.Button1Click(Sender: TObject);
var
  Configuration: JConfiguration;
  CurrentNightMode: Integer;
begin
  Configuration := TAndroidHelper.Context.GetResources.getConfiguration;

  Text1.Text:=Configuration.fontScale.ToString;

end;
uses Androidapi.JNI.GraphicsContentViewText, Androidapi.Helpers

 

posted on 2022-11-07 17:57  红鱼儿  阅读(120)  评论(0编辑  收藏  举报