Skip to content

Commit

Permalink
Revert "[MIN-13] MainActivity 구현 (#2)"
Browse files Browse the repository at this point in the history
  • Loading branch information
KDW03 authored Dec 8, 2022
1 parent 489eb92 commit f235e3d
Show file tree
Hide file tree
Showing 23 changed files with 21 additions and 398 deletions.
1 change: 0 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 3 additions & 11 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'androidx.navigation.safeargs.kotlin'
}

android {
namespace 'com.najudoryeong.mineme'
compileSdk 33
compileSdk 32

defaultConfig {
applicationId "com.najudoryeong.mineme"
minSdk 23
targetSdk 33
targetSdk 32
versionCode 1
versionName "1.0"

Expand All @@ -31,18 +30,11 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
dataBinding true
}
}

dependencies {

api "androidx.navigation:navigation-fragment-ktx:$rootProject.nav_version"
api "androidx.navigation:navigation-ui-ktx:$rootProject.nav_version"


implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.7.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
Expand Down
23 changes: 1 addition & 22 deletions app/src/main/java/com/najudoryeong/mineme/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,10 @@ package com.najudoryeong.mineme

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavController
import com.najudoryeong.mineme.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {

private lateinit var binding: ActivityMainBinding


override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
binding = DataBindingUtil.setContentView(this, R.layout.activity_main)
initBottomNav()
setContentView(R.layout.activity_main)
}

private fun initBottomNav() {
val navHostFragment =
supportFragmentManager.findFragmentById(R.id.fragment_containerView) as NavHostFragment
val navController = navHostFragment.navController

binding.bottomNavigationView.let {
it.setupWithNavController(navController)
it.itemIconTintList = null
}
}

}
59 changes: 0 additions & 59 deletions app/src/main/java/com/najudoryeong/mineme/TestFragment.kt

This file was deleted.

33 changes: 0 additions & 33 deletions app/src/main/res/drawable/bottom_center.xml

This file was deleted.

5 changes: 0 additions & 5 deletions app/src/main/res/drawable/bottom_home_on_off.xml

This file was deleted.

5 changes: 0 additions & 5 deletions app/src/main/res/drawable/bottom_setting_on_off.xml

This file was deleted.

5 changes: 0 additions & 5 deletions app/src/main/res/drawable/bottom_story_on_off.xml

This file was deleted.

13 changes: 0 additions & 13 deletions app/src/main/res/drawable/img_none_select_home.xml

This file was deleted.

24 changes: 0 additions & 24 deletions app/src/main/res/drawable/img_none_select_setting.xml

This file was deleted.

16 changes: 0 additions & 16 deletions app/src/main/res/drawable/img_none_select_stroy.xml

This file was deleted.

19 changes: 0 additions & 19 deletions app/src/main/res/drawable/img_select_home.xml

This file was deleted.

Loading

0 comments on commit f235e3d

Please sign in to comment.