[android] ScrollView android:fillViewport 안드로이드, ScrollView android:fillViewport http://developer.android.com/reference/android/widget/ScrollView.html#setFillViewport(boolean) ScrollView 를 사용하게 되면 안쪽에 있는 Layout 이 wrap_content 의 형태로 assign 되어야 한다. 하지만 간혹가다 ScrollView 의 안쪽 layout 이 match_parent 의 형태가 되기를 바라는 경우가 있다. 이럴 경우에는 어떻게 해야 할까? 바로, android:fillViewport 값을 이용하면 된다. 이 값을 true 로 해주면, 안쪽에 있는 contents 를 view port 의 사이즈로 stretch 해준다. xml.. 2013. 9. 4. 반응형 이전 1 다음