在ScrollView内部的GirdLayout之前添加空间

问题描述

我想在GridLayout启动之前添加一些空间,并且我想在其中容纳一个按钮和textview。我尝试在GridLayout之前添加Space,但是它什么也没做。我可以将一个按钮和textview作为2个元素放置在网格内,但是位置却很尴尬。

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<GridLayout
    android:id="@+id/GridLayout1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:columnCount="2"
    android:rowCount="16"
    android:orientation="horizontal"
    tools:context=".MainActivity" >

    (children)
    .
    .
    .

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)