में cardview से अधिक दृश्य बनाने मैं इस लेआउट
एंड्रॉयड
यह एक cardview (ग्रे दृश्य) और imageView (नीला दृश्य) उस के लिए मैं इस कोड का उपयोग है बनाना चाहते हैं
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/abc_search_url_text_normal"
android:orientation="vertical">
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_alignParentBottom="true"
android:layout_gravity="bottom"
android:layout_marginBottom="3dp"
android:paddingTop="5dp"
app:cardBackgroundColor="@color/abc_input_method_navigation_guard">
</android.support.v7.widget.CardView>
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="bottom"
android:layout_marginBottom="30dp"
android:layout_marginRight="10dp"
android:scaleType="fitXY"
android:src="@drawable/abc_ratingbar_full_material" />
</FrameLayout>
लेकिन नतीजतन मेरी छवि दृश्य कार्डव्यू के पीछे जा रहा है, मैं framelayout के बजाय reletivelayout कोशिश करें लेकिन एक ही परिणाम।
आप @cw लेकिन वहाँ एक्सएमएल – max
में करने के लिए एक तरह से मैं अपने जवाब –
नवीनीकृत किया है मैं ऐसा है धन्यवाद भी, लेकिन दिलचस्प चीजें यहां है जो कार्डव्यू के साथ काम नहीं करती है, मैं इसे किसी अन्य प्रकार के दृश्य और काम से पहले करता हूं लेकिन कार्डव्यू – max