整个App都有侧拉效果 ---布局
来源:互联网 发布:知乎 禁赛 游泳 编辑:程序博客网 时间:2024/06/14 10:10
activity_main的布局
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.mycela.MainActivity">
<android.support.v4.widget.DrawerLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/dl"
>
<LinearLayout
android:layout_gravity="left"
android:layout_width="300dp"
android:orientation="vertical"
android:background="#2d7bda"
android:layout_height="match_parent">
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@mipmap/ic_launcher"/>
<TextView
android:id="@+id/tv0"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="韩海"/>
<TextView
android:id="@+id/tv01"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="月考练习"/>
<TextView
android:id="@+id/tv1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="练习第一次"/>
<TextView
android:id="@+id/tv2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tv1"
android:text="练习第二次"/>
<TextView
android:id="@+id/tv3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tv2"
android:text="练习第三次"/>
<TextView
android:id="@+id/tv4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tv3"
android:text="练习第四次"/>
<TextView
android:id="@+id/tv5"
android:layout_width="match_parent"
android:layout_below="@id/tv4"
android:layout_height="wrap_content"
android:text="练习第五次"/>
</LinearLayout>
阅读全文
0 0
- 整个App都有侧拉效果 ---布局
- Android整个布局缩放
- Android 自定义ViewGroup实现整个Item布局竖直跑马灯效果
- android 退出整个APP
- android LinearLayout 实现左右布局 app常见效果
- 仿天猫App实现商品列表布局切换效果
- 巧用tab组件实现APP的布局效果
- Android杀死整个APP方法
- Android App 退出整个应用
- iOS App的整个生命周期
- 反编译简书app和小红书app滑动效果sticky粘性头布局的实现CoordinatorLayout+behavior
- 面板布局中的控件占据整个面板
- [小代码]调整整个布局的字体
- ScrollView子布局填满整个屏幕
- ScrollView中软键盘顶上整个布局
- 整个布局的下拉刷新适配
- android一键退出整个APP
- app整个应用生命周期管理ActivityLifecycleCallbacks,registerActivityLifecycleCallbacks
- 大连理工大学软件学院数据库复习——前几章一些概念(课本《数据库系统概念第6版》)
- gitlab的安装和使用
- 正则表达式,String的分割功能
- 习题5 5.2
- 习题6.3
- 整个App都有侧拉效果 ---布局
- centos7.2 mysql数据库同步时数据一致性的配置优化
- [LeetCode]Decode Ways II
- 多重栈的实现
- 微信的多客服功能放在自定义菜单里面 这个功能如何实现?
- PHP使用header设置浏览器缓存
- 中国第二代支付清算体系
- 【软工视频】需求分析
- 知识整理——Servlet