Entries by Ajay Bagujar

Clamping value using Math library JavaScript

You may be never heard about clamping value in JavaScript. Yes correct its because there is nothing built in available in JavaScript to clamp the values. Here I have shared few options how we can define clamp function with Math library. Option 1: Readable

Option 2: Compact with readable

Option 3 : More […]

Keep users in loop

In my past days when I was a developer or in other words I can say when I started my career as a Multimedia Programmer in that time I always noticed one thing very common in every project. The thing is getting all requirements from client and going for the coding and testing under secret […]

Creating a Toggle Button using HTML5 CSS3 and JavaScript

Let’s look how to create Toggle Button. We will cover prettying up using CSS and CSS3. Before we get started, we need to create a HTML page. So lets create a HTML page. Setting up HTML page In my case I always use Visual Studio Code editor to create my any web applications. So create […]

Creating Custom Combobox or Select box using HTML CSS and JavaScript

Combobox or as you know Select box in HTML5 is most common form element used in many websites. But sometime due to limitation of HTML select box we cant style it as per our requirement or we have to use some kind of css or javascript trick to get the result. But still we can […]

Creating Simple Range Slider Component Using JavaScript

Writing components is little bit difficult task while developing a web based application, specially when you are a beginner or you don’t know how to write it and implement it. So lets see how we can create a simple Range Slider component using HTML/CSS/JavaScript. Before writing JavaScript for component, first we will need a HTML […]

Creating simple block breaking game using CreateJS

Breaking bricks is the most popular game you may played sometime online or offline and you would like to make it as a beginning of game development. Here I am going to show you how simply you can create break it game in HTML5 using CreateJS. CreateJS is the collection of libraries which allow us […]

Creating Android Custom Component: Check Box

Suppose, you are developing a data driven application of something related settings or kind of stuff, and where you want to implement on-off or show-hide kind of functionality. To implement such kind of functionalities we use Check Box or On-Off button components as front end. Most of the programming languages provides us some built-in components […]

Android Using ImageButton

Most of the time in the application we want to say more about, what button will function on click. But its not possible to write entire statement/description as label of button. And there is option for it to set image/picture as Icon on the button. In the given below xml you can see, how we […]

Android Using Buttons and Ways to Handling Event

In android development life-cycle, Button view is most common view used on activity. This article shows you basic types of Button view and how we can implement event handlers in different ways. Lets create layout xml first with some Buttons. main.xml

Implementing onClick handlers in various ways.

Handling Event Way 1 Notice the […]

How to define style and use it in Android

While developing certain mobile applications such as Game or some kind of data driven application, you always need to follow some design standards like text color, font, size etc. or the image/logo at particular position on each screen and for that you need to define same properties to each TextView or ImageView widgets on each […]