2016-10-12 4 views
0

저는 RecyclerView과 하단 버튼으로 progrmming app입니다. RecyclerView은 서버에서 가져온 이미지로 채워 넣습니다. 위쪽 표시 줄이 고정recyclerview 아래의 버튼이 보이지 않습니다.

http://joxi.ru/KAxee4XTEMpPr8

RecyclerView 코드

<android.support.v7.widget.RecyclerView 
    android:id="@+id/recyclerView" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    /> 

RecyclerView가 ImageViews에 의해

<ImageView xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="100dp" 
android:scaleType="centerCrop" 
android:layout_marginBottom="1dp" 
android:layout_marginEnd="1dp" 
android:layout_marginStart="1dp" 
android:layout_marginTop="1dp" /> 

버튼 코드를 채우는 보이지 않는

<LinearLayout 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:orientation="horizontal" 
    android:weightSum="3"> 

    <ru.noorsoft.rubkoff.HeButton 
     android:id="@+id/button1" 
     style="@style/leftButStyle" 
     android:layout_width="wrap_content" 
     android:layout_height="55dp" 
     android:layout_weight="1" 
     android:gravity="center" 
     android:textAllCaps="false" 
     android:textColor="@color/colorBlue" 
     android:textSize="20sp" /> 

    <ru.noorsoft.rubkoff.HeButton 
     android:id="@+id/button2" 
     android:background="@android:color/transparent" 
     android:layout_width="wrap_content" 
     android:layout_height="55dp" 
     android:layout_weight="1" 
     android:textColor="@color/colorBlue" 
     android:textAllCaps="false" 
     android:textSize="20sp" /> 

    <ru.noorsoft.rubkoff.HeButton 
     android:id="@+id/button3" 
     style="@style/rightButStyle" 
     android:layout_width="wrap_content" 
     android:layout_height="55dp" 
     android:layout_weight="1" 
     android:textColor="@color/colorBlue" 
     android:textAllCaps="false" 
     android:textSize="20sp" /> 

</LinearLayout> 
+0

당신은 버튼이 – zombie

+0

@zombie 예 화면 하단 또는 재활용보기 아래에 고정 싶지 않아! 그것 instagram처럼 보일 것입니다. 3 행 및 하단 고정 메뉴에서 사진 – Romanoti

+0

귀하의 질문에 uner을 변경하십시오 제목 아래에 편지가 누락되었습니다 – zombie

답변

0
<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    xmlns:tools="http://schemas.android.com/tools"> 

    <RelativeLayout 
     android:id="@+id/header" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content"> 
     <!-- here goes the header --> 
     <TextView 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:text="header"/> 
    </RelativeLayout> 

    <android.support.v7.widget.RecyclerView 
     android:id="@+id/recyclerView" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     tools:listitem="@android:layout/simple_gallery_item" 
     android:layout_below="@id/header" 
     android:clipToPadding="false" 

     android:paddingBottom="55dp"/> 
    <LinearLayout 
     android:layout_width="match_parent" 
     android:layout_height="55dp" 
     android:orientation="horizontal" 
     android:layout_alignParentBottom="true" 
     android:weightSum="3"> 

     <ru.noorsoft.rubkoff.HeButton 
      android:id="@+id/button1" 
      style="@style/leftButStyle" 
      android:layout_width="wrap_content" 
      android:layout_height="match_parent" 
      android:layout_weight="1" 
      android:gravity="center" 
      android:textAllCaps="false" 
      android:textColor="@color/colorBlue" 
      android:textSize="20sp" /> 

     <ru.noorsoft.rubkoff.HeButton 
      android:id="@+id/button2" 
      android:background="@android:color/transparent" 
      android:layout_width="wrap_content" 
      android:layout_height="match_parent" 
      android:layout_weight="1" 
      android:textColor="@color/colorBlue" 
      android:textAllCaps="false" 
      android:textSize="20sp" /> 

     <ru.noorsoft.rubkoff.HeButton 
      android:id="@+id/button3" 
      style="@style/rightButStyle" 
      android:layout_width="wrap_content" 
      android:layout_height="match_parent" 
      android:layout_weight="1" 
      android:textColor="@color/colorBlue" 
      android:textAllCaps="false" 
      android:textSize="20sp" /> 
    </LinearLayout> 
</RelativeLayout> 
관련 문제