在Seekbar Android中使用rotation=270时,无法正确指定高度和宽度
我在android的垂直seekbar中无法指定高度和宽度。我已指定旋转等于270 案例1: 宽度=300dp,高度=包裹内容 我得到的高度和宽度都等于300dp 案例2 宽度=包裹内容高度=300dp 我得到的高度等于包裹内容,宽度等于300dp 所以我的问题是,当使用旋转=270时,如何正确指定高度和宽度在Seekbar Android中使用rotation=270时,无法正确指定高度和宽度,android,xml,layout,Android,Xml,Layout,我在android的垂直seekbar中无法指定高度和宽度。我已指定旋转等于270 案例1: 宽度=300dp,高度=包裹内容 我得到的高度和宽度都等于300dp 案例2 宽度=包裹内容高度=300dp 我得到的高度等于包裹内容,宽度等于300dp 所以我的问题是,当使用旋转=270时,如何正确指定高度和宽度 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.puzzleup.ScrambleActivity">
<SeekBar
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:max="7"
android:rotation="270" />
</RelativeLayout>
我知道已经很晚了,但也许这仍然可以帮助你 刚刚写了一篇关于这个的文章: 要继续,垂直搜索杆实际上无法工作,因为android在进行旋转之前设置了高度和。
也许这会有帮助我知道已经很晚了,但也许这仍然可以帮助你 刚刚写了一篇关于这个的文章: 要继续,垂直搜索杆实际上无法工作,因为android在进行旋转之前设置了高度和。
也许这会有所帮助网站不再可用。你能在这里总结一下解决方案吗?该网站不再可用。你能在这里总结一下解决方案吗?在atm上旋转搜索杆仍然面临类似的问题,直到在atm上旋转搜索杆仍然面临类似的问题