i've created shadow using this 9 patch generator link because i need the offset, blur, and the round option
https://inloop.github.io/shadow4android/
but it looks like created padding around 9 patch because of the shadow blur so the result when im using the image on android studio look like this layout with 9 patch background
i want my 9 patch become background shadow for my linearlayout without padding around it, how do i achieve this?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="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:paddingHorizontal="26dp"
android:paddingVertical="22dp"
tools:context=".TeamDetailActivity"
android:id="@+id/profile_container"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/pls"
android:orientation="vertical">
<ImageView
android:layout_width="50dp"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="fitXY"
android:src="@drawable/psg" />
</LinearLayout>
</LinearLayout>

1.First create a xml file (example: border_shadow.xml) in "drawable" folder and copy the below code into it.
Now set as Background of Linear Layout: