首页 > TAG信息列表 > ListContainer

HarmonyOS ListContainer 图文并排

1.两个工具类:DateUtils  + HttpHelper 2.两个依赖包:okhttp3  +  gson 3.装载图片类:Picasso,本地+调试模式,都不能访问本地的网络,运行需要注释装载图片,因为是华为虚拟机   解决方式:内网穿透技术  ,比如:Ngrok  ,教程:2021最新HarmonyOS鸿蒙2.0系统应用开发|基础入门教程到实战—更

HarmonyOS ListContainer 读取网络json数组

1.鸿蒙权限 2.引入包 3.具体案例   一 网络权限 config.json修改节点:deviceConfig  +  reqPermissions "deviceConfig": { "default": { "network": { "//": "鸿蒙的默认是 Https 访问模式,如果您的请求网址是 Http 开头的", "clea

HarmonyOS ListContainer基础用法

package com.example.myapplication3.Data; public class City { private int Id; private String Name; public City() { } public City(int id, String name) { Id = id; Name = name; } public int getId() { ret

【HarmonyOS鸿蒙应用开发】ListContainer简单新闻案例模拟

【码云】Gitee仓库地址:https://gitee.com/JIuyang2284/ListContainerTest Layout 1.布局文件:ability_main <?xml version="1.0" encoding="utf-8"?> <DirectionalLayout xmlns:ohos="http://schemas.huawei.com/res/ohos" ohos:height=&

自学鸿蒙应用开发(16)- ListContainer

本文介绍在鸿蒙应用中ListContainer组件的基本用法。 ListContainer 准备ListContainer页面布局 在layout目录下的xml文件中创建ListContainer布局,将其命名为page_listcontainer.xml。 <?xml version="1.0" encoding="utf-8"?><ListContainer xmlns:ohos="http://schemas.

2021-05-26

鸿蒙组件-自定义listContainer 遇到的问题 前言 鸿蒙的ListContainer是一个类似recyclerview的组件,提供在屏幕上向上或向下滚动时显示的列表容器。这个类继承自ComponentContainer,使用BaseItemProvider或RecycleItemProvider来存储对象。   正文 最近在移植一个安卓的三方库---

鸿蒙OS前端开发入门指南——ListContainer教程

目录: 1、布局模板 2、创建数据提供者实体类并且继承 RecycleItemProvider 实现其方法 3、RecycleItemProvider是提供数据与组件关联器来的方法 4、创建数据实体类 5、创建数据模板 6、获取listContainer 并且绑定数据模板 当前教程项目地址 https://gitee.com/blueskyliu/hongmeng

ListContainer教程

主文档地址 https://blog.csdn.net/BLUESKYHOST/article/details/111411001 ListContainer 当前教程项目地址 https://gitee.com/blueskyliu/hongmeng-os-actual-combat.git 提供在屏幕上向上或向下滚动时显示的列表容器。这个类继承自ComponentContainer。它使用BaseItemPr