[英]Max width of a “line” view
我使用的視圖高度僅為10dp,因此看起來就像一條線。
如果我的layout_width大於某個數字(例如,如果我設置layout_width = 900dp),則該視圖不采用該寬度...看來該視圖具有最大寬度。 有人知道嗎 ?
謝謝。 焉。
編輯:對不起,這是我的xml布局。
<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.test.MainActivity" >
<View
android:background="@color/black"
android:layout_width="900dp"
android:layout_height="10dp"
android:transformPivotX="5dp"
android:rotation="45"/>
</RelativeLayout>
編輯2:這是結果。 為什么觀點不能進一步發展? http://image.noelshack.com/fichiers/2014/40/1411963572-screenshot-2014-09-28-22-36-32.png
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.