스크롤 막대 트랙과 엄지 손가락에 드로어 블을 사용하고 있습니다. 엄지 손가락의 경우 이미지의 원래 크기로 엄지 손가락을 볼 필요가 있습니다. 현재 엄지 손가락이 늘어져 있습니다.android scrollbar thumb length
2
A
답변
0
View
에는 스크롤 막대와 엄지를 그리는 방법을 계산하는 데 사용되는 3 개 (가로 + 세로 3 개) 보호 방법이 있으며이를 대체 할 수 있습니다. here 및 다음 방법을 참조하십시오.
0
스크롤바에 맞는 스타일을 만드십시오. 아래 코드를 스타일에 추가하십시오.
<style name="style_name">
<item name="android:scrollbarAlwaysDrawVerticalTrack">true</item>
<item name="android:scrollbarStyle">outsideOverlay</item>
<item name="android:scrollbars">vertical</item>
<item name="android:fadeScrollbars">false</item>
<item name="android:scrollbarThumbVertical">@drawable/scroller_thumb</item>
</style>
그런 다음 스타일을 스크롤 막대에 적용하십시오.
style="@style/style_name"
당신은 XML
android:scrollbarSize="0dip"
를 사용하여있는 ScrollView 크기를 설정할 수 있습니다 또는 당신은 프로그래밍 방식으로있는 ScrollView를 설정해야합니다.
LinearLayout.LayoutParams scrollParams = new LinearLayout.LayoutParams(width,height,2.0f);
scrollView.setLayoutParams(scrollParams);
관련 문제
- 1. Android SeekBar thumb 맞춤 설정
- 2. android scrollview and scrollbar position
- 3. WPF 사용자 지정 ScrollBar - Zune 스타일 ScrollBar
- 4. Scrollbar Question
- 5. objdump와 ARM vs Thumb
- 6. Monotouch - iOS - FPU/Thumb
- 7. iPhone Thumb 및 VFP
- 8. Java Thumb Oracle with Java6
- 9. Facebook 업데이트 상태 thumb 문제
- 10. Flex3 Canvas, ScrollBar
- 11. ScrollBar 너비는 어떻게 변경합니까?
- 12. ListView scrollbar question
- 13. ASP.NET GridView 가로형 ScrollBar
- 14. jquery : eventObject.pageY 및 scrollbar
- 15. jQuery ScrollBar - 집중하지 않습니까?
- 16. 기능 감지 - Lion scrollbar
- 17. Safari Frames Invisible Scrollbar
- 18. IE div width + scrollbar
- 19. ScrollBar 값이 잘못 설정되었습니다.
- 20. Tk GUI Scrollbar
- 21. Java Jlist Scrollbar
- 22. ScrollBar 막대 크기 설정?
- 23. jScrollPane Scrollbar 문제
- 24. ScrollViewer의 Scrollbar 크기
- 25. 안드로이드 - "device length"오류가 "invalid length"오류로 인해 실패합니다.
- 26. int [] [LENGTH] 대신`int * [LENGTH]`를 넘겨 주어도 괜찮습니까?
- 27. BindingSource.Filter maximum length
- 28. Limit Ringtone Length Applescript
- 29. Seekbar length manipulation
- 30. Viewstate invalid length error