Skip to content

Commit

Permalink
수정사항 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
yeseoRyu committed Jan 17, 2025
1 parent 7bf41a2 commit 8e26836
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/flab/deepsleep/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class MainActivity : AppCompatActivity() {
}
private val onPhotoItemClickListener =
OnPhotoItemClickListener { singlePhoto ->
DetailsActivity.startDetailsActivity(this, singlePhoto)
DetailsActivity.startActivity(this, singlePhoto)
}
private val photoAdapter: PhotoAdapter by lazy {
PhotoAdapter(buttonClick, onPhotoItemClickListener)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class DetailsActivity : AppCompatActivity() {
}

companion object {
fun startDetailsActivity(context: Context, singlePhoto: SinglePhoto) {
fun startActivity(context: Context, singlePhoto: SinglePhoto) {
val intent = Intent(context, DetailsActivity::class.java).apply {
putExtra("singlePhoto", singlePhoto)
}
Expand Down
7 changes: 3 additions & 4 deletions app/src/main/res/layout/activity_details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<LinearLayout
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
Expand Down Expand Up @@ -47,7 +47,7 @@
android:id="@+id/detail_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10sp"
android:layout_margin="10dp"
android:hint="@string/test"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
Expand All @@ -59,7 +59,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/selector_bt_heart"
android:background="@null"
app:layout_constraintBottom_toBottomOf="@+id/detail_description"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/detail_description" />
Expand Down Expand Up @@ -101,6 +100,6 @@
app:layout_constraintTop_toBottomOf="@+id/detail_likes" />

</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 8e26836

Please sign in to comment.