2016-10-12 21 views
0

私はRecyclerViewと下のボタンでprogrmmingアプリです。 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> 
関連する問題