   use the container type to choose the correct LayoutParams instance."
   {:applies? (constantly true)}
   [wdg _ __]
-  {:options-fn #(assoc % :container-type (type wdg))})
+  {:options-fn #(assoc % :container-type (kw/keyword-by-classname (type wdg)))})
 
 ;; ### Listener traits
 

  Values could be either numbers of `:fill` or `:wrap`."
  {:attributes (concat margin-attributes [:layout-width :layout-height
                                          :layout-weight :layout-gravity])
   :applies? (= (kw/keyword-by-classname container-type) :linear-layout)}
  [^View wdg, {:keys [layout-width layout-height layout-weight layout-gravity]
               :as attributes}
   {:keys [container-type]}]


(deftrait :relative-layout-params
  {:attributes (concat all-relative-attributes margin-attributes)
   :applies? (= container-type :relative-layout)}
  [^View wdg, {:keys [layout-width layout-height
                      layout-align-with-parent-if-missing] :as attributes}
   {:keys [container-type]}]
