title: Text(‘信息’),
),
BottomNavigationBarItem(
icon: Icon(Icons.contacts),
title: Text(‘通讯录’),
),
BottomNavigationBarItem(
icon: Icon(Icons.near_me),
title: Text(‘发现’),
),
BottomNavigationBarItem(
icon: Icon(Icons.account_circle),
title: Text(‘我’),
),
],
currentIndex: _currentIndex,
type: BottomNavigationBarType.fixed,//设置位置固定
onTap: (index) {
setState(() {//控制刷新
_currentIndex = index;
});
},
),
drawer: _buildDrawer(),
);
}
//Drawer方法抽取出来 Ctrl + Alt + M
Drawer _buildDrawer() {
return Drawer(//左边的Drawer抽屉
// elevation: 0.0,
child: ListView(
children: [
UserAccountsDrawerHeader(
currentAccountPicture: CircleAvatar(
backgroundImage: NetworkImage(‘https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png’),
),
accountName: Text(‘demo’),
accountEmail: Text(‘augfun@outlook.com’),
otherAccountsPictures: [
Icon(Icons.camera_alt),
],
decoration: BoxDecoration(//装饰
image: DecorationImage(
image: AssetImage(‘assets/images/bg1.png’),//设置背景图片
fit: BoxFit.fill,//平铺图片
),
),
),
ListTile(
leading: Icon(Icons.payment),
title: Text(‘My Account’),
),
ListTile(
leading: Icon(Icons.payment),
title: Text(‘My Account’),
),
ListTile(
leading: Icon(Icons.payment),
title: Text(‘My Account’),
),
AboutListTile(
icon: Icon(Icons.error),
child: Text(‘About’),
applicationName: ‘Text demo’,
applicationVersion: ‘1.0’,
),
],
),
);
}
}
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数初中级安卓工程师,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年最新Android移动开发全套学习资料》送给大家,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频
如果你觉得这些内容对你有帮助,可以添加下面V无偿领取!(备注Android)
最后
由于题目很多整理答案的工作量太大,所以仅限于提供知识点,详细的很多问题和参考答案我都整理成了 PDF文件,需要的小伙伴可以私信我【面试】免费领取或者点击GitHub免费获取!
,需要的小伙伴可以私信我【面试】免费领取或者点击GitHub免费获取!
[外链图片转存中…(img-W5afLjhP-1710659254498)]
[外链图片转存中…(img-RYhG0YHg-1710659254499)]