private void setLayout() {
   if (!mQuoteFragment.isAdded()) {
     mTitleFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));
     mQuotesFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));
   } else {
     mTitleFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 1f));
     mQuotesFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 2f));
   }
 }
 @Override
 public void onListSelection(int index) {
   if (!mQuoteFragment.isAdded()) {
     FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction();
     fragmentTransaction.add(R.id.quote_fragment_container, mQuoteFragment);
     fragmentTransaction.addToBackStack(null);
     fragmentTransaction.commit();
     mFragmentManager.executePendingTransactions();
   }
   if (mQuoteFragment.getShownIndex() != index) {
     mQuoteFragment.showIndex(index);
   }
 }