Nitya Raut has Published 276 Articles

How to add dividers and spaces between items in RecyclerView?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

2K+ Views

This example demonstrate about How to add dividers and spaces between items in RecyclerViewStep 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.     ... Read More

How to use checktextview in android?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

380 Views

Before getting into the example, we should know what checktextview in android is. Check textview is expanded by textview and contains checkable interface. Using Checktextview we can find that, whether a user is clicked on textview or not.This example demonstrate about How to use checktextview in android.Step 1 − Create ... Read More

How to add list in alert dialog?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

789 Views

This example demonstrate about how to add list in alert dialogStep 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.     In the above ... Read More

Remove spaces from std::string in C++

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

14K+ Views

In this program we will see how to remove the spaces from a std::string in C++. To remove this we will use the remove() function. With this remove() function it takes the beginning and end of the iterator, then takes the third argument that will be deleted from that iterator ... Read More

How to use pie chart graph in android?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

3K+ Views

This example demonstrate about How to use pie chart graph in android.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 − Open build.gradle(module level) and add library dependency.apply plugin: 'com.android.application' android { ... Read More

Replace substring with another substring C++

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

2K+ Views

Here we will see how to replace substring with another substring. It replaces the portion of the string that begins at character pos and spans len characters.The structure of the replace function is like below:string& replace (size_t pos,  size_t len,  const string& str,  size_t subpos,  size_t sublen);The parameters are pos: It is an insertion point, str : It ... Read More

How to use Line chart graph in android?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

2K+ Views

This example demonstrate about How to use Line chart graph in android.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 − Open build.gradle(module level) and add library dependency.apply plugin: 'com.android.application' android { ... Read More

How to create firebase account for android application?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

105 Views

This example demonstrate about How to create firebase account for android applicationRegister with firebase account using https://firebase.google.com/Click on Sign in button, it will ask gmail user name and pass word as shown below –Give proper user name and pass word. After successful login process, it will redirect to main page ... Read More

How to use Scatter chart graph in android?

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

496 Views

This example demonstrate about How to use Scatter chart graph in android.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 − Open build.gradle(module level) and add library dependency.apply plugin: 'com.android.application' android { ... Read More

C++ Program to Implement Stack

Nitya Raut

Nitya Raut

Updated on 30-Jul-2019 22:30:25

8K+ Views

In this program we will see how to implement stack using C++. A stack is an abstract data structure that contains a collection of elements. Stack implements the LIFO mechanism i.e. the element that is pushed at the end is popped out first. Some of the principle operations in the ... Read More

Advertisements