android tutorial part 2:
Workiing with buttons Edittext and arithmetic operators
Android Button Example
Android Button represents a push-button. The android.widget.Button is subclass of TextView class and CompoundButton is the subclass of Button class.
There are different types of buttons in android such as RadioButton, ToggleButton, CompoundButton etc.
Here, we are going to create two textfields and one button for sum of two numbers. If user clicks button, sum of two input values is displayed on the Toast.
Drag the component or write the code for UI in activity_main.xml
First of all, drag 2 textfields from the Text Fields palette and one button from the Form Widgets palette as shown in the following figure.
The generated code for the ui components will be like this:
Now write the code to display the sum of two numbers.
22 SUPER FOOD HACKS & TRICKS
22 great food tips and tricks you can use in your home kitchen.
1. Shakey cutting board DIY fix
hope you enjoy these cooking tricks that will make your time in the kitchen easier if you did enjoy them and want to see more check out these videos here:
also, follow us on our youtube channel for more videos:
Channel: Simple Tricks & Hacks
Published: 2018-02-26 14:41:01
Database Design Tutorial
Database Design Tutorial utilizing Visio and Microsoft SQL Server Express 2014. This is an introduction to database design through the first three normal forms.
Published: 2016-01-09 23:38:33
Best Makeup Transformations 2018 | New Makeup Tutorials Compilation
★ Don’t forget like, comment & subscribe! THANK YOU SO MUCH!
Channel: Beauty Tricks
Published: 2018-01-30 13:04:26
Trick to remember Trigonometry Values-PALM TRICK [In Hindi]
Please watch: “Cell and its Types| Lucent GK | for SSC and RAILWAY [IN HINDI]”
In this video i am explaining a very fantastic trick to remember Trigonometry values very easily.After this you dont have to mug up the values.You just need your palm thats it.
FOLLOW ME MY FACEBOOK PAGE- https://www.facebook.com/MDSACADEMY6/
• RAILWAY GK QUESTION & ANSWER-https://www.youtube.com/playlist?list=PLLEJ2IKrIGS595oB34jgAvFvG20AMmDoR
• BIOLOGY MCQs FOR SSC & RAILWAY EXAMS-https://www.youtube.com/playlist?list=PLLEJ2IKrIGS5vggHOybEaMHqe7ycWR4i0
• ONE WORD SUBSTITUTION FOR SSC CGL|CHSL|CPO-https://www.youtube.com/playlist?list=PLLEJ2IKrIGS668rFbEQu8KzbGhvxBfl6Q
• ENGLISH COMMON ERROR DETECTION-https://www.youtube.com/playlist?list=PLLEJ2IKrIGS6393CCVVNA9POq1pF6Krtf
• ACTIVE PASSIVE TRICKS FOR SSC EXAM-https://www.youtube.com/playlist?list=PLLEJ2IKrIGS6tkcFtaoUAXKTZAkwTbc1-
• DIRECT INDIRECT SPEECH TRICKS FOR SSC EXAM-https://www.youtube.com/playlist?list=PLLEJ2IKrIGS6V6RrOBbeb76Pb6GpGijWV
Channel: MDS ACADEMY
Published: 2017-02-02 19:26:39
Android Tutorials: GUI Designing part 3 by Ukvalley: Android Training Institute in nashik
In this chapter we will look at the different UI components of android screen. This chapter also covers the tips to make a better UI design and also explains how to design a UI.
UI screen components
Main Action Bar
Anroid UI Tutorial
View and ViewGroups
Types of layout
Apart form these attributes, there are other attributes that are common in all views and ViewGroups. They are listed below −
Sr.No View & description
Specifies the width of the View or ViewGroup
Specifies the height of the View or ViewGroup
Specifies extra space on the top side of the View or ViewGroup
Specifies extra space on the bottom side of the View or ViewGroup
Specifies extra space on the left side of the View or ViewGroup
Specifies extra space on the right side of the View or ViewGroup
Specifies how child Views are positioned
Specifies how much of the extra space in the layout should be allocated to the View
Units of Measurement
Sr.No Unit & description
Density-independent pixel. 1 dp is equivalent to one pixel on a 160 dpi screen.
Scale-independent pixel. This is similar to dp and is recommended for specifying font sizes
Point. A point is defined to be 1/72 of an inch, based on the physical screen size.
Pixel. Corresponds to actual pixels on the screen
Avoid unnecessary nesting
Channel: Umesh Khivasara
Published: 2018-03-08 08:23:19