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