I have this LinearLayout that is going to be placed on the bottom of an activity layout. I want this LinearLayout to have a 4dp elevation, just lik
LinearLayout
Add this code above of view in which you want top elevation or add android:layout_marginTop="-4dp" and add below of above view
android:layout_marginTop="-4dp"