Skip to content
Snippets Groups Projects
Commit 857a4516 authored by Taras's avatar Taras
Browse files

Setup base navigation

parent fcb0f1fc
No related branches found
No related tags found
No related merge requests found
package com.futo.circles.ui.sign_up
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import com.futo.circles.R
class SignUpFragment : Fragment(R.layout.sign_up_fragment) {
companion object {
fun newInstance() = SignUpFragment()
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
}
}
\ 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:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Sign Up"
android:textSize="36sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<navigation 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"
app:startDestination="@id/logInFragment"
android:id="@+id/nav_graph_log_in">
<fragment
android:id="@+id/logInFragment"
android:name="com.futo.circles.ui.sign_in.LogInFragment"
android:label="Log In"
tools:layout="@layout/log_in_fragment" >
<action
android:id="@+id/action_logInFragment_to_signUpFragment"
app:destination="@id/signUpFragment" />
</fragment>
<fragment
android:id="@+id/signUpFragment"
android:name="com.futo.circles.ui.sign_up.SignUpFragment"
android:label="Log In"
tools:layout="@layout/sign_up_fragment" />
</navigation>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment