我发现,显示在Felgo客户端上的元素的大小与实际设备上显示的大小有很大的不同,而在Felgo Client.The上显示的元素要大得多,即双方的显示比率并不相同。
有人遇到过这个问题吗,谢谢!
例如。
AppButton {
minimumWidth: 100
minimumHeight: 100
text:"HELLO"
}发布于 2021-05-19 13:02:20
由于minimumWidth和minimumHeight是以像素为单位的,所以需要使用dp方法,请参阅https://felgo.com/doc/felgo-supporting-multiple-screens-and-screen-densities/#density-independence-support-dp-sp-pixeltoinches-tablet-orientation。
AppButton {
minimumWidth: dp(100)
minimumHeight: dp(100)
text:"HELLO"
}https://stackoverflow.com/questions/63548588
复制相似问题