में जेड इंडेक्स ऑर्डर का सम्मान नहीं करता है, मेरे पास दो दृश्यों के साथ एक सापेक्ष लेआउट है, एक कार्डव्यू और एक छवि बटन, मुझे कार्डव्यू के ऊपर आईबी रखने की जरूरत है, लेकिन कार्डव्यू जेड इंडेक्स का सम्मान नहीं करता है आदेश। यदि मैं लाइनरलाइट के साथ कार्डव्यू को प्रतिस्थापित करता हूं, तो यह ठीक लगता है, इसलिए मुझे लगता है कि समस्या कार्डव्यू के साथ ही है।कार्डव्यू रिश्तेदार लेआउट
यहाँ मेरी कोड है:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:background="@drawable/icons_bg_whited"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.noname.classmates.Activity.Register"
tools:ignore="MergeRootFrame"
android:padding="27dip">
<android.support.v7.widget.CardView
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
card_view:cardCornerRadius="10dp"
android:layout_marginTop="38dip">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/container"/>
</android.support.v7.widget.CardView>
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/btn_upload_pic"
android:layout_centerHorizontal="true"
android:src="@drawable/upload_profile_pic"
android:contentDescription="@string/upload_profile_picture"
android:background="@android:color/transparent" /> </RelativeLayout>
एक और सवाल, क्या मैं छाया प्राप्त किए बिना ऊंचाई स्थापित कर सकता हूं? – Edgar
दृश्य छाया और रूपरेखा अनुकूलित करें https://developer.android.com/training/material/shadows-clipping.html#Shadows – Hartok
सही विचार की तरह माना जाता है। हालांकि, कार्डव्यू के ऊपर हर दूसरे संभावित दृश्य को ऊपर उठाना बिल्कुल काम नहीं करता है ... मेरा ड्रॉवरआउट अभी भी कार्ड व्यू के नीचे दिखाई देता है। – Radu