日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

android 居右属性,使用layoutDirection属性设置布局靠左或靠右

發布時間:2023/12/10 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 android 居右属性,使用layoutDirection属性设置布局靠左或靠右 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

通過設置layoutDirection屬性值為mx.core.LayoutDirection.RTL(右到左)或mx.core.LayoutDirection.LTR(左到右),使布局為靠左或靠右(如下圖)。該屬性可設置3種值,LayoutDirection.RTL、LayoutDirection.LTR和null(ILayoutDirectionElement時)/undefined(IStyleClient

時),null/undefined表示繼承父類的該屬性值。

以下是API中對mx.core.LayoutDirection類的敘述:

public

final class LayoutDirection

繼承

LayoutDirection?->

Object

語言版本:

ActionScript 3.0

產品版本:

Flex 4.1

運行時版本:

Flash Player 10, AIR

2.0

LayoutDirection 類定義 IStyleClient 的

layoutDirection 樣式和 ILayoutDirectionElement 的

layoutDirection 屬性的常量值。對于拉丁樣式腳本,通常采用從左到右的

layoutDirection。對于阿拉伯語或希伯來語等腳本,則采用從右到左的 layoutDirection。如果為

IStyleClient,將 layoutDirection 樣式設置為 undefined 以從其祖代繼承

layoutDirection。如果為 ILayoutDirectionElement,將 layoutDirection 屬性設置為

null 以從其祖代繼承 layoutDirection。

-----------------------------------------------------------------

對mx.core.ILayoutDirectionElement類的敘述:

接口

public

interface ILayoutDirectionElement

語言版本:

ActionScript 3.0

產品版本:

Flex 4.1

運行時版本:

Flash Player 10, AIR

1.5

ILayoutDirectionElement 接口定義對象支持

layoutDirection 屬性時需要的最低限度屬性和方法。

-----------------------------------------------------------------

對mx.styles.IStyleClient類的敘述:

該接口描述了對象要完全參與樣式子系統所必須實現的屬性和方法。該接口由 UIComponent

實現。

如果對象不需要在本地存儲樣式值,則該對象可改為實現

ISimpleStyleClient 接口。

總結

以上是生活随笔為你收集整理的android 居右属性,使用layoutDirection属性设置布局靠左或靠右的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。