ConstraintLayout을 사용하고 있습니다.안드로이드 : 제약 레이아웃 - 조절할 수 없습니다 비율 크기 조정 후 이미지보기의 경계를 봅니다
저는 16시 9 분이되고 싶은 이미지가 있습니다. 그리고이 이미지 뷰 아래에서 텍스트 뷰를 배치하려고합니다.
이제 이미지보기를 사라지도록 설정하면 텍스트보기가 위로 이동해야합니다. 그러나 이것은 일어나지 않습니다.
어떤 사람은 내 XML 레이아웃에서 문제를 파악하는 것을 시도하십시오 수 :
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:background="@color/dark_background"
android:layout_width="0dp"
android:layout_height="0dp"
android:padding="15dp"
tools:layout_width="300dp"
tools:layout_height="300dp"
>
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/logo"
app:layout_constraintDimensionRatio="W,16:9"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintVertical_bias="1.0" />
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/image"
android:ellipsize="marquee"
android:maxLines="4"
android:textSize="28sp"
android:textColor="#000000"
android:text="The is the test that does not seem to work"
android:layout_marginTop="12.41dp"
app:layout_goneMarginTop="0dp"/>
</android.support.constraint.ConstraintLayout>
누구든지주세요 ?? – Sunny