Home » Android » core » ui » Page 3

ui

Android TableLayout Example

In Android there are may ways you can arrange the components of your Application on the screen. One of the most common layouts is the TableLayout. In this tutorial we are going to see how TableLayout works with some input components. A very common use case of the TableLayout is, of course, when you want to present tabular data (statistics for example…) ...

Read More »

Android RelativeLayout Example

In Android there are may ways you can arrange the components of your Application on the screen. One of the most common layouts is the RelativeLayout. In this tutorial we are going to see how RelativeLayout works with some input components. There is a good reason why it’s called RelativeLayout. That’s because it let’s you arrange the components on your screen in positions relative ...

Read More »

Android LinearLayout Example

In Android there are may ways you can arrange the components of your Application on the screen. One of the most common layouts is the LinearLayout. In this tutorial we are going to see how LinearLayout works with two different orientation options, for three buttons. An important feature that we are going to discuss is the android:layout_weight attribute of the ...

Read More »

Android ImageButton Selector Example

In Android you can use the ImageButton component to display a normal Button with a custom image as a background. Take a look at our previous tutorial to remember the use of ImageButton. The fact is that you can do more than just an Image which is also a button. In this tutorial we are going to use two different images that will reflect the ...

Read More »

Android ImageButton Example

In Android you can use the ImageButton component to display a normal Button with a custom image as a background. The ImageButton has all the properties of a normal button. So, in this tutorial when the user clicks on the ImageButton, a ClickListener will be called (just like it would with a normal Button…) and display a short message on the ...

Read More »

Android ImageView Example

In Android you can use the ImageView component to display images in your Application. Although it is quite easy to use ImageView, there are many different configuration options and many screens from different devices that you should take into account. You might want to take a look at Drawable Resource and Screen Support documentation.               For this tutorial, ...

Read More »

Android Toast Example

In Android you can use the Toast component to display short pop up messages to the user that automatically disappear in few seconds. In general a Toast message is quick way to debug you’re application, for example to check whether a button is working properly or not. In this tutorial we will show how to display a regular Toast message. Additionally ...

Read More »

Android Custom Dialog Example

In Android you can use the Dialog component, and you can customize it to your own User Interface so it can have any use you want. In this tutorial we are going to create a Dialog that will display a custom image and a text message. As we know there is no such thing by default. That means we have to make it ourselves. ...

Read More »

Android Prompt User Input Dialog Example

In Android you can use the AlertDialog component, and you can customize it to your own User Interface so it can have any use you want. In this tutorial we are going to create an AlertDialog that can accept text input for the user. As we know there is no such thing by default. That means we have to make ...

Read More »

Android Alert Dialog Example

The Alert Dialog is a very common component in all User Interfaces, when you want to inform the User about a serious decisions concerning some aspects or the flow of the Application. In this tutorial, we will learn how to display a simple Alert Dialog, where the User will decide whether to to close the Application or not.               ...

Read More »