Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Add :check-box element #63

Merged
merged 1 commit into from
Mar 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/clojure/neko/ui/mapping.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
elements and the values for the keywords representing values."
(:require [clojure.string :as string])
(:use [neko.-utils :only [keyword->static-field reflect-field]])
(:import [android.widget LinearLayout Button EditText ListView SearchView
ImageView ImageView$ScaleType RelativeLayout ScrollView FrameLayout
Gallery GridView]
(:import [android.widget LinearLayout Button CheckBox EditText ListView
SearchView ImageView ImageView$ScaleType RelativeLayout ScrollView
FrameLayout Gallery GridView]
android.app.ProgressDialog
android.view.inputmethod.EditorInfo
[android.view View ViewGroup$LayoutParams Gravity]))
Expand All @@ -29,6 +29,8 @@
:button {:classname android.widget.Button
:inherits :text-view
:attributes {:text "Default button"}}
:check-box {:classname android.widget.CheckBox
:inherits :text-view}
:linear-layout {:classname android.widget.LinearLayout
:inherits :view-group}
:relative-layout {:classname android.widget.RelativeLayout
Expand Down