心配しなくてうれしいです。私はあなたのための解決策を作りました。単純なレイアウトを考えると、以下の急な流れ:
1.Your親のレイアウトがConstraintLayoutで、
2.Secondly RelativeLayoutを取り、
3.Then別ConstraintLayoutを取ると、
は4.Finally追加するには」 Googleのリンクを
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="#EACB3B"
tools:context="com.example.uitableview.MainActivity">
<RelativeLayout
android:layout_width="0dp"
android:layout_height="0dp"
android:orientation="vertical"
tools:layout_constraintTop_creator="1"
tools:layout_constraintRight_creator="1"
tools:layout_constraintBottom_creator="1"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintRight_toRightOf="parent"
tools:layout_constraintLeft_creator="1"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent">
<android.support.constraint.ConstraintLayout
android:id="@+id/lvID"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imgView"
android:layout_width="wrap_content"
android:layout_height="234dp"
android:src="@drawable/mango"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
android:layout_marginTop="8dp"
app:layout_constraintTop_toBottomOf="@+id/expLv"
app:layout_constraintHorizontal_bias="0.0" />
<ExpandableListView
android:id="@+id/expLv"
android:layout_width="352dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:orientation="vertical"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
</RelativeLayout>
</android.support.constraint.ConstraintLayout>
それともも流れることができる:ExpandableListView」とあなたのUI要素が
また、以下のコードを見ることができます https://drive.google.com/open?id=0B-yo9VvU7jyBUHN6RHVXQmUtVU0
カントあなただけのUIViewあなたのテーブルビューの一部(セルまたはフッターのビューが)、それはいくつかの他のUIViewを持って、まだ実際に下回っTj3n @あなたの他のテーブルビューセル – Tj3n
にシフトすることを確認してください。 –
@NurIIは、セクションに行を追加すると自動的に調整されません。あなたの下のビューのトップがテーブルビューの底にフラッシュされている限り – Joshua