- ๐ Hi, Iโm @ricoarisandyw
- ๐ Iโm interested in js, java, php
- ๐ฑ Iโm currently learning fullstack developer
- ๐๏ธ Iโm looking to collaborate on creating some cool stuff.
- ๐ซ How to reach me? You can reach me in here.
arisanform's Introduction
arisanform's People
arisanform's Issues
AddListener on form
Hi,
i start using your great library today, but i have one question with the event addListener.
I dont know how you get another view under the listener ?
form.addListener("elem_6", new ArisanListener.OnCondition() {
@Override
public void onValue(String value, FormAdapter adapter) {
if( "VALUE".equals(value) ){
FormModel element = new KotlinFilter().findFieldByName("elem_7",form.getFieldModels());
element.getView().setVisibility(View.GONE); // HOW ... ?
} else {
element.getView().setVisibility(View.VISIBLE); // HOW ... ?
}
....
Thanks in advance !
Label in checkbox is not match
I got a problem with the version 2.1.0
When I create the form, it don't get scroll
Date Label is not match_parent
Form.TIME does not work properly
Two Spinner on a form
Hello i have a problem when i use two spinner on a form.
My model :
class AnomalyData {
@Form(type = Form.SPINNER, position = 1)
private val origine: String? = null
@Form(type = Form.SPINNER, position = 2)
private val emplacement: String? = null
@Form(type = Form.IMAGE, position = 3)
private val photo: String? = null
@Form(position = 4)
private val commentaire: String? = null
companion object {
var FIELD_ORIGIN = "origine"
var FIELD_CATEGORY = "emplacement"
My Activity :
private fun setUpForm() {
form.setModels(AnomalyData())
form.fillData(AnomalyData.FIELD_ORIGIN, AnomalyData.initOrigin())
form.fillData(AnomalyData.FIELD_CATEGORY, AnomalyData.initSubSecurityOrigin())
form.addListener(AnomalyData.FIELD_ORIGIN) { value, adapter ->
when (value) {
AnomalyData.ORIGIN_SECURITY -> {
adapter.updateData(
AnomalyData.FIELD_CATEGORY, AnomalyData.initSubSecurityOrigin())
}
AnomalyData.ORIGIN_BODY -> {
adapter.updateData(
AnomalyData.FIELD_CATEGORY, AnomalyData.initSubBodyOrigin())
}
AnomalyData.ORIGIN_CLEANLINESS -> {
adapter.updateData(
AnomalyData.FIELD_CATEGORY, AnomalyData.initSubCleanlinessOrigin())
}
AnomalyData.ORIGIN_ADMINISTRATIVE -> {
adapter.updateData(
AnomalyData.FIELD_CATEGORY, AnomalyData.initSubAdministrativeOrigin())
}
else -> {
adapter.updateData(
AnomalyData.FIELD_CATEGORY, AnomalyData.initSubEventsToReportOrigin())
}
}
}
form.buildForm()
}
I have this error :
java.lang.NullPointerException: Attempt to invoke interface method 'void com.github.arisan.ArisanListener$OnCondition.onValue(java.lang.String, com.github.arisan.adapter.FormAdapter)' on a null object reference
When i use CheckBox instead of Spinner for the second element in my Model, i don't have any problem.
Can you help me please ?
Get Spinner index instead of the text value
As the title says, is possible to do that?
Spinner field not rendering properly in some aondroid versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.