@@ -81,9 +81,6 @@ class Hikage private constructor(private val factories: List<HikageFactory>) {
8181 /* * The Android widget class prefix. */
8282 internal const val ANDROID_WIDGET_CLASS_PREFIX = " android.widget."
8383
84- /* * The unspecified layout params value. */
85- private const val LayoutParamsUnspecified = LayoutParamsWrapContent - 1
86-
8784 /* * The view constructors map. */
8885 private val viewConstructors = mutableMapOf<String , ViewConstructor <* >>()
8986
@@ -225,7 +222,7 @@ class Hikage private constructor(private val factories: List<HikageFactory>) {
225222 * @param resolver the constructor resolver.
226223 * @param parameterCount the parameter count.
227224 */
228- private inner class ViewConstructor <V : View >(
225+ private class ViewConstructor <V : View >(
229226 private val resolver : ConstructorResolver <V >,
230227 private val parameterCount : Int
231228 ) {
@@ -852,8 +849,8 @@ class Hikage private constructor(private val factories: List<HikageFactory>) {
852849 * @return [LayoutParams]
853850 */
854851 fun LayoutParams (
855- width : Int = LayoutParamsUnspecified ,
856- height : Int = LayoutParamsUnspecified ,
852+ width : Int? = null ,
853+ height : Int? = null ,
857854 matchParent : Boolean = false,
858855 widthMatchParent : Boolean = false,
859856 heightMatchParent : Boolean = false,
@@ -893,6 +890,7 @@ class Hikage private constructor(private val factories: List<HikageFactory>) {
893890 * @param attrs the attributes set.
894891 * @param viewClass the view class.
895892 */
893+ @ConsistentCopyVisibility
896894 data class PerformerParams internal constructor(
897895 val id : String? ,
898896 val attrs : AttributeSet ,
@@ -916,8 +914,8 @@ class Hikage private constructor(private val factories: List<HikageFactory>) {
916914 * Builder params of body.
917915 */
918916 private class BodyBuilder (
919- val width : Int ,
920- val height : Int ,
917+ val width : Int? ,
918+ val height : Int? ,
921919 val matchParent : Boolean ,
922920 val widthMatchParent : Boolean ,
923921 val heightMatchParent : Boolean ,
@@ -951,8 +949,8 @@ class Hikage private constructor(private val factories: List<HikageFactory>) {
951949 current : Hikage ,
952950 lpClass : Class <LP >,
953951 parent : ViewGroup ? ,
954- width : Int ,
955- height : Int ,
952+ width : Int? ,
953+ height : Int? ,
956954 matchParent : Boolean ,
957955 widthMatchParent : Boolean ,
958956 heightMatchParent : Boolean ,
0 commit comments