두 개의 구성 요소 인 SquareLayout과 두 번째 구성 요소가 RecyclerView 인 LinearLayout이 하나 있는데 SquareLayout이 화면 중앙에 있고 RecyclerView가 화면 하단에 있어야하지만 이유는 모르지만 중력 그것을 위해 일하지 않는다. 나는 안드로이드에 새로운 것이지만 나는 내 질문에 분명히 희망한다. 다음은 내 .xml 파일입니다.LinearLayout on center
<LinearLayout 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"
android:orientation="vertical" >
<com.example.layouts.SquareLayout
android:id="@+id/llSelectedLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
></com.example.layouts.SquareLayout>
<android.support.v7.widget.RecyclerView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/rvImage"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</LinearLayout>
있는 LinearLayout 내가 생각 할 수는 없지만, RelativeLayout의는 –
그것은 나를 위해 작동합니다, 귀하의 제안에 감사드립니다 수 있습니다. –