안드로이드 개발 질문/답변
(글 수 45,052)
현재 단말기에 설치된 어플목록을 출력해주는 어플을 만들고 있는데요
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView android:layout_width="50dp"
android:layout_height="50dp"
android:id="@+id/ivIcon"/>
<TextView android:text="@+id/TextView01"
android:layout_below="@id/ivIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1" android:textSize="15dp"
android:id="@+id/tvName"/>
</RelativeLayout>
이 코드로 써서 만들었는데
어플
이름
어플
이름
이런식으로 한칸에 하나씩으로만 나와서
홈버튼 누르면 뜨는 방식으로
어플 어플 어플 어플
이름 이름 이름 이름
어플 어플 어플 어플
이름 이름 이름 이름
이런식으로 출력하고 싶은데 도움 좀 부탁드립니다.




<Button
android:id="@+id/1"
>
<Button
android:id="@+id/2"
android:layout_toRightOf="@id/1"
>
<Button
android:id="@+id/3"
android:layout_toRightOf="@id/2"
>
<Button
android:id="@+id/4"
android:layout_toRightOf="@id/4"
>
<Button
android:id="@+id/5"
android:layout_below="@id/1"
>
<Button
android:id="@+id/6"
android:layout_below="@id/1"
android:layout_toRightOf="@id/5"
>
이런식으로 xml에서 만드신다음에
왼쪽 처음라인을제외해서 숨겨두셧다가 홈키 눌렷을때 보이게 하시면어떨지..