我的水平滚动视图中有一个线性布局,我想在其中动态显示图像。这是我的密码:
if (imgs.size() != 0) {
for (int i = 0; i < imgs.size(); i++) {
File imgFile = new File(Environment.getExternalStorageDirectory()
+ "/shafa/"
+ imgs.get(i)
我在我的应用程序中使用约束布局进行设计,并为宽度和高度设置wrap_content或match_parent。当App运行在平板电脑或大屏幕时,视图的尺寸越来越小。有没有另一种方法可以让视图变得更大,而不需要为大屏幕创建另一个布局?
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
an