Ich habe Probleme mit CardView Transparenz und card_elevation. ein CardView transparent um das Ergebnis zu verwenden versuchen, ist:Android CardView mit seltsamer Grenze, wenn transparent
Ohne Transparenz:
:Was ich versuche, so etwas zu bekommen ist
Hier ist mein xml:
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="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:background="@mipmap/eifell"
android:padding="10dp"
tools:context=".MainActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="5dp"
android:background="@android:color/transparent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.CardView
android:id="@+id/newsCardView"
android:layout_width="match_parent"
android:layout_height="175dp"
card_view:cardBackgroundColor="#602B608A"
card_view:cardElevation="5dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent">
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
</ScrollView>
</RelativeLayout>
Haben Sie jemals eine Lösung für das nicht hilft, bieten bekommen? Es sieht so aus, als ob Karten keine Hintergrundtransparenz unterstützen: https://code.google.com/p/android/issues/detail?id=78061 –
Hallo Steve, nein, ich verwende RelativeLayout nur mit einem transparenten Hintergrund ohne Schatten (Höhe). Wenn ich etwas gefunden habe, poste ich wo. – cRobot
@SteveBlackwell Das ist gültige Antwort auf diese Frage. Vielen Dank. –