android+json+php+mysql實現使用者反饋功能

來源:互聯網
上載者:User

相信每個項目都會有使用者反饋建議等功能,這個實現的方法很多,下面是我實現的方法,供大家交流。首 先看具體介面,三個欄位。名字,郵箱為選填,可以為空白,建議不可為空。如有需要可以給我留言。

下面貼出布局代碼,這裡用到一個<include layout="@layout/uphead">就是把另外一個 布局檔案引入到這個布局中。

<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:orientation="vertical"    android:background="@color/bg_gray" >    <include layout="@layout/uphead"/>            <!-- Name Label -->    <TextView android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:text="名字(選填)"        android:paddingLeft="10dip"        android:paddingRight="10dip"        android:textColor="@color/coffee"        android:paddingTop="10dip"        android:textSize="12sp"/>            <!-- Input Name -->    <EditText android:id="@+id/inputName"        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:layout_margin="5dip"        android:layout_marginBottom="15dip"        android:singleLine="true"/>            <!-- Price Label -->    <TextView android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:text="郵箱(選填)"        android:paddingLeft="10dip"        android:paddingRight="10dip"        android:textColor="@color/coffee"        android:paddingTop="10dip"        android:textSize="12sp"/>            <!-- Input Price -->    <EditText android:id="@+id/inputEmail"        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:layout_margin="5dip"        android:layout_marginBottom="15dip"        android:singleLine="true"/>            <!-- Description Label -->    <TextView android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:text="建議(必填)"        android:paddingLeft="10dip"        android:paddingRight="10dip"        android:paddingTop="10dip"        android:textColor="@color/coffee"        android:textSize="12sp"/>            <!-- Input description -->    <EditText android:id="@+id/inputDesc"        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:layout_margin="5dip"        android:layout_marginBottom="15dip"        android:lines="4"        android:gravity="top"/>            <!-- Button Create Product -->    <Button android:id="@+id/btnCreateProduct"        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:text="提交"        android:textSize="20sp"        android:textColor="@color/coffee"        />        </LinearLayout>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.