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

2015年11月20日 Android 16条评论 阅读8150次

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

16 条评论

  1. <a href="http://www.einsdigital.com/the-north-face-denali-classic-fleece-jacket-jacket-northfaceb">the north face denali classic fleece jacket jacket</a> <a href="http://www.ksmartcity.com/north-face-denali-vest-northfacer">north face denali vest</a> <a href="http://www.ralfwentz.com/kyrie-1-green-glow-jordans-foote">kyrie 1 green glow jordans</a> <a href="http://www.thermilax.com/adidas-herre-forum-mid-basketballe-sko-covers-kurpesf">adidas herre forum mid basketballe sko covers</a> <a href="http://www.watfashion.com/ralph-lauren-stripe-polo-gr%C3%BCn-beige-polow">ralph lauren stripe polo gr眉n beige</a> <a href="http://www.xhlvwang.com/hermes-wallets-2015-range-hermesf">hermes wallets 2015 range</a>
    brickpopusa http://www.brickpopusa.com/

  2. <a href="http://www.gslitsupport.com/ralph-lauren-striped-shirt-womens-kit-poloa">ralph lauren striped shirt womens kit</a> <a href="http://www.pondineerblog.com/nike-air-force-1-svart-kvinners-gg-scarpek">nike air force 1 svart kvinners gg</a> <a href="http://www.crossfitlwr.com/r%C3%B8de-og-hvite-blomster-kjoler-dresse">r酶de og hvite blomster kjoler</a> <a href="http://www.raumpilotin.com/adidas-projoator-malice-uk-footi">adidas projoator malice uk</a> <a href="http://www.kinksradio.com/nike-blazer-rosado-butyg">nike blazer rosado</a> <a href="http://www.ntfservice.com/parajumpers-gobi-orange-world-parajumpersb">parajumpers gobi orange world</a>
    kelownariders http://www.kelownariders.com/

  3. <a href="http://www.sinfoniamktg.com/nike-air-max-classic-bw-r%C3%B8d-sort-kit-footg">nike air max classic bw r酶d sort kit</a> <a href="http://www.mrshoover.com/parajumpers-leather-parka-coat-parajumpersa">parajumpers leather parka coat</a> <a href="http://www.valomak.com/moncler-winter-jacket-price-za-2017-monclera">moncler winter jacket price za 2017</a> <a href="http://www.inklinktatoo.com/nike-dunk-hi-rosado-chaussuresb">nike dunk hi rosado</a> <a href="http://www.adracingworld.com/kobe-10-schuhe-images-zapatosd">kobe 10 schuhe images</a> <a href="http://www.tentoledo.com/nike-internationalist-lyser%C3%B8d-bl%C3%A5-obuvl">nike internationalist lyser酶d bl氓</a>
    kathybphd http://www.kathybphd.com/

  4. <a href="http://www.autosasart.com/alle-wei%C3%9F-roshe-runs-nike-id-butya">alle wei脽 roshe runs nike id</a> <a href="http://www.centrodunamis.com/nike-air-max-2016-gris-vert-mango-obuvc">nike air max 2016 gris vert mango</a> <a href="http://www.kideschool.com/mens-ralph-lauren-pony-polo-red-brown-polou">mens ralph lauren pony polo red brown</a> <a href="http://www.preloxlady.com/comprar-jordan-retro-6-negro-and-rojo-obuvb">comprar jordan retro 6 negro and rojo</a> <a href="http://www.scalfarogroup.com/maschio-nike-air-jordan-6-retro-basketbtutti-scarpa-chaussuresb">maschio nike air jordan 6 retro basketbtutti scarpa</a> <a href="http://www.yuriboguinia.com/moncler-coat-girls-night-out-the-show-monclerf">moncler coat girls night out the show</a>
    oricastg http://www.oricastg.com/

  5. <a href="http://www.abiliator.com/adidas-eqt-bambini-scarpe-marrone-blu-chaussuresb">adidas eqt bambini scarpe marrone blu</a> <a href="http://www.tapsevilla.com/nike-air-max-tailwind-7-hombres-corriendo-zapato-company-zapatosj">nike air max tailwind 7 hombres corriendo zapato company</a> <a href="http://www.sanduicheria.com/adidas-crazylight-boost-guld-s%C3%B8lv-obuvf">adidas crazylight boost guld s酶lv</a> <a href="http://www.clavideo.com/pandora-bracelets-canada-bread-pandoraj">pandora bracelets canada bread</a> <a href="http://www.usnbraces.com/nike-free-run-3.0-v5-hvid-trainersd">nike free run 3.0 v5 hvid</a> <a href="http://www.kinmountfair.com/nike-air-max-95-junior-nero-converse-chaussuresm">nike air max 95 junior nero converse</a>
    fooddorks http://www.fooddorks.com/

  6. avatar blackpointcpk

    <a href="http://www.cityfalg.com/parajumpers-toronto-canada-parajumpersr">parajumpers toronto canada</a> <a href="http://www.elyseprather.com/kobe-9-low-bl%C3%A5-devils-obuvb">kobe 9 low bl氓 devils</a> <a href="http://www.gladatassen.com/long-sleeve-polo-azul-polou">long sleeve polo azul</a> <a href="http://www.gracalor.com/nike-free-run-4.0-all-hvit-game-obuvb">nike free run 4.0 all hvit game</a> <a href="http://www.halemhomes.com/vibram-fivefingers-treksport-gul-gr%C3%B8n-butya">vibram fivefingers treksport gul gr酶n</a> <a href="http://www.sixseconddiet.com/tory-burch-flats-size-8.5-toryburchr">tory burch flats size 8.5</a>
    blackpointcpk http://www.blackpointcpk.com/

  7. avatar alminehealing

    <a href="http://www.alminehealing.com/nike-lebron-13-low-team-rojo-lizard-trainersd">nike lebron 13 low team rojo lizard</a> <a href="http://www.eightitude.com/air-jordan-4-blanco-marr%C3%B3n-chaussuresm">air jordan 4 blanco marr贸n</a> <a href="http://www.salsamonde.com/polo-ralph-lauren-big-and-tall-uk-poloa">polo ralph lauren big and tall uk</a> <a href="http://www.dermiskincare.com/kvinners-nike-shox-current-gull-rosa-scarpek">kvinners nike shox current gull rosa</a> <a href="http://www.ricusiowo.com/floral-dress-rent-the-runway-dresse">floral dress rent the runway</a> <a href="http://www.okcintergroup.com/kobe-9-low-hvid-and-sort-jordans-footi">kobe 9 low hvid and sort jordans</a>
    alminehealing http://www.alminehealing.com/

  8. avatar chardix

    <a href="http://www.opticapegaso.com/herren-nike-air-max-tailwind-5-gr%C3%BCn-orange-trainersd">herren nike air max tailwind 5 gr眉n orange</a> <a href="http://www.eletrobrasal.com/nike-kd-9-multi-metalleic-s%C3%B8lv-chaussuresm">nike kd 9 multi metalleic s酶lv</a> <a href="http://www.lexingtonccdw.com/dam%C3%A4nner-ralph-lauren-short-marine-blau-poloa">dam盲nner ralph lauren short marine blau</a> <a href="http://www.maudehairva.com/nike-free-5.0-v4-l%C3%B8ping-sko-hvit-wolf-gr%C3%A5-leopard-scarpek">nike free 5.0 v4 l酶ping sko hvit wolf gr氓 leopard</a> <a href="http://www.hpcmonthly.com/robe-%C3%A0-imprim%C3%A9-floral-kate-spade-dresse">robe 脿 imprim茅 floral kate spade</a> <a href="http://www.alkonadom.com/lunarglide-6-schwarz-volt-yoga-footi">lunarglide 6 schwarz volt yoga</a>
    chardix http://www.chardix.com/

  9. avatar ensitele

    <a href="http://www.beachtimenow.com/hermes-belt-made-in-france-hermesr">hermes belt made in france</a> <a href="http://www.tragemaus.com/flyknit-lunar-2-schwarz-grau-download-chaussuresg">flyknit lunar 2 schwarz grau download</a> <a href="http://www.introtechint.com/mens-air-jordan-3-grey-sportsc">mens air jordan 3 grey</a> <a href="http://www.newmadagasca.com/ugg-bailey-button-bling-mini-sale-canada-uggsb">ugg bailey button bling mini sale canada</a> <a href="http://www.pvktechinfo.com/nike-roshe-run-rosa-rot-butyg">nike roshe run rosa rot</a> <a href="http://www.treehousecats.com/nike-air-flight-89-dynamic-bl%C3%A5-fireberry-sort-volt-up-butya">nike air flight 89 dynamic bl氓 fireberry sort volt up</a>
    ensitele http://www.ensitele.com/

  10. avatar czappmasonry

    <a href="http://www.medicinennet.com/north-face-boys-apex-bionic-jacket-northfacer">north face boys apex bionic jacket</a> <a href="http://www.pdxwoof.com/nike-air-max-93-triple-black-skos">nike air max 93 triple black</a> <a href="http://www.rodriguesjose.com/dam%C3%A4nner-nike-shox-deliver-gold-grau-scarpea">dam盲nner nike shox deliver gold grau</a> <a href="http://www.sfgchina.com/badgers-personalized-authentic-white-ncaa-jersey-nflt">badgers personalized authentic white ncaa jersey</a> <a href="http://www.sleepysdirect.com/mackage-akiva-jacket-mackager">mackage akiva jacket</a> <a href="http://www.whowhatwea.com/mennns-ralph-lauren-mesh-polo-brun-bl%C3%A5-polor">mennns ralph lauren mesh polo brun bl氓</a>
    czappmasonry http://www.czappmasonry.com/

  11. avatar belshop

    <a href="http://www.abcmaster.net/adidas-crazylight-boost-nero-argento-kurpesc">adidas crazylight boost nero argento</a> <a href="http://www.abracadabranche.net/kvinders-nike-flyknit-lunar-2-guld-gr%C3%B8n-butye">kvinders nike flyknit lunar 2 guld gr酶n</a> <a href="http://www.accademiadeilincei.net/nike-lebron-ambassador-9-bl%C3%A5-gul-scarped">nike lebron ambassador 9 bl氓 gul</a> <a href="http://www.addaxia.net/air-max-90-lyser%C3%B8d-glaze-basket-weave-gum-schuhea">air max 90 lyser酶d glaze basket weave gum</a> <a href="http://www.adultlivesexx.net/nike-air-max-90-rosado-flash-kurpesb">nike air max 90 rosado flash</a> <a href="http://www.affluentadvisors.net/adidas-nitrocharge-slide-m-schwarz-slippers-schuhef">adidas nitrocharge slide m schwarz slippers</a>
    belshop http://www.belshop.net/

  12. avatar adanastarpen

    <a href="http://www.cardiachits.com/nike-kobe-10-elite-pink-shoesj">nike kobe 10 elite pink</a> <a href="http://www.zestchannel.com/kvinders-nike-free-run-2-guld-appelsin-skoi">kvinders nike free run 2 guld appelsin</a> <a href="http://www.eczacinim.com/femminile-nike-lebron-13-blu-bianca-scarpel">femminile nike lebron 13 blu bianca</a> <a href="http://www.chilangorails.com/womens-nike-blazer-grey-gold-shoesj">womens nike blazer grey gold</a> <a href="http://www.mariusen.com/michael-kors-jet-set-travel-tote-medium-black-mkh">michael kors jet set travel tote medium black</a> <a href="http://www.brittonoilco.com/kvinners-nike-air-max-90-oransje-r%C3%B8d-obuvi">kvinners nike air max 90 oransje r酶d</a>
    adanastarpen http://www.adanastarpen.com/

  13. avatar nike coaches hat

    <a href="http://www.ipodammo.com/nike-blazer-mid-metric-svart-obuvi">nike blazer mid metric svart</a> <a href="http://www.bezpozyczka.com/nike-dunks-viola-scarpek">nike dunks viola</a> <a href="http://www.ajhoweaboutpt.com/nike-lab-air-max-270-green-black-white-vert-noir-blanc-shoesi">nike lab air max 270 green black white vert noir blanc</a> <a href="http://www.rawrapture.com/jordan-12-future-teal-azul-zapatosi">jordan 12 future teal azul</a> <a href="http://www.staholidays.com/converse-alle-star-gr%C3%A5-lyser%C3%B8d-skoh">converse alle star gr氓 lyser酶d</a> <a href="http://www.gunsrusoregon.com/gray-and-bianca-converse-scarpei">gray and bianca converse</a>
    nike coaches hat http://www.bestzixiutang.com/nike-coaches-hat-hatl

  14. avatar isampled

    <a href="http://www.laketreepress.com/nike-roshe-two-flyknit-lila-grau-schuheh">nike roshe two flyknit lila grau</a> <a href="http://www.prohaarklinik.com/kvinners-air-jordan-retro-7-gr%C3%B8nn-oransje-obuvj">kvinners air jordan retro 7 gr酶nn oransje</a> <a href="http://www.bonfanticare.com/maschio-asics-gel-kayano-21-blu-rosso-scarpek">maschio asics gel kayano 21 blu rosso</a> <a href="http://www.antoniopagni.com/air-jordan-retro-14-royal-bleu-argent-chaussuresh">air jordan retro 14 royal bleu argent</a> <a href="http://www.wcshosting.com/prada-br4391-handbags-in-black-pradah">prada br4391 handbags in black</a> <a href="http://www.biddingstream.com/2016-chicago-bulls-jersey-nfli">2016 chicago bulls jersey</a>
    isampled http://www.isampled.com/

  15. avatar notmyrichie

    <a href="http://www.cardiachits.com/air-jordan-retro-31-all-green-shoesj">air jordan retro 31 all green</a> <a href="http://www.zestchannel.com/kvinders-air-jordan-13-bl%C3%A5-skop">kvinders air jordan 13 bl氓</a> <a href="http://www.eczacinim.com/mennns-nike-flyknit-roshe-run-r%C3%B8d-lilla-obuvk">mennns nike flyknit roshe run r酶d lilla</a> <a href="http://www.chilangorails.com/nike-zoom-structure-20-grey-blue-shoesi">nike zoom structure 20 grey blue</a> <a href="http://www.mariusen.com/herre-air-max-90-hyperfuse-appelsin-skoj">herre air max 90 hyperfuse appelsin</a> <a href="http://www.brittonoilco.com/mennns-nike-free-run-3-all-gr%C3%A5-obuvi">mennns nike free run 3 all gr氓</a>
    [url=http://www.notmyrichie.com/]notmyrichie[/url]

  16. avatar bkindvending

    <a href="http://www.poppiesdelray.com/women-air-jordan-retro-12-low-white-blue-shoesk">women air jordan retro 12 low white blue</a> <a href="http://www.soundsofbuzz.com/nike-air-trainer-huarache-triple-sort-nice-kicks-skoj">nike air trainer huarache triple sort nice kicks</a> <a href="http://www.hozloli.com/m%C3%A4nner-nike-air-max-tailwind-5-grau-gr%C3%BCn-schwarz-schuheh">m盲nner nike air max tailwind 5 grau gr眉n schwarz</a> <a href="http://www.privetaustria.com/adidas-tubular-primeknit-grey-shoesk">adidas tubular primeknit grey</a> <a href="http://www.goodnnasty.com/michael-michael-kors-jet-set-large-east-west-crossbody-mkh">michael michael kors jet set large east west crossbody</a> <a href="http://www.ankarasanal.com/air-jordan-eclipse-lilla-gr%C3%B8nn-obuvi">air jordan eclipse lilla gr酶nn</a>
    bkindvending http://www.bkindvending.com/

欢迎留言




用户登录

sitemap