Skip to content

Commit

Permalink
[Refactor/#5] 추가한 테마 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
gaeun5744 committed May 5, 2023
1 parent e7a903d commit d43d3f2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/org/android/go/sopt/MultiViewAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class MultiViewAdapter(context: Context) :

}
}

override fun getItemId(position: Int): Long {
return position.toLong()
}
Expand Down Expand Up @@ -119,8 +120,6 @@ class MultiViewAdapter(context: Context) :
}




}

fun getItemDetails(viewHolder: RecyclerView.ViewHolder?): ItemDetailsLookup.ItemDetails<Long> {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/fragment_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
android:id="@+id/btn_delete_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="?attr/colorPrimaryVariant"
android:text="삭제하기"
app:layout_constraintTop_toBottomOf="@id/rv"
app:layout_constraintStart_toStartOf="parent"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/item_bottom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:backgroundTint="?attr/colorPrimary"
android:layout_height="wrap_content">

<TextView
Expand Down
9 changes: 6 additions & 3 deletions app/src/main/res/layout/item_music.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@
android:id="@+id/item_container"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:id="@+id/chk_select"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_music"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/iv_music"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
app:layout_constraintEnd_toStartOf="@id/iv_music"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />


<ImageView
Expand All @@ -38,6 +39,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginEnd="40dp"
android:textColor="?attr/colorOnBackground"
android:textSize="15sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
Expand All @@ -47,6 +49,7 @@
android:id="@+id/tv_music_singer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?attr/colorOnBackground"
android:textSize="10sp"
app:layout_constraintEnd_toEndOf="@id/tv_music_title"
app:layout_constraintStart_toStartOf="@id/tv_music_title"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/item_top.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="@color/purple_200"
android:background="?attr/colorPrimary"
android:layout_height="wrap_content">


Expand Down

0 comments on commit d43d3f2

Please sign in to comment.