Android layout tablelayout Beginner's Stretch button pinch button

Source: Internet
Author: User

The code is as follows

<linearlayout xmlns:android= "http://schemas.android.com/apk/res/android" android:layout_width= "Fill_parent" android:layout_height= "fill_parent" android:orientation= "vertical" > <tablelayout android:layout_width=             "Match_parent" android:layout_height= "Wrap_content" > <!--the button that was added here exclusively line-and-<button Android:id= "@+id/button1" android:layout_width= "wrap_content" android:layout_height= "Wra            P_content "android:text=" Exclusive entire line "/> <tablerow android:layout_width=" Wrap_content "                android:layout_height= "Wrap_content" > <button android:id= "@+id/button2" Android:layout_width= "Wrap_content" android:layout_height= "wrap_content" android:text= "normal Press                 Button "/> <button android:id=" @+id/button3 "android:layout_width=" Wrap_content " Android:layout_height= "Wrap_content" android:text= "normal button"/> <button android:id= "@+id/but                Ton4 "android:layout_width=" wrap_content "android:layout_height=" Wrap_content " android:text= "Normal button"/> </TableRow> </TableLayout> <tablelayout Android:layout_widt H= "Match_parent" android:layout_height= "wrap_content" android:stretchcolumns= "0" > <!--extrude first row- <!--the button that is added here exclusively one line--<button android:id= "@+id/button5" android:l Ayout_width= "Wrap_content" android:layout_height= "Wrap_content" android:text= "Exclusive entire line"/> &lt ; TableRow android:layout_width= "wrap_content" android:layout_height= "wrap_content" > &L T Button android:id= "@+id/button6" android:layout_width= "Wrap_content" Android: Layout_height= "Wrap_cOntent "android:text=" Stretch button "/> <button android:id=" @+id/button7 " Android:layout_width= "Wrap_content" android:layout_height= "Wrap_content" android:text= "         Normal button "/> </TableRow> </TableLayout> <tablelayout android:layout_width=" Match_parent "        android:layout_height= "Wrap_content" android:shrinkcolumns= "android:stretchcolumns=" 0 "> <!--La Bandi a row, shrinks the second third line--<!--the button that you added here exclusively--<button android:id= "@+id/bu Tton8 "android:layout_width=" wrap_content "android:layout_height=" Wrap_content "android:t ext= "Exclusive entire line"/> <tablerow android:layout_width= "wrap_content" android:layout_height= "wrap _content "> <button android:id=" @+id/button9 "android:layout_width=" Wrap_co Ntent "android:layout_height= "Wrap_content" android:text= "Stretch button"/> <button android:i                D= "@+id/button10" android:layout_width= "wrap_content" android:layout_height= "Wrap_content" android:text= "pinch button"/> <button android:id= "@+id/button11" and Roid:layout_width= "Wrap_content" android:layout_height= "wrap_content" android:text= "pinch button"/&            Gt <button android:id= "@+id/button12" android:layout_width= "Wrap_content" and roid:layout_height= "Wrap_content" android:text= "normal button"/> </TableRow> </tablelayout&gt ;</linearlayout>

Android layout tablelayout Beginner's Stretch button pinch button

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.