15
가로 LinearLayout의 오른쪽 맞춤 버튼
첨부 된 이미지를 보면 버튼을 올바르게 정렬해야하지만 어떤 이유로 'gravity : right'와 함께 작동하지 않습니다 ... 해당 레이아웃에 대한 내 코드는 다음과 같습니다. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginTop="35dp"> <TextView android:id="@+id/lblExpenseCancel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/cancel" android:textColor="#404040" android:layout_marginLeft="10dp" android:textSize="20sp" android:layout_marginTop="9dp" /> <Button android:id="@+id/btnAddExpense" android:layout_width="wrap_content" android:layout_height="45dp" android:background="@drawable/stitch_button" android:layout_marginLeft="10dp" android:text="@string/add" android:layout_gravity="right" android:layout_marginRight="15dp" /> </LinearLayout> …