import{_ as r,r as o,o as c,c as i,a as n,w as e,b as s,d as l}from"./app--CGKFO0X.js";const p={},y=s("h3",{id:"layout-it-s-that-flexible",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#layout-it-s-that-flexible","aria-hidden":"true"},"#"),l(" Layout, it's that flexible.")],-1),A=s("div",{class:"language-kotlin line-numbers-mode","data-ext":"kt"},[s("pre",{class:"shiki github-dark-dimmed",style:{"background-color":"#22272e"},tabindex:"0"},[s("code",null,[s("span",{class:"line"},[s("span",{style:{color:"#DCBDFB"}},"LinearLayout"),s("span",{style:{color:"#ADBAC7"}},"(")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"    lparams "),s("span",{style:{color:"#F47067"}},"="),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#DCBDFB"}},"LayoutParams"),s("span",{style:{color:"#ADBAC7"}},"(matchParent "),s("span",{style:{color:"#F47067"}},"="),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#6CB6FF"}},"true"),s("span",{style:{color:"#ADBAC7"}},"),")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"    init "),s("span",{style:{color:"#F47067"}},"="),s("span",{style:{color:"#ADBAC7"}}," {")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"        orientation "),s("span",{style:{color:"#F47067"}},"="),s("span",{style:{color:"#ADBAC7"}}," LinearLayout.VERTICAL")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"        gravity "),s("span",{style:{color:"#F47067"}},"="),s("span",{style:{color:"#ADBAC7"}}," Gravity.CENTER")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"    }")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},") {")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"    "),s("span",{style:{color:"#DCBDFB"}},"TextView"),s("span",{style:{color:"#ADBAC7"}},"(id "),s("span",{style:{color:"#F47067"}},"="),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#96D0FF"}},'"text_view"'),s("span",{style:{color:"#ADBAC7"}},") {")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"        text "),s("span",{style:{color:"#F47067"}},"="),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#96D0FF"}},'"Hello, World!"')]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"        textSize "),s("span",{style:{color:"#F47067"}},"="),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#6CB6FF"}},"16f")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"        gravity "),s("span",{style:{color:"#F47067"}},"="),s("span",{style:{color:"#ADBAC7"}}," Gravity.CENTER")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"    }")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"}")]),l(`
`),s("span",{class:"line"})])]),s("div",{class:"line-numbers","aria-hidden":"true"},[s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"})])],-1),d=s("div",{class:"language-xml line-numbers-mode","data-ext":"xml"},[s("pre",{class:"shiki github-dark-dimmed",style:{"background-color":"#22272e"},tabindex:"0"},[s("code",null,[s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"<?"),s("span",{style:{color:"#8DDB8C"}},"xml"),s("span",{style:{color:"#6CB6FF"}}," version"),s("span",{style:{color:"#ADBAC7"}},"="),s("span",{style:{color:"#96D0FF"}},'"1.0"'),s("span",{style:{color:"#6CB6FF"}}," encoding"),s("span",{style:{color:"#ADBAC7"}},"="),s("span",{style:{color:"#96D0FF"}},'"utf-8"'),s("span",{style:{color:"#ADBAC7"}},"?>")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"<"),s("span",{style:{color:"#8DDB8C"}},"LinearLayout"),s("span",{style:{color:"#ADBAC7"}}," "),s("span",{style:{color:"#6CB6FF"}},"xmlns:android"),s("span",{style:{color:"#ADBAC7"}},"="),s("span",{style:{color:"#96D0FF"}},'"http://schemas.android.com/apk/res/android"')]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"    "),s("span",{style:{color:"#6CB6FF"}},"android:layout_width"),s("span",{style:{color:"#ADBAC7"}},"="),s("span",{style:{color:"#96D0FF"}},'"match_parent"')]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"    "),s("span",{style:{color:"#6CB6FF"}},"android:layout_height"),s("span",{style:{color:"#ADBAC7"}},"="),s("span",{style:{color:"#96D0FF"}},'"match_parent"')]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"    "),s("span",{style:{color:"#6CB6FF"}},"android:orientation"),s("span",{style:{color:"#ADBAC7"}},"="),s("span",{style:{color:"#96D0FF"}},'"vertical"')]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"    "),s("span",{style:{color:"#6CB6FF"}},"android:gravity"),s("span",{style:{color:"#ADBAC7"}},"="),s("span",{style:{color:"#96D0FF"}},'"center"'),s("span",{style:{color:"#ADBAC7"}},">")]),l(`
`),s("span",{class:"line"}),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"    <"),s("span",{style:{color:"#8DDB8C"}},"TextView")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"        "),s("span",{style:{color:"#6CB6FF"}},"android:id"),s("span",{style:{color:"#ADBAC7"}},"="),s("span",{style:{color:"#96D0FF"}},'"@+id/text_view"')]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"        "),s("span",{style:{color:"#6CB6FF"}},"android:layout_width"),s("span",{style:{color:"#ADBAC7"}},"="),s("span",{style:{color:"#96D0FF"}},'"wrap_content"')]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"        "),s("span",{style:{color:"#6CB6FF"}},"android:layout_height"),s("span",{style:{color:"#ADBAC7"}},"="),s("span",{style:{color:"#96D0FF"}},'"wrap_content"')]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"        "),s("span",{style:{color:"#6CB6FF"}},"android:text"),s("span",{style:{color:"#ADBAC7"}},"="),s("span",{style:{color:"#96D0FF"}},'"Hello, World!"')]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"        "),s("span",{style:{color:"#6CB6FF"}},"android:textSize"),s("span",{style:{color:"#ADBAC7"}},"="),s("span",{style:{color:"#96D0FF"}},'"16sp"')]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"        "),s("span",{style:{color:"#6CB6FF"}},"android:gravity"),s("span",{style:{color:"#ADBAC7"}},"="),s("span",{style:{color:"#96D0FF"}},'"center"'),s("span",{style:{color:"#ADBAC7"}}," />")]),l(`
`),s("span",{class:"line"},[s("span",{style:{color:"#ADBAC7"}},"</"),s("span",{style:{color:"#8DDB8C"}},"LinearLayout"),s("span",{style:{color:"#ADBAC7"}},">")]),l(`
`),s("span",{class:"line"})])]),s("div",{class:"line-numbers","aria-hidden":"true"},[s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"}),s("div",{class:"line-number"})])],-1);function C(D,B){const a=o("CodeGroupItem"),t=o("CodeGroup");return c(),i("div",null,[y,n(t,null,{default:e(()=>[n(a,{title:"Hikage (Kotlin DSL)"},{default:e(()=>[A]),_:1}),n(a,{title:"XML"},{default:e(()=>[d]),_:1})]),_:1})])}const u=r(p,[["render",C],["__file","index.html.vue"]]);export{u as default};
