 
 Taken from clj-android by remvee."
   ([width height weight]
-    (let [real-width (attribute-value :layout-params (or width :wrap))
-          real-height (attribute-value :layout-params (or height :wrap))
-          real-weight (or weight 0)]
-      `(new LinearLayout$LayoutParams ~real-width ~real-height ~real-weight))))
+     (let [real-width (attribute-value :layout-params (or width :wrap))
+           real-height (attribute-value :layout-params (or height :wrap))
+           real-weight (or weight 0)]
+       `(new LinearLayout$LayoutParams ~real-width ~real-height ~real-weight))))
 
 (defmethod transform-attributes :layout-params [el-type obj attributes
                                                 generated-code]

  [kw]
  (let [first-level-parents (-> @keyword-mapping kw :parents)]
    (->> first-level-parents
      (mapcat all-parents)
      (concat first-level-parents)
      distinct)))
  
(defn keyword-add-value 
  "Associate the value keyword with the provided value for the given keyword representing the UI element."
  [element-kw value-kw value]

                            (attribute-value el-type value)
                            value)]
           `(~(symbol (str ".set" (capitalize (name attr)))) ~obj ~real-value)))
       attributes))

(defn process-attributes
  "Takes an UI element type, its object symbol and a map of
