1
A
回答
1
检查此? Why do 9-patch graphics size correctly in the emulator but not on a phone? 这个人得到了9个补丁上的演讲泡沫的例子。你应该尝试用9补丁工具尝试它必将认为这需要有用的下一次
0
这里我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" />
希望它会有用! :)
相关问题
- 1. 选择器与9补丁
- 2. Android - 9补丁
- 3. Android在ListView中实现聊天泡泡
- 4. 奇怪9补丁绘图
- 5. 选择排序与泡泡排序C++
- 6. 基本泡泡排序与Java ArrayList
- 7. 泡泡与文本框弹出
- 8. 与聊天泡泡定制的uitableview
- 9. iOS:泡泡文字?
- 10. NSMenuItem数字泡泡?
- 11. 如何泡泡? | C#
- 12. Android泡泡短信
- 13. Flex气泡图泡泡缩放
- 14. Highcharts泡泡图泡泡顶部被切断
- 15. 冒泡与LinkedList的
- 16. CSS/HTML语音泡泡
- 17. BubbleChart(MPAndroidChart) - 泡泡尺寸
- 18. CSS3动画泡泡背景
- 19. 聊天泡泡可可
- 20. 在Chart.js中切断泡泡
- 21. 冲泡后更新冲泡
- 22. 定时泡泡分类
- 23. Facebook Messenger - 泡泡弹出
- 24. 泡泡聊天+表情+ UITableViewCell
- 25. 自定义MKPinAnnotation标注泡泡类似于默认标注泡泡
- 26. 补丁与升级
- 27. 多视图9补丁大小问题
- 28. Android 9补丁奇怪行为
- 29. Android:补丁9文件遗址main.xml
- 30. 9个补丁转换为梯度
嘿,谢谢我解决我的问题与本指南:http://developer.android.com/guide/developing/tools/draw9patch.html – Giulio 2011-05-11 17:46:52