I have a small problem , or rather I do not know how. I combed through every corner of the Internet ( guides , tutorials etc ... )
In practice I have extended a class of VIEW and I customized the class with canvas etc ...
This view is included in a layout where there is also button, and this layout is set to a fragment and shown in an Activity (as usual ) .
I need to do the " scroll " horizontal in custom view to show all the graphics even hidden because the screen is small . You know tell me some solution or guide?
I hope I explained myself . Let me know and thanks in advance Greetings
答案 0 :(得分:0)
将HorizontalSCrollView与LinearLayout一起使用并添加元素。
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="50dp" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<!-- your elements-->
</LinearLayout>
</HorizontalScrollView>