ScrollView爲根佈局,沒法從頂部開始顯示

當ScrollView爲根佈局時,若嵌入ListView或GridView,就會出現不是從頂部開始顯示的狀況。咱們只須要對ScrollView的頂部View設置幾個屬性就能夠了。 xml代碼:java <View android:layout_width="wrap_content" android:layout_height="wrap_content" android:focusable="
相關文章
相關標籤/搜索