横竖屏ux适配

Signed-off-by: wwx1133664 <wangyi237@huawei.com>
This commit is contained in:
wwx1133664 2022-06-01 09:09:33 +08:00
parent 31e1953a90
commit 17aa6169ec
3 changed files with 3 additions and 5 deletions

View File

@ -58,7 +58,7 @@ struct DeviceName {
.type(InputType.Normal)
.enterKeyType(EnterKeyType.Done)
.caretColor($r('app.color.font_color_007DFF'))
.maxLength(10)
.maxLength(20)
.fontColor($r("sys.color.ohos_id_color_primary"))
.padding({ left: $r('app.float.wh_24'), right: $r('app.float.wh_24') })
.height($r("app.float.wh_value_40"))
@ -71,7 +71,7 @@ struct DeviceName {
.onChange((value: string) => {
LogUtil.debug(ConfigData.TAG + 'device name changed to: ' + JSON.stringify(value));
this.deviceName = value;
if (this.deviceName.length == 10) {
if (this.deviceName.length == 20) {
this.isFocused = false
prompt.showToast({
message: "输入已达上限",

View File

@ -163,6 +163,7 @@ struct AddedList {
Image($r("app.media.ic_ok"))
.width($r('app.float.wh_value_24'))
.height($r('app.float.wh_value_24'))
.fillColor($r("sys.color.ohos_id_color_primary"))
.objectFit(ImageFit.Contain)
.visibility(LanguageAndRegionModel.isSystemLanguage(item) ? Visibility.Visible : Visibility.None);
}

View File

@ -5,9 +5,6 @@
<path d="M18.4837572,13.0088835 C19.1529369,13.6780631 19.1668781,14.7543557 18.5255809,15.4404984 L18.4837572,15.4837572 L12.7840097,21.1835047 C12.4911165,21.4763979 12.0162428,21.4763979 11.7233496,21.1835047 C11.4409168,20.9010719 11.4308299,20.4494252 11.6930889,20.1549057 L11.7233496,20.1228445 L17.0695436,14.7766504 C17.3519764,14.4942177 17.3620633,14.0425709 17.0998043,13.7480514 L17.0695436,13.7159903 L6.72334957,3.36979618 C6.43045635,3.07690296 6.43045635,2.60202923 6.72334957,2.30913601 C7.00578232,2.02670326 7.45742909,2.01661638 7.75194855,2.27887536 L7.78400974,2.30913601 L18.4837572,13.0088835 Z" id="path-1"></path>
</defs>
<g id="Public/ic_public_ok" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<use id="形状结合" fill="#000000" fill-rule="nonzero" transform="translate(12.750000, 11.746320) rotate(-270.000000) translate(-12.750000, -11.746320) " xlink:href="#path-1"></use>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB