Android tutorial (2018) – 10 – Add a Fragment to an Activity using XML

Android tutorial (2018) – 10 – Add a Fragment to an Activity using XML

my-portfolio

You can add a fragment in two ways 1. Through the XML file 2. Add Fragment at Run Time For add a fragment using XML you have to specify a '"fragmen

Adobe Master Collection CC 2019 Install & Review
Bị bạch tuộc tấn công khi đang livestream ăn bạch tuộc sống
Tác dụng phụ nguy hiểm khi ăn nhiều trứng vịt lộn



You can add a fragment in two ways
1. Through the XML file
2. Add Fragment at Run Time

For add a fragment using XML you have to specify a ‘”fragment” xml element in the layout. In this video we are going to learn about how to add a fragment to an activity through xml.

Like my Facebook page :
Subscribe My YouTube channel :

Nguồn:https://hdwallpaperslovely.com/

COMMENTS

WORDPRESS: 33
  • comment-avatar

    excellent!". Regards for Argentina!

  • comment-avatar

    such a wonderful session I never had in my life …..
    Thank You very much!!!……

  • comment-avatar

    Very good work. Kindly put example. Code on GitHub. Thanks for great work

  • comment-avatar
  • comment-avatar

    how have you used android:layout_width attribute two times at 9:32 min. It shows an error of using a duplicate attribute. Please tell me.

  • comment-avatar

    why sir fragment height 0dp ?

  • comment-avatar

    I'm not getting output sir, there is no errors, but not showing the output what should I do

  • comment-avatar

    Pls sir teach me how to create a sponsor page fragment or brand activity for ads, I dont want to be using admob. Where u can do small text base ad, and canvas ad

  • comment-avatar

    In what kind of application it is used?? Sir

  • comment-avatar

    How fragments are added in main activity, it is so confusing.
    U r not explaining everything

  • comment-avatar

    How many fragments can I use in a activity? Does developing with multiple fragments consume less memory than doing with multiple activities?

  • comment-avatar

    please Explain what the method does while using any method!!!

  • comment-avatar

    super explanation…..absolutely nice

  • comment-avatar

    there is no layout inflator code exist in my android studio

  • comment-avatar

    ihave latest 3.2.1 android studio and this rag,emet metod is not working there iam getting somany errors

  • comment-avatar

    Hi. I was wondering where those id's being used in project @8:53 app doesn't run without those. why is that? which file is calling those fragment ids.thanks

  • comment-avatar

    Thank you for the video tutorials, but please we need tutorial on how to monetize our app after developing it.
    That is how we can add google ads to the an Android app.

  • comment-avatar

    Good mr.programmer

  • comment-avatar

    awesome video sir

  • comment-avatar

    very helpful thank you too much

  • comment-avatar

    Sir This is Yashwanth Reddy
    I have Tried to create an application that
    How to add more no of fingerprints to my application with name an contact no. and also how to get their details when finger print was authenticated in my application sir
    So please help me sir

  • comment-avatar

    For some reason, I got FATAL Exception

  • comment-avatar

    Why we are setting height=0

  • comment-avatar

    i didnt get what is inflater exacly!?

  • comment-avatar

    So working with fragments is a little like using the old frames from html. You have your container and you show your separate files in the frames. Is that about right?

  • comment-avatar

    How to add first fragment to mainactivity

  • comment-avatar

    I'm creating fragments for android tv

  • comment-avatar

    Sir while running this app this is showing default activity not found

  • comment-avatar
  • comment-avatar
  • comment-avatar

    Awesome work prabeesh and thankyou for latest videos on Android,please keep posting

  • comment-avatar

    Good evening sir,
    Excellent explaination on Android…
    This tutorials are very helpful to me…
    I am requesting you that Kindly keep post more videos on the Android..
    Thank you

  • comment-avatar
  • DISQUS: