forked from organicmaps/organicmaps
Transparent arrow with gradient.
This commit is contained in:
parent
2ee5426ee1
commit
507fcbb742
4 changed files with 20 additions and 10 deletions
9
android/res/drawable/bg_arrow_gradient.xml
Normal file
9
android/res/drawable/bg_arrow_gradient.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<gradient
|
||||
android:angle="90"
|
||||
android:endColor="#19000000"
|
||||
android:startColor="@android:color/transparent"/>
|
||||
|
||||
</shape>
|
|
@ -9,16 +9,16 @@
|
|||
android:id="@+id/preview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/bg_top_panels"
|
||||
android:padding="@dimen/margin_small"
|
||||
android:visibility="gone">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_preview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/margin_small"
|
||||
android:orientation="horizontal">
|
||||
android:background="@color/bg_top_panels"
|
||||
android:orientation="horizontal"
|
||||
android:padding="@dimen/margin_small"
|
||||
android:paddingLeft="@dimen/margin_medium">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -89,6 +89,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/ll_preview"
|
||||
android:background="@drawable/bg_arrow_gradient"
|
||||
android:src="@drawable/ic_arrow"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
|
@ -9,16 +9,16 @@
|
|||
android:id="@+id/preview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/bg_top_panels"
|
||||
android:padding="@dimen/margin_small"
|
||||
android:visibility="gone">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_preview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/margin_small"
|
||||
android:orientation="horizontal">
|
||||
android:background="@color/bg_top_panels"
|
||||
android:orientation="horizontal"
|
||||
android:padding="@dimen/margin_small"
|
||||
android:paddingLeft="@dimen/margin_medium">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -87,7 +87,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/ll_preview"
|
||||
android:background="@android:color/transparent"
|
||||
android:background="@drawable/bg_arrow_gradient"
|
||||
android:src="@drawable/ic_arrow"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
|
@ -222,7 +222,7 @@ public class MapInfoView extends LinearLayout implements View.OnClickListener
|
|||
slide = generateSlideAnimation(0, 0, -1, 0);
|
||||
slide.setDuration(SHORT_ANIM_DURATION);
|
||||
UiUtils.show(mPlacePageGroup);
|
||||
UiUtils.invisible(mArrow);
|
||||
UiUtils.hide(mArrow);
|
||||
if (mVisibilityChangedListener != null)
|
||||
mVisibilityChangedListener.onPlacePageVisibilityChanged(show);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue