title: Android | TextView.setText() not work
body: <p>So I have such quite complicated fragment. It is fragment used in <a href="http://developer.android.com/reference/android/support/v4/view/ViewPager.html" rel="nofollow"><code>ViewPager</code></a> and it's populated by own <a href="http://developer.android.com/reference/android/content/CursorLoader.html" rel="nofollow"><code>CursorLoader</code></a> and also contains some <a href="http://developer.android.com/reference/android/app/ListFragment.html" rel="nofollow"><code>ListFragment</code></a>s added via <a href="http://developer.android.com/reference/android/app/Fragment.html#getChildFragmentManager()" rel="nofollow"><code>getChildFragmentManager()</code></a>.</p>
  
  <p>In <code>onCreate()</code> I assign view elements and initiat Loader like so</p>
  
  <pre><code>public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  
      final View v = inflater.inflate(R.layout.user_account, container, false);
  
      mUserName = (TextView) v.findViewById(R.id.user_account_full_name);
      mUserLastSeen = (TextView) v.findViewById(R.id.user_account_user_last_seen);
      mCreditBalance = (TextView) v.findViewById(R.id.user_account_credit_balance);
      ...
  
      // then I populate FrameLayouts with ListViewFragments
      FragmentTransaction ft = getChildFragmentManager().beginTransaction();
      ft.add(R.id.user_account_credit_history, CreditListFragment.newInstance(mUserId));
      ft.add(R.id.user_account_bill_consumption, ConsumptionListFragmentAccount.newInstance(mUserId));
      ft.commit();
  
      // initiating the Loader
      getActivity().getSupportLoaderManager().initLoader(0, null, this);
  
      return v;
  }
  </code></pre>
  
  <p>and finally in <code>onLoadFinished()</code> I want populate my view</p>
  
  <pre><code>public void onLoadFinished(Loader&lt;Cursor&gt; loader, Cursor data) {
      data.moveToFirst();
      Log.e("TAG", data.getString(UserId.NAME));
      mUserName.setText(data.getString(UserId.NAME));
      mUserLastSeen.setText(getString(R.string.last_seen) + ": " +
              (data.isNull(UserId.LAST_VISIT) ? getString(R.string.never) :
                      String.format("%te. %&lt;tB %&lt;tY", data.getLong(UserId.LAST_VISIT))));
      Utils.setColorCurrency(mCreditBalance, data.getFloat(UserId.ACCOUNT_BALANCE));
  }
  </code></pre>
  
  <p>but the <code>View</code> is not populated. The <code>Log.e(...)</code> writes user name as expected, so the <code>Loader</code> is initiated ad has valid data, but none of my <code>TextView</code>s is replaced with the data, which is very, very strange.</p>
  
  <p>Any ideas?</p>
  
  <hr>
  
  <p><strong>EDIT</strong>/ Got it!</p>
  
  <p>Solution moved to answer. Thanks all, especially to Shoeb Siddique, for your help! You are a star!</p>