Arjun Thakur has Published 1109 Articles

How to integrate Android Snackbar?

Arjun Thakur

Arjun Thakur

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

416 Views

Snackbar is just like Toast in android but it going to interact with action. It going to show the message at the bottom of the screen without any interaction with other views and close automatically after a time-out.This example demonstrates how to integrate Android Snackbar.Step 1 − Create a new ... Read More

How to make Marquee text in Android?

Arjun Thakur

Arjun Thakur

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

1K+ Views

This example demonstrate about how to make Marquee text 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 − Add the following code to res/layout/activity_main.xml.     In the above ... Read More

How to use View Stub in android?

Arjun Thakur

Arjun Thakur

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

472 Views

Before getting into example, we should know what is view stub in android. It is a zero-sized lazy inflate view. it going to inflate at runtime. Using inflate() method, it going to inflate at runtime and append to window manager or view group. using setVisibility(int). we can show and hide ... Read More

How to show Slide down to textview in android

Arjun Thakur

Arjun Thakur

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

401 Views

This example demonstrate about How to show Slide down to textview 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 − Add the following code to res/layout/activity_main.xml.     In ... Read More

How does Constraint Layout works in android?

Arjun Thakur

Arjun Thakur

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

933 Views

In simple words, constraint layout is an advanced version of a Relative layout. It is used to reduce the child view hierarchies and improve the performance.Properties of constraint layout as shown below -Wrap Content –It wrap the view size according to data. Any Size – This is very similar to ... Read More

Does MySQL update with regexp possible?

Arjun Thakur

Arjun Thakur

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

272 Views

You cannot update with regexp i.e. you need to use LIKE operator instead of regexp. MySQL does not provide support for update with regexp. The LIKE operator is as follows:UPDATE yourTableName SET yourColumnName= REPLACE(yourColumnName, yourValue)', '' ) WHERE yourColumnNameLIKE '%yourValueThatWillReplace)%';To understand the above syntax, let us create a table.mysql> create ... Read More

How to know if MySQL binary log is enabled through SQL command?

Arjun Thakur

Arjun Thakur

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

4K+ Views

to know if MySQL binary log is enabled through SQL command, you can use show variables command.The syntax is as followsshow variables like ‘yourPatternValue’;In place of ‘yourPatternValue’, you can use log_bin to check the binary log is enabled using SQL command show.The query is as followsmysql> show variables like 'log_bin';The ... Read More

How to use Android ViewPager?

Arjun Thakur

Arjun Thakur

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

2K+ Views

Before getting into the example, we should know what is view pager in android. View pager found in Support Library in Android, using view pager we can switch the fragments.This example demonstrates how to use android view pager.Step 1 − Create a new project in Android Studio, go to File ... Read More

Retrieve a large select by chunks in MySQL?

Arjun Thakur

Arjun Thakur

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

4K+ Views

To retrieve large select by chunks, you need to use ORDER BY LIMIT. The syntax is as follows:SELECT *FROM yourTableName ORDER BY yourColumnName LIMIT 0, 10;From the above syntax, you will get 10 rows from the table. In the above syntax, 0 represents the first row from the result set ... Read More

How to set random background for Recyclerview in Android?

Arjun Thakur

Arjun Thakur

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

3K+ Views

Before getting into set random background color for recycler view example, we should know what is Recycler view in android. Recycler view is a more advanced version of the list view and it works based on View holder design pattern. Using recycler view we can show grids and list of ... Read More

Advertisements