新聞中心
TransitionMove

成都創(chuàng)新互聯(lián)公司從2013年成立,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目網(wǎng)站設(shè)計(jì)制作、成都網(wǎng)站制作網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢想脫穎而出為使命,1280元曲沃做網(wǎng)站,已為上家服務(wù),為曲沃各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:18982081108
java.lang.Object
|---ohos.agp.transition.Transition
|---|---ohos.agp.transition.TransitionMove
public class TransitionMove
extends Transition為過渡創(chuàng)建移動效果。
Since:
3
字段摘要
| 修飾符和類型 | 字段 | 描述 |
|---|---|---|
| static int | BOTTOM | 表示從底部滑入。 |
| static int | LEFT | 表示從左側(cè)滑入。 |
| static int | RIGHT | 表示從右側(cè)滑入。 |
| static int | TOP | 表示從頂部滑入。 |
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| TransitionMove() | 用于創(chuàng)建 TransitionMove 實(shí)例的默認(rèn)構(gòu)造函數(shù)。 |
| TransitionMove(int moveType) | 用于創(chuàng)建具有指定移動類型的 TransitionMove 實(shí)例的構(gòu)造函數(shù)。 |
方法總結(jié)
| 修飾符和類型 | 方法 | 描述 |
|---|---|---|
| void | setDuration(float duration) | 已棄用。 此更改從 API 版本 8 開始生效。此方法已棄用,因?yàn)槌掷m(xù)時(shí)間參數(shù)是整數(shù),不需要用浮點(diǎn)數(shù)表示。 替換為 setDuration(long)。 |
| void | setDuration(long duration) | 設(shè)置此移動的持續(xù)時(shí)間。 |
| 從類 java.lang.Object 繼承的方法 |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 從類 ohos.agp.transition.Transition 繼承的方法 |
|---|
| setCurve, setCurveType |
字段詳細(xì)信息
BOTTOM
public static final int BOTTOM
表示從底部滑入。
Since:
3
LEFT
public static final int LEFT
表示從左側(cè)滑入。
Since:
3
RIGHT
public static final int RIGHT
表示從右側(cè)滑入。
Since:
3
TOP
public static final int TOP
表示從頂部滑入。
Since:
3
構(gòu)造函數(shù)詳細(xì)信息
TransitionMove
public TransitionMove()
用于創(chuàng)建 TransitionMove 實(shí)例的默認(rèn)構(gòu)造函數(shù)。
此實(shí)例為組件轉(zhuǎn)換提供移動效果。
Since:
3
TransitionMove
public TransitionMove(int moveType)
用于創(chuàng)建具有指定移動類型的 TransitionMove 實(shí)例的構(gòu)造函數(shù)。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| moveType | 指示移動類型,可以是 LEFT、RIGHT、TOP 或 BOTTOM。 |
Since:
3
方法詳情
setDuration
@Deprecated public void setDuration(float duration)
已棄用。 此更改從 API 版本 8 開始生效。此方法已棄用,因?yàn)槌掷m(xù)時(shí)間參數(shù)是整數(shù),不需要用浮點(diǎn)數(shù)表示。 替換為 setDuration(long)。
設(shè)置此移動的持續(xù)時(shí)間。
覆蓋:
類 Transition 中的 setDuration
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| duration | 表示要設(shè)置的持續(xù)時(shí)間。 |
Since:
4
setDuration
public void setDuration(long duration)
設(shè)置此移動的持續(xù)時(shí)間。
覆蓋:
類 Transition 中的 setDuration
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| duration | 表示要設(shè)置的持續(xù)時(shí)間。 |
Since:
7
當(dāng)前標(biāo)題:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSTransitionMove
當(dāng)前URL:http://fisionsoft.com.cn/article/dpehdsp.html


咨詢
建站咨詢
