List of usage examples for android.view ViewGroup findViewById
@Nullable public final <T extends View> T findViewById(@IdRes int id)
From source file:angeloid.dreamnarae.Tab_tab1.java
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup root = (ViewGroup) inflater.inflate(R.layout.tab_tab1, null); welcome_image = (ImageView) root.findViewById(R.id.tab_tab1_welcome_image); welcome1 = (TextView) root.findViewById(R.id.tab_tab1_welcome_text); welcome2 = (TextView) root.findViewById(R.id.tab_tab1_textview2); welcome1.setTypeface(Tab_MainActivity.Fonts.THEOREM); welcome2.setTypeface(Tab_MainActivity.Fonts.THEOREM); return root;//from w w w .j a v a2 s . c o m }
From source file:gov.wa.wsdot.android.wsdot.ui.BaseListFragment.java
/** * Initialize and display ads/* w ww . j a v a 2s .com*/ */ protected void enableAds(ViewGroup root, String target) { mAdView = (PublisherAdView) root.findViewById(R.id.publisherAdView); PublisherAdRequest adRequest = new PublisherAdRequest.Builder() .addTestDevice(PublisherAdRequest.DEVICE_ID_EMULATOR) // All emulators .addCustomTargeting("wsdotapp", target).build(); mAdView.loadAd(adRequest); }
From source file:gov.wa.wsdot.android.wsdot.ui.BaseFragment.java
/** * Initialize and display ads/*from ww w . j a va 2 s . c o m*/ */ protected void enableAds(ViewGroup root, String target) { mAdView = (PublisherAdView) root.findViewById(R.id.publisherAdView); PublisherAdRequest adRequest = new PublisherAdRequest.Builder() .addTestDevice(PublisherAdRequest.DEVICE_ID_EMULATOR) // All emulators .addCustomTargeting("wsdotapp", target).build(); mAdView.loadAd(adRequest); }
From source file:org.ciasaboark.tacere.activity.fragment.TutorialEndFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup rootView = (ViewGroup) inflater.inflate(layout, container, false); TextView closeButton = (TextView) rootView.findViewById(R.id.tutorial_end_button); closeButton.setOnClickListener(new View.OnClickListener() { @Override//www. j a va2 s. c o m public void onClick(View v) { getActivity().finish(); } }); return rootView; }
From source file:SlideFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.fragment_slide, container, false); ImageView imageView = (ImageView) rootView.findViewById(R.id.imageView); imageView.setImageResource(mImageResourceID); return rootView; }
From source file:net.clcworld.thermometer.setuppager.Page00Fragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup root = (ViewGroup) inflater.inflate(R.layout.page_00, null); Button next = (Button) root.findViewById(R.id.next); final SetupPagerActivity parent = (SetupPagerActivity) this.getActivity(); next.setOnClickListener(new OnClickListener() { @Override/*from ww w . ja v a 2 s. com*/ public void onClick(View v) { parent.jumpToPage(1); } }); return root; }
From source file:net.clcworld.thermometer.setuppager.Page01Fragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup root = (ViewGroup) inflater.inflate(R.layout.page_01, null); Button next = (Button) root.findViewById(R.id.next); final SetupPagerActivity parent = (SetupPagerActivity) this.getActivity(); next.setOnClickListener(new OnClickListener() { @Override/*from w w w . j av a 2 s . c o m*/ public void onClick(View v) { parent.jumpToPage(2); } }); return root; }
From source file:net.clcworld.thermometer.setuppager.Page02Fragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup root = (ViewGroup) inflater.inflate(R.layout.page_02, null); Button next = (Button) root.findViewById(R.id.next); final SetupPagerActivity parent = (SetupPagerActivity) this.getActivity(); next.setOnClickListener(new OnClickListener() { @Override//from w w w . jav a 2 s. c om public void onClick(View v) { parent.jumpToPage(3); } }); return root; }
From source file:com.lullabot.android.apps.iosched.ui.InfoFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup root = (ViewGroup) inflater.inflate(R.layout.info_view, null); // Info Button. root.findViewById(R.id.btn_feedback).setOnClickListener(new View.OnClickListener() { public void onClick(View view) { String url = "https://docs.google.com/spreadsheet/embeddedform?formkey=dE5hU0hfQ1d5cGltRzJ2dTBPakpsX3c6MQ"; Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url));/*w w w. j ava 2s. c om*/ startActivity(i); } }); return root; }
From source file:gr.sepals.eshop.info.gui.OrderSlidePageFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.fragment_info_order, container, false); title = (TextView) rootView.findViewById(R.id.info_order_title_textview); desc = (TextView) rootView.findViewById(R.id.info_order_description_textview); Typeface titleFont = Typeface.createFromAsset(getActivity().getAssets(), "fonts/GFS_Pyrsos.otf"); Typeface descFont = Typeface.createFromAsset(getActivity().getAssets(), "fonts/GFS_Goschen-Italic.otf"); title.setTypeface(titleFont, Typeface.BOLD); desc.setTypeface(descFont);/*from www .j a v a 2 s . c o m*/ return rootView; }