有没有一种方法可以在列表视图中使用默认箭头,而不必从xml中将它们读取为数组?如果我使用ImageViews来表示箭头,它们可能会变得非常丑陋。我不擅长图形设计。
谢谢。
编辑
我找到了这个网站,可能对很多人有用。 material design icons
谢谢。
编辑
我找到了这个网站,可能对很多人有用。 material design icons
如果您想要将箭头作为文本使用,您可以始终使用这些Unicode代码来绘制它们。
U+2192
→U+25B6
▶U+2794
➔<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/tvText"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Your Text"/>
<ImageView
android:id="@+id/ivArrow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:src="@drawable/arrow" >
</ImageView>
</RelativeLayout>