Im making a collaborative drawing app but I can't get painting view/ canvas to be the same size on each device. How can I fix this? here are screenshots of the app on 2 different android phones App screenshots
你可以试试这个代码
canvasid.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.