Articles on Trending Technologies

Technical articles with clear explanations and examples

How to create a listView with a checkBox in Kotlin?

Azhar
Azhar
Updated on 23-May-2020 2K+ Views

This example demonstrates how to Create a listView with a checkBox in Kotlin.Step 1  − Create a new project in Android Studio, go to File ? New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.Example Step 3 − Add the following code to src/MainActivity.ktExampleimport android.view.View import android.widget.AdapterView.OnItemClickListener import android.widget.ListView import androidx.appcompat.app.AppCompatActivity import java.util.* class MainActivity : AppCompatActivity() {    private var dataModel: ArrayList? = null    private lateinit var listView: ListView    private lateinit var adapter: CustomAdapter    override fun onCreate(savedInstanceState: Bundle?) {       super.onCreate(savedInstanceState) ...

Read More

How to create a WebView in an Android App using Kotlin?

Azhar
Azhar
Updated on 23-May-2020 2K+ Views

This example demonstrates how to create a WebView in an Android App using Kotlin.Step 1 − Create a new project in Android Studio, go to File ? New Project and fill all required details to create a new project.Example         Step 3 − Add the following code to src/MainActivity.ktExampleimport android.os.Bundle import android.webkit.WebView import android.webkit.WebViewClient import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity() {    private val webView: WebView? = null    override fun onCreate(savedInstanceState: Bundle?) {       super.onCreate(savedInstanceState)       setContentView(R.layout.activity_main)       title = "KotlinApp"       val webView = findViewById(R.id.webView)       ...

Read More

Add and Remove Views in Android Dynamically in Kotlin?

Azhar
Azhar
Updated on 23-May-2020 4K+ Views

This example demonstrates how to Add and Remove Views in Android Dynamically in Kotlin.Step 1 − Create a new project in Android Studio, go to File ? New Project and fill all required details to create a new project.Step 2  − Add the following code to res/layout/activity_main.xml.Example                           Step 3 − Add the following code to src/MainActivity.ktExampleimport android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.widget.LinearLayout import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity() {    private var parentLinearLayout: LinearLayout? = null   ...

Read More

Adaptive Frequency Hopping

Moumita
Moumita
Updated on 22-May-2020 731 Views

Bluetooth communication networks are prone to signal interferences in environments where other wireless networks coexist. The problem is aggravated when they use the same frequency bands. Bluetooth technology and IEEE 802.11 networks, like Wireless LANs (WLANs) and WiFi, operate in the same unlicensed 2.4 GHz ISM (Industrial, Scientific, and Medical) radio band. In order to reduce the impact of these interferences, Adaptive Frequency Hopping (AFH) was introduced by Bluetooth Special Interest Group (SIG).In Adaptive Frequency Hopping, when a Bluetooth device is introduced in the network, it identifies the channels that are presently fixed for communication by WiFi or WLANs. It ...

Read More

How to remove the tick marks in JavaFX XY charts?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 475 Views

The javafx.scene.XYChart class is the base class of all the charts that are plotted in an x-y pane. By instantiating the subclasses of this class you can create various XY charts namely − line chart, area chart, bar chart, pie chart, bubble chart, scatter chart, etc.In the XY chart, the given data points are plotted on an XY plane. Along the x and y axes, you will have the tick marks and tick labels. The tick marks represent various values with uniform intervals.Removing the tick marksThe javafx.scene.chart.Axis class (abstract) is the base class of all the axes in XY charts. ...

Read More

How to modify the length of the tick marks in JavaFX XY charts?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 660 Views

The javafx.scene.XYChart class is the base class of all the charts that are plotted in an x-y pane. By instantiating the subclasses of this class you can create various XY charts namely − line chart, area chart, bar chart, pie chart, bubble chart, scatter chart, etc.In the XY chart, the given data points are plotted on an XY plane. Along the x and y axes, you will have the tick marks and tick labels. The tick marks represent various values with uniform intervals.Changing the length of the tick marksThe javafx.scene.chart.Axis class (abstract) is the base class of all the axes ...

Read More

How to change the color and font of the tick marks in a JavaFX XY chart?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 1K+ Views

The javafx.scene.XYChart class is the base class of all the charts that are plotted in an x-y pane. By instantiating the subclasses of this class you can create various XY charts namely − line chart, area chart, bar chart, pie chart, bubble chart, scatter chart, etc.In the XY chart, the given data points are plotted on an XY plane. Along the x and y axes, you will have the tick marks and tick labels. The labels specify the names (or numbers) of the values.Changing the color of the tick labelsThe javafx.scene.chart.Axis class (abstract) is the base class of all the ...

Read More

How to create a bubble chart with two parameters in JavaFX?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 246 Views

The bubble chart accepts a series of data points (x, y) as input values and, creates bubbles for the data points in the given series. In JavaFX, you can create a bubble chart by instantiating the javafx.scene.chart.BubbleChart class.Generally, in all X-Y charts, the data points plot two values (x, y). In the bubble chart, there is a third value which is represented by the radius of the bubble. This chart comes handy while plotting the data points in 3 dimensions.Anyhow, it is not mandatory to have the third value, it is only optional. Like any other XY chart, you can ...

Read More

How to move the x-axis to top in a JavaFX line chart?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 583 Views

Inline chart, the data values have represented a series of points connected by a line. In JavaFX, you can create a line chart by instantiating the javafx.scene.chart.LineChart class.By default, A JavaFX Line chart contains symbols pointing out the values in the series along the x-axis. Typically, these are small circles.The X-Axis on the bottom in the plot.Y-Axis on the left.Moving the X-Axis to topThe Axis class (superclass of all axes) has a property named side, this specifies the side of the plot at which you need to have the current axis (left, right, top-bottom). You can set the value to ...

Read More

What are symbols in a JavaFX line chart. How to disable them?

Maruthi Krishna
Maruthi Krishna
Updated on 20-May-2020 1K+ Views

Inline chart the data values have represented a series of points connected by a line. In JavaFX, you can create a line chart by instantiating the javafx.scene.chart.LineChart class.By default, A JavaFX Line chart contains symbols pointing out the values in the series along the x-axis. Typically, these are small circles.The X-Axis on the bottom in the plot.Y-Axis on the left.Disabling the symbolsThe LineChart class has a property named createSymbols (boolean), which specifies whether to create symbols for data items in the chart. You can set values to this method using the setCreateSymbols() method.To remove symbols from a line chart you ...

Read More
Showing 54141–54150 of 61,299 articles
Advertisements