Recycler view item fill up entire recycler view height after upgrading support library from “23.1.1” to “23.2.1”

后端 未结 7 2270
天命终不由人
天命终不由人 2020-12-24 06:28

Previously, I\'m using the following old support libraries \"23.1.1\".

compile \'com.android.support:appcompat-v7:23.1.1\'
compile \'com.android.support:supp         


        
7条回答
  •  星月不相逢
    2020-12-24 07:09

    I believe this is the problematic line:

    
                android:background="?attr/buyPortfolioSeperatorBackground"
                android:layout_marginRight="5dp"
                android:layout_marginLeft="5dp" />
    

    There are 2 places in your layout item that has layout_height="match_parent". You should change them both to wrap_content.

提交回复
热议问题