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
- Perform an Action after Enter keypress on EditText
- Intent setType(String type) - How to Set an Explicit MIME data type
- Determine the Hex value for a color
- android:scrollbarStyle - Change the Scrollbar Location/Style in a TextView
- How to Register an Activity that Responds to NFC tags for URI's that point to a URL
- android:ellipsize - Add an ellipsis(...) in a TextView
- How to Install an SDK package
- How to Add a Toast
- Solution: Running Android Lint has encountered a problem Failed
- android:drawablePadding - Add Padding to a Drawable in a TextView, in XML