본문 바로가기

Android

리니어 레이아웃 - 베이스정렬(baselineAligned)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

    xmlns:tools="http://schemas.android.com/tools"

    android:id="@+id/LinearLayout1"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:orientation="horizontal"

    android:paddingBottom="@dimen/activity_vertical_margin"

    android:paddingLeft="@dimen/activity_horizontal_margin"

    android:paddingRight="@dimen/activity_horizontal_margin"

    android:paddingTop="@dimen/activity_vertical_margin"

    tools:context=".MainActivity"

    >

 

    <TextView

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:text="Medium"

        android:textSize="10pt"/>

   

    <TextView

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:text="Small"

        android:textSize="5pt"

        android:background="#0000ff"/>

   

    <TextView

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:text="Large"

        android:textSize="20pt"

        android:typeface="serif"/>

     

</LinearLayout>

 

 

 

 

 

 

 

'Android' 카테고리의 다른 글

프레임레이아웃(FrameLayout)  (0) 2013.03.27
RelativeLayout  (0) 2013.03.27
버튼과 에디트  (0) 2013.03.26
이미지뷰(imageView) 실습  (0) 2013.03.26
텍스트뷰(TextView) 실습  (0) 2013.03.26