2012-01-03 7 views
1

地図の上のRelativeLayout内にMapViewがあります。テキストを含むパネルを表示したいです。パネルをアニメーション化してMapViewに登録する方法は?

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

パネルは、パネル内のテキストが表示されるのに十分な大きさになるまで上から登録されるようにアニメートされる必要があります。

残念ながら私はアニメーションにとって非常に新しいです。どのように私はそのようなアニメーションを実現できますか?

答えて

0

Thisは最近Wunderlistは、パネルをスライドさせるの彼らの実装を開けmapview

の上にパネルを実装するためにFrameLayoutの使用方法についての良い記事です。あなたはそれを見つけることができますhere

関連する問題