首页 > 移动平台 > 详细

Android学习笔记:实现层级导航

时间:2020-06-05 00:21:20      阅读:57      评论:0      收藏:0      [点我收藏+]

层级导航示例

技术分享图片

层级导航案例

技术分享图片

  • 1、收下准备两个Activity的布局文件
    activity_main.xml
<?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=".MainActivity">
    <ImageView
        android:id="@+id/imageView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/button"
        android:scaleType="fitXY"
        android:layout_marginTop="10dp"/>
</RelativeLayout>

另外一个activity_friends.xml同上也是一张图片解决,毕竟图片大法好。

  • 2、

Android学习笔记:实现层级导航

原文:https://www.cnblogs.com/lzpq/p/13047120.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!