예제 #1
0
 private void setupContent(android.widget.LinearLayout contentPanel)
 {
     mScrollView = (android.widget.ScrollView)mWindow.findViewById([email protected]
                                                                   .id.scrollView);
     mScrollView.setFocusable(false);
     // Special case for users that only want to display a String
     mMessageView = (android.widget.TextView)mWindow.findViewById([email protected].
                                                                  id.message);
     if (mMessageView == null)
     {
         return;
     }
     if (mMessage != null)
     {
         mMessageView.setText(mMessage);
     }
     else
     {
         mMessageView.setVisibility(android.view.View.GONE);
         mScrollView.removeView(mMessageView);
         if (mListView != null)
         {
             contentPanel.removeView(mWindow.findViewById([email protected]));
             contentPanel.addView(mListView, new android.widget.LinearLayout.LayoutParams(android.view.ViewGroup
                                                                                          .LayoutParams.MATCH_PARENT, android.view.ViewGroup.LayoutParams.MATCH_PARENT));
             contentPanel.setLayoutParams(new android.widget.LinearLayout.LayoutParams(android.view.ViewGroup
                                                                                       .LayoutParams.MATCH_PARENT, 0, 1.0f));
         }
         else
         {
             contentPanel.setVisibility(android.view.View.GONE);
         }
     }
 }
 private android.widget.LinearLayout createTabLayout()
 {
     android.widget.LinearLayout tabLayout = new android.widget.LinearLayout(getContext
                                                                                 (), null, [email protected]);
     tabLayout.setMeasureWithLargestChildEnabled(true);
     tabLayout.setLayoutParams(new android.widget.LinearLayout.LayoutParams(android.view.ViewGroup
                                                                            .LayoutParams.WRAP_CONTENT, android.view.ViewGroup.LayoutParams.MATCH_PARENT));
     return(tabLayout);
 }
예제 #3
0
		private android.widget.LinearLayout createTabLayout()
		{
			android.widget.LinearLayout tabLayout = new android.widget.LinearLayout(getContext
				(), null, [email protected]);
			tabLayout.setMeasureWithLargestChildEnabled(true);
			tabLayout.setLayoutParams(new android.widget.LinearLayout.LayoutParams(android.view.ViewGroup
				.LayoutParams.WRAP_CONTENT, android.view.ViewGroup.LayoutParams.MATCH_PARENT));
			return tabLayout;
		}