में अंतिम आइटम देखने की अनुमति नहीं देता है, मेरे पास है जिसमें मेरे पास RecyclerView
और LinearLayout
AdView
के अंदर है। RecyclerView
में कई आइटम हैं और जब मैं उन्हें स्क्रीन में दिखाने में असमर्थ था, तो मुझे उन्हें देखने के लिए नीचे स्क्रॉल करना पड़ा था, लेकिन अब मैंने LinearLayout
को AdView
के साथ स्क्रीन के नीचे से नीचे स्क्रॉल किया था और मैं ' मैं RecyclerView
की अंतिम वस्तु को देखने में सक्षम नहीं हूं। मैं LinearLayout
को नीचे से जोड़ रहा हूं लेकिन ऐसा लगता है कि यह RecyclerView
से ऊपर है और मुझे स्क्रीन में आइटम दिखाने के लिए RecyclerView
चाहिए लेकिन LinearLayout
के पीछे नहीं। क्या यह संभव है?नीचे से जोड़ा गया एडव्यू मुझे रीसाइक्लर्विव
<?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:ads="http://schemas.android.com/apk/res-auto">
<android.support.v7.widget.RecyclerView
android:id="@+id/rvGeneric"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical">
</android.support.v7.widget.RecyclerView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="center">
<com.google.android.gms.ads.AdView
android:id="@+id/adViewBaseRefresh"
android:layout_width="fill_parent"
android:layout_height="53dp"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id"
android:layout_marginBottom="3dp">
</com.google.android.gms.ads.AdView>
</LinearLayout>
के लिए क्या अपने आप कर के रूप में अच्छी तरह से LinearLayout करने के लिए इसे बदल सकते हैं, और फिर टी के लिए वजन सेट वह वजन – Geoff
पर वजन देखें @ वजन कम करें? मैं उसको कैसे करू? – Nahue
एंड्रॉइड: layout_weight = "0.1" – Geoff