无法滚动浏览android / xamarin

时间:2016-08-11 01:52:46

标签: c# android mobile xamarin

我正在尝试将我的视图设置为可滚动而且我已经谷歌了,而且我似乎需要<ScrollView来包裹我的Linear Layout

我已经完成了但仍无法滚动。我错过了什么?

http://pastebin.com/HhXyvTxR

1 个答案:

答案 0 :(得分:0)

   <?xml version="1.0" encoding="utf-8"?>
   <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="wrap_content" android:layout_height="fill_parent">
   <LinearLayout
   android:layout_width="wrap_content" android:layout_height="fill_parent"
   android:orientation="vertical"
   android:scrollbars="vertical"
   android:scrollbarAlwaysDrawVerticalTrack="true">
   </LinearLayout>
</ScrollView>

应该是这样的