마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

[초보주의] 아이폰 잠금화면 layout을 안드로이드에서 모양을 구현 하고 싶은데여...

0 추천
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#ffffffff"
    tools:context=".MainActivity"
    >
    <HorizontalScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        >
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="horizontal">
            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                >
                <RelativeLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerHorizontal="true"
                    android:id="@+id/mainscreen_timelayout"
                    >
                    <RelativeLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:id="@+id/mainscreen_clocklayout"
                        >

                        <TextView
                            android:text="AmPm"
                            android:textSize="10dp"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_centerVertical="true"
                            android:id="@+id/mainscreen_ampm"
                            />
                        <TextView
                            android:text="CLOCK"
                            android:textSize="50dp"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_toRightOf="@+id/mainscreen_ampm"
                            android:id="@+id/mainscreen_clock"
                            />
                    </RelativeLayout>
                    <TextView
                        android:text="date"
                        android:textSize="20dp"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/mainscreen_clocklayout"
                        android:layout_centerHorizontal="true"
                        android:id="@+id/mainscreen_date"
                        />
                </RelativeLayout>
                <RelativeLayout
                    android:layout_width="300dp"
                    android:layout_height="300dp"

                    android:layout_centerHorizontal="true"
                    android:layout_centerVertical="true"
                    android:layout_marginTop="10dp"
                    android:id="@+id/mainscreen_contentslayout"
                    >
                   
                            <ImageView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:background="@drawable/ic_launcher"
                                />



                        


                   
                </RelativeLayout>
                <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_centerHorizontal="true"
                    android:layout_below="@+id/mainscreen_contentslayout"
                    android:layout_marginTop="20dp"
                    >
                    <TextView
                        android:text=" 잠금 해제"
                        android:textSize="35dp"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_centerHorizontal="true"
                        android:id="@+id/mainscreen_lockonoff"
                        />
                </RelativeLayout>
            </RelativeLayout>
            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:background="@android:color/darker_gray"
                android:layout_gravity="center"
                >
                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="@drawable/ic_launcher"
                    />

            </LinearLayout>
        </LinearLayout>
    </HorizontalScrollView>
</RelativeLayout>

이런식으로 horizontalScrollView를 구현해서하니까 이런식으로 옆에 삐져나와요 ㅠㅠ 어떻게하면 깔끔하게 아이폰 잠금화면 모양을 구현할 수 있을까요?

익명사용자 님이 2015년 7월 6일 질문

답변 달기

· 글에 소스 코드 보기 좋게 넣는 법
· 질문에 대해 추가적인 질문이나 의견이 있으면 답변이 아니라 댓글로 달아주시기 바랍니다.
표시할 이름 (옵션):
개인정보: 당신의 이메일은 이 알림을 보내는데만 사용됩니다.
스팸 차단 검사:
스팸 검사를 다시 받지 않으려면 로그인하거나 혹은 가입 하세요.
...