<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Александра Климова — Fragment (Фрагменты)]]></title>
	<link rel="self" href="http://forum.alexanderklimov.ru/extern.php?action=feed&amp;tid=31&amp;type=atom" />
	<updated>2018-01-18T16:19:17Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.alexanderklimov.ru/viewtopic.php?id=31</id>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=1045#p1045" />
			<content type="html"><![CDATA[<p>Задействовать классы для преобразования дат - это понятно, непонятно в какой момент их задействовать.<br />Я использую метод query наследника SQLiteOpenHelper для получения курсора, который подставляю в конструктор SimpleCursorAdapter, туда же подставляются массив имен колонок откуда будут браться данные и массив имен полей раскладки, в которой они будут отображаться. Непосредственно данными я не оперирую. Если я правильно понимаю SimpleCursorAdapter сам получает данные и помещает их в ListFragment. Возможно ли как-то указать адаптеру, что данные перед выводом надо как-то обработать или здесь требуется совершенно иной подход?</p>]]></content>
			<author>
				<name><![CDATA[oegir]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1570</uri>
			</author>
			<updated>2018-01-18T16:19:17Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=1045#p1045</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=1043#p1043" />
			<content type="html"><![CDATA[<p>В Java есть классы для работы с датами <a href="http://developer.alexanderklimov.ru/android/java/date.php">http://developer.alexanderklimov.ru/and … a/date.php</a> Изучите этот вопрос.</p>]]></content>
			<author>
				<name><![CDATA[alexander.klimoff]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=2</uri>
			</author>
			<updated>2018-01-17T17:14:52Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=1043#p1043</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=1042#p1042" />
			<content type="html"><![CDATA[<p>Привет. Такой вопрос:<br />Есть поле в базе типа long в котором хранится дата в формате UTC. Для вывода использую ListFragment совместно с SimpleCursorAdapter. Возможно ли при выводе как-то форматировать дату для приведения ее к удобочитаемому виду?</p>]]></content>
			<author>
				<name><![CDATA[oegir]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1570</uri>
			</author>
			<updated>2018-01-17T16:49:58Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=1042#p1042</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=1029#p1029" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Xiri wrote:</cite><blockquote><p>Добрый день. Можно ли каким-то образом использовать один фрагмент для нескольких активностей? Ну например, некий фрагмент - синглтон.</p></blockquote></div><p>Да можно, почему бы и нет... Простой учебный вариант - написать класс фрагмента, и создавать его экземпляры в любых активностях, каких захотите.<br />Сложный вариант реализации синглетона... Ну, навскидку - описать в классе фрагмента статический метод, возвращающий экземпляр фрагмента. В методе проверять - &quot;если не создан то создать&quot; и возвращать экземпляр... а, ну и внутри класса ссылку на созданный экземпляр тоже сохранять куда-нибудь... Убиваца экземпляр будет, наверное, самостоятельно, java многое прощает в плане чистки мусора... Хотя, тут надо бы проверить - если экземпляр фрагмента никем не используется, то может убица самостоятельно...<br />Вот. Абстрактный вопрос - абстрактный ответ))</p>]]></content>
			<author>
				<name><![CDATA[NeferSky]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1445</uri>
			</author>
			<updated>2017-12-23T19:29:55Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=1029#p1029</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=1022#p1022" />
			<content type="html"><![CDATA[<p>Добрый день. Можно ли каким-то образом использовать один фрагмент для нескольких активностей? Ну например, некий фрагмент - синглтон.</p>]]></content>
			<author>
				<name><![CDATA[Xiri]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1546</uri>
			</author>
			<updated>2017-12-21T14:11:22Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=1022#p1022</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=900#p900" />
			<content type="html"><![CDATA[<p>NeferSky, спасибо еще раз. Правда, когда вставил content, менюшка была сверху, но при нажатии на все кнопки отображался только один первый фрагмент (т.е. не менялся). Я заменил content на fragment в главной активности. Теперь все работает! Спасибо, все корректно отображается. Подсказал мне, в каком направлении думать!</p>]]></content>
			<author>
				<name><![CDATA[Mish]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1490</uri>
			</author>
			<updated>2017-09-03T18:44:43Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=900#p900</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=899#p899" />
			<content type="html"><![CDATA[<p>NeferSky, спасибо большое! Приду домой&nbsp; посмотрю! Спасибо еще раз!</p>]]></content>
			<author>
				<name><![CDATA[Mish]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1490</uri>
			</author>
			<updated>2017-09-01T13:29:18Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=899#p899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=898#p898" />
			<content type="html"><![CDATA[<p><strong>Mish</strong>, нашел ошибку.<br />В классе главной активности:<br /></p><div class="codebox"><pre><code>fragmentManager.beginTransaction().replace(R.id.content, fragment).commit(); // &quot;R.id.content&quot;, а у Вас &quot;R.id.container&quot;</code></pre></div><p>Умаялся искать, если честно)</p>]]></content>
			<author>
				<name><![CDATA[NeferSky]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1445</uri>
			</author>
			<updated>2017-09-01T11:54:09Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=898#p898</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=897#p897" />
			<content type="html"><![CDATA[<p>Добрый день, коллеги. <br /> Никто не поможет мне разобраться в небольшом вопросе взаимодействия фрагмента и BottomNavigationView? Дело в том, что использую стандартную Bottom Navigation Activity (с 3-мя кнопками внизу экрана).&nbsp; По умолчанию – при нажатии на кнопки изменяется текст. Я хочу, чтобы при нажатии на кнопку – появлялся фрагмент. Но, когда написал код, то некорректно отображается эта панель с кнопками: эта панель оказывается вверху, а не снизу, как по умолчанию.<br />&nbsp; </p><p>Как сделать так, чтобы при появлении фрагмента кнопки панели оставались там же?</p><p>Вот главный код:<br />import android.os.Bundle;<br />import android.support.annotation.NonNull;<br />import android.support.design.widget.BottomNavigationView;<br />import android.support.v4.app.Fragment;<br />import android.support.v4.app.FragmentManager;<br />import android.support.v7.app.AppCompatActivity;<br />import android.view.MenuItem;<br />import android.widget.TextView;</p><p>public class MainActivity extends AppCompatActivity {</p><p>&nbsp; &nbsp; private TextView mTextMessage;</p><p>&nbsp; &nbsp; private BottomNavigationView.OnNavigationItemSelectedListener mOnNavigationItemSelectedListener<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = new BottomNavigationView.OnNavigationItemSelectedListener() {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; @Override<br />&nbsp; &nbsp; &nbsp; &nbsp; public boolean onNavigationItemSelected(@NonNull MenuItem item) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fragment fragment = null;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class fragmentClass = null;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int id = item.getItemId();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (id == R.id.navigation_home) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fragmentClass = BiografyClass.class;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (id == R.id.navigation_dashboard) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fragmentClass = PhotoFragment.class;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else if (id == R.id.navigation_notifications) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fragmentClass = PhotoFragment.class;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fragment = (Fragment) fragmentClass.newInstance();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch (Exception e) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.printStackTrace();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FragmentManager fragmentManager = getSupportFragmentManager();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fragmentManager.beginTransaction().replace(R.id.container, fragment).commit();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setTitle(item.getTitle());</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; };</p><br /><p>&nbsp; &nbsp; @Override<br />&nbsp; &nbsp; protected void onCreate(Bundle savedInstanceState) {<br />&nbsp; &nbsp; &nbsp; &nbsp; super.onCreate(savedInstanceState);<br />&nbsp; &nbsp; &nbsp; &nbsp; setContentView(R.layout.activity_main);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; mTextMessage = (TextView) findViewById(R.id.message);<br />&nbsp; &nbsp; &nbsp; &nbsp; BottomNavigationView navigation = (BottomNavigationView) findViewById(R.id.navigation);<br />&nbsp; &nbsp; &nbsp; &nbsp; navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);<br />&nbsp; &nbsp; }</p><p>Activity_main:<br />&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br />&nbsp; &nbsp; xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;<br />&nbsp; &nbsp; xmlns:tools=&quot;http://schemas.android.com/tools&quot;<br />&nbsp; &nbsp; android:id=&quot;@+id/container&quot;<br />&nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; android:layout_height=&quot;match_parent&quot;<br />&nbsp; &nbsp; android:orientation=&quot;vertical&quot;<br />&nbsp; &nbsp; tools:context=&quot;com.example.butam.biografy4.MainActivity&quot;&gt;</p><br /><br /><p>&nbsp; &nbsp; &lt;LinearLayout<br />&nbsp; &nbsp; &nbsp; &nbsp; android:id=&quot;@+id/content&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_height=&quot;0dp&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_weight=&quot;1&quot;&gt;<br />&nbsp; &nbsp; &lt;fragment<br />&nbsp; &nbsp; &nbsp; &nbsp; android:id=&quot;@+id/fragment&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:name=&quot;com.example.butam.biografy4.BiografyClass&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_height=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_gravity=&quot;center_horizontal&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; /&gt;</p><br /><p>&lt;/LinearLayout&gt;</p><p>&nbsp; &nbsp; &lt;android.support.design.widget.BottomNavigationView<br />&nbsp; &nbsp; &nbsp; &nbsp; android:id=&quot;@+id/navigation&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_height=&quot;wrap_content&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:layout_gravity=&quot;bottom&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; android:background=&quot;?android:attr/windowBackground&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; app:menu=&quot;@menu/navigation&quot; /&gt;</p><br /><p>&lt;/LinearLayout&gt;</p><p>Fragment_biografy.xml:<br />&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br />&nbsp; &nbsp; xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;<br />&nbsp; &nbsp; xmlns:tools=&quot;http://schemas.android.com/tools&quot;<br />&nbsp; &nbsp; android:id=&quot;@+id/container&quot;<br />&nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; android:layout_height=&quot;match_parent&quot;<br />&nbsp; &nbsp; android:orientation=&quot;vertical&quot;<br />&nbsp; &nbsp; tools:context=&quot;com.example.butam.biografy4.MainActivity&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;LinearLayout<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:id=&quot;@+id/content&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_height=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_weight=&quot;1&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;TextView<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:id=&quot;@+id/message&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_width=&quot;match_parent&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_height=&quot;wrap_content&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_marginBottom=&quot;@dimen/activity_vertical_margin&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_marginLeft=&quot;@dimen/activity_horizontal_margin&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_marginRight=&quot;@dimen/activity_horizontal_margin&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:layout_marginTop=&quot;@dimen/activity_vertical_margin&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; android:text=&quot;Тут Текст 1&quot; /&gt;</p><br /><p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/LinearLayout&gt;</p><br /><br /><p>&lt;/LinearLayout&gt;</p><br /><p>BiografyClass.java:<br />import android.os.Bundle;<br />import android.support.annotation.Nullable;<br />import android.support.v4.app.Fragment;<br />import android.view.LayoutInflater;<br />import android.view.View;<br />import android.view.ViewGroup;</p><br /><br /><p>public class BiografyClass extends Fragment {</p><p>&nbsp; &nbsp; @Nullable<br />&nbsp; &nbsp; @Override<br />&nbsp; &nbsp; public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@Nullable Bundle savedInstanceState) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; View rootView =<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inflater.inflate(R.layout.fragment_biografy, container, false);<br />&nbsp; &nbsp; &nbsp; &nbsp; return rootView;</p><p>&nbsp; &nbsp; }</p><p>}</p><p>Если переходить на другую активность с помощью интента или просто выводить текст, то все корректно отображается. С фрагментами никак пока не разберусь.</p>]]></content>
			<author>
				<name><![CDATA[Mish]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1490</uri>
			</author>
			<updated>2017-09-01T08:49:59Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=897#p897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=671#p671" />
			<content type="html"><![CDATA[<p>Там были просто опечатки. Я заново прошел урок и поправил те моменты, которые вызывали ошибку. Не вижу ничего страшного, если приходится что-то удалять из проекта. Это учебные примеры, лучше будете ориентироваться в коде, когда будете анализировать, что вызывает ошибку.</p>]]></content>
			<author>
				<name><![CDATA[alexander.klimoff]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-12-22T20:54:44Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=671#p671</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=668#p668" />
			<content type="html"><![CDATA[<p>Подтверждаю проблему onCreateView с двумя версиями кода: вариант с &quot;View rootView&quot; работает отлично, а вот &quot;Button button&quot; не даёт скомпилить прогу.</p><p>Видимо, мы зря ищем &quot;button&quot; в &quot;container&quot; до вызова &quot;inflate&quot;.. её там нет.</p><p>Первые 4 статьи по &quot;фрагментам&quot; компилялись на ура.. А вот 5-ая прямо забуксовала.. Лучше укажите, чтобы писали с нуля.. А то старый код по сути весь приходится удалять (</p>]]></content>
			<author>
				<name><![CDATA[ivan]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1414</uri>
			</author>
			<updated>2016-12-22T14:02:09Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=668#p668</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=534#p534" />
			<content type="html"><![CDATA[<p>Да, когда поставил везде одну библиотеку ошибки ушли.<br />Теперь крашится при запуске:</p><p>Unable to start activity ComponentInfo{com.example.ant_design.fragment5/com.example.ant_design.fragment5.MainActivity}: android.view.InflateException: Binary XML file line #16: Error inflating class fragment</p><p>Т.е. почему-то не надувается фрагмент с кнопкой, если его удалить из activity_main.xml то запускается.<br />Ума не приложу что там может быть не так....</p><p>fragment_with_button.xml прост до безобразия, сам код фрагмента в activity_main.xml тоже не бином Ньютона.<br />Сейчас буду экспериментировать</p>]]></content>
			<author>
				<name><![CDATA[Ant118]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=875</uri>
			</author>
			<updated>2016-05-14T18:05:30Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=534#p534</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=533#p533" />
			<content type="html"><![CDATA[<p>Я не встречал проблем, если фрагменты используются из одной библиотеки. Поэтому просто приведите все к одному знаменателю.</p>]]></content>
			<author>
				<name><![CDATA[alexander.klimoff]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-05-14T13:15:05Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=533#p533</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=531#p531" />
			<content type="html"><![CDATA[<p>Здравствуйте!<br />Данный метод вызывает конфликт android.app.FragmentManager; и android.support.v4.app.Fragment;<br />@Override<br />public void count(String data) {<br />&nbsp; &nbsp; FragmentManager manager = getSupportFragmentManager();<br />&nbsp; &nbsp; WithTextViewFragment withTextViewFragment =<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (WithTextViewFragment) manager.findFragmentById(R.id.fragment_withTextView);<br />&nbsp; &nbsp; withTextViewFragment.changeText(data);<br />}</p><p>Пробовал переделать так:<br /> public void count(String data) {<br />&nbsp; &nbsp; &nbsp; &nbsp; FragmentManager manager = getFragmentManager();<br />&nbsp; &nbsp; &nbsp; &nbsp; WithTextViewFragment withTextViewFragment =<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (WithTextViewFragment) manager.findFragmentById(R.id.fragment2);<br />&nbsp; &nbsp; &nbsp; &nbsp; withTextViewFragment.changeText(data);<br />&nbsp; &nbsp; }<br />Но тогда ругается на WithTextViewFragment. Как&nbsp; сделать лучше чтобы избежать конфликта старой и новой библиотеки FragmentManager?</p>]]></content>
			<author>
				<name><![CDATA[Ant118]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=875</uri>
			</author>
			<updated>2016-05-14T11:13:07Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=531#p531</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fragment (Фрагменты)]]></title>
			<link rel="alternate" href="http://forum.alexanderklimov.ru/viewtopic.php?pid=467#p467" />
			<content type="html"><![CDATA[<p>Интересный цикл статей, многое стало на места.&nbsp; &nbsp; </p><p>Я попробовал анимацию вида<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />fr.beginTransaction().replace(R.id.container, new TypeFrag(), &quot;type&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .addToBackStack(&quot;type&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .commit();</p><p>и ничего нет. А должно работать?</p><p>Кстати как управлять такой анимацией - duration и пр?</p>]]></content>
			<author>
				<name><![CDATA[vamm]]></name>
				<uri>http://forum.alexanderklimov.ru/profile.php?id=1199</uri>
			</author>
			<updated>2016-03-25T23:59:23Z</updated>
			<id>http://forum.alexanderklimov.ru/viewtopic.php?pid=467#p467</id>
		</entry>
</feed>
