Ich möchte Welleneffekt auf meinem Symbol. Aber wenn ich Polsterung erhöhen reduziert es die Symbolgröße wenn Polsterung ist 5dp es so etwas wie dieses Padding reduziert Icon-Größe in ImageView
sieht aber wenn ich padding Größe erhöhen, um 12dp es wie diese xml
Mein Image sieht
<ImageView
android:id="@+id/institute_search_item_request_icon"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentEnd="true"
android:layout_marginEnd="20dp"
android:layout_marginTop="15dp"
android:background="@drawable/request_institute_red_icon__shape"
android:foreground="@drawable/ripple_foreground"
android:padding="12dp"
android:src="@drawable/ic_link_white_24dp" />
request_institute_red_icon__shape.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/colorPrimary" />
und
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/colorAccent">
<item android:id="@android:id/mask">
<shape android:shape="oval">
<solid android:color="@color/colorPrimary" />
</shape>
</item>
Warum brauchen Sie Polsterung? –
verwenden Marge das tun. –
@ Bhuvanesh ich will Ripple Farbe um Symbol. Bitte korrigieren Sie mich, wenn ich einen dummen Fehler mache – FaisalAhmed