Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は現在、アプリケーションのアクションバー内にスイッチを配置しようとしているプロジェクトに取り組んでいます(wi-fi設定のように:http://tinypic.com/r/2l8vt35/6)
これはどのように行うことができますか?
メニューのXMLリソースに追加android:actionLayoutし、<item>を含むレイアウトXMLリソースをポイントしますSwitch。次に、を使用getActionView()してMenuItem、スイッチの変更に関するリスナーを登録します。
android:actionLayout
<item>
Switch
getActionView()
MenuItem
SwitchAPIレベル14以降でのみ機能することに注意してください。
I have searched for a few examples and not found one that is similar to what I have and what I want to achieve.
I have 2 lists
class object1 { string obj1_name; int obj1_qty; } List<ob