【发布时间】:2016-12-15 03:12:47
【问题描述】:
我有一个 LinearLayout,包裹在 ScrollView 中,其中主要包含 TextViews,有时包含 ImageViews。现在我想给用户用两根手指放大(和再次缩小)的可能性。有没有简单的方法可以做到这一点?这是 xml 文件的摘录:
<ScrollView
android:background="@color/transparent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top">
<LinearLayout
android:background="@color/transparent"
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="top|center_horizontal"></LinearLayout>
</ScrollView>
【问题讨论】:
-
嗯,我对图书馆非常谨慎,因为该应用程序将在 google play 商店出售,而且我不太了解许可证。如果我使用它,我该怎么办?我阅读了 license.txt,但不太了解它