Context The Context class gives you access to the global information about an application’s environment. It lets you: Access the apps resources and classes Communicate with other app components
All spaced out! Don’t be confused by: The gravity and layout_gravity attributes padding and margins Check out these quick examples…
How to keep your clothes on and have fun with text! You use the TextView class to display text to the user. Although you can also edit the text displayed in text views, it’s best to use the TextView subclass, EditText to do that. The TextView class has a number…
Throw your weight around Linear layouts support a layout_weight attribute. We can use the weight attribute to allocate a portion of the layout’s space to a view, depending on its weight. All views have a default weight of 0. You can set a weight attribute using a float value for…
Softly, softly. Using Android’s soft keyboard: A tutorial In the introduction, we covered the basics of using soft keyboards.  If you haven’t read it yet, you’ll find it here: Android’s soft keyboard. An introduction. In this tutorial, we’ll show you how to use the soft keyboard in your apps.