LinearLayout is a container for other items known as views that show up on the screen.
Linear Layout is a layout that arranges its children in a single row.
** For API Level < 8, use fill_parent
** For API Level 8+, use match_parent (fill_parent is deprecated)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
</LinearLayout>
Resources:
http://developer.android.com/reference/android/widget/LinearLayout.html
Popular Posts
- android:ellipsize - Add an ellipsis(...) in a TextView
- Save LogCat to a Text File
- android:typeface - Set the Typeface to Sans, Serif, or Monospace in a TextView/EditText
- Perform an Action after Enter keypress on EditText
- android:layerType
- How to Get Current Time in Milliseconds
- Capitalize Text in a TextView, using inputType
- Intent setType(String type) - How to Set an Explicit MIME data type
- android:alpha - Set the Opacity/Transparency of Text in TextView/EditText
- Deprecated: android:singleLine - Set a TextView to 1 Line with ellipsis(...) at end