안드로이드 개발 질문/답변
(글 수 45,052)
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/widget_home_background" android:gravity="center"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" /> </LinearLayout>
android:gravity="center" 이것은 가운데에 정렬이 되는것인데..
홈스크린위젯 적용시에는 잘안되는거 같습니다. 항상 가운데에 두려고 하려면 어떻게 해야하는지 알고싶네요~




<TextView android:layout_width="fill_parent" 를 android:layout_width="wrap_content"로 하심이~~~