2012-09-19 3 views
1

내 안드로이드 응용 프로그램에서 ListView 항목을 오른쪽에서 왼쪽으로 이동하고 해당 행에 대한 추가 옵션을 표시합니다. 내 질문을하는 법을 알지 못해 내가 찍은 사진을 보여주고 싶다. 나는 그것을 어떻게 할 수 있는가?안드로이드 ListView 항목 - 오른쪽에서 왼쪽으로 애니메이션 메뉴

  1. 이것은 첫 번째 상태입니다. This is the first state
  2. 이것은 두 번째 상태입니다 (오른쪽에있는 "PLUS"아이콘을 클릭 한 후).
  3. this is the secondstate (after click on the "PLUS" icon on the right side)이 여분의 선택

    Last screeshot

답변

1

업데이트 : "ToVine"덕분에 뷰 전환을 조사했습니다. 내가 위에서 언급 한 것에 대한 ViewFlipper 정장 :). 이것은 내 사용자 정의 listview 행의 XML입니다.

<ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:onClick="buttonClickHandler" > 

<LinearLayout 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" > 

    <TextView 
     android:id="@+id/textView1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="TextView" /> 
    <ImageButton 
     android:id="@+id/imageButton1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:background="@null" 
     android:onClick="buttonClickHandler" 
     android:src="@android:drawable/btn_star_big_on" /> 

</LinearLayout> 

<TextView 
    android:id="@+id/textView2" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_gravity="center_vertical|center_horizontal" 
    android:text="TextView2" /> 
</ViewFlipper> 
+0

정보를 제공해 주셔서 감사합니다. 언젠가는 도움이 될 것입니다. :) – ToVine

1

을 보여줍니다 최종 상태는 그것이 ViewPager이 사용될 수 있다는 것을 가능했다? 더 많은 정보를 찾을 수 있습니다 :

나는 그것이 화면의 작은 부분 일 것이라는 점을 잘 모르겠어요,하지만 해볼만 한 가치가 될 수 ... here (d.android.com)

+0

정보를 보내 주셔서 감사합니다. :) – KaanB

관련 문제