-
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.
[MIN-52] feat : 스토리 디테일 화면 프레임 구현 (#25)
- Loading branch information
Showing
13 changed files
with
110 additions
and
28 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
4 changes: 0 additions & 4 deletions
4
story/src/main/java/com/najudoryeong/mineme/story/data/dto/NewStoryRequest.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,6 +1,2 @@ | ||
package com.najudoryeong.mineme.story.data.dto | ||
|
||
data class NewStoryRequest( | ||
val date : String | ||
images : | ||
) |
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
23 changes: 23 additions & 0 deletions
23
story/src/main/java/com/najudoryeong/mineme/story/ui/StoryDetailFragment.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,23 @@ | ||
package com.najudoryeong.mineme.story.ui | ||
|
||
|
||
import androidx.navigation.fragment.navArgs | ||
import com.najudoryeong.mineme.common_ui.BaseFragment | ||
import com.najudoryeong.mineme.story.databinding.FragmentStoryDetailBinding | ||
import com.najudoryeong.mineme.story.util.DetailStoryFoundationInfo | ||
import dagger.hilt.android.AndroidEntryPoint | ||
|
||
|
||
@AndroidEntryPoint | ||
class StoryDetailFragment : BaseFragment<FragmentStoryDetailBinding>(DetailStoryFoundationInfo) { | ||
|
||
private val args: StoryDetailFragmentArgs by navArgs() | ||
|
||
override fun initView() { | ||
binding.apply { | ||
postIDTextView.text = args.postID.toString() | ||
} | ||
} | ||
|
||
|
||
} |
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
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,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<FrameLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".ui.StoryDetailFragment"> | ||
|
||
<!-- TODO: Update blank fragment layout --> | ||
<TextView | ||
android:id="@+id/postID_textView" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:gravity="center" | ||
android:textSize="50sp" | ||
android:text="@string/hello_blank_fragment" /> | ||
|
||
</FrameLayout> | ||
|
||
|
||
</layout> |
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,20 +1,37 @@ | ||
<?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" | ||
android:id="@+id/nav_story" | ||
app:startDestination="@id/storyFragment"> | ||
|
||
<fragment | ||
android:id="@+id/storyFragment" | ||
android:name="com.najudoryeong.mineme.story.ui.StoryFragment" | ||
android:label="StoryFragment" > | ||
|
||
|
||
<action | ||
android:id="@+id/next" | ||
app:destination="@id/writeStoryFragment" | ||
app:popUpTo="@id/storyFragment" /> | ||
<action | ||
android:id="@+id/detailStory" | ||
app:destination="@id/storyDetailFragment" | ||
app:popUpTo="@id/storyFragment" /> | ||
|
||
</fragment> | ||
<fragment | ||
android:id="@+id/writeStoryFragment" | ||
android:name="com.najudoryeong.mineme.story.ui.WriteStoryFragment" | ||
android:label="WriteStoryFragment" /> | ||
<fragment | ||
android:id="@+id/storyDetailFragment" | ||
android:name="com.najudoryeong.mineme.story.ui.StoryDetailFragment" | ||
android:label="fragment_story_detail" | ||
tools:layout="@layout/fragment_story_detail" > | ||
<argument | ||
android:name="postID" | ||
app:argType="integer" /> | ||
</fragment> | ||
</navigation> |