0
ラベルをイメージの上に配置する必要があります。この画像は、レイアウトが "垂直"のビューにあり、このLABELを画像の右上に絶対に置く必要があります。これどうやってするの?Appcelerator:レイアウトレイアウト垂直のラベルレイアウトコンポジット
マイコード:
index.htmlを
`<Alloy>
<View class="col col-2">
<ImageView id="images" class="img-thumbnail" />
<Label id="name"></Label>
<Label id="price"></Label>
</View>
</Alloy>
`
app.tss
".col-2":{
layout: 'vertical',
width: '49.25%',
height: Ti.UI.SIZE,
}
".badge":{
top:0,
right:0,
backgroundColor:'green',
color:'white',
layout:'composite'
}
合金。 チタンSDKA:7.0.0.GA
あなたがやりたいことのサンプルスクリーンショットを表示できますか? –