0
Изображение в моем ScrollView
имеет поля сверху и снизу, которые я не установил в макете. Откуда они берутся?Нежелательные поля в ScrollView
<ScrollView
android:layout_x="0dp"
android:layout_y="25dp"
android:scrollbars="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/scrollView">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbars = "vertical"
android:id="@+id/InfoText"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/InfoImage"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/InfoImageText" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/InfoImageSource"
android:textSize="10sp" />
</LinearLayout>
</ScrollView>
Маржа вы видите на скриншоте также на верхней части изображения
Проверьте высоту изображения –
образ является столь же высоко как вы видите его, так что он не имеет прозрачные полосы на верхней и нижней части. – maidi