- Language - Android Kotlin
- IDE - Android Studio 3.1
- Easy to adapt drag and drop component in your project
- Drag and Drop
- Explore your innovation
- Correct and Wrong answers differentiate by color
- Submit Answer
- Clear Selection
- Reveal Answer
- build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- build.gradle
dependencies {
implementation 'com.github.arivista-digital:drag-drop:v-0.2'
}
- activity_main Layout initialize
<arivista.lib.dragdrop.CustomView
android:id="@+id/customView"
android:layout_width="match_parent"
android:layout_height="match_parent">
</arivista.lib.dragdrop.CustomView>
- Custom view object creation
val customView = findViewById<CustomView>(R.id.customView)
- Add the Image and drawable position
val data=ArrayList<dragmodel>()
data.add(Optionmodel("12th Feb", 136, 72, 380, 35))
data.add(Optionmodel("15th Aug", 136, 108, 380, 35))
data.add(Optionmodel("25th Dec", 136, 144, 380, 35))
data.add(Optionmodel("12 May", 136, 181, 380, 35))
data.add(Optionmodel("14th Feb", 136, 218, 380, 35))
customView.setInput(data,R.drawable.xx)
- Copyright 2018 The Android Open Source Project, Inc.
- Arivista Digital Pvt Ltd
- Arivista Digital Pvt Ltd
- Android Team