「Harmony OS」「JAVA UI」鸿蒙应用如何集成OKHttp网络三方库( 三 )

xml 代码<pre class="prettyprint hljs vim" style="padding: 0.5em; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; color: rgb(68, 68, 68); border-radius: 4px; display: block; margin: 0px 0px 1.5em; font-size: 14px; line-height: 1.5em; word-break: break-all; overflow-wrap: break-word; white-space: pre; background-color: rgb(246, 246, 246); border: none; overflow-x: auto; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><?xml version="1.0" encoding="utf-8"?><DirectionalLayoutxmlns:ohos="http://schemas.huawei.com/res/ohos"ohos:height="match_parent"ohos:width="match_parent"ohos:alignment="horizontal_center"ohos:orientation="vertical"><Textohos:id="$+id:text_type_get"ohos:height="100vp"ohos:width="match_parent"ohos:text_alignment="center"ohos:layout_alignment="horizontal_center"ohos:text="Get请求"ohos:text_size="40vp"<Textohos:id="$+id:text_type_Post"ohos:height="100vp"ohos:text_alignment="center"ohos:width="match_parent"ohos:background_element="#ed6262"ohos:layout_alignment="horizontal_center"ohos:text="Post请求"ohos:text_size="40vp"<Textohos:id="$+id:text_result"ohos:height="match_parent"ohos:multiple_lines="true"ohos:text_alignment="center"ohos:width="match_parent"ohos:layout_alignment="horizontal_center"ohos:text="显示结果"ohos:text_size="40vp"</DirectionalLayout></pre>运行效果如下

「Harmony OS」「JAVA UI」鸿蒙应用如何集成OKHttp网络三方库

文章插图
 

【「Harmony OS」「JAVA UI」鸿蒙应用如何集成OKHttp网络三方库】


推荐阅读