Top Menu

Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Thursday 18 September 2014

How to set textView at bottom in Linear layout


Create xml:

activity.main.xml

<?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"

    android:background="@drawable/cover"  

    android:orientation="vertical" >

 

    <TextView

        android:id="@+id/textView1"

        android:layout_width="match_parent"

        android:layout_height=0dp

        android:gravity="center|bottom"

        android:layout_weight="1"

        android:text="Large Text"

        android:textAppearance="?android:attr/textAppearanceLarge" />

 

</LinearLayout>

No comments:

Post a Comment