しばらく Titanium から離れていたので、最も簡単な作業さえ忘れていたようです。適切な例: メイン ページにボタンのスタックがあります。各ボタンをクリックすると、それぞれのビューが開きます。ボタンがクリックされたときに関連付けられたビューを開くにはどうすればよいですか?
意見
<Alloy>
<Tab title="Home">
<Window class="container">
<Label>This is the Home View</Label>
<ImageView id="kplLogo"/>
<View id="homeNav">
<Button class="navButton" id="recognizeButton" title="Recognize" onClick="doClick" />
<Button class="navButton" id="reactButton" title="React"/>
<Button class="navButton" id="reportButton" title="Report"/>
</View>
</Window>
</Tab>
</Alloy>
ユーザーが、今のところ認識ボタンなどのボタンをクリックすると、認識ビューが開きます。簡単なことだとはわかっていますが、私は今、頭がおかしいのです。
助けてくれてありがとう。詳細が必要かどうか尋ねます。