Verified Commit 2989f194 authored by Dennis Rassmann's avatar Dennis Rassmann
Browse files

add quick activity nav test cases


Signed-off-by: Dennis Rassmann's avatarDennis Rassmann <showp1984@gmail.com>
parent 20c10e90
......@@ -19,6 +19,13 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<activity
android:name="com.example.myapplication.testActivity"
android:exported="true" />
<activity
android:name="com.example.myapplication.testActivity2"
android:exported="true" />
</application>
</manifest>
\ No newline at end of file
package com.example.myapplication
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class testActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_test)
}
}
package com.example.myapplication
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.navigation.navArgs
class testActivity2 : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_test2)
}
}
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".testActivity">
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView1"
tools:layout_editor_absoluteX="154dp"
tools:layout_editor_absoluteY="167dp" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".testActivity2">
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView2"
tools:layout_editor_absoluteX="112dp"
tools:layout_editor_absoluteY="269dp" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -51,4 +51,22 @@
android:id="@+id/action_fourFragment_to_oneFragment"
app:destination="@id/oneFragment" />
</fragment>
<activity
android:id="@+id/testActivity2"
android:name="com.example.myapplication.testActivity"
android:label="testActivity"
tools:layout="@layout/activity_test" >
<deepLink
android:id="@+id/deepLink4"
app:uri="testapp://test1/1" />
</activity>
<activity
android:id="@+id/testActivity22"
android:name="com.example.myapplication.testActivity2"
android:label="activity_test2"
tools:layout="@layout/activity_test2" >
<deepLink
android:id="@+id/deepLink3"
app:uri="testapp://test2/2/{name}" />
</activity>
</navigation>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment