新聞中心
Transition

在武鄉(xiāng)等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供成都網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè) 網(wǎng)站設(shè)計(jì)制作按需開發(fā)網(wǎng)站,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站制作,全網(wǎng)整合營銷推廣,外貿(mào)營銷網(wǎng)站建設(shè),武鄉(xiāng)網(wǎng)站建設(shè)費(fèi)用合理。
java.lang.Object
|---ohos.agp.transition.Transition
public class Transition
extends Object創(chuàng)建并設(shè)置過渡效果。
Since:
3
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| Transition() | 用于創(chuàng)建 Transition 實(shí)例的默認(rèn)構(gòu)造函數(shù)。 |
方法總結(jié)
| 修飾符和類型 | 方法 | 描述 |
|---|---|---|
| void | setCurve(Animator.TimelineCurve curve) | 設(shè)置曲線。 |
| void | setCurveType(int type) | 設(shè)置曲線類型。 |
| 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 |
構(gòu)造函數(shù)詳細(xì)信息
Transition
public Transition()
用于創(chuàng)建 Transition 實(shí)例的默認(rèn)構(gòu)造函數(shù)。
此構(gòu)造函數(shù)使用默認(rèn)屬性集和樣式。
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í)間。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| duration | 以毫秒為單位表示持續(xù)時(shí)間。 |
Since:
4
setDuration
public void setDuration(long duration)
設(shè)置過渡的持續(xù)時(shí)間。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| duration | 以毫秒為單位表示持續(xù)時(shí)間。 |
Since:
7
setCurveType
public void setCurveType(int type)
設(shè)置曲線類型。
此方法使用內(nèi)置曲線類型來設(shè)置過渡曲線效果。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| type | 表示要設(shè)置的曲線類型。 |
Since:
7
setCurve
public void setCurve(Animator.TimelineCurve curve)
設(shè)置曲線。
此方法使用自定義曲線來設(shè)置過渡曲線效果。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| curve | 表示要設(shè)置的曲線。 您可以根據(jù)指定的時(shí)間獲取表示時(shí)間線曲線中分?jǐn)?shù)的值。 |
Since:
7
當(dāng)前文章:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSTransition
標(biāo)題鏈接:http://fisionsoft.com.cn/article/cocjjpp.html


咨詢
建站咨詢
