我在布局中有一个ImageView:
<ImageView android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:contentDescription="@string/image_divider"
android:paddingBottom="8dp"
android:paddingTop="4dp"
android:scaleType="fitXY"
android:src="@android:drawable/divider_horizontal_textfield" />
这是一个水平分隔线。我想将其旋转90度,以便我有一个垂直的分隔线。
有没有可能在布局中而不是在Activity类中实现这个效果?
layout_height="fill_parent"
,这样它就会在整个布局中被拉伸。 - thepoosh