This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<DirectionalLayout | |
xmlns:ohos="http://schemas.huawei.com/res/ohos" | |
ohos:height="match_parent" | |
ohos:width="match_parent"> | |
<DependentLayout | |
ohos:id="$+id:root_container" | |
ohos:height="match_parent" | |
ohos:width="match_parent"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<DirectionalLayout | |
xmlns:ohos="http://schemas.huawei.com/res/ohos" | |
ohos:id="$+id:root_layout" | |
ohos:height="match_parent" | |
ohos:padding="30px" | |
ohos:width="match_parent" | |
ohos:orientation="vertical"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ohos.samples.camera; | |
import static ohos.media.camera.device.Camera.FrameConfigType.FRAME_CONFIG_PREVIEW; | |
import ohos.aafwk.ability.Ability; | |
import ohos.aafwk.content.Intent; | |
import ohos.agp.components.Component; | |
import ohos.agp.components.ComponentContainer; | |
import ohos.agp.components.DirectionalLayout; | |
import ohos.agp.components.Image; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ohos.samples.camera; | |
import static ohos.media.camera.device.Camera.FrameConfigType.FRAME_CONFIG_PICTURE; | |
import static ohos.media.camera.device.Camera.FrameConfigType.FRAME_CONFIG_PREVIEW; | |
import ohos.aafwk.ability.Ability; | |
import ohos.aafwk.content.Intent; | |
import ohos.agp.components.Component; | |
import ohos.agp.components.ComponentContainer; | |
import ohos.agp.components.DirectionalLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ohos.samples.camera; | |
import ohos.samples.camera.slice.MainAbilitySlice; | |
import ohos.aafwk.ability.Ability; | |
import ohos.aafwk.content.Intent; | |
import ohos.bundle.IBundleManager; | |
import ohos.security.SystemPermission; | |
import java.util.Arrays; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"reqPermissions": [ | |
{ | |
"name": "ohos.permission.CAMERA" | |
}, | |
{ | |
"name": "ohos.permission.WRITE_USER_STORAGE" | |
}, | |
{ | |
"name": "ohos.permission.READ_USER_STORAGE" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maven { | |
url 'https://repo.huaweicloud.com/repository/maven/' | |
} | |
maven { | |
url 'https://developer.huawei.com/repo/' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<DirectionalLayout | |
xmlns:ohos="http://schemas.huawei.com/res/ohos" | |
ohos:height="match_parent" | |
ohos:width="match_parent" | |
ohos:orientation="vertical"> | |
<Button | |
ohos:id="$+id:scan_button" | |
ohos:height="match_content" | |
ohos:width="match_parent" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.hms.wlannetworkmanagment.slice; | |
import ohos.bundle.IBundleManager; | |
import ohos.samples.wlan.ResourceTable; | |
import ohos.aafwk.ability.AbilitySlice; | |
import ohos.aafwk.content.Intent; | |
import ohos.agp.components.Component; | |
import ohos.agp.components.Text; | |
import ohos.agp.window.dialog.ToastDialog; | |
import ohos.hiviewdfx.HiLog; |
NewerOlder