第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

我的回收站視圖沒有顯示它擁有的所有項目,我該如何解決?

我的回收站視圖沒有顯示它擁有的所有項目,我該如何解決?

一只斗牛犬 2023-02-23 11:10:34
我的 recyclerView 有問題。它不顯示所有項目。例如,recyclerView 有 12 個項目,但顯示為 10 個項目。我可以為它設(shè)置 paddingBottom,它會顯示所有項目,但我認為這不是一個好方法。我該如何解決?我想也許是因為我上面的按鈕。acctivity_search_coin.xml<?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">    <android.support.v7.widget.RecyclerView        android:id="@+id/recyclerView2"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:layout_marginTop="8dp"        android:paddingBottom="50dp"        app:layout_constraintTop_toBottomOf="@+id/lianerForThreeBtn" />    <Button        android:id="@+id/button2"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:layout_marginStart="8dp"        android:layout_marginTop="8dp"        android:layout_marginEnd="8dp"        android:background="#FFFFFF"        android:paddingStart="5dp"        android:paddingEnd="5dp"        android:textSize="15sp"        android:drawablePadding="6dp"        android:gravity="center_vertical"        app:layout_constraintEnd_toEndOf="parent"        app:layout_constraintStart_toStartOf="parent"        app:layout_constraintTop_toTopOf="parent" />    <LinearLayout        android:id="@+id/lianerForThreeBtn"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:orientation="horizontal"        app:layout_constraintTop_toBottomOf="@+id/button2">        <Button            android:id="@+id/btn1"            android:layout_width="0dp"            android:layout_height="wrap_content"            android:background="#FFFFFF"            android:layout_weight="1"/>
查看完整描述

1 回答

?
開心每一天1111

TA貢獻1836條經(jīng)驗 獲得超13個贊

嘗試添加app:layout_constraintBottom_toBottomOf="parent"回收站視圖,并將回收站視圖的高度設(shè)置為 0dp(匹配約束)。



查看完整回答
反對 回復(fù) 2023-02-23
  • 1 回答
  • 0 關(guān)注
  • 111 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號