Skip to content

Commit

Permalink
Fixed: fixed the children item won't fit the width and height not for…
Browse files Browse the repository at this point in the history
… androidx.
  • Loading branch information
pokk committed Jul 13, 2018
1 parent b880174 commit 9fc012e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.devrapid.adaptiverecyclerview

import android.support.v7.widget.RecyclerView
import android.view.View
import android.view.LayoutInflater
import android.view.ViewGroup

/**
Expand Down Expand Up @@ -46,7 +46,8 @@ abstract class AdaptiveAdapter<VT : ViewTypeFactory, M : IVisitable<VT>, VH : Re
(holder as AdaptiveViewHolder<VT, M>).initView(this.dataList[position], position, this)

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): VH {
val itemView: View = View.inflate(parent.context, this.typeFactory.getLayoutResource(viewType), null)
val itemView =
LayoutInflater.from(parent.context).inflate(this.typeFactory.getLayoutResource(viewType), parent, false)

return this.typeFactory.createViewHolder(viewType, itemView) as VH
}
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ proj_name=adaptiverecyclerview
proj_libname=AdaptiveRecyclerview
proj_group=com.devrapid.jieyi
proj_artifactid=adaptiverecyclerview
proj_version=0.0.8
proj_version=0.0.9
proj_description=Create an adaptive recycler view for each of type view.
proj_websiteurl=https://github.com/pokk/AdaptiveRecyclerView
proj_issuetrackerurl=https://github.com/pokk/AdaptiveRecyclerView/issues
Expand All @@ -33,4 +33,4 @@ license_url='http://www.apache.org/licenses/LICENSE-2.0.txt'
## Developer information
developer_id=pokk
developer_name=Jieyi Wu
developer_email=pokkbaby@gmail.com
developer_email=pokkbaby@gmail.com

0 comments on commit 9fc012e

Please sign in to comment.