Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
linenive committed Jun 20, 2021
2 parents c72ab17 + d073c7b commit 2de7029
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
3 changes: 0 additions & 3 deletions app/src/main/java/kr/ac/konkuk/koogle/Adapter/CardAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ class CardAdapter(val context: Context?): ListAdapter<CardModel, CardAdapter.Vie
binding.recruitmentNumberTextView.setTextColor(Color.RED)
}

//todo 썸네일 이미지 뷰를 글라이드를 통해 로드
//todo 사진이 존재하지 않는다면 해당 이미지뷰가 보이지 않게

binding.checkImageView.setOnClickListener {
itemClickListener?.onItemChecked(
this,
Expand Down
11 changes: 4 additions & 7 deletions app/src/main/java/kr/ac/konkuk/koogle/Adapter/ChatAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@ import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import androidx.viewbinding.ViewBinding
import com.bumptech.glide.Glide
import de.hdodenhof.circleimageview.CircleImageView
import kr.ac.konkuk.koogle.DBKeys.Companion.LEFT_CHAT
import kr.ac.konkuk.koogle.DBKeys.Companion.RIGHT_CHAT
import kr.ac.konkuk.koogle.Model.ChatModel
import kr.ac.konkuk.koogle.R
import kr.ac.konkuk.koogle.databinding.ItemCardBinding
import kr.ac.konkuk.koogle.databinding.ItemLeftChatBinding
import kr.ac.konkuk.koogle.databinding.ItemRightChatBinding
import java.text.SimpleDateFormat
Expand All @@ -22,11 +19,11 @@ import java.util.*
class ChatAdapter(val context: Context, private val chatList: MutableList<ChatModel>) :
RecyclerView.Adapter<ChatAdapter.BaseViewHolder<*>>() {

abstract class BaseViewHolder<T>(itemView: View) : RecyclerView.ViewHolder(itemView) {
abstract class BaseViewHolder<T>(private val binding: ViewBinding) : RecyclerView.ViewHolder(binding.root) {
abstract fun bind(item: T)
}

inner class LeftViewHolder(private val binding: ItemLeftChatBinding) : BaseViewHolder<ChatModel>(binding.root) {
inner class LeftViewHolder(private val binding: ItemLeftChatBinding) : BaseViewHolder<ChatModel>(binding) {

@SuppressLint("SimpleDateFormat")
val format = SimpleDateFormat("a HH:mm", Locale.KOREA)
Expand All @@ -46,7 +43,7 @@ class ChatAdapter(val context: Context, private val chatList: MutableList<ChatMo
}
}

inner class RightViewHolder(private val binding: ItemRightChatBinding) : BaseViewHolder<ChatModel>(binding.root) {
inner class RightViewHolder(private val binding: ItemRightChatBinding) : BaseViewHolder<ChatModel>(binding) {

@SuppressLint("SimpleDateFormat")
val format = SimpleDateFormat("a HH:mm", Locale.KOREA)
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/layout/activity_article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,12 @@
android:id="@+id/tagRecyclerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/borderline_top_bottom"
android:layout_gravity="center"
android:padding="16dp" />

<androidx.recyclerview.widget.RecyclerView
android:layout_marginTop="12dp"
android:id="@+id/photoImageRecyclerView"
android:layout_width="match_parent"
android:layout_height="140dp"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_image_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

<ImageView
android:id="@+id/cancelImageView"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_gravity="right|top"
android:layout_margin="20dp"
app:srcCompat="@drawable/cancel"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_map.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
app:layout_constraintBottom_toBottomOf="@id/mapFragment"
android:layout_marginEnd="32dp"
android:layout_marginBottom="32dp"
app:borderWidth="0dp"
android:contentDescription="현재 위치" />

</androidx.constraintlayout.widget.ConstraintLayout>
1 change: 1 addition & 0 deletions app/src/main/res/layout/item_group.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:maxLines="1"
android:maxWidth="210dp"
android:ellipsize="end"
android:text="title"
android:textColor="@color/black"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/item_right_chat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:maxWidth="280dp"
android:maxWidth="240dp"
android:text="@string/content"
android:textColor="@color/black"
android:textSize="16sp"
Expand Down

0 comments on commit 2de7029

Please sign in to comment.