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_tab3.java
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup root = (ViewGroup) inflater.inflate(R.layout.tab_tab3, null); bugreport = (Button) root.findViewById(R.id.tab_tab3_bug_report); donate = (Button) root.findViewById(R.id.tab_tab3_donate); developer = (TextView) root.findViewById(R.id.tab_tab3_developer); rinne = (TextView) root.findViewById(R.id.tab_tab3_rinne); sopiane = (TextView) root.findViewById(R.id.tab_tab3_sopiane); primes = (TextView) root.findViewById(R.id.tab_tab3_primes); lonelysheep = (TextView) root.findViewById(R.id.tab_tab3_lonelysheep); rie = (TextView) root.findViewById(R.id.tab_tab3_rie); iren = (TextView) root.findViewById(R.id.tab_tab3_iren); ayana = (TextView) root.findViewById(R.id.tab_tab3_ayana); senless = (TextView) root.findViewById(R.id.tab_tab3_senless); russia = (TextView) root.findViewById(R.id.tab_tab3_russia); neon = (TextView) root.findViewById(R.id.tab_tab3_neon); appname = (TextView) root.findViewById(R.id.tab_tab3_appname); company = (TextView) root.findViewById(R.id.tab_tab3_company); developer.setTypeface(Tab_MainActivity.Fonts.THEOREM); rinne.setTypeface(Tab_MainActivity.Fonts.THEOREM); sopiane.setTypeface(Tab_MainActivity.Fonts.THEOREM); primes.setTypeface(Tab_MainActivity.Fonts.THEOREM); lonelysheep.setTypeface(Tab_MainActivity.Fonts.THEOREM); rie.setTypeface(Tab_MainActivity.Fonts.THEOREM); iren.setTypeface(Tab_MainActivity.Fonts.THEOREM); ayana.setTypeface(Tab_MainActivity.Fonts.THEOREM); senless.setTypeface(Tab_MainActivity.Fonts.THEOREM); russia.setTypeface(Tab_MainActivity.Fonts.THEOREM); neon.setTypeface(Tab_MainActivity.Fonts.THEOREM); appname.setTypeface(Tab_MainActivity.Fonts.THEOREM); company.setTypeface(Tab_MainActivity.Fonts.THEOREM); bugreport.setTypeface(Tab_MainActivity.Fonts.THEOREM); donate.setTypeface(Tab_MainActivity.Fonts.THEOREM); bugreport.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // //from w w w. j ava 2s . c o m Uri uri = Uri.parse("https://db.blueweb.co.kr/formmail/formmail.html?dataname=sopesewind0"); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it); } }); donate.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Uri uri = Uri.parse("http://me2.do/5oU1vu3"); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it); } }); return root; }
From source file:com.deveo.android.ProjectSCMFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.fragment_project_scm, container, false); if (rootView != null) { ListView listView = (ListView) rootView.findViewById(R.id.list_view_events_project_scm); listView.setAdapter(adapter);/*from www.j a v a2 s .c o m*/ } return rootView; }
From source file:com.reddyetwo.hashmypass.app.tutorial.TutorialSetupFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.fragment_tutorial_setup, container, false); mPrivateKeyText = (EditText) rootView.findViewById(R.id.private_key_text); mPrivateKeyText.addTextChangedListener(new TextWatcher() { @Override/* ww w.j av a 2 s . co m*/ public void beforeTextChanged(CharSequence s, int start, int count, int after) { // Do nothing } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { // Nothing to do } @Override public void afterTextChanged(Editable s) { if (mPrivateKeyChangedListener != null) { mPrivateKeyChangedListener.onPrivateKeyChanged(mPrivateKeyText.getText().toString()); } } }); mPrivateKeyText.setText(RandomPrivateKeyGenerator.generate()); return rootView; }
From source file:com.example.android.actionbarcompat.ScreenSlidePageFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout containing a title and body text. ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.bookpages, container, false); // Set the title view to show the page number. ((TextView) rootView.findViewById(R.id.text1)).setText("text"); return rootView; }
From source file:net.olejon.mdapp.WelcomeFirstFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup viewGroup = (ViewGroup) inflater.inflate(R.layout.fragment_welcome_first, container, false); if (!mViewIsShown) { TextView textView = (TextView) viewGroup.findViewById(R.id.welcome_page_1_guide); animateTextView(textView);/*from w w w . j a va 2s . c o m*/ } return viewGroup; }
From source file:net.olejon.mdapp.WelcomeThirdFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup viewGroup = (ViewGroup) inflater.inflate(R.layout.fragment_welcome_third, container, false); if (!mViewIsShown) { TextView textView = (TextView) viewGroup.findViewById(R.id.welcome_page_3_guide); animateTextView(textView);/*from w ww . j a v a 2 s. co m*/ } return viewGroup; }
From source file:io.vit.vitio.Settings.ComingSoonFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup rootView = (ViewGroup) inflater.inflate(R.layout.coming_soon_fragment, container, false); displayImage = (ImageView) rootView.findViewById(R.id.detail_image); //nextButton=(Button)rootView.findViewById(R.id.next_button); /* nextButton.setOnClickListener(new View.OnClickListener() { @Override/* w ww .j a va2 s . c om*/ public void onClick(View v) { ((FragmentHolder)getActivity()).changePage(FRAGMENTID); } });*/ setData(); Log.d(String.valueOf(FRAGMENTID), "oncreateview"); return rootView; }
From source file:net.olejon.mdapp.WelcomeSecondFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup viewGroup = (ViewGroup) inflater.inflate(R.layout.fragment_welcome_second, container, false); if (!mViewIsShown) { TextView textView = (TextView) viewGroup.findViewById(R.id.welcome_page_2_guide); animateTextView(textView);/*from ww w .j a v a 2 s . co m*/ } return viewGroup; }
From source file:com.hhs.hfnavigator.slidingtabs.home.BusFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup root = (ViewGroup) inflater.inflate(R.layout.fragment_webview, null); swipeRefreshLayout = (SwipeRefreshLayout) root.findViewById(R.id.swipe); progressWheel = (ProgressWheel) root.findViewById(R.id.webViewProgress); swipeRefreshLayout.setEnabled(false); final WebView webView = (WebView) root.findViewById(R.id.webView); if (webView != null) { webView.loadUrl("http://vqr.mx/DmkD"); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE); webView.getSettings().setBuiltInZoomControls(true); webView.getSettings().setDisplayZoomControls(false); webView.setWebViewClient(new WebViewClient() { public void onPageFinished(WebView view, String url) { progressWheel.stopSpinning(); swipeRefreshLayout.setRefreshing(false); webView.setVisibility(View.VISIBLE); }/*from w ww.j av a2 s .c o m*/ }); } progressWheel.spin(); webView.setVisibility(View.INVISIBLE); // swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { // @Override // public void onRefresh() { // if (CheckNetwork.isInternetAvailable(getActivity())) { // webView.reload(); // } // } // }); // // swipeRefreshLayout.setColorSchemeResources(android.R.color.holo_blue_bright, // android.R.color.holo_red_light, // android.R.color.holo_green_light, // android.R.color.holo_orange_light); return root; }
From source file:org.hansel.myAlert.WelcomeInfo.WelcomeFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup rootView = (ViewGroup) inflater.inflate(org.hansel.myAlert.R.layout.welcome, container, false); TextView texto = (TextView) rootView.findViewById(R.id.textView1); RelativeLayout layout = (RelativeLayout) rootView.findViewById(R.id.bigImage); switch (number) { case 0:/*from w w w . ja v a2 s. c o m*/ texto.setText(getResources().getString(R.string.slide0)); //icono.setImageResource(R.drawable.slide0); layout.setBackgroundResource(R.drawable.slide0); break; case 1: texto.setText(getResources().getString(R.string.slide1)); //icono.setImageResource(R.drawable.slide1); layout.setBackgroundResource(R.drawable.slide1); break; case 2: texto.setText(getResources().getString(R.string.slide2)); //icono.setImageResource(R.drawable.icono2); layout.setBackgroundResource(R.drawable.slide2); break; case 3: texto.setText(getResources().getString(R.string.slide3)); //icono.setImageResource(R.drawable.icono1); layout.setBackgroundResource(R.drawable.slide3); break; case 4: texto.setText(getResources().getString(R.string.slide4)); //icono.setImageResource(R.drawable.icono2); layout.setBackgroundResource(R.drawable.slide4); break; case 5: texto.setText(getResources().getString(R.string.slide5)); //icono.setImageResource(R.drawable.icono3); layout.setBackgroundResource(R.drawable.slide5); break; } return rootView; }