我尝试在linearlayout的gridview下面添加按钮,代码如下.但是当我执行我的应用程序时,我只看到gridview没有按钮项目.所以它可能是基本的错误,但我看不到它.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:background="#2a2a2a"
>
<GridView
android:id="@+id/grid_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:columnWidth="150dp"
android:numColumns="auto_fit"
android:horizontalSpacing="10dp"
android:verticalSpacing="10dp"
android:stretchMode="columnWidth"
android:gravity="center"></GridView>
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:text="@string/cam_string" />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud) 我安装了Varnish Cache我的CentOS服务器.我正确地尝试配置,但是当我读到许多文件时,我告诉我将apache端口更改Listen 80为Listen 8080.但我在我的服务器上找不到任何Listen 80线,/etc/httpd/conf/httpd.conf但我找到了0.0.0.0:80线路.这是一回事吗?如果那些是相同的瘦身,当我改变我的网站不工作.
我知道我犯了很大的逻辑错误,但我无法理解.
谢谢