<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум Александра Климова — Меню]]></title>
		<link>http://forum.alexanderklimov.ru/viewtopic.php?id=10</link>
		<atom:link href="http://forum.alexanderklimov.ru/extern.php?action=feed&amp;tid=10&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Меню.]]></description>
		<lastBuildDate>Sun, 28 Oct 2018 18:10:29 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1121#p1121</link>
			<description><![CDATA[<p>Господа, столкнулся с проблемой при работе с меню.<br />Моё меню состоит из единственного элемента - переключателя, который отвечает за включение/выключение устройства.<br />При попытке программно изменить состояние кнопки (setCheched()) ничего не выходит - как только я не пробовал.<br />Самое интересное, что другие методы тоже не проходят.</p><p>Что скажете?</p>]]></description>
			<author><![CDATA[null@example.com (Guha5277)]]></author>
			<pubDate>Sun, 28 Oct 2018 18:10:29 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1121#p1121</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1051#p1051</link>
			<description><![CDATA[<p>Ничего не убирали. Всё на месте.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Wed, 24 Jan 2018 10:43:37 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1051#p1051</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=1050#p1050</link>
			<description><![CDATA[<p>&quot;...В Android Studio 2.2 добавили графический режим построения меню, которых похож на панель инструментов для добавления новых компонентов на экран. У меню панель состоит из четырёх элементов: Menu Item, Search Item, Menu, Group.&quot;&nbsp; &nbsp;Скажите, в третьей версии Android Studio функция графического создания меню убрана вообще или они запрятали куда-то?</p>]]></description>
			<author><![CDATA[null@example.com (iorgo)]]></author>
			<pubDate>Tue, 23 Jan 2018 22:40:28 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=1050#p1050</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=501#p501</link>
			<description><![CDATA[<p>Отпишусь для тех у кого возникла такая проблема.<br />В моём случаем дело оказалось в версии Android:<br />4.0.1 кнопка меню не появляется,<br />4.4.4 кнопка появляется.<br />Наличие физических кнопок девайса не сказывается.</p>]]></description>
			<author><![CDATA[null@example.com (Kloshar13)]]></author>
			<pubDate>Tue, 19 Apr 2016 14:59:07 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=501#p501</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=495#p495</link>
			<description><![CDATA[<p>Если бы у меня была такая проблема, я мог бы рассказать о её решении. Так как у меня такой проблемы не было, то я не могу помочь. Может решение на поверхности, а может там что-то нетипичное.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Thu, 14 Apr 2016 10:24:13 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=495#p495</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=494#p494</link>
			<description><![CDATA[<p>Добрый день!<br />Уважаемый Александр, неужели ничего нельзя сделать для отображения кнопки меню в заголовке для старых устройств?<br />Я посмотрел некоторые программы на своём телефоне с сенсорной кнопкой &#039;меню&#039;, там кнопка с тремя точками присутствует... Может они просто использовали imageButton и сами нарисовали три точки?..<br />Не хочется пропускать такой интересный урок из-за того, что он не подходит к моему устройству. Может можно как-то решить проблему?<br />Примеры программ с меню:<br /><a href="http://radikal.ru/fp/d81048271e5d439ebd30ffd95d6ce9c4"><span class="postimg"><img src="http://s015.radikal.ru/i332/1604/8e/44759150e30at.jpg" alt="http://s015.radikal.ru/i332/1604/8e/44759150e30at.jpg" /></span></a><a href="http://radikal.ru/fp/5af396eb2da744c89aa2c09812ae3ab0"><span class="postimg"><img src="http://s014.radikal.ru/i327/1604/c3/b9444c35425dt.jpg" alt="http://s014.radikal.ru/i327/1604/c3/b9444c35425dt.jpg" /></span></a></p>]]></description>
			<author><![CDATA[null@example.com (Kloshar13)]]></author>
			<pubDate>Thu, 14 Apr 2016 09:26:31 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=494#p494</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=493#p493</link>
			<description><![CDATA[<div class="quotebox"><cite>alexander.klimoff wrote:</cite><blockquote><p>Сами запоминайте и восстанавливайте.</p></blockquote></div><p>Если я правильно понял, то я должен: создать переменную в классе, содержащую id пункта меню, который был нажат. Меню каждый раз при открытии пересоздаётся, и в функции OnCreateOptionsMenu проверить переменую (было ли вообще что-то нажато), найти пункт с этим id и проставить ему чекед.<br />В общих чертах верно ?</p>]]></description>
			<author><![CDATA[null@example.com (frenzymind)]]></author>
			<pubDate>Tue, 12 Apr 2016 02:41:44 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=493#p493</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=491#p491</link>
			<description><![CDATA[<p>Сами запоминайте и восстанавливайте.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Mon, 11 Apr 2016 16:55:44 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=491#p491</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=490#p490</link>
			<description><![CDATA[<p>Почему то у меня в меню с переключателями галочки не остается после выбора. Не в телефоне, не в эмуляторе.</p>]]></description>
			<author><![CDATA[null@example.com (frenzymind)]]></author>
			<pubDate>Mon, 11 Apr 2016 12:27:18 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=490#p490</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=456#p456</link>
			<description><![CDATA[<p>Производители иногда делают свои изменения в системе. поэтому на некоторых устройствах можно и не увидеть эти значки меню.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Sun, 20 Mar 2016 19:00:42 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=456#p456</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=445#p445</link>
			<description><![CDATA[<p>Тоже столкнулся с проблемой, что не видно значка с 3 точками в правом вехрнем углу при запуске приложения из урока на на реальном устройстве с андроидом 4.1.2. При запуске на реальном устройстве с андроидом 5.1 кнопка видна. Однако при запуске пустого шаблона Navigation Drawer Activity из урока <a href="http://developer.alexanderklimov.ru/android/navigation_drawer_activity.php">http://developer.alexanderklimov.ru/and … tivity.php</a> на реальном андроиде 4.1.2 кнопка меню с точками есть.</p>]]></description>
			<author><![CDATA[null@example.com (Erum)]]></author>
			<pubDate>Sat, 19 Mar 2016 22:04:26 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=445#p445</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=426#p426</link>
			<description><![CDATA[<p>Мы говорим о разных вещах. Я говорю именно об использовании в Android. В Windows это распространенная практика, не спорю.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Sun, 13 Mar 2016 10:30:29 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=426#p426</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=425#p425</link>
			<description><![CDATA[<p>Ну могу пример привести, где я такое использовал, но не на андроиде, конечно<br />Если хотите, можете скачать, но это необязательно: <a href="http://sxak.amikeco.ru/rubik.zip">http://sxak.amikeco.ru/rubik.zip</a><br />Там мой симулятор кубика-рубика разных размеров, написанный на c++builder. Так вот последний пункт меню - язык. При выбирании подпунктов остается галочка на выбранном языке</p>]]></description>
			<author><![CDATA[null@example.com (sxakludanto)]]></author>
			<pubDate>Sun, 13 Mar 2016 09:58:28 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=425#p425</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=424#p424</link>
			<description><![CDATA[<p>Я в меню такой необходимости ни разу не встречал. Но если вам нужно, то используйте. Никто не запрещает.</p>]]></description>
			<author><![CDATA[null@example.com (alexander.klimoff)]]></author>
			<pubDate>Sun, 13 Mar 2016 09:19:23 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=424#p424</guid>
		</item>
		<item>
			<title><![CDATA[Re: Меню]]></title>
			<link>http://forum.alexanderklimov.ru/viewtopic.php?pid=422#p422</link>
			<description><![CDATA[<p>Насчет меню с переключателями. Вы в уроке пишите:<br /></p><div class="quotebox"><blockquote><p>Большого смысла в этом режиме я не вижу.</p></blockquote></div><p>На самом деле (не скажу про андроиды), но в Делфи например такие меню изредка бывают полезны. Это не столько меню, сколько радиобаттоны. Только к ним надо еще немножко в обработчик дописать: Вот копипаста из моего<br />@Override<br />&nbsp; &nbsp; public boolean onOptionsItemSelected(MenuItem item) {<br />&nbsp; &nbsp; &nbsp; &nbsp; //return super.onOptionsItemSelected(item);<br />&nbsp; &nbsp; &nbsp; &nbsp; int id=item.getItemId();<br />&nbsp; &nbsp; &nbsp; &nbsp; TextView tv=(TextView) findViewById(R.id.TextView);<br />&nbsp; &nbsp; &nbsp; &nbsp; item.setChecked(true);<br />&nbsp; &nbsp; &nbsp; &nbsp; switch (id) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case R.id.action_cat_female:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tv.setText(&quot;Кошко&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case R.id.action_cat_male:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tv.setText(&quot;Кот&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case R.id.action_kitten:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tv.setText(&quot;Когтенок&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case R.id.action_settings:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tv.setText(&quot;Устаноффко&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return super.onOptionsItemSelected(item);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; return true;<br />&nbsp; &nbsp; }</p><p>Грубо говоря, отличается на строку item.setChecked(true); - эта строка метит, что этот пункт меню был выбран. А в таких меню изредка бывает необходимость</p>]]></description>
			<author><![CDATA[null@example.com (sxakludanto)]]></author>
			<pubDate>Sun, 13 Mar 2016 09:15:04 +0000</pubDate>
			<guid>http://forum.alexanderklimov.ru/viewtopic.php?pid=422#p422</guid>
		</item>
	</channel>
</rss>
