Skip to content

Commit

Permalink
[FEAT] 인텐트로 WriteActivity 전환
Browse files Browse the repository at this point in the history
  • Loading branch information
2xHjin committed Jun 10, 2023
1 parent d77f46c commit c40a33e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/src/main/java/com/nbit/Idear/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.nbit.Idear.home.ProxyWriteAdapter
import com.nbit.Idear.home.ProxyWriteData
import com.nbit.Idear.home.WriteSubData
import com.nbit.Idear.mypage.MyPageActivity
import com.nbit.Idear.write.WriteActivity

// 메인 페이지
class MainActivity : AppCompatActivity() {
Expand Down Expand Up @@ -100,5 +101,11 @@ class MainActivity : AppCompatActivity() {
mainBinding.mainRecyclerView.layoutManager=LinearLayoutManager(this)
val adapter=ProxyWriteAdapter(dataDataList)
mainBinding.mainRecyclerView.adapter=adapter

mainBinding.fab.setOnClickListener {

val intent = Intent(this, WriteActivity::class.java)
startActivity(intent)
}
}
}

0 comments on commit c40a33e

Please sign in to comment.