安卓界面跳转(只是实现效果,不讨论其他影响,望周知)
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&#