Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在屏幕上向下移动按钮_Android_Eclipse - Fatal编程技术网

Android 在屏幕上向下移动按钮

Android 在屏幕上向下移动按钮,android,eclipse,Android,Eclipse,当涉及到eclipse和编码时,我是个十足的傻瓜,然后从eclipse端开始,我设法让应用程序正常工作,并做我想做的事情,但是我很难将我的按钮从前屏幕向下移动,即顶部的图像,以及图像下方的3行3个按钮,按钮在屏幕中央,请对我温柔一点lol我知道你所有的代码头,我不是,如果你能告诉我值在哪里,放什么,那就太好了。我已经在java和.xml文件中到处乱放代码,我的代码来自XML,我已经改变了所有的值,一次1个来查看结果,而这有助于左右按钮的定位,中间的间距,我不能让按钮向下移动, <L

当涉及到eclipse和编码时,我是个十足的傻瓜,然后从eclipse端开始,我设法让应用程序正常工作,并做我想做的事情,但是我很难将我的按钮从前屏幕向下移动,即顶部的图像,以及图像下方的3行3个按钮,按钮在屏幕中央,请对我温柔一点lol我知道你所有的代码头,我不是,如果你能告诉我值在哪里,放什么,那就太好了。我已经在java和.xml文件中到处乱放代码,我的代码来自XML,我已经改变了所有的值,一次1个来查看结果,而这有助于左右按钮的定位,中间的间距,我不能让按钮向下移动,

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/containerView"
android:background="@android:color/transparent"    
android:padding="0dip"
android:layout_margin="0dip"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/verticalScrollView" 
        android:layout_width="fill_parent" 
        android:layout_height="fill_parent">

        <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/tableLayout" 
            android:layout_width="fill_parent" 
            android:layout_height="fill_parent">
        </TableLayout>

    </ScrollView>

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/containerViewHorizontal"
            android:background="@android:color/transparent"    
            android:padding="0dip"
            android:layout_margin="0dip"
            android:orientation="horizontal"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent">        

            <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                    android:id="@+id/containerViewHorizontalBottom"
                    android:background="@android:color/transparent"    
                    android:padding="0dip"
                    android:layout_margin="0dip"
                    android:orientation="vertical"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content">

                <HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
                    android:id="@+id/horizontalScrollView" 
                    android:layout_width="fill_parent" 
                    android:layout_height="wrap_content">

                    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                        android:id="@+id/containerHorizontalButtons"
                        android:background="@android:color/transparent"    
                        android:padding="0dip"
                        android:layout_margin="0dip"
                        android:orientation="horizontal"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content">
                    </LinearLayout>

                </HorizontalScrollView> 

            </LinearLayout>

    </RelativeLayout>


试试android文档,了解基本知识


使用
相对布局
作为父布局

任何元素移动到屏幕底部
android:layout\u alignParentBottom=“true”

要居中任何元素
android:layout\u centerHorizontal=“true”

您尝试了什么?你能分享一些你想要达到的效果吗?嗨,这里是屏幕截图,我正在尝试向下移动按钮,在图像下方,我可以调整图像,改变按钮的大小以及它们相对于屏幕的位置,但是我找不到如何向下移动。嗨,我不希望所有的屏幕都遵循规则,只是上面的一个,我更改了所有的值,但没有向下移动按钮:)查看了那里谢谢,没有帮助,到处都是关于如何设置页面的信息,但是我的页面已经设置好了,我只需要向下移动按钮:)