Skip to content

Instantly share code, notes, and snippets.

@lokeshsuryan
Created September 24, 2021 05:43
Show Gist options
  • Save lokeshsuryan/bbee7d957d9cade8a7c57960bd37c171 to your computer and use it in GitHub Desktop.
Save lokeshsuryan/bbee7d957d9cade8a7c57960bd37c171 to your computer and use it in GitHub Desktop.
<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"
ohos:background_element="$graphic:button_background"
ohos:left_margin="24vp"
ohos:padding="10vp"
ohos:right_margin="24vp"
ohos:text="$string:scan"
ohos:text_alignment="center"
ohos:text_size="16fp"
ohos:top_margin="20vp"/>
<Button
ohos:id="$+id:info_button"
ohos:height="match_content"
ohos:width="match_parent"
ohos:background_element="$graphic:button_background"
ohos:left_margin="24vp"
ohos:padding="10vp"
ohos:right_margin="24vp"
ohos:text="$string:get_connected_info"
ohos:text_alignment="center"
ohos:text_size="16fp"
ohos:top_margin="20vp"/>
<Button
ohos:id="$+id:countryCode_button"
ohos:height="match_content"
ohos:width="match_parent"
ohos:background_element="$graphic:button_background"
ohos:left_margin="24vp"
ohos:padding="10vp"
ohos:right_margin="24vp"
ohos:text="$string:get_country_code"
ohos:text_alignment="center"
ohos:text_size="16fp"
ohos:top_margin="20vp"/>
<Button
ohos:id="$+id:support_feature_button"
ohos:height="match_content"
ohos:width="match_parent"
ohos:background_element="$graphic:button_background"
ohos:left_margin="24vp"
ohos:padding="10vp"
ohos:right_margin="24vp"
ohos:text="$string:get_support_feature"
ohos:text_alignment="center"
ohos:text_size="16fp"
ohos:top_margin="20vp"/>
<Text
ohos:id="$+id:log_text"
ohos:height="250vp"
ohos:width="match_parent"
ohos:background_element="$graphic:text_background"
ohos:left_margin="24vp"
ohos:multiple_lines="true"
ohos:padding="10vp"
ohos:right_margin="24vp"
ohos:scrollable="true"
ohos:text_alignment="top|left"
ohos:text_size="16fp"
ohos:top_margin="10vp"/>
</DirectionalLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment