Android 如何设置面板动画以在地图视图上注册?
我在屏幕顶部的地图上有一个相对位置的地图视图,我想显示一个包含一些文本的面板Android 如何设置面板动画以在地图视图上注册?,android,layout,animation,Android,Layout,Animation,我在屏幕顶部的地图上有一个相对位置的地图视图,我想显示一个包含一些文本的面板 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" >
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<com.google.android.maps.MapView
android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="@string/google_maps_api_key"
android:clickable="true" />
<RelativeLayout
android:id="@+id/venue_panel"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@color/venue_panel_background"
android:visibility="invisible"
>
<TextView
android:id="@+id/venue_panel_info_line"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:textSize="24sp"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/venue_panel_text"
android:text="Searching ..."
android:singleLine="true"
android:ellipsize="end"
android:visibility="visible"
/>
</RelativeLayout>
</RelativeLayout>
面板应设置动画,使其从顶部注册,直到其足够大,使面板内的文本可见
不幸的是,我对动画非常陌生。如何实现这样的动画?是一篇关于如何使用FrameLayout在mapview上实现面板的好文章
最近,Wunderlist开启了滑动面板的实现。你可以找到它