2011-06-20 11 views

答えて

4

ボタンを2つ追加して背景画像を使用し、余白を0に設定すると、実質的に1つのボタンのように見えます。

+0

マイナスのマージンを使用するだけで、私が望む効果を得ることができました。ありがとう –

0

最初の回答NO。 しかし、同じボタンタイプのビューを組み合わせた2つのラベルを組み合わせて配置することができます。両方のラベル(または他のビュー)を同じレイアウトに配置します。そのレイアウトのリスナーを設定します。

-2

マップパーツのある画像を使用すると、それぞれのパーツは異なるjavascriptを実行します。 イメージは、さまざまなターゲットアクションを持つボタンとして機能します。例えば

はコードhere

<img src ="planets.gif" width ="145" height ="126" alt="Planets" usemap="#planetmap" /> 

<map name="planetmap"> 
<area shape ="rect" coords ="0,0,82,126" 
onmouseover="writeText('The Sun and the gas giant planets like Jupiter are by far the largest objects in our Solar System.')" 
href ="sun.htm" target ="_blank" alt="Sun" /> 

<area shape ="circle" coords ="90,58,3" 
onmouseover="writeText('The planet Mercury is very difficult to study from the Earth because it is always so close to the Sun.')" 
href ="mercur.htm" target ="_blank" alt="Mercury" /> 

<area shape ="circle" coords ="124,58,8" 
onmouseover="writeText('Until the 1960s, Venus was often considered a twin sister to the Earth because Venus is the nearest planet to us, and because the two planets seem to share many characteristics.')" 
href ="venus.htm" target ="_blank" alt="Venus" /> 
</map> 
+1

これはandroid –

2

ありません見ていますが、1つのボタンのように見える二つのボタンを作成することができます。 2つのボタンを隣り合わせに配置します。両方のボタンをカバーするビットマップイメージを作成します。イメージを半分にカットします。ボタンの背景イメージを2つのビットマップに設定します。

関連する問題