have this layout -
<Stepsview
android:background="@color/white"
android:elevation="@dimen/margin_16"/>
this cast shadow at the bottom as well as top :

Steps view and ActionBar are 2 different views, one way I see is to combine these 2 views inside a view group and set elevation on the view group only. Is there any other way only controlling steps view.

Achieved it by dynamically adding the steps to the top abbbar ( container for toolbar ) and setting the elevation to the app bar itself.