아이폰 (예 : handcent 앱)에서 토론처럼 보이는 토론 포럼을 위해 listview를 만들고 싶습니다. 몇 가지 예를 보았지만 아무도 9 패치를 사용하지 않습니다.9- 패치로 된 버블리스트 뷰
누구에게 사례가 있습니까?
아이폰 (예 : handcent 앱)에서 토론처럼 보이는 토론 포럼을 위해 listview를 만들고 싶습니다. 몇 가지 예를 보았지만 아무도 9 패치를 사용하지 않습니다.9- 패치로 된 버블리스트 뷰
누구에게 사례가 있습니까?
이것을 확인 하시겠습니까? Why do 9-patch graphics size correctly in the emulator but not on a phone? 이 사람은 9 패치에 연설 거품의 예가 있습니다. 당신은 유용한 다음 번으로 9 패치 도구 실험이 확실하다고 생각합니다 시도해야
다음내 soulution : post_list_item_even.xml
<ImageView android:id="@+id/post_icon"
android:gravity="center_horizontal|center_vertical"
android:padding="15dip" android:layout_width="wrap_content"
android:layout_height="fill_parent" android:layout_alignParentTop="true"
android:layout_alignParentBottom="true" />
<TextView android:id="@+id/post_text"
android:gravity="center_vertical"
android:layout_height="wrap_content" android:layout_width="fill_parent"
android:layout_toRightOf="@id/post_icon" android:layout_alignParentBottom="true"
android:layout_alignParentRight="true" android:background="@drawable/forum_bubble_even" />
post_list_item_odd.xml
<ImageView android:id="@+id/post_icon"
android:gravity="center_horizontal|center_vertical"
android:padding="15dip" android:layout_width="wrap_content"
android:layout_height="fill_parent" android:layout_alignParentRight="true"
android:layout_alignParentBottom="true" />
<TextView android:id="@+id/post_text"
android:gravity="center_vertical"
android:layout_height="wrap_content" android:layout_width="fill_parent"
android:layout_toLeftOf="@id/post_icon" android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" android:background="@drawable/forum_bubble_odd" />
희망은 유용 할 것입니다! :)
이봐, 고맙다,이 가이드로 내 문제를 해결해 : http://developer.android.com/guide/developing/tools/draw9patch.html – Giulio