没有合适的资源?快使用搜索试试~ 我知道了~
首页Android studio listview实现列表数据显示 数据循环显示效果
Android studio listview实现列表数据显示 数据循环显示效果
1.4k 浏览量
更新于2023-05-27
评论 1
收藏 41KB PDF 举报
主要介绍了Android studio listview实现列表数据显示 数据循环显示功能,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下
资源详情
资源评论
资源推荐

Android studio listview实现列表数据显示实现列表数据显示 数据循环显示效果数据循环显示效果
主要介绍了Android studio listview实现列表数据显示 数据循环显示功能,本文通过实例代码给大家介绍的非常
详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下
Android studio listview实现列表数据显示
样式不好看!想要好看的样式可以私我,我加!
item.xml
<?xml version="1.0" encoding="utf-8"?>
<!--item -->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!--姓名 -->
<TextView
android:layout_width="130dp"
android:layout_height="wrap_content"
android:id="@+id/name"
/>
<!-- 性别-->
<TextView
android:layout_width="150dp"
android:layout_height="wrap_content"
android:id="@+id/sex"
/>
</LinearLayout>
main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<!-- 标题 -->
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="130dp"
android:layout_height="wrap_content"
android:text="姓名"
/>
<TextView
android:layout_width="150dp"
android:layout_height="wrap_content"
android:text="姓名"
/>
</LinearLayout>
<!-- ListView控件 -->
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/listView"
/>
</LinearLayout>
MainActivity .java
public class MainActivity extends Activity {
List<String> list;
List<String> list1;


















weixin_38664427
- 粉丝: 3
- 资源: 926
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
安全验证
文档复制为VIP权益,开通VIP直接复制

评论0