自动回复: [android-developers] Inflate layouts with default density

2022-07-25 Thread '360401217' via Android Developers
这是来自QQ邮箱自动回复邮件。   您好,您的邮件已收到,尽快给您回复。 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To view this discussi

[android-developers] Inflate layouts with default density

2022-07-25 Thread Pradheep Kumar V
In our app we don't obey the display size set in native settings but follow default display size. code to force default display density: *Configuration configuration = baseContext.getResources().getConfiguration();* *configuration.densityDpi = DisplayMetrics.DENSITY_DEVICE_STABLE;* *return baseC