View.LayoutDirection 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳此視圖的解析版面方向。
public virtual Android.Views.LayoutDirection LayoutDirection { [Android.Runtime.Register("getLayoutDirection", "()I", "GetGetLayoutDirectionHandler")] get; [Android.Runtime.Register("setLayoutDirection", "(I)V", "GetSetLayoutDirection_IHandler")] set; }
[<get: Android.Runtime.Register("getLayoutDirection", "()I", "GetGetLayoutDirectionHandler")>]
[<set: Android.Runtime.Register("setLayoutDirection", "(I)V", "GetSetLayoutDirection_IHandler")>]
member this.LayoutDirection : Android.Views.LayoutDirection with get, set
屬性值
#LAYOUT_DIRECTION_RTL 如果版面方向是 RTL,則會返回 #LAYOUT_DIRECTION_LTR 如果版面方向不是 RTL。
為了相容性,若 API 版本低於 #LAYOUT_DIRECTION_LTR,則會回傳android.os.Build.VERSION_CODES#JELLY_BEAN_MR1此資料。
- 屬性
備註
財產取得者文件:
回傳此視圖的解析版面方向。
的 android.view.View.getLayoutDirection()Java 檔。
屬性設定文件:
為此視圖設定版面方向。 這會將重設版面方向解析傳遞給視圖的子體,並解析該視圖的版面方向。
的 android.view.View.setLayoutDirection(int)Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。