Transparent arrow with gradient.

This commit is contained in:
Dmitry Yunitsky 2014-08-03 03:53:16 +03:00 committed by Alex Zolotarev
parent 2ee5426ee1
commit 507fcbb742
4 changed files with 20 additions and 10 deletions

View 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>

View file

@ -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>

View file

@ -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>

View file

@ -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);
}