欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

Android中TextView怎么用

這篇文章給大家分享的是有關(guān)Android中TextView怎么用的內(nèi)容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。

創(chuàng)新互聯(lián)公司長期為上千余家客戶提供的網(wǎng)站建設(shè)服務(wù),團隊從業(yè)經(jīng)驗10年,關(guān)注不同地域、不同群體,并針對不同對象提供差異化的產(chǎn)品和服務(wù);打造開放共贏平臺,與合作伙伴共同營造健康的互聯(lián)網(wǎng)生態(tài)環(huán)境。為庫爾勒企業(yè)提供專業(yè)的成都網(wǎng)站設(shè)計、網(wǎng)站制作,庫爾勒網(wǎng)站改版等技術(shù)服務(wù)。擁有十多年豐富建站經(jīng)驗和眾多成功案例,為您定制開發(fā)。

XML的幾個特殊屬性

android:autoLink 用于指定是否將文本轉(zhuǎn)換成可點擊的超鏈接形式,它的屬性值有none,web,email,phone,map或all
android:drawBottom 用于將圖片添加到文本的低端 同理還有上,左,右
android:hint 當文本為空時,默認顯示的是什么
android:Grivaity 文本的對齊方式
android:inputType 顯示的文本類型

Mainactivity.XML代碼

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:paddingBottom="@dimen/activity_vertical_margin"
  android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  android:orientation="vertical"
  tools:context=".MainActivity" >

  <TextView
    android:id="@+id/textview1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:hint="666"
     />
   <TextView
    android:id="@+id/textview2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:singleLine="true"
    android:text="測試是否為單行模式"
     />
   <TextView
    android:id="@+id/textview3"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="http://www.baidu.com"
    android:autoLink="web"
     />

</LinearLayout>

mainACtivity.java

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:paddingBottom="@dimen/activity_vertical_margin"
  android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  android:orientation="vertical"
  tools:context=".MainActivity" >

  <TextView
    android:id="@+id/textview1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:hint="666"
     />
   <TextView
    android:id="@+id/textview2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:singleLine="true"
    android:text="測試是否為單行模式"
     />
   <TextView
    android:id="@+id/textview3"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="http://www.baidu.com"
    android:autoLink="web"
     />

</LinearLayout>

運行結(jié)果

Android中TextView怎么用

感謝各位的閱讀!關(guān)于“Android中TextView怎么用”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,讓大家可以學(xué)到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!

當前名稱:Android中TextView怎么用
當前鏈接:http://www.aaarwkj.com/article30/gpjgso.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供手機網(wǎng)站建設(shè)域名注冊、面包屑導(dǎo)航、定制網(wǎng)站、定制開發(fā)、App開發(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)

成都app開發(fā)公司
免费观看在线视频午夜| 91成人精品永久在线观看| 日韩色图在线观看视频| 99久久精品人妻少妇一| 亚洲熟妇人妻一区二区三区| 成人综合影视中文字幕| 亚洲欧美制服另类国产| 精品中文人妻中文字幕| 国产美女主播在线精品一区| 九九视频在线观看免费观看| 欧美黄色免费电影网站| 尤物视频网站在线观看| 精品人妻少妇av一区二区| 国产精品乱码中文字幕| 精品久久久久久久中文字幕| 中文字幕乱码亚洲影视| 亚洲天堂国产中文在线| 日本东京热免一区二区| 国产成人精品福利一区二区| 超碰在线免费视频97| 国内成人免费在线视频| 国产亚洲欧美另类网爆| 日韩黄片大全在线观看| 午夜在线观看成人av| 亚洲va久久久噜噜噜久久狠| 色国产精品一区在线观看| 国产精品人一区二区三区| 欧美午夜激情片在线观看| 亚洲激情在线观看一区| 中文字幕av不卡一区| 国产情色自拍在线观看| 日韩精品一区高清视频| 久草视频在线免费资源站| 在线一区二区三区高清视频| 亚洲 精品一区二区| 四虎经典视频在线播放| 日本少妇三级网站大全| 久国产亚洲精品久久久极品| 日本一区二区三区伦理| 亚洲国产成人欧美日韩另类| 日韩在线不卡av一区二区|