您好,欢迎来到纷纭教育。
搜索
您的当前位置:首页Android studio安卓跳转界面(导航栏返回箭头)(十分简单)

Android studio安卓跳转界面(导航栏返回箭头)(十分简单)

来源:纷纭教育

安卓界面跳转(只是实现效果,不讨论其他影响,望周知)

 

Android studio页面跳转导航栏返回箭头,是非常基础的操作,不讲解,不深究,只是实现效果

导航栏返回箭头,效果如下:

 

在AndroidManifest.xml下的application中添加

 

android:parentActivityName=".目标Activity"

 

代码如下:

<activity android:name=".Main2Activity"
    android:parentActivityName=".MainActivity"></activity>

全局代码:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.newland">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl&#

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- fenyunshixun.cn 版权所有 湘ICP备2023022495号-9

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务