layout.xml에서 view 조정하기

<textview line space 조절>

android:lineSpacingExtra=”10dip”

 

<한글폰트>

android:typeface=”sans”

http://202psj.tistory.com/429

 

<안드로이드 이미지 사이즈조정>

android:adjustViewBounds="true"
    android:scaleType="fitCenter"

이를 넣어주면 width, height값에 맞춰서 이미지 조정됨

https://stackoverflow.com/questions/18077325/scale-image-to-fill-imageview-width-and-keep-aspect-ratio

http://recipes4dev.tistory.com/105

 

<가운데정렬>
textview ))

android:gravity=”center_horizontal”

imageview horizontal 일때))

android:layout_width=”fill_parent”

android:layout_gravity=”center”

 

linearlayout horizontal orientation 일때))

android:gravity=”center_horizontal”

 

<textview settext에서 내용이 길어서 짤릴 경우>

android:layout_height=”wrap_content”

android:inputType=”textMultiLine”
<scrollview안에 relative layout 넣는법>

https://stackoverflow.com/questions/10716293/relativelayout-inside-scrollview-with-allignparentbottom
<수평선 그리기>

<View  android:layout_width=”1dip”android:layout_height=”fill_parent”android:background=”#FF0000FF” />
http://blog.naver.com/PostView.nhn?blogId=credenda&logNo=80207724808&categoryNo=0&parentCategoryNo=63&viewDate=&currentPage=1&postListTopCurrentPage=1

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s