shadow below search box

This commit is contained in:
veliymolfar 2020-05-21 13:54:44 +03:00
parent 8ba8881cc4
commit 04dc5e6332
3 changed files with 33 additions and 12 deletions

View file

@ -102,18 +102,31 @@
</LinearLayout>
<include layout="@layout/divider" />
</LinearLayout>
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
<FrameLayout
android:layout_height="0dp"
android:layout_weight="1"
android:divider="@null"
android:dividerHeight="0dp"
android:drawSelectorOnTop="true" />
android:layout_width="match_parent"
android:layout_weight="1">
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@null"
android:dividerHeight="0dp"
android:drawSelectorOnTop="true" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/topBarShadow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:rotation="180"
android:scaleType="fitXY"
app:srcCompat="@drawable/bg_shadow_onmap" />
</FrameLayout>
<include layout="@layout/divider" />

View file

@ -103,8 +103,6 @@
</LinearLayout>
<include layout="@layout/divider" />
</LinearLayout>
<FrameLayout
@ -129,6 +127,16 @@
app:srcCompat="@drawable/bg_shadow_onmap"
android:visibility="gone"/>
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/topBarShadow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:rotation="180"
android:scaleType="fitXY"
android:visibility="gone"
app:srcCompat="@drawable/bg_shadow_onmap" />
</FrameLayout>
<LinearLayout

View file

@ -234,7 +234,7 @@ public class QuickSearchCustomPoiFragment extends DialogFragment {
}
});
view.findViewById(R.id.topBarShadow).setVisibility(View.VISIBLE);
return view;
}