안드로이드 개발 질문/답변
(글 수 45,052)
질문이 있어 이렇게 글 남깁니다.
다름이 아니라.
싸이즈가 다른 이미지를 화면에 같은 비율로 나타 나게 하고 싶습니다.
예를 들어 총 4개의 이미지가 있다면(각각 크기가 다른 이미지 )
이런식으로 나오게 하려고 합니다.
제가 작성한 소스는
입니다.
조언 부탁 드립닏. (--)(__)(--)
다름이 아니라.
싸이즈가 다른 이미지를 화면에 같은 비율로 나타 나게 하고 싶습니다.
예를 들어 총 4개의 이미지가 있다면(각각 크기가 다른 이미지 )
이런식으로 나오게 하려고 합니다.
제가 작성한 소스는
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content"> <ImageView android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="2" android:gravity="center" android:src = "@raw/a11"/> <ImageView android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="2" android:gravity="center" android:src = "@raw/a12"/> <ImageView android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="2" android:gravity="center" android:src = "@raw/a13"/> <ImageView android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="2" android:gravity="center" android:src = "@raw/a14"/> </LinearLayout>
입니다.
조언 부탁 드립닏. (--)(__)(--)