Android 如何使用滚动视图将布局保存为图像?
我的UI有点像Android 如何使用滚动视图将布局保存为图像?,android,android-layout,Android,Android Layout,我的UI有点像 <?xml version="1.0" encoding="utf-8"?> <LinearLayout...> <ScrollView .../> ... </LinearLayout...> ... 我可以将整个线性布局保存为位图。 但是一旦我使用了滚动条,输出就不正确了 “完成”的形象,如我所料 你能给我一些提示吗 感谢您的帮助使ScrollView成为家长 <?xml version="1.0" enc
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout...>
<ScrollView .../>
...
</LinearLayout...>
...
我可以将整个线性布局保存为位图。
但是一旦我使用了滚动条,输出就不正确了
“完成”的形象,如我所料
你能给我一些提示吗
感谢您的帮助使ScrollView成为家长
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scroll"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:layout_width="318dp"
android:layout_height="495dp"
>
Your other content
</LinearLayout>
</ScrollView>
您的其他内容
什么是“输出不是我预期的“已完成”图像”?。如果有帮助,请检查此项