-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISSUE #18 Modify : Make Study Activity View Finish
- Loading branch information
1 parent
30819fe
commit 572cc1e
Showing
24 changed files
with
683 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 43 additions & 3 deletions
46
app/src/main/java/com/studyship/application/ui/activity/CreateStudyActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,56 @@ | ||
package com.studyship.application.ui.activity | ||
|
||
import androidx.appcompat.app.AppCompatActivity | ||
import android.os.Bundle | ||
import android.util.Log | ||
import androidx.lifecycle.observe | ||
import com.studyship.application.BR | ||
import com.studyship.application.R | ||
import com.studyship.application.base.activity.BaseActivity | ||
import com.studyship.application.databinding.ActivityCreateStudyBinding | ||
import com.studyship.application.util.comfortableStartActivity | ||
import com.tsdev.presentation.MakeStudyViewModel | ||
import kotlinx.android.synthetic.main.activity_create_study.* | ||
import org.koin.androidx.viewmodel.ext.android.viewModel | ||
import tsthec.tsstudy.constant.SimpleClassName | ||
|
||
class CreateStudyActivity : AppCompatActivity() { | ||
class CreateStudyActivity : | ||
BaseActivity<MakeStudyViewModel, ActivityCreateStudyBinding>(R.layout.activity_create_study) { | ||
|
||
override val viewModel: MakeStudyViewModel by viewModel() | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_create_study) | ||
|
||
bind { | ||
setVariable(BR.vm, viewModel) | ||
setVariable(BR.simpleClass, SimpleClassName) | ||
} | ||
gather_date_layout.setLayoutData(listOf("일", "월", "화", "수", "목", "금", "토")) | ||
|
||
viewModel.moveActivityLiveData.observe(this) { | ||
when (it.getContentValue()) { | ||
SimpleClassName.SELECTED_CLASS -> { | ||
comfortableStartActivity<SelectedCategoryActivity>() | ||
} | ||
SimpleClassName.PREFER_PLACE -> { | ||
comfortableStartActivity<UserPreferPlaceActivity>() | ||
} | ||
} | ||
} | ||
|
||
user_level_horizontal.setLayoutData(listOf("입문", "중급", "고급", "실무", "미정")) | ||
|
||
user_level_horizontal.setCategoryOnClickListener = { | ||
Log.e("POSITION", it.toString()) | ||
} | ||
|
||
user_time_horizontal.setLayoutData(listOf("오전", "오후", "저녁", "미정")) | ||
user_time_horizontal.setCategoryOnClickListener = { | ||
Log.e("POSITION", it.toString()) | ||
} | ||
|
||
user_many_horizontal.setLayoutData(listOf("2명", "3명", "4명", "5명이상")) | ||
user_many_horizontal.setCategoryOnClickListener = { | ||
Log.e("POSITION", it.toString()) | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/studyship/application/ui/activity/SelectedCategoryActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.studyship.application.ui.activity | ||
|
||
import androidx.appcompat.app.AppCompatActivity | ||
import android.os.Bundle | ||
import com.studyship.application.R | ||
|
||
class SelectedCategoryActivity : AppCompatActivity() { | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_selected_category) | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/studyship/application/ui/activity/UserPreferPlaceActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.studyship.application.ui.activity | ||
|
||
import androidx.appcompat.app.AppCompatActivity | ||
import android.os.Bundle | ||
import com.studyship.application.R | ||
|
||
class UserPreferPlaceActivity : AppCompatActivity() { | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_user_prefer_place) | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
app/src/main/res/drawable/ic_insert_invitation_black_24dp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<vector android:height="24dp" android:tint="#B3B3B3" | ||
android:viewportHeight="24.0" android:viewportWidth="24.0" | ||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="#FF000000" android:pathData="M17,12h-5v5h5v-5zM16,1v2L8,3L8,1L6,1v2L5,3c-1.11,0 -1.99,0.9 -1.99,2L3,19c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2L21,5c0,-1.1 -0.9,-2 -2,-2h-1L18,1h-2zM19,19L5,19L5,8h14v11z"/> | ||
</vector> |
Oops, something went wrong.