Android+json+php+mysql realizes user feedback function

Source: Internet
Author: User
Tags json

I believe that every project will have user feedback suggestions and other functions, the implementation of a lot of methods, the following is my way to achieve, for everyone to communicate. First look at the concrete interface, three fields. Name, the mailbox is optional, can be empty, the suggestion cannot be empty. If you need, you can leave a message for me.

The following is a layout code that uses a <include layout= "@layout/uphead" > is to introduce another layout file into this layout.

<?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=" Vertica L "android:background=" @color/bg_gray "> <include layout=" @layout/uphead "/> <!--Name Lab El--> <textview android:layout_width= "fill_parent" android:layout_height= "Wrap_content" Android : text= "name (optional)" 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_c Ontent "android:layout_margin=" 5dip "android:layout_marginbottom=" 15dip "android:singleline=" true " /> <!--PriceLabel--> <textview android:layout_width= "fill_parent" android:layout_height= "Wrap_content" Andr oid:text= "Mailbox (optional)" android:paddingleft= "10dip" android:paddingright= "10dip" android:textcolor= "@col 
    Or/coffee "android:paddingtop=" 10dip "android:textsize=" 12sp "/> <!--Input Price--> <edittext android:id= "@+id/inputemail" android:layout_width= "Fill_parent" W Rap_content "android:layout_margin=" 5dip "android:layout_marginbottom=" 15dip "android:singleline=" True "/> <!--Description Label--> <textview android:layout_width=" Fill_parent "Andro id:layout_height= "Wrap_content" android:text= "recommended (required)" android:paddingleft= "10dip" Android:paddingr ight= "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>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.