android:布局中加入分割线水平线竖直线的View

2015年11月20日 Android 13条评论 阅读4995次

android布局中,会有两个显示单元之间要用到分割线去隔开的情况。
此时要用到的就是本文说的这种view。


水平分割线

<View
    android:layout_width="match_parent"
    android:layout_height="1dp"
    android:background="#000000" />


竖直分割线

<View
    android:layout_width="1dp"
    android:layout_height="match_parent"
    android:background="#000000" />


另外还可以引用android自带的一个样式来声明这是一条分割线

<View
    android:layout_width="1dp"
    android:layout_height="match_parent"
    android:background="?android:attr/listDivider" />


本质一样的,只是第三种写法把android:background的属性改为了?android:attr/listDivider。
灵活性来说感觉还是自己写android:background的属性比较好了。



分享本文至:

WRITTEN BY

avatar
本文标签:分割线
看了本文是不是觉得很赞,那就赶紧点击下面按钮分享给身边的朋友吧!

13 条评论

  1. <a href="http://www.divyangmart.com/discount-running-shoes-zapatosu">discount running shoes</a> <a href="http://www.ezellhvac.com/nike-free-run-4.0-mujeres-p%C3%BArpura-naranja-chaussuresa">nike free run 4.0 mujeres p煤rpura naranja</a> <a href="http://www.oldoyopark.com/10-game-donte-moncrief-indianapolis-colts-jersey-home-royal-blue-nflg">10 game donte moncrief indianapolis colts jersey home royal blue</a> <a href="http://www.racquetlady.com/nike-air-max-2016-womens-blue-kit-runningg">nike air max 2016 womens blue kit</a> <a href="http://www.ankaralokanta.com/nfl-pittsburgh-steelers-color-rush-limited-antonio-brown-mens-football-jersey-nflv">nfl pittsburgh steelers color rush limited antonio brown mens football jersey</a> <a href="http://www.mengenmetal.com/nike-kobe-11-elite-low-oreo-guide-trainersa">nike kobe 11 elite low oreo guide</a>
    mcmartial http://www.mcmartial.com/

  2. <a href="http://www.anthillprague.com/mujeres-nike-free-tr-fit-chaussuresd">mujeres nike free tr fit</a> <a href="http://www.bisbeegrille.com/nike-hyperfuse-wei%C3%9F-gelb-butyf">nike hyperfuse wei脽 gelb</a> <a href="http://www.chipchak.com/nike-air-max-nero-gituttio-grigio-scarpea">nike air max nero gituttio grigio</a> <a href="http://www.maruldeaur.com/dam%C3%A4nner-nike-roshe-run-hyp-blau-orange-schuheb">dam盲nner nike roshe run hyp blau orange</a> <a href="http://www.pepinmystep.com/nike-air-max-95-basketsboot-rose-argent-butye">nike air max 95 basketsboot rose argent</a> <a href="http://www.redtokill.com/lebron-14-oransje-butye">lebron 14 oransje</a>
    hyaluronicset http://www.hyaluronicset.com/

  3. avatar suchmeldungen

    <a href="http://www.hotelfuat.com/barato-nike-blazer-low-mujeres-p%C3%BArpura-runninge">barato nike blazer low mujeres p煤rpura</a> <a href="http://www.pmisaltriver.com/zx-flux-rose-oro-kit-schuhea">zx flux rose oro kit</a> <a href="http://www.ductambag.com/air-max-90-chlorine-bleu-scarpeb">air max 90 chlorine bleu</a> <a href="http://www.priverussia.com/nike-air-max-2019-green-uk-shoeso">nike air max 2019 green uk</a> <a href="http://www.coatsfrance.com/nike-kyrie-3-hvit-and-chrome-web-store-kurpesc">nike kyrie 3 hvit and chrome web store</a> <a href="http://www.intoloo.com/tennis-shoes-nike-zapatost">tennis shoes nike</a>
    suchmeldungen http://www.suchmeldungen.com/

  4. avatar carrollgrp

    <a href="http://www.injost.com/nike-roshe-marble-roshes-boy-skof">nike roshe marble roshes boy</a> <a href="http://www.wonjuvally.com/nike-air-max-lunar-1-grey-kit-skob">nike air max lunar 1 grey kit</a> <a href="http://www.carrollgrp.com/navy-digital-camo-hat-hata">navy digital camo hat</a> <a href="http://www.nrastogi.com/a-buon-mercato-adidas-zx-700-femminile-blu-runninge">a buon mercato adidas zx 700 femminile blu</a> <a href="http://www.annersroofing.com/air-max-90-une-fleurs-blanc-jaune-schuhea">air max 90 une fleurs blanc jaune</a> <a href="http://www.orderollie.com/nike-free-run-5.0-himmelbl%C3%A5-scarpeb">nike free run 5.0 himmelbl氓</a>
    carrollgrp http://www.carrollgrp.com/

  5. avatar cphwph

    <a href="http://www.cengorde.com/nike-free-flyknit-5.0-p%C3%BArpura-jeep-scarpec">nike free flyknit 5.0 p煤rpura jeep</a> <a href="http://www.danielledraws.com/nike-mens-cornellius-carradine-limited-white-jersey-oakland-raiders-nfl-96-rush-vapor-untouchable-nflw">nike mens cornellius carradine limited white jersey oakland raiders nfl 96 rush vapor untouchable</a> <a href="http://www.gkpassword.com/mens-nike-kansas-city-chiefs-59-reggie-ragland-white-vapor-untouchable-limited-player-nfl-jersey-nflx">mens nike kansas city chiefs 59 reggie ragland white vapor untouchable limited player nfl jersey</a> <a href="http://www.mackzy.com/lebron-13-svart-gr%C3%A5-oransje-kurpesa">lebron 13 svart gr氓 oransje</a> <a href="http://www.metinmilli.com/nike-air-max-95-ultra-se-gris-butyg">nike air max 95 ultra se gris</a> <a href="http://www.momandpopop.com/nike-brian-orakpo-navy-blue-backer-tennessee-titans-nfl-98-long-sleeve-t-shirt-nflw">nike brian orakpo navy blue backer tennessee titans nfl 98 long sleeve t shirt</a>
    cphwph http://www.cphwph.com/

  6. avatar dumaworks

    <a href="http://www.cosmonet.net/jordan-1-orion-bleu-schuhea">jordan 1 orion bleu</a> <a href="http://www.cpgjoblist.net/nike-free-run-5.0-r%C3%B8d-zombies-kurpese">nike free run 5.0 r酶d zombies</a> <a href="http://www.crosswindschurch.net/kvinners-nike-flyknit-agility-beige-chaussuresa">kvinners nike flyknit agility beige</a> <a href="http://www.cuttingedgeoffers.net/nike-air-max-1-ultra-moire-femmes-wolf-gris-kurpesg">nike air max 1 ultra moire femmes wolf gris</a> <a href="http://www.cvceurope.net/kobe-8-arancia-schuhee">kobe 8 arancia</a> <a href="http://www.cyberlec.net/air-max-95-rosso-nero-bianca-obuvg">air max 95 rosso nero bianca</a>
    dumaworks http://www.dumaworks.net/

  7. avatar nongmobacon

    <a href="http://www.mikespothole.com/womens-nike-huarache-ultra-blue-yellow-skob">womens nike huarache ultra blue yellow</a> <a href="http://www.theclaydoctor.com/new-era-kansas-city-royals-knit-hat-giveaway-hata">new era kansas city royals knit hat giveaway</a> <a href="http://www.allthatspool.com/nike-cortez-deluxe-sale-runninge">nike cortez deluxe sale</a> <a href="http://www.ihavewed.com/nike-free-run-3-schwarz-and-silber-dam%C3%A4nner-schuhea">nike free run 3 schwarz and silber dam盲nner</a> <a href="http://www.cloudsmartin.com/adidas-harden-1-bianca-jordans-scarpeb">adidas harden 1 bianca jordans</a> <a href="http://www.myachingoa.com/nike-air-max-95-green-spain-shoeso">nike air max 95 green spain</a>
    nongmobacon http://www.nongmobacon.com/

  8. avatar busancitynews

    <a href="http://www.aterisrail.com/nike-roshe-run-winter-mesh-and-suede-sneakers-trainerse">nike roshe run winter mesh and suede sneakers</a> <a href="http://www.mousetoyou.com/nike-air-max-navy-blue-skor">nike air max navy blue</a> <a href="http://www.apocreative.com/boston-celtics-jersey-2016-nflr">boston celtics jersey 2016</a> <a href="http://www.veronicaloman.com/oakland-raiders-15-michael-crabtree-olive-2017-salute-to-service-limited-jersey-nflv">oakland raiders 15 michael crabtree olive 2017 salute to service limited jersey</a> <a href="http://www.elitoyreviews.com/ralph-lauren-slim-shorts-polor">ralph lauren slim shorts</a> <a href="http://www.perokokbijak.com/air-jordan-7-dam%C3%A4nner-schwarz-trainersce">air jordan 7 dam盲nner schwarz</a>
    busancitynews http://www.busancitynews.com/

  9. avatar cuixinyuphoto

    <a href="http://www.karotorossian.com/air-jordan-enfants-chaussures-noir-rouge-butye">air jordan enfants chaussures noir rouge</a> <a href="http://www.newworkmatrix.com/femmes-air-yeezy-ii-2-sp-max-90-orange-gris-kurpesd">femmes air yeezy ii 2 sp max 90 orange gris</a> <a href="http://www.rochecpa.com/mens-ralph-lauren-stripe-polo-pink-khaki-polos">mens ralph lauren stripe polo pink khaki</a> <a href="http://www.thermilax.com/air-jordan-retro-3-barn-svart-gr%C3%A5-butyf">air jordan retro 3 barn svart gr氓</a> <a href="http://www.buffaloquaker.com/maschio-merino-polo-sweater-poloz">maschio merino polo sweater</a> <a href="http://www.etnoyamal.com/air-jordan-retro-9-s%C3%B8lv-hvid-chaussuresf">air jordan retro 9 s酶lv hvid</a>
    cuixinyuphoto http://www.cuixinyuphoto.com/

  10. avatar allyoucanlike

    <a href="http://www.seansinjin.com/nike-air-max-2015-brun-sort-scarpea">nike air max 2015 brun sort</a> <a href="http://www.varsitystance.com/kvinders-asics-gel-kayano-21-sort-guld-chaussuresf">kvinders asics gel kayano 21 sort guld</a> <a href="http://www.azuraonline.com/nike-free-3.0-v5-svart-volt-xr-kurpese">nike free 3.0 v5 svart volt xr</a> <a href="http://www.brodiebaranow.com/yeezy-950-boost-noir-ops-3-obuva">yeezy 950 boost noir ops 3</a> <a href="http://www.companiens.com/dam%C3%A4nner-ralph-lauren-pony-gelb-blau-polox">dam盲nner ralph lauren pony gelb blau</a> <a href="http://www.cuixinyuphoto.com/nike-roshe-run-svart-svart-woven-tag-schuhed">nike roshe run svart svart woven tag</a>
    allyoucanlike http://www.allyoucanlike.com/

  11. avatar kamilotomotiv

    <a href="http://www.kainjipark.com/air-jordan-future-prm-jordon-runninge">air jordan future prm jordon</a> <a href="http://www.lapthelakes.com/nike-shox-deliver-black-zapatosu">nike shox deliver black</a> <a href="http://www.delmaroffice.com/new-balance-m1500ct4-hvid-cyan-gr%C3%B8n-chaussuresa">new balance m1500ct4 hvid cyan gr酶n</a> <a href="http://www.medieneinsatz.com/korpisalo-joonas-70-jersey-youth-nfle">korpisalo joonas 70 jersey youth</a> <a href="http://www.linexcanton.com/nike-roshe-7c-runningg">nike roshe 7c</a> <a href="http://www.saskostomy.com/zdeno-chara-33-boston-bruins-reebok-premier-alternate-jersey-small-nflv">zdeno chara 33 boston bruins reebok premier alternate jersey small</a>
    kamilotomotiv http://www.kamilotomotiv.com/

  12. avatar 286zdvwi

    <a href="http://www.h732y4ki.com/nike-air-max-thea-gris-and-blanc-butye">nike air max thea gris and blanc</a> <a href="http://www.jbh76zog.com/asics-gel-kinsei-5-hombres-zapatos-turq-armada-blanco-queen-obuvd">asics gel kinsei 5 hombres zapatos turq armada blanco queen</a> <a href="http://www.qkf793hm.com/air-max-2016-verde-knights-obuvg">air max 2016 verde knights</a> <a href="http://www.i91r3m3z.com/bon-march%C3%A9-jordan-retro-5-chaussures-schuhef">bon march茅 jordan retro 5 chaussures</a> <a href="http://www.2wbes304.com/maschio-nike-free-run-5.0-blu-arancia-obuve">maschio nike free run 5.0 blu arancia</a> <a href="http://www.z399lrsa.com/adidas-springblade-drive-m-l%C3%B8ping-sko-for-salg-butye">adidas springblade drive m l酶ping sko for salg</a>
    [url=http://www.286zdvwi.com/]286zdvwi[/url]

  13. avatar alloweducates

    <a href="http://www.kareokiparty.com/michael-kors-small-leather-satchel-mkr">michael kors small leather satchel</a> <a href="http://www.barinotomotiv.com/air-jordan-3-shorts-nike-air-force-1-sneakere">air jordan 3 shorts nike air force 1</a> <a href="http://www.trustnetgroup.com/elite-white-j.r.-sweezy-super-bowl-xlix-road-jersey-64-seattle-seahawks-nk282708-nflb">elite white j.r. sweezy super bowl xlix road jersey 64 seattle seahawks nk282708</a> <a href="http://www.jehleflowers.com/adidas-superstar-pharrell-williams-south-africa-shoesc">adidas superstar pharrell williams south africa</a> <a href="http://www.blogdalata.com/air-jordan-retro-7-dam%C3%A4nner-schwarz-skog">air jordan retro 7 dam盲nner schwarz</a> <a href="http://www.eonkraftwerke.com/air-max-97-atlantic-blue-tang-sportsf">air max 97 atlantic blue tang</a>
    alloweducates http://www.alloweducates.com/

欢迎留言




用户登录

sitemap