Skip to content

Commit

Permalink
- Bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
smhdk committed Nov 26, 2018
1 parent 63c2900 commit 92a418c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,19 @@ package com.kodmap.app.library.adapter
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.support.v7.recyclerview.extensions.ListAdapter
import android.support.v7.util.DiffUtil
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import com.kodmap.app.library.R
import com.kodmap.app.library.listener.AdapterClickListener
import com.kodmap.app.library.model.BaseItem
import com.kodmap.app.library.ui.KmImageView
import com.kodmap.app.library.ui.KmRelativeLayout
import com.squareup.picasso.Callback
import com.squareup.picasso.Picasso
import com.squareup.picasso.Target
import java.lang.Exception
import java.util.*

class PopupThumbAdapter(private val listener: AdapterClickListener) : ListAdapter<BaseItem, PopupThumbAdapter.ViewHolder>(itemCallback) {
Expand All @@ -36,7 +32,7 @@ class PopupThumbAdapter(private val listener: AdapterClickListener) : ListAdapte

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
val itemView = LayoutInflater.from(parent.context)
.inflate(R.layout.item_thumb, parent, false) as View
.inflate(R.layout.item_thumb, parent, false)
return ViewHolder(itemView, listener)
}

Expand Down
1 change: 1 addition & 0 deletions library/src/main/res/layout/item_slider.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
android:id="@+id/iv_item"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:layout_centerInParent="true" />
</com.kodmap.app.library.ui.KmRelativeLayout>
1 change: 1 addition & 0 deletions library/src/main/res/layout/item_thumb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
android:id="@+id/iv_thumb"
android:layout_width="50dp"
android:layout_height="50dp"
android:adjustViewBounds="true"
android:scaleType="fitXY" />

<View
Expand Down

0 comments on commit 92a418c

Please sign in to comment.