가운데 정렬

    <LinearLayout

        android:orientation="horizontal"

        android:gravity="center_horizontal"

        android:layout_width="fill_parent"

        android:layout_height="wrap_content"

        >


        <Button

            android:id="@+id/button01"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:onClick="onButtonSendClicked"

            android:text="버튼1" />

            />


        <Button

            android:id="@+id/button02"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:onClick="onButtonDownClicked"

            android:text="버튼2" />

    </LinearLayout>


오른쪽 정렬

   <LinearLayout

        android:orientation="horizontal"

        android:gravity="right"

        android:layout_width="fill_parent"

        android:layout_height="wrap_content"

        >


        <TextView

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="텍1"

            android:textColor="#00FFFF"

            />

        <TextView

            android:layout_width="wrap_content"

            android:layout_height="wrap_content"

            android:text="텍2"

            />

    </LinearLayout>


+ Recent posts