화면 하단에 리사이틀 러 뷰 위에있는 레이아웃을 원합니다 (프레임과 유사). 레이아웃이 보이더라도 그 뒤에 리사이저 뷰를 계속 스크롤 할 수 있습니다. 그래서 정렬하고 싶습니다. 프레임 레이아웃을 화면 하단에 표시하고 요구 사항에 따라 보이고 보이지 않게합니다. 여기 내 코드가있다.ConstraintLayout 내부의 FrameLayout을 아래쪽에 맞 춥니 다
<?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:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.protossoft.root.aesencryption.MainActivity">
<ListView
android:layout_width="match_parent"
android:id="@+id/listView"
android:layout_height="match_parent">
</ListView>
<!-- <RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">-->
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="443dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:gravity="center"
android:orientation="horizontal">
<ImageView
android:id="@+id/deviceNumberImage"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.2"
android:src="@android:drawable/btn_default" />
<TextView
android:id="@+id/deviceNumber"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.8"
android:text="990000862471854" />
</LinearLayout>
</FrameLayout>
<!-- </RelativeLayout>-->
내가 제약 레이아웃에 대한 생각을 너무 많이하지 않습니다,하지만 난 편집기에서 맨 아래에있는보기를 이동하고 할 때, 그것은
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="443dp"
같은 속성을 사용한다 align_parentBottom과 같은 속성을 사용하여 동일한 결과를 얻고 싶습니다. 그러나 어떤 속성도 사용할 수 없습니다. 프레임 레이아웃이 리사이클 뷰의 맨 아래와 맨 위에 동시에 표시되도록하려면 어떻게해야합니까? 고마워요 :)
감사 : 여기
당신이 필요로하는 설정입니다 – Pritish