本文实例为大家分享了ListView实现网上订餐首页的具体代码,供大家参考,具体内容如下
效果图
布局文件
android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"tools:context=".SimpleAdapterActivity">
android:layout_width="match_parent" android:layout_height="100dp" android:layout_margin="10dp">
title.xml
android:layout_width="match_parent"android:layout_height="wrap_content"android:background="@drawable/title_style">
设置福利图标的样式
android:layout_width="match_parent"android:layout_height="match_parent">
点击listview后跳转的页面布局
android:layout_width="match_parent"android:layout_height="400dp"xmlns:tools="http://schemas.android.com/tools"android:orientation="vertical"android:layout_margin="5dp"tools:context=".FirstActivity">
android:layout_width="match_parent"android:layout_height="100dp"android:layout_margin="10dp"> /> android:layout_width="match_parent"android:layout_height="100dp"android:layout_margin="10dp"> />
java文件
public class SimpleAdapterActivity extends AppCompatActivity { private ListView listView; private List
public class FirstActivity extends AppCompatActivity { private Button btnjoin; private ListView listView; private List
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。
- android中删除启动界面的时候弹出的显示标题栏
- 设置无标题&设置不显示状态栏
- Android去掉状态栏和标题栏的两种方式
- android标题栏的选择与使用,AppCompatActivity!
- android颜色渐变的顶部标题栏
- Android Actionbar自定义标题栏
- android4.0自定义标题报错 -----断点记录
- Android UI 之自定义标题栏 + 沉浸式状态栏
- 安卓隐藏标题栏状态栏 ,实现全屏效果
随机推荐
-
Android(安卓)# 基础汇总
-
android shape
-
android相对布局
-
保证editView大小不变防止输入过多变形以
-
android sms发送、接收及格式
-
Android(安卓)Selector 与 Shape 基本用
-
Android(安卓)layout属性大全
-
Android(安卓)layout布局属性、标签属性
-
android中的tab小结
-
ADT版本更新失败,降级