成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

Android編程實現(xiàn)圓角邊框布局效果的方法-創(chuàng)新互聯(lián)

本文實例講述了Android編程實現(xiàn)圓角邊框布局效果的方法。分享給大家供大家參考,具體如下:

成都創(chuàng)新互聯(lián)專注于資源企業(yè)網(wǎng)站建設,響應式網(wǎng)站設計,商城網(wǎng)站定制開發(fā)。資源網(wǎng)站建設公司,為資源等地區(qū)提供建站服務。全流程按需制作網(wǎng)站,專業(yè)設計,全程項目跟蹤,成都創(chuàng)新互聯(lián)專業(yè)和態(tài)度為您提供的服務

這里用的是TableLayout布局的。先看效果圖

Android編程實現(xiàn)圓角邊框布局效果的方法

下面看下布局文件

<?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:background="#FFFFFF"
  android:orientation="vertical" >
  <!-- 表格布局 -->
  <TableLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:padding="10dip" >
    <!-- 表格布局:第一行 -->
    <TableRow
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/shape_top_corner_no_bottom_line"
      android:padding="10dip" >
      <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:layout_marginRight="10dip"
        android:text="姓名:" >
      </TextView>
      <EditText
        android:id="@+id/bankingYourNameEditText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:layout_weight="1"
        android:background="@null"
        android:singleLine="true" >
      </EditText>
    </TableRow>
    <!-- 表格布局:第二行 -->
    <TableRow
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/shape_no_corner_without_bottom"
      android:padding="10dip" >
      <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:layout_marginRight="10dip"
        android:text="聯(lián)系電話:" >
      </TextView>
      <EditText
        android:id="@+id/bankingContactTelEditText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:layout_weight="1"
        android:background="@null"
        android:inputType="phone"
        android:singleLine="true" >
      </EditText>
    </TableRow>
    <!-- 表格布局:第三行 -->
    <TableRow
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/shape_bottom_corner_no_top_line"
      android:padding="10dip" >
      <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:layout_marginRight="10dip"
        android:text="聯(lián)系電話:" >
      </TextView>
      <EditText
        android:id="@+id/bankingContactTelEditText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_vertical"
        android:layout_weight="1"
        android:background="@null"
        android:inputType="phone"
        android:singleLine="true" >
      </EditText>
    </TableRow>
  </TableLayout>
  <Button
    android:id="@+id/button1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:text="Button" />
</LinearLayout>

名稱欄目:Android編程實現(xiàn)圓角邊框布局效果的方法-創(chuàng)新互聯(lián)
當前網(wǎng)址:http://jinyejixie.com/article0/jsjio.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站收錄、網(wǎng)站排名做網(wǎng)站、移動網(wǎng)站建設、動態(tài)網(wǎng)站、小程序開發(fā)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)頁設計公司
微博| 富宁县| 姚安县| 同德县| 岫岩| 平塘县| 南投县| 阿巴嘎旗| 惠东县| 永丰县| 新晃| 苗栗市| 河北省| 镇康县| 商丘市| 东丰县| 镇远县| 龙南县| 巴楚县| 宁城县| 佛冈县| 河北省| 多伦县| 东阿县| 惠水县| 布尔津县| 天祝| 安国市| 宜黄县| 舒城县| 茂名市| 平度市| 陈巴尔虎旗| 昭平县| 临城县| 上高县| 喜德县| 黄山市| 志丹县| 洛阳市| 海晏县|