Skip to content

Instantly share code, notes, and snippets.

@KoMinkyu
Last active August 29, 2015 13:56
Show Gist options
  • Save KoMinkyu/8838531 to your computer and use it in GitHub Desktop.
Save KoMinkyu/8838531 to your computer and use it in GitHub Desktop.
아이디 비밀번호 입력창이 없어서 만들었음
<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="@drawable/ee"
tools:context=".MainActivity$PlaceholderFragment">
<EditText
android:layout_width="200dp"
android:layout_height="43dp"
android:layout_marginTop="350dp"
android:background="#cbbbcc"
android:text="username"
android:textColor="#000000"
android:gravity="center_horizontal|center_vertical"
android:layout_centerHorizontal="true"/>
<EditText
android:layout_width="200dp"
android:layout_height="43dp"
android:layout_marginTop="400dp"
android:background="#cbbbcc"
android:text="password"
android:textColor="#000000"
android:gravity="center_horizontal|center_vertical"
android:layout_centerHorizontal="true"/>
<ImageButton
android:id="@+id/button_login"
android:layout_marginBottom="15dp"
android:layout_width="200dp"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:background="@drawable/ff"/>
</RelativeLayout>
@KoMinkyu
Copy link
Author

KoMinkyu commented Feb 6, 2014

일단 코드 정리한거
필요없는 부분은 빼버렸고 TextView에다가 background속성 줘서 그림 넣었네?
보통 백그라운드로 들어가는 이미지는 Layout의 background 속성에 설정해

@KoMinkyu
Copy link
Author

KoMinkyu commented Feb 6, 2014

물어봤던 Padding 문제는 최상위 레이아웃에 padding관련 속성 값들이 있었어
주의깊게 봤으면 눈치 챌 수 있을만한거였는데 여튼 padding문제는 항상 어딘가에 padding 속성값이 들어가있는거니깐
확인 하시길

@KoMinkyu
Copy link
Author

KoMinkyu commented Feb 6, 2014

그리고 나랑 작업 많이 하면서 또 실수한거
아이디 비밀번호 입력창은 디자인 요소가 아니야 ㅇㅇ
물론 입력창에 대한 디자인을 할 수 있지만
그 것도 객체를 만들어 줘야겠지? 여튼 이부분 추가한거 초록색으로 표시돼있을거야.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment