Android highlight the paragraph in TextToSpeech

This post is about how to change paragraph color which is current speaking in TextToSpeech. Creating new project 1. Create a new project by going to File ⇒ New Android Project, fill the required details and then click on finish. 2. The below layout file consist of two textView and a button to trigger an event that will highlight the …

Android highlight the paragraph in TextToSpeechRead More »

Android highlight a word in TextToSpeech

This post is about how to highlight the word while speech is running in TextToSpeech. Creating new project 1. Create a new project by going to File ⇒ New Android Project, fill the required details and then click on finish. 2. The below layout file consist of two textView and a button to trigger a event that will highlight the …

Android highlight a word in TextToSpeechRead More »

Android Text to Speech Example

Android is providing a cool feature (from Android 1.6) called Text to Speech (TTS) or speech synthesis which speaks the text in different languages. This tutorial is about how to work with android text to speech or android speech synthesis. It also includes changing the language type, speech pitch and speech rate. Creating new Project …

Android Text to Speech ExampleRead More »

Android Styles and Themes

This article is about Android Styles and Themes and how to use them in Android application with the help of simple examples. Style A style is a collection of attributes that specify the appearance for a single View. A style can specify attributes such as font color, font size, background color, and much more. Create and apply a …

Android Styles and ThemesRead More »

Kotlin Interfaces(With Examples)

This article is about interfaces and how to implement it in Kotlin with the help of simple examples. Interfaces In Kotlin, Interfaces can contain declarations of abstract methods (have no body), as well as method implementation of non-abstract methods.  Interfaces can have properties but these need to be abstract or to provide accessor implementations. Creating …

Kotlin Interfaces(With Examples)Read More »

Kotlin Abstract Classes and Abstract Members

In this article, you will learn about Kotlin abstract classes, abstract methods and how to use them in our program with the help of examples. Abstract Classes An abstract class is a class that cannot be instantiated (we cannot create objects of an abstract class). Syntax We use the abstract keyword to declare an abstract class. abstract class className …

Kotlin Abstract Classes and Abstract MembersRead More »

Android Drag and Drop Example

This tutorial is about Android drag and drop feature and how to use it in an Android application with a simple example. Android Drag and Drop framework, allows you to move data from one View to another using a graphical drag and drop gesture. Although the framework is primarily designed for data movement, you can …

Android Drag and Drop ExampleRead More »

Java static Keyword(With Examples)

This post is about Java static keyword along with static methods, static variables, static class, and static blocks with the help of simple examples. Java static Keyword In Java, If we want to access class members without creating an instance of the class, we need to declare the class member with static keyword. In Java, …

Java static Keyword(With Examples)Read More »

Android GridLayoutManager Example With RecyclerView

This article is about Android GridLayoutManager and how to use it with RecyclerView to show items in uniform grid with the help of simple android application. GridLayoutManager The RecyclerView widget is a more advanced and flexible version of ListView. It is a container for displaying large data sets that can be scrolled very efficiently by maintaining a limited …

Android GridLayoutManager Example With RecyclerViewRead More »

Java Access Modifiers

This post is about Access/Visibility modifiers in Java and how to use them. Access Modifiers In Java, access modifiers are used to set the accessibility (visibility) of classes, constructors, data members and methods in another classes.  There are four types of access modifiers available in java: Default : visible only within the package. Private: visible …

Java Access ModifiersRead More »

%d bloggers like this: