diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..aa724b7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+*.iml
+.gradle
+/local.properties
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+.cxx
+local.properties
diff --git a/app/.gitignore b/app/.gitignore
new file mode 100644
index 0000000..42afabf
--- /dev/null
+++ b/app/.gitignore
@@ -0,0 +1 @@
+/build
\ No newline at end of file
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
new file mode 100644
index 0000000..4df02b2
--- /dev/null
+++ b/app/build.gradle.kts
@@ -0,0 +1,52 @@
+plugins {
+ alias(libs.plugins.androidApplication)
+ alias(libs.plugins.jetbrainsKotlinAndroid)
+}
+
+
+android {
+ namespace = "com.example.accountbook"
+ compileSdk = 34
+
+ defaultConfig {
+ applicationId = "com.example.accountbook"
+ minSdk = 28
+ targetSdk = 34
+ versionCode = 1
+ versionName = "1.0"
+
+ testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ buildTypes {
+ release {
+ isMinifyEnabled = false
+ proguardFiles(
+ getDefaultProguardFile("proguard-android-optimize.txt"),
+ "proguard-rules.pro"
+ )
+ }
+ }
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
+ }
+ kotlinOptions {
+ jvmTarget = "1.8"
+ }
+ buildFeatures {
+ viewBinding = true
+ }
+}
+
+dependencies {
+ implementation(libs.androidx.core.ktx)
+ implementation(libs.androidx.appcompat)
+ implementation(libs.material)
+ implementation(libs.androidx.constraintlayout)
+ implementation(libs.androidx.navigation.fragment.ktx)
+ implementation(libs.androidx.navigation.ui.ktx)
+ testImplementation(libs.junit)
+ androidTestImplementation(libs.androidx.junit)
+ androidTestImplementation(libs.androidx.espresso.core)
+}
\ No newline at end of file
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 0000000..481bb43
--- /dev/null
+++ b/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/app/src/androidTest/java/com/example/accountbook/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/example/accountbook/ExampleInstrumentedTest.kt
new file mode 100644
index 0000000..452a8ab
--- /dev/null
+++ b/app/src/androidTest/java/com/example/accountbook/ExampleInstrumentedTest.kt
@@ -0,0 +1,24 @@
+package com.example.accountbook
+
+import androidx.test.platform.app.InstrumentationRegistry
+import androidx.test.ext.junit.runners.AndroidJUnit4
+
+import org.junit.Test
+import org.junit.runner.RunWith
+
+import org.junit.Assert.*
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * See [testing documentation](http://d.android.com/tools/testing).
+ */
+@RunWith(AndroidJUnit4::class)
+class ExampleInstrumentedTest {
+ @Test
+ fun useAppContext() {
+ // Context of the app under test.
+ val appContext = InstrumentationRegistry.getInstrumentation().targetContext
+ assertEquals("com.example.accountbook", appContext.packageName)
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..55d27ca
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/FirstFragment.kt b/app/src/main/java/com/example/accountbook/FirstFragment.kt
new file mode 100644
index 0000000..7e3f24e
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/FirstFragment.kt
@@ -0,0 +1,44 @@
+package com.example.accountbook
+
+import android.os.Bundle
+import androidx.fragment.app.Fragment
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.navigation.fragment.findNavController
+import com.example.accountbook.databinding.FragmentFirstBinding
+
+/**
+ * A simple [Fragment] subclass as the default destination in the navigation.
+ */
+class FirstFragment : Fragment() {
+
+ private var _binding: FragmentFirstBinding? = null
+
+ // This property is only valid between onCreateView and
+ // onDestroyView.
+ private val binding get() = _binding!!
+
+ override fun onCreateView(
+ inflater: LayoutInflater, container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+
+ _binding = FragmentFirstBinding.inflate(inflater, container, false)
+ return binding.root
+
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ super.onViewCreated(view, savedInstanceState)
+
+// binding.buttonFirst.setOnClickListener {
+// findNavController().navigate(R.id.action_FirstFragment_to_SecondFragment)
+// }
+ }
+
+ override fun onDestroyView() {
+ super.onDestroyView()
+ _binding = null
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/MainActivity.kt b/app/src/main/java/com/example/accountbook/MainActivity.kt
new file mode 100644
index 0000000..d179de7
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/MainActivity.kt
@@ -0,0 +1,63 @@
+package com.example.accountbook
+
+import android.content.Intent
+import android.os.Bundle
+import com.google.android.material.snackbar.Snackbar
+import androidx.appcompat.app.AppCompatActivity
+import androidx.navigation.findNavController
+import androidx.navigation.ui.AppBarConfiguration
+import androidx.navigation.ui.navigateUp
+import androidx.navigation.ui.setupActionBarWithNavController
+import android.view.Menu
+import android.view.MenuItem
+import com.example.accountbook.activity.ActivityCalendar
+import com.example.accountbook.databinding.ActivityMainBinding
+
+class MainActivity : AppCompatActivity() {
+
+ private lateinit var appBarConfiguration: AppBarConfiguration
+ private lateinit var binding: ActivityMainBinding
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+
+ binding = ActivityMainBinding.inflate(layoutInflater)
+ setContentView(binding.root)
+
+ setSupportActionBar(binding.toolbar)
+
+ val navController = findNavController(R.id.nav_host_fragment_content_main)
+ appBarConfiguration = AppBarConfiguration(navController.graph)
+ setupActionBarWithNavController(navController, appBarConfiguration)
+
+ binding.fab.setOnClickListener { view ->
+ Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
+ .setAction("Action", null)
+ .setAnchorView(R.id.fab).show()
+ }
+
+ startActivity(Intent(applicationContext, ActivityCalendar::class.java))
+ }
+
+ override fun onCreateOptionsMenu(menu: Menu): Boolean {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ menuInflater.inflate(R.menu.menu_main, menu)
+ return true
+ }
+
+ override fun onOptionsItemSelected(item: MenuItem): Boolean {
+ // Handle action bar item clicks here. The action bar will
+ // automatically handle clicks on the Home/Up button, so long
+ // as you specify a parent activity in AndroidManifest.xml.
+ return when (item.itemId) {
+ R.id.action_settings -> true
+ else -> super.onOptionsItemSelected(item)
+ }
+ }
+
+ override fun onSupportNavigateUp(): Boolean {
+ val navController = findNavController(R.id.nav_host_fragment_content_main)
+ return navController.navigateUp(appBarConfiguration)
+ || super.onSupportNavigateUp()
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/SecondFragment.kt b/app/src/main/java/com/example/accountbook/SecondFragment.kt
new file mode 100644
index 0000000..4dbd3d7
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/SecondFragment.kt
@@ -0,0 +1,44 @@
+package com.example.accountbook
+
+import android.os.Bundle
+import androidx.fragment.app.Fragment
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.navigation.fragment.findNavController
+import com.example.accountbook.databinding.FragmentSecondBinding
+
+/**
+ * A simple [Fragment] subclass as the second destination in the navigation.
+ */
+class SecondFragment : Fragment() {
+
+ private var _binding: FragmentSecondBinding? = null
+
+ // This property is only valid between onCreateView and
+ // onDestroyView.
+ private val binding get() = _binding!!
+
+ override fun onCreateView(
+ inflater: LayoutInflater, container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View {
+
+ _binding = FragmentSecondBinding.inflate(inflater, container, false)
+ return binding.root
+
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ super.onViewCreated(view, savedInstanceState)
+
+ binding.buttonSecond.setOnClickListener {
+ findNavController().navigate(R.id.action_SecondFragment_to_FirstFragment)
+ }
+ }
+
+ override fun onDestroyView() {
+ super.onDestroyView()
+ _binding = null
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/activity/ActivityCalendar.kt b/app/src/main/java/com/example/accountbook/activity/ActivityCalendar.kt
new file mode 100644
index 0000000..efa49d5
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/activity/ActivityCalendar.kt
@@ -0,0 +1,49 @@
+package com.example.accountbook.activity
+
+import android.graphics.Color
+import android.os.Bundle
+import android.util.Log
+import android.view.LayoutInflater
+import android.view.MotionEvent
+import android.view.View
+import android.view.ViewGroup
+import android.widget.BaseAdapter
+import android.widget.TextView
+import androidx.appcompat.app.AppCompatActivity
+import androidx.fragment.app.Fragment
+import com.example.accountbook.R
+import com.example.accountbook.calendar.CalendarAdapter
+import com.example.accountbook.calendar.CalendarBean
+import com.example.accountbook.calendar.CalendarDateView
+import com.example.accountbook.databinding.ActivityCalendarBinding
+import com.example.accountbook.fragment.FragmentCalendar
+import com.example.accountbook.fragment.FragmentTable
+
+class ActivityCalendar: AppCompatActivity(){
+ private lateinit var bind: ActivityCalendarBinding
+ val fragmentCalendar: FragmentCalendar by lazy { FragmentCalendar() }
+ val fragmentTable: FragmentTable by lazy { FragmentTable() }
+
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ // binding view
+ bind = ActivityCalendarBinding.inflate(this.layoutInflater)
+ // setting content view
+ setContentView(bind.root)
+ bind.chkShift.setOnClickListener() { _ ->
+ // 화면 전환
+ supportFragmentManager.beginTransaction()
+ .replace(
+ R.id.fragment_box,
+ if (bind.chkShift.isChecked) fragmentTable else fragmentCalendar
+ )
+ .commit()
+ }
+
+ supportFragmentManager.beginTransaction()
+ .replace(
+ R.id.fragment_box, fragmentCalendar
+ )
+ .commit()
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/activity/ActivityWriter.kt b/app/src/main/java/com/example/accountbook/activity/ActivityWriter.kt
new file mode 100644
index 0000000..8df5617
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/activity/ActivityWriter.kt
@@ -0,0 +1,20 @@
+package com.example.accountbook.activity
+
+import android.os.Bundle
+import android.widget.ArrayAdapter
+import androidx.appcompat.app.AppCompatActivity
+import com.example.accountbook.R
+import com.example.accountbook.databinding.ActivityWriterBinding
+
+class ActivityWriter: AppCompatActivity() {
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ val bind = ActivityWriterBinding.inflate(this.layoutInflater)
+ setContentView(bind.root)
+ val adapter = ArrayAdapter(this, R.layout.item_spinner_writer_category, arrayListOf("기타","식비","통신비","급여"))
+ bind.spinnerWriteCategory.adapter = adapter
+ bind.btnWriteClose.setOnClickListener{
+ this.finish()
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/adapter/AdapterTable.kt b/app/src/main/java/com/example/accountbook/adapter/AdapterTable.kt
new file mode 100644
index 0000000..c2a3042
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/adapter/AdapterTable.kt
@@ -0,0 +1,27 @@
+package com.example.accountbook.adapter
+
+import android.content.Context
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import android.widget.ArrayAdapter
+import com.example.accountbook.R
+import com.example.accountbook.databinding.ItemTableBinding
+
+class AdapterTable(context: Context, private val data: Array):
+ ArrayAdapter(context, R.layout.item_table, data) {
+ private lateinit var bind:ItemTableBinding
+
+ override fun getView(position: Int, convertView: View?, parent: ViewGroup): View {
+ var rView: View? = convertView
+ if (rView == null) {
+ // 최초 생성
+ bind = ItemTableBinding.inflate(LayoutInflater.from(parent.context), parent, false)
+ }
+ bind.textDate.text = "10/25"
+ bind.textAmount.text = "10,000"
+ bind.textMemo.text = "커피"
+ bind.textCategory.text = "기타"
+ return bind.root
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/calendar/CalendarAdapter.kt b/app/src/main/java/com/example/accountbook/calendar/CalendarAdapter.kt
new file mode 100644
index 0000000..69212a3
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/calendar/CalendarAdapter.kt
@@ -0,0 +1,10 @@
+package com.example.accountbook.calendar
+
+import android.view.View
+import android.view.ViewGroup
+
+
+interface CalendarAdapter {
+ fun getView(convertView: View?, parentView: ViewGroup?, bean: CalendarBean?): View
+ fun hasChildView() : Boolean
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/calendar/CalendarBean.java b/app/src/main/java/com/example/accountbook/calendar/CalendarBean.java
new file mode 100644
index 0000000..f231d78
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/calendar/CalendarBean.java
@@ -0,0 +1,54 @@
+package com.example.accountbook.calendar;
+
+public class CalendarBean {
+ public int year;
+ public int month;
+ public int day;
+ public int week;
+
+ //-1,0,1
+ public int monthFlag;
+
+ //显示
+
+ public CalendarBean(int year, int month, int day) {
+ this.year = year;
+ this.month = month;
+ this.day = day;
+ }
+
+ public String getDisplayWeek(){
+ String s="";
+ switch(week){
+ case 1:
+ s="星期日";
+ break;
+ case 2:
+ s="星期一";
+ break;
+ case 3:
+ s="星期二";
+ break;
+ case 4:
+ s="星期三";
+ break;
+ case 5:
+ s="星期四";
+ break;
+ case 6:
+ s="星期五";
+ break;
+ case 7:
+ s="星期六";
+ break;
+
+ }
+ return s ;
+ }
+
+ @Override
+ public String toString() {
+ String s=year+"/"+month+"/"+day;
+ return s;
+ }
+}
diff --git a/app/src/main/java/com/example/accountbook/calendar/CalendarDateView.kt b/app/src/main/java/com/example/accountbook/calendar/CalendarDateView.kt
new file mode 100644
index 0000000..670caa4
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/calendar/CalendarDateView.kt
@@ -0,0 +1,138 @@
+package com.example.accountbook.calendar
+
+import android.content.Context
+import android.util.AttributeSet
+import android.util.Log
+import android.view.View
+import android.view.ViewGroup
+import androidx.viewpager.widget.PagerAdapter
+import androidx.viewpager.widget.ViewPager
+import com.example.accountbook.R
+import com.example.accountbook.calendar.CalendarFactory.getMonthOfDayList
+import java.util.Date
+import java.util.LinkedList
+
+
+class CalendarDateView(context: Context, attrs: AttributeSet?):
+ ViewPager(context, attrs), CalendarTopView {
+ var views = HashMap()
+ private var mCaledarLayoutChangeListener: CalendarTopViewChangeListener? = null
+ private var onItemClickListener: CalendarView.OnItemClickListener? = null
+ private val cache: LinkedList = LinkedList()
+ private val MAXCOUNT = 6
+ private var row = 6
+ private var mAdapter: CalendarAdapter? = null
+ override var itemHeight = 0
+ private set
+
+
+ fun setAdapter(adapter: CalendarAdapter?) {
+ mAdapter = adapter
+ initialize()
+ initData()
+ }
+
+ fun setOnItemClickListener(onItemClickListener: CalendarView.OnItemClickListener?) {
+ this.onItemClickListener = onItemClickListener
+ }
+
+ init {
+ val a = context.obtainStyledAttributes(attrs, R.styleable.CalendarDateView)
+ row = a.getInteger(R.styleable.CalendarDateView_cbd_calendar_row, 6)
+ a.recycle()
+
+ }
+
+ override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
+ super.onMeasure(widthMeasureSpec, heightMeasureSpec)
+// var calendarHeight = 0
+ if (adapter != null) {
+ (getChildAt(0) as CalendarView)?.let {
+// calendarHeight = it.measuredHeight
+ itemHeight = it.itemHeight
+ }
+ }
+ setMeasuredDimension(
+ widthMeasureSpec,
+ MeasureSpec.makeMeasureSpec(heightMeasureSpec, MeasureSpec.EXACTLY)
+ )
+ }
+
+ private fun initialize() {
+ val dateArr: IntArray = CalendarUtil.getYMD(Date())
+ setAdapter(object : PagerAdapter() {
+ override fun getCount(): Int {
+// Log.i(this@CalendarDateView::class.java.simpleName, "container >>> setAdapter getCount")
+ return Int.MAX_VALUE
+ }
+
+ override fun isViewFromObject(view: View, `object`: Any): Boolean {
+ return view === `object`
+ }
+
+ override fun instantiateItem(container: ViewGroup, position: Int): Any {
+
+ Log.i(this@CalendarDateView::class.java.simpleName, "container >>> ${container} position >> ${position}")
+ val view: CalendarView = if (!cache.isEmpty()) {
+ cache.removeFirst()!!
+ } else {
+ CalendarView(container.context, row)
+ }
+ view.setOnItemClickListener(onItemClickListener)
+ view.setAdapter(mAdapter)
+
+ container.addView(view)
+ views[position] = view
+ view.apply {
+ setData(
+ getMonthOfDayList(
+ dateArr[0],
+ dateArr[1] + position - Int.MAX_VALUE / 2
+ ), position == Int.MAX_VALUE / 2
+ )
+ }
+ return view
+ }
+
+ override fun destroyItem(container: ViewGroup, position: Int, `object`: Any) {
+ container.removeView(`object` as View)
+ cache.addLast(`object` as CalendarView)
+ views.remove(position)
+ }
+ })
+ addOnPageChangeListener(object: SimpleOnPageChangeListener() {
+ override fun onPageSelected(position: Int) {
+ super.onPageSelected(position)
+ onItemClickListener?.let{
+ views[position]?.let {v ->
+ val obs: Array = v.select
+ it.onItemClick(
+ obs[0] as View,
+ obs[1] as Int,
+ obs[2] as CalendarBean
+ )
+ }
+ }
+ mCaledarLayoutChangeListener?.onLayoutChange(this@CalendarDateView)
+ }
+ })
+ }
+
+ private fun initData() {
+ setCurrentItem(Int.MAX_VALUE / 2, false)
+ adapter!!.notifyDataSetChanged()
+ }
+
+ override val currentSelectPositon: IntArray
+ get() {
+ var view = views[currentItem]
+ if (view == null) {
+ view = getChildAt(0) as? CalendarView
+ }
+ return view?.getSelectPosition() ?: IntArray(4)
+ }
+
+ override fun setCalendarTopViewChangeListener(listener: CalendarTopViewChangeListener?) {
+ mCaledarLayoutChangeListener = listener
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/calendar/CalendarFactory.kt b/app/src/main/java/com/example/accountbook/calendar/CalendarFactory.kt
new file mode 100644
index 0000000..ac15d4c
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/calendar/CalendarFactory.kt
@@ -0,0 +1,66 @@
+package com.example.accountbook.calendar
+
+import android.util.Log
+import com.example.accountbook.calendar.CalendarUtil.getDayOfWeek
+import java.util.Calendar
+
+
+object CalendarFactory {
+ private val cache = HashMap>()
+
+ fun getMonthOfDayList(y: Int, m: Int): List {
+ Log.e("TIME CHECK" , "fun getMonthOfDayList Start")
+ val key = y.toString() + "" + m
+ if (cache.containsKey(key)) {
+ val list = cache[key]
+ if (list == null) {
+ cache.remove(key)
+ } else {
+ return list
+ }
+ }
+ val list: MutableList = ArrayList()
+ cache[key] = list
+
+ val fweek: Int = getDayOfWeek(y, m, 1)
+ val total: Int = CalendarUtil.getDayOfMaonth(y, m)
+
+ for (i in fweek - 1 downTo 1) {
+ val bean = getCalendarBean(y, m, 1 - i)
+ bean.monthFlag = -1
+ list.add(bean)
+ }
+
+ for (i in 0 until total) {
+ val bean = getCalendarBean(y, m, i + 1)
+ list.add(bean)
+ }
+
+ for (i in 0 until 42 - (fweek - 1) - total) {
+ val bean = getCalendarBean(y, m, total + i + 1)
+ bean.monthFlag = 1
+ list.add(bean)
+ }
+ Log.e("TIME CHECK" , "fun getMonthOfDayList END")
+ return list
+ }
+
+ fun getCalendarBean(year: Int, month: Int, day: Int): CalendarBean {
+
+ val calendar: Calendar = Calendar.getInstance()
+ .apply { this.set(year, month - 1, day) }
+ val year = calendar.get(Calendar.YEAR)
+ val month = calendar.get(Calendar.MONTH) + 1
+ val day = calendar.get(Calendar.DATE)
+ val bean = CalendarBean(year, month, day)
+ bean.week = CalendarUtil.getDayOfWeek(year, month, day)
+// val chinaDate: Array = ChinaDate.getChinaDate(year, month, day)
+// bean.chinaMonth = chinaDate[0]
+// bean.chinaDay = chinaDate[1]
+ return bean
+ }
+
+ @JvmStatic
+ fun main(args: Array) {
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/calendar/CalendarLayout.kt b/app/src/main/java/com/example/accountbook/calendar/CalendarLayout.kt
new file mode 100644
index 0000000..52b4b50
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/calendar/CalendarLayout.kt
@@ -0,0 +1,318 @@
+package com.example.accountbook.calendar
+
+import android.content.Context
+import android.graphics.Rect
+import android.util.AttributeSet
+import android.util.Log
+import android.view.MotionEvent
+import android.view.VelocityTracker
+import android.view.View
+import android.view.ViewConfiguration
+import android.view.ViewGroup
+import android.view.animation.Interpolator
+import android.widget.AbsListView
+import android.widget.FrameLayout
+import android.widget.ListView
+import androidx.core.view.VelocityTrackerCompat
+import androidx.core.view.ViewCompat
+import androidx.core.widget.ScrollerCompat
+import kotlin.math.abs
+
+
+class CalendarLayout : FrameLayout {
+ private var view1: View? = null
+// private var view2: ViewGroup? = null
+ private var mTopView: CalendarTopView? = null
+ var type = TYPE_OPEN
+
+ private var isSilde = false
+ private var topHeigth = 0
+ private var itemHeight = 0
+ private var bottomViewTopHeight = 0
+ private var maxDistance = 0
+ private var mScroller: ScrollerCompat? = null
+ private var mMaxVelocity = 0f
+ private var mMinVelocity = 0f
+ private var activitPotionerId = 0
+
+ constructor(context: Context?) : super(context!!) {
+ init()
+ }
+
+ constructor(context: Context?, attrs: AttributeSet?) : super(
+ context!!, attrs
+ ) {
+ init()
+ }
+
+ override fun onFinishInflate() {
+ super.onFinishInflate()
+ val viewPager: CalendarTopView = getChildAt(0) as CalendarTopView
+ mTopView = viewPager
+ view1 = viewPager as View
+// view2 = getChildAt(1) as ViewGroup
+ mTopView?.setCalendarTopViewChangeListener(object: CalendarTopViewChangeListener {
+ override fun onLayoutChange(topView: CalendarTopView) {
+ requestLayout()
+ }
+ })
+ }
+
+ override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
+ super.onMeasure(widthMeasureSpec, heightMeasureSpec)
+ itemHeight = mTopView?.itemHeight ?: 0
+ topHeigth = view1?.measuredHeight ?: 0
+ maxDistance = topHeigth - itemHeight
+ when (type) {
+ TYPE_FOLD -> bottomViewTopHeight = itemHeight
+ TYPE_OPEN -> bottomViewTopHeight = topHeigth
+ }
+// view2!!.measure(
+// widthMeasureSpec,
+// MeasureSpec.makeMeasureSpec(
+// MeasureSpec.getSize(heightMeasureSpec) - (mTopView?.itemHeight ?: 0),
+// MeasureSpec.EXACTLY
+// )
+// )
+ }
+
+ override fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int) {
+ super.onLayout(changed, left, top, right, bottom)
+// view2!!.offsetTopAndBottom(bottomViewTopHeight)
+ val selectRct = selectRect
+ if (type == TYPE_FOLD) {
+ view1!!.offsetTopAndBottom(-selectRct[1])
+ }
+ }
+
+ private fun init() {
+ val vc = ViewConfiguration.get(context)
+ mMaxVelocity = vc.scaledMaximumFlingVelocity.toFloat()
+ mMinVelocity = vc.scaledMinimumFlingVelocity.toFloat()
+ mScroller = ScrollerCompat.create(context, sInterpolator)
+ }
+
+ var oy = 0f
+ var ox = 0f
+ var isClickBtottomView = false
+// override fun onInterceptTouchEvent(ev: MotionEvent): Boolean {
+//// mViewDragHelper.shouldInterceptTouchEvent(ev);
+// var isflag = false
+// when (ev.action) {
+// MotionEvent.ACTION_DOWN -> {
+// oy = ev.y
+// ox = ev.x
+// isClickBtottomView = isClickView(view2, ev)
+// cancel()
+// activitPotionerId = ev.getPointerId(0)
+// val top = view2!!.top
+// type = if (top < topHeigth) {
+// TYPE_FOLD
+// } else {
+// TYPE_OPEN
+// }
+// }
+//
+// MotionEvent.ACTION_MOVE -> {
+// val y = ev.y
+// val x = ev.x
+// val xdiff = x - ox
+// val ydiff = y - oy
+// if (abs(ydiff.toDouble()) > 5 && abs(ydiff.toDouble()) > abs(xdiff.toDouble())) {
+// isflag = true
+// if (isClickBtottomView) {
+// val isScroll = isScroll(view2)
+// if (ydiff > 0) {
+// //向下
+// if (type == TYPE_OPEN) {
+// return super.onInterceptTouchEvent(ev)
+// } else {
+// if (isScroll) {
+// return super.onInterceptTouchEvent(ev)
+// }
+// }
+// } else {
+// //向上
+// if (type == TYPE_FOLD) {
+// return super.onInterceptTouchEvent(ev)
+// } else {
+// if (isScroll) {
+// return super.onInterceptTouchEvent(ev)
+// }
+// }
+// }
+// }
+// }
+// ox = x
+// oy = y
+// }
+//
+// MotionEvent.ACTION_UP -> {}
+// }
+// return isSilde || isflag || super.onInterceptTouchEvent(ev)
+// }
+
+ private fun isScroll(view2: ViewGroup?): Boolean {
+ val fistChildView = view2!!.getChildAt(0) ?: return false
+ if (view2 is ListView) {
+ val list = view2 as AbsListView
+ if (fistChildView.top != 0) {
+ return true
+ } else {
+ if (list.getPositionForView(fistChildView) != 0) {
+ return true
+ }
+ }
+ }
+ return false
+ }
+
+ fun isClickView(view: View?, ev: MotionEvent): Boolean {
+ val rect = Rect()
+ view!!.getHitRect(rect)
+ val isClick = rect.contains(ev.x.toInt(), ev.y.toInt())
+ Log.d(
+ TAG,
+ "isClickView() called with: isClick = [$isClick]"
+ )
+ return isClick
+ }
+
+// override fun onTouchEvent(event: MotionEvent): Boolean {
+// processTouchEvent(event)
+// return true
+// }
+
+ private var mVelocityTracker: VelocityTracker? = null
+// fun processTouchEvent(event: MotionEvent) {
+// if (mVelocityTracker == null) {
+// mVelocityTracker = VelocityTracker.obtain()
+// }
+// mVelocityTracker!!.addMovement(event)
+// when (event.action) {
+// MotionEvent.ACTION_DOWN -> {}
+// MotionEvent.ACTION_MOVE -> {
+// if (isSilde) {
+// return
+// }
+// val cy = event.y
+// val dy = (cy - oy).toInt()
+// if (dy == 0) {
+// return
+// }
+// oy = cy
+// move(dy)
+// }
+//
+// MotionEvent.ACTION_UP -> {
+// if (isSilde) {
+// cancel()
+// return
+// }
+//
+// //判断速度
+// val pointerId = activitPotionerId
+// mVelocityTracker!!.computeCurrentVelocity(1000, mMaxVelocity)
+// val crrentV = VelocityTrackerCompat.getYVelocity(mVelocityTracker, pointerId)
+// if (abs(crrentV.toDouble()) > 2000) {
+// if (crrentV > 0) {
+// open()
+// } else {
+// flod()
+// }
+// cancel()
+// return
+// }
+// val top = view2!!.top - topHeigth
+// val maxd = maxDistance
+// if (abs(top.toDouble()) < maxd / 2) {
+// open()
+// } else {
+// flod()
+// }
+// cancel()
+// }
+//
+// MotionEvent.ACTION_CANCEL -> cancel()
+// }
+// }
+
+// fun open() {
+// startScroll(view2!!.top, topHeigth)
+// }
+//
+// fun flod() {
+// startScroll(view2!!.top, topHeigth - maxDistance)
+// }
+
+ private val selectRect: IntArray
+ get() = mTopView?.currentSelectPositon ?: intArrayOf()
+
+// private fun move(dy: Int) {
+// val selectRect = selectRect
+// val itemHeight: Int = mTopView?.itemHeight ?: 0
+// val dy1 = getAreaValue(view1!!.top, dy, -selectRect[1], 0)
+// val dy2 = getAreaValue(view2!!.top - topHeigth, dy, -(topHeigth - itemHeight), 0)
+// if (dy1 != 0) {
+// ViewCompat.offsetTopAndBottom(view1!!, dy1)
+// }
+// if (dy2 != 0) {
+// ViewCompat.offsetTopAndBottom(view2!!, dy2)
+// }
+// }
+
+ private fun getAreaValue(top: Int, dy: Int, minValue: Int, maxValue: Int): Int {
+ if (top + dy < minValue) {
+ return minValue - top
+ }
+ return if (top + dy > maxValue) {
+ maxValue - top
+ } else dy
+ }
+
+ private fun startScroll(starty: Int, endY: Int) {
+ val distance = (endY - starty).toFloat()
+ val t = distance / maxDistance * 600
+ mScroller!!.startScroll(0, 0, 0, endY - starty, abs(t.toDouble()).toInt())
+ postInvalidate()
+ }
+
+ var oldY = 0
+// override fun computeScroll() {
+// super.computeScroll()
+// bottomViewTopHeight = view2!!.top
+// if (mScroller!!.computeScrollOffset()) {
+// isSilde = true
+// val cy = mScroller!!.currY
+// val dy = cy - oldY
+// move(dy)
+// oldY = cy
+// postInvalidate()
+// } else {
+// oldY = 0
+// isSilde = false
+// }
+// }
+
+ fun cancel() {
+ if (mVelocityTracker != null) {
+ mVelocityTracker!!.recycle()
+ mVelocityTracker = null
+ }
+ }
+
+ companion object {
+ private const val TAG = "CalendarLayout"
+
+ const val TYPE_OPEN = 0
+
+ const val TYPE_FOLD = 1
+ private val sInterpolator: Interpolator = object: Interpolator {
+ override fun getInterpolation(t: Float): Float {
+ var t = t
+ t -= 1.0f
+ return t * t * t * t * t + 1.0f
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/calendar/CalendarTopView.kt b/app/src/main/java/com/example/accountbook/calendar/CalendarTopView.kt
new file mode 100644
index 0000000..f525a90
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/calendar/CalendarTopView.kt
@@ -0,0 +1,9 @@
+package com.example.accountbook.calendar
+
+
+interface CalendarTopView {
+ val currentSelectPositon: IntArray?
+ val itemHeight: Int
+
+ fun setCalendarTopViewChangeListener(listener: CalendarTopViewChangeListener?)
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/calendar/CalendarTopViewChangeListener.kt b/app/src/main/java/com/example/accountbook/calendar/CalendarTopViewChangeListener.kt
new file mode 100644
index 0000000..3a8ae60
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/calendar/CalendarTopViewChangeListener.kt
@@ -0,0 +1,7 @@
+package com.example.accountbook.calendar
+
+interface CalendarTopViewChangeListener {
+ fun onLayoutChange(topView: CalendarTopView) {
+
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/calendar/CalendarUtil.kt b/app/src/main/java/com/example/accountbook/calendar/CalendarUtil.kt
new file mode 100644
index 0000000..6bf73a0
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/calendar/CalendarUtil.kt
@@ -0,0 +1,37 @@
+package com.example.accountbook.calendar
+
+import java.util.Calendar
+import java.util.Date
+
+
+object CalendarUtil {
+ fun getDayOfWeek(y: Int, m: Int, day: Int): Int {
+ val calendar: Calendar = Calendar.getInstance()
+ calendar.set(y, m - 1, day)
+ return calendar.get(Calendar.DAY_OF_WEEK)
+ }
+
+ //获取一月最大天数
+ fun getDayOfMaonth(y: Int, m: Int): Int {
+ val cal: Calendar = Calendar.getInstance()
+ cal.set(y, m - 1, 1)
+ return cal.getActualMaximum(Calendar.DATE)
+ }
+
+ fun getMothOfMonth(y: Int, m: Int): Int {
+ val cal: Calendar = Calendar.getInstance()
+ cal.set(y, m - 1, 1)
+ val dateOfMonth: Int = cal.get(Calendar.MONTH)
+ return dateOfMonth + 1
+ }
+
+ fun getYMD(date: Date?): IntArray {
+ val cal: Calendar = Calendar.getInstance()
+ date?.let { cal.setTime(it) }
+ return intArrayOf(
+ cal.get(Calendar.YEAR),
+ cal.get(Calendar.MONTH) + 1,
+ cal.get(Calendar.DATE)
+ )
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/calendar/CalendarView.kt b/app/src/main/java/com/example/accountbook/calendar/CalendarView.kt
new file mode 100644
index 0000000..3fc58c7
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/calendar/CalendarView.kt
@@ -0,0 +1,197 @@
+package com.example.accountbook.calendar
+
+import android.content.Context
+import android.graphics.Rect
+import android.util.AttributeSet
+import android.util.Log
+import android.view.View
+import android.view.ViewGroup
+import com.example.accountbook.calendar.CalendarUtil.getYMD
+import java.util.Date
+
+
+class CalendarView : ViewGroup {
+ private var selectPosition = -1
+ private var adapter: CalendarAdapter? = null
+ private var data: List? = null
+ private var onItemClickListener: OnItemClickListener? = null
+ private var row = 6
+ private val column = 7
+ private var itemWidth = 0
+ var itemHeight = 0
+ private set
+ private var isToday = false
+
+ interface OnItemClickListener {
+ fun onItemClick(view: View?, position: Int, bean: CalendarBean?)
+ }
+
+ constructor(context: Context?, row: Int) : super(context) {
+ this.row = row
+ }
+
+ fun setOnItemClickListener(onItemClickListener: OnItemClickListener?) {
+ this.onItemClickListener = onItemClickListener
+ }
+
+ constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
+ setWillNotDraw(false)
+ }
+
+ fun setAdapter(adapter: CalendarAdapter?) {
+ this.adapter = adapter
+ }
+
+ fun setData(data: List?, isToday: Boolean) {
+ this.data = data
+ this.isToday = isToday
+ setItem()
+ requestLayout()
+ }
+
+ private fun setItem() {
+ selectPosition = -1
+ if (adapter == null) {
+ throw RuntimeException("adapter is null,please setadapter")
+ }
+ Log.i("data >>> ","data ${data}")
+ if (adapter?.hasChildView() == true) {
+ for (i in data!!.indices) {
+ val bean = data!![i]
+ val chidView: View? = adapter?.getView(
+ getChildAt(i).also { v -> Log.i("data >>> ", "view $v") },
+ this,
+ bean
+ ).also { v -> Log.i("data >>> ", "chidView $v") }
+ if (chidView != null && chidView != getChildAt(i)) {
+ addViewInLayout(chidView, i, chidView.layoutParams, true)
+ }
+ if (isToday && selectPosition == -1) {
+ val date = getYMD(Date())
+ if (bean.year == date[0] && bean.month == date[1] && bean.day == date[2]) {
+ selectPosition = i
+ }
+ } else {
+ if (selectPosition == -1 && bean.day == 1) {
+ selectPosition = i
+ }
+ }
+ chidView?.isSelected = selectPosition == i
+ setItemClick(chidView, i, bean)
+ }
+ }
+ }
+
+ val select: Array
+ get() = arrayOf(
+ getChildAt(selectPosition), selectPosition,
+ data!![selectPosition]
+ )
+
+ fun setItemClick(view: View?, potsion: Int, bean: CalendarBean?) {
+ view?.setOnClickListener {
+ if (selectPosition != -1) {
+ getChildAt(selectPosition).isSelected = false
+ getChildAt(potsion).isSelected = true
+ }
+ selectPosition = potsion
+ if (onItemClickListener != null) {
+ onItemClickListener!!.onItemClick(view, potsion, bean)
+ }
+ }
+ }
+
+ fun getSelectPosition(): IntArray {
+ val rect = Rect()
+ try {
+ getChildAt(selectPosition).getHitRect(rect)
+ } catch (e: Exception) {
+ e.printStackTrace()
+ }
+ return intArrayOf(rect.left, rect.top, rect.right, rect.top)
+ }
+
+
+ var lastwidthMeasureSpec = 0
+ var lastheightMeasureSpec = 0
+ override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
+ super.onMeasure(widthMeasureSpec, heightMeasureSpec)
+ Log.e(this.javaClass::class.java.simpleName , "this count check ${this}")
+ if (widthMeasureSpec != lastwidthMeasureSpec || heightMeasureSpec != lastheightMeasureSpec) {
+ val parentWidth =
+ MeasureSpec.getSize(
+ MeasureSpec.makeMeasureSpec(
+ widthMeasureSpec,
+ MeasureSpec.EXACTLY
+ )
+ )
+ val parentH =
+ MeasureSpec.getSize(
+ MeasureSpec.makeMeasureSpec(
+ heightMeasureSpec,
+ MeasureSpec.EXACTLY
+ )
+ )
+ itemWidth = parentWidth / column
+ itemHeight = parentH / row
+// itemWidth
+ val view = getChildAt(0) ?: return
+ val params = view.layoutParams
+ if (params != null && params.height > 0) {
+ itemHeight = params.height
+ }
+ setMeasuredDimension(parentWidth, itemHeight * row)
+ if (childCount.equals(row*column))
+ for (i in 0 until childCount) {
+ val childView = getChildAt(i)
+ childView.measure(
+ MeasureSpec.makeMeasureSpec(itemWidth, MeasureSpec.EXACTLY),
+ MeasureSpec.makeMeasureSpec(itemHeight, MeasureSpec.EXACTLY)
+ )
+ }
+ }
+ Log.i(
+ TAG,
+ "onMeasure() called with: itemHeight = [$itemHeight], itemWidth = [$itemWidth]"
+ )
+ lastwidthMeasureSpec = widthMeasureSpec
+ lastheightMeasureSpec = heightMeasureSpec
+ }
+
+ override fun onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int) {
+ if (changed && childCount.equals(row*column))
+ for (i in 0 until childCount) {
+ layoutChild(getChildAt(i), i, l, t, r, b)
+ }
+ }
+
+ override fun addViewInLayout(
+ child: View?,
+ index: Int,
+ params: LayoutParams?,
+ preventRequestLayout: Boolean
+ ): Boolean {
+ Log.d("CalendarView, time","time")
+ return super.addViewInLayout(child, index, params, preventRequestLayout)
+ }
+
+ private fun layoutChild(view: View, position: Int, l: Int, t: Int, r: Int, b: Int) {
+ var l = l
+ var t = t
+ var r = r
+ var b = b
+ val cc = position % column
+ val cr = position / column
+ val itemWidth = view.measuredWidth
+ val itemHeight = view.measuredHeight
+ l = cc * itemWidth
+ t = cr * itemHeight
+ r = l + itemWidth
+ b = t + itemHeight
+ view.layout(l, t, r, b)
+ }
+
+ companion object {
+ private const val TAG = "CalendarView"
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/fragment/FragmentCalendar.kt b/app/src/main/java/com/example/accountbook/fragment/FragmentCalendar.kt
new file mode 100644
index 0000000..50ead5e
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/fragment/FragmentCalendar.kt
@@ -0,0 +1,113 @@
+package com.example.accountbook.fragment
+
+import android.content.Context
+import android.content.Intent
+import android.graphics.Color
+import android.os.Bundle
+import android.util.Log
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import com.example.accountbook.activity.ActivityWriter
+import com.example.accountbook.calendar.CalendarAdapter
+import com.example.accountbook.calendar.CalendarBean
+import com.example.accountbook.databinding.FragmentCalendarBinding
+import com.example.accountbook.databinding.ItemCalendarBinding
+
+class FragmentCalendar: Fragment() {
+ private lateinit var bind: FragmentCalendarBinding
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ bind = FragmentCalendarBinding.inflate(inflater)
+ return bind.root
+ }
+
+ override fun onStart() {
+ super.onStart()
+ // init view
+ if (bind.calendarDateView.adapter == null) {
+ initView()
+ }
+ // init list
+// initList()
+ }
+
+ private fun initView() {
+ Log.i("FragmentCalendar","initView")
+
+ bind.calendarDateView.setAdapter(object: CalendarAdapter {
+ override fun getView(
+ convertView: View?,
+ parentView: ViewGroup?,
+ bean: CalendarBean?
+ ): View {
+ Log.i("FragmentCalendar","getView")
+
+ var bindItem : ItemCalendarBinding? = null
+ if (convertView == null) {
+ bindItem = ItemCalendarBinding.inflate(LayoutInflater.from(parentView?.context))
+ } else {
+ bindItem = ItemCalendarBinding.bind(convertView)
+ }
+ bindItem.day.apply {
+ this.text = bean?.day.toString()
+ if (bean?.monthFlag != 0) {
+ this.setTextColor(Color.WHITE)
+ } else {
+ this.setTextColor(Color.BLACK)
+ }
+ }
+
+ bindItem.root.setOnLongClickListener{ it ->
+ startActivity(Intent(context, ActivityWriter::class.java))
+ return@setOnLongClickListener true
+ }
+ return convertView ?: bindItem.root
+ }
+
+ override fun hasChildView() = bind.calendarDateView.views.size > 0
+ })
+ }
+
+ override fun onAttach(context: Context) {
+ super.onAttach(context)
+ }
+
+ override fun onResume() {
+ super.onResume()
+ }
+
+// private fun initList() {
+// bind.list.setAdapter(object : BaseAdapter() {
+// override fun getCount(): Int {
+// Log.i("bindList" , "getCount ")
+// return 100
+// }
+//
+// override fun getItem(position: Int) = null
+//
+// override fun getItemId(position: Int): Long = 0
+//
+// override fun getView(position: Int, convertView: View?, parent: ViewGroup?): View {
+// Log.i("bindList" , "getView ${position}")
+// var mConvertView: View? = convertView
+// if (mConvertView == null) {
+// mConvertView = LayoutInflater.from(this@ActivityCalendar).inflate(android.R.layout.simple_list_item_1, null)
+// }
+//
+// (mConvertView as TextView).apply {
+// this.text = "item" + position
+// this.setBackgroundColor(Color.RED)
+// }
+//
+// return mConvertView
+// }
+//
+// })
+// }
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/example/accountbook/fragment/FragmentTable.kt b/app/src/main/java/com/example/accountbook/fragment/FragmentTable.kt
new file mode 100644
index 0000000..0772f82
--- /dev/null
+++ b/app/src/main/java/com/example/accountbook/fragment/FragmentTable.kt
@@ -0,0 +1,33 @@
+package com.example.accountbook.fragment
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import android.widget.ArrayAdapter
+import androidx.fragment.app.Fragment
+import com.example.accountbook.R
+import com.example.accountbook.adapter.AdapterTable
+import com.example.accountbook.databinding.FragmentTableBinding
+
+class FragmentTable: Fragment() {
+ private lateinit var bind: FragmentTableBinding
+ private var li: Array = arrayOf("0", "1")
+
+ override fun onCreateView(
+ inflater: LayoutInflater,
+ container: ViewGroup?,
+ savedInstanceState: Bundle?
+ ): View? {
+ // view
+ bind = FragmentTableBinding.inflate(inflater)
+ // data
+ setData()
+ bind.listTable.adapter = AdapterTable(inflater.context, li)
+ return bind.root
+ }
+
+ private fun setData() {
+
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..07d5da9
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml
new file mode 100644
index 0000000..2b068d1
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_foreground.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_calendar.xml b/app/src/main/res/layout/activity_calendar.xml
new file mode 100644
index 0000000..46c5f4c
--- /dev/null
+++ b/app/src/main/res/layout/activity_calendar.xml
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..16313e0
--- /dev/null
+++ b/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_writer.xml b/app/src/main/res/layout/activity_writer.xml
new file mode 100644
index 0000000..937eb25
--- /dev/null
+++ b/app/src/main/res/layout/activity_writer.xml
@@ -0,0 +1,139 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml
new file mode 100644
index 0000000..e416e1c
--- /dev/null
+++ b/app/src/main/res/layout/content_main.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_calendar.xml b/app/src/main/res/layout/fragment_calendar.xml
new file mode 100644
index 0000000..81ce9a4
--- /dev/null
+++ b/app/src/main/res/layout/fragment_calendar.xml
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_first.xml b/app/src/main/res/layout/fragment_first.xml
new file mode 100644
index 0000000..aa12cdf
--- /dev/null
+++ b/app/src/main/res/layout/fragment_first.xml
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_second.xml b/app/src/main/res/layout/fragment_second.xml
new file mode 100644
index 0000000..9a339ed
--- /dev/null
+++ b/app/src/main/res/layout/fragment_second.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_table.xml b/app/src/main/res/layout/fragment_table.xml
new file mode 100644
index 0000000..b731c41
--- /dev/null
+++ b/app/src/main/res/layout/fragment_table.xml
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/item_calendar.xml b/app/src/main/res/layout/item_calendar.xml
new file mode 100644
index 0000000..ff989fc
--- /dev/null
+++ b/app/src/main/res/layout/item_calendar.xml
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/item_spinner_writer_category.xml b/app/src/main/res/layout/item_spinner_writer_category.xml
new file mode 100644
index 0000000..901d642
--- /dev/null
+++ b/app/src/main/res/layout/item_spinner_writer_category.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/layout/item_table.xml b/app/src/main/res/layout/item_table.xml
new file mode 100644
index 0000000..963a770
--- /dev/null
+++ b/app/src/main/res/layout/item_table.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml
new file mode 100644
index 0000000..04992af
--- /dev/null
+++ b/app/src/main/res/menu/menu_main.xml
@@ -0,0 +1,10 @@
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi/ic_launcher.xml b/app/src/main/res/mipmap-anydpi/ic_launcher.xml
new file mode 100644
index 0000000..6f3b755
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi/ic_launcher.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml
new file mode 100644
index 0000000..6f3b755
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/app/src/main/res/mipmap-hdpi/ic_launcher.webp
new file mode 100644
index 0000000..c209e78
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..b2dfe3d
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/app/src/main/res/mipmap-mdpi/ic_launcher.webp
new file mode 100644
index 0000000..4f0f1d6
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..62b611d
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
new file mode 100644
index 0000000..948a307
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..1b9a695
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..28d4b77
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9287f50
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
new file mode 100644
index 0000000..aa7d642
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
new file mode 100644
index 0000000..9126ae3
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ
diff --git a/app/src/main/res/navigation/nav_graph.xml b/app/src/main/res/navigation/nav_graph.xml
new file mode 100644
index 0000000..e58274c
--- /dev/null
+++ b/app/src/main/res/navigation/nav_graph.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values-land/dimens.xml b/app/src/main/res/values-land/dimens.xml
new file mode 100644
index 0000000..22d7f00
--- /dev/null
+++ b/app/src/main/res/values-land/dimens.xml
@@ -0,0 +1,3 @@
+
+ 48dp
+
\ No newline at end of file
diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml
new file mode 100644
index 0000000..036feeb
--- /dev/null
+++ b/app/src/main/res/values-night/themes.xml
@@ -0,0 +1,7 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values-v23/themes.xml b/app/src/main/res/values-v23/themes.xml
new file mode 100644
index 0000000..a3be7be
--- /dev/null
+++ b/app/src/main/res/values-v23/themes.xml
@@ -0,0 +1,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values-w1240dp/dimens.xml b/app/src/main/res/values-w1240dp/dimens.xml
new file mode 100644
index 0000000..d73f4a3
--- /dev/null
+++ b/app/src/main/res/values-w1240dp/dimens.xml
@@ -0,0 +1,3 @@
+
+ 200dp
+
\ No newline at end of file
diff --git a/app/src/main/res/values-w600dp/dimens.xml b/app/src/main/res/values-w600dp/dimens.xml
new file mode 100644
index 0000000..22d7f00
--- /dev/null
+++ b/app/src/main/res/values-w600dp/dimens.xml
@@ -0,0 +1,3 @@
+
+ 48dp
+
\ No newline at end of file
diff --git a/app/src/main/res/values/attr.xml b/app/src/main/res/values/attr.xml
new file mode 100644
index 0000000..652dd9c
--- /dev/null
+++ b/app/src/main/res/values/attr.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..c8524cd
--- /dev/null
+++ b/app/src/main/res/values/colors.xml
@@ -0,0 +1,5 @@
+
+
+ #FF000000
+ #FFFFFFFF
+
\ No newline at end of file
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..125df87
--- /dev/null
+++ b/app/src/main/res/values/dimens.xml
@@ -0,0 +1,3 @@
+
+ 16dp
+
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..c966c51
--- /dev/null
+++ b/app/src/main/res/values/strings.xml
@@ -0,0 +1,46 @@
+
+ AccountBook
+ Settings
+
+ First Fragment
+ Second Fragment
+ 상세 보기
+ 홈으로
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam in scelerisque sem. Mauris
+ volutpat, dolor id interdum ullamcorper, risus dolor egestas lectus, sit amet mattis purus
+ dui nec risus. Maecenas non sodales nisi, vel dictum dolor. Class aptent taciti sociosqu ad
+ litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse blandit eleifend
+ diam, vel rutrum tellus vulputate quis. Aliquam eget libero aliquet, imperdiet nisl a,
+ ornare ex. Sed rhoncus est ut libero porta lobortis. Fusce in dictum tellus.\n\n
+ Suspendisse interdum ornare ante. Aliquam nec cursus lorem. Morbi id magna felis. Vivamus
+ egestas, est a condimentum egestas, turpis nisl iaculis ipsum, in dictum tellus dolor sed
+ neque. Morbi tellus erat, dapibus ut sem a, iaculis tincidunt dui. Interdum et malesuada
+ fames ac ante ipsum primis in faucibus. Curabitur et eros porttitor, ultricies urna vitae,
+ molestie nibh. Phasellus at commodo eros, non aliquet metus. Sed maximus nisl nec dolor
+ bibendum, vel congue leo egestas.\n\n
+ Sed interdum tortor nibh, in sagittis risus mollis quis. Curabitur mi odio, condimentum sit
+ amet auctor at, mollis non turpis. Nullam pretium libero vestibulum, finibus orci vel,
+ molestie quam. Fusce blandit tincidunt nulla, quis sollicitudin libero facilisis et. Integer
+ interdum nunc ligula, et fermentum metus hendrerit id. Vestibulum lectus felis, dictum at
+ lacinia sit amet, tristique id quam. Cras eu consequat dui. Suspendisse sodales nunc ligula,
+ in lobortis sem porta sed. Integer id ultrices magna, in luctus elit. Sed a pellentesque
+ est.\n\n
+ Aenean nunc velit, lacinia sed dolor sed, ultrices viverra nulla. Etiam a venenatis nibh.
+ Morbi laoreet, tortor sed facilisis varius, nibh orci rhoncus nulla, id elementum leo dui
+ non lorem. Nam mollis ipsum quis auctor varius. Quisque elementum eu libero sed commodo. In
+ eros nisl, imperdiet vel imperdiet et, scelerisque a mauris. Pellentesque varius ex nunc,
+ quis imperdiet eros placerat ac. Duis finibus orci et est auctor tincidunt. Sed non viverra
+ ipsum. Nunc quis augue egestas, cursus lorem at, molestie sem. Morbi a consectetur ipsum, a
+ placerat diam. Etiam vulputate dignissim convallis. Integer faucibus mauris sit amet finibus
+ convallis.\n\n
+ Phasellus in aliquet mi. Pellentesque habitant morbi tristique senectus et netus et
+ malesuada fames ac turpis egestas. In volutpat arcu ut felis sagittis, in finibus massa
+ gravida. Pellentesque id tellus orci. Integer dictum, lorem sed efficitur ullamcorper,
+ libero justo consectetur ipsum, in mollis nisl ex sed nisl. Donec maximus ullamcorper
+ sodales. Praesent bibendum rhoncus tellus nec feugiat. In a ornare nulla. Donec rhoncus
+ libero vel nunc consequat, quis tincidunt nisl eleifend. Cras bibendum enim a justo luctus
+ vestibulum. Fusce dictum libero quis erat maximus, vitae volutpat diam dignissim.
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
new file mode 100644
index 0000000..3f37b66
--- /dev/null
+++ b/app/src/main/res/values/themes.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/xml/backup_rules.xml b/app/src/main/res/xml/backup_rules.xml
new file mode 100644
index 0000000..fa0f996
--- /dev/null
+++ b/app/src/main/res/xml/backup_rules.xml
@@ -0,0 +1,13 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/xml/data_extraction_rules.xml b/app/src/main/res/xml/data_extraction_rules.xml
new file mode 100644
index 0000000..9ee9997
--- /dev/null
+++ b/app/src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/test/java/com/example/accountbook/ExampleUnitTest.kt b/app/src/test/java/com/example/accountbook/ExampleUnitTest.kt
new file mode 100644
index 0000000..dceda0e
--- /dev/null
+++ b/app/src/test/java/com/example/accountbook/ExampleUnitTest.kt
@@ -0,0 +1,17 @@
+package com.example.accountbook
+
+import org.junit.Test
+
+import org.junit.Assert.*
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * See [testing documentation](http://d.android.com/tools/testing).
+ */
+class ExampleUnitTest {
+ @Test
+ fun addition_isCorrect() {
+ assertEquals(4, 2 + 2)
+ }
+}
\ No newline at end of file
diff --git a/build.gradle.kts b/build.gradle.kts
new file mode 100644
index 0000000..e60ce26
--- /dev/null
+++ b/build.gradle.kts
@@ -0,0 +1,15 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+plugins {
+ alias(libs.plugins.androidApplication) apply false
+ alias(libs.plugins.jetbrainsKotlinAndroid) apply false
+}
+
+buildscript {
+ repositories {
+ mavenCentral()
+ google()
+ }
+ dependencies {
+ classpath("com.jakewharton:butterknife-gradle-plugin:10.2.3")
+ }
+}
\ No newline at end of file
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..20e2a01
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,23 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. For more details, visit
+# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
+# org.gradle.parallel=true
+# AndroidX package structure to make it clearer which packages are bundled with the
+# Android operating system, and which are packaged with your app's APK
+# https://developer.android.com/topic/libraries/support-library/androidx-rn
+android.useAndroidX=true
+# Kotlin code style for this project: "official" or "obsolete":
+kotlin.code.style=official
+# Enables namespacing of each library's R class so that its R class includes only the
+# resources declared in the library itself and none from the library's dependencies,
+# thereby reducing the size of the R class for that library
+android.nonTransitiveRClass=true
\ No newline at end of file
diff --git a/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..ac1b06f
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,89 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/settings.gradle.kts b/settings.gradle.kts
new file mode 100644
index 0000000..ae006db
--- /dev/null
+++ b/settings.gradle.kts
@@ -0,0 +1,24 @@
+pluginManagement {
+ repositories {
+ google {
+ content {
+ includeGroupByRegex("com\\.android.*")
+ includeGroupByRegex("com\\.google.*")
+ includeGroupByRegex("androidx.*")
+ }
+ }
+ mavenCentral()
+ gradlePluginPortal()
+ }
+}
+dependencyResolutionManagement {
+ repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.name = "AccountBook"
+include(":app")
+
\ No newline at end of file