• Catalog

    Catalog

    See All
    • Languages
    • Courses

    Languages

    See All
    • C++
    • C#
    • HTML
    • Java
    • JavaScript
    • Python

    Level

    See All
    • Beginner
    • Intermediate
    • Advanced

    Courses

    See All
    • Introduction to Python
    • Introduction to C
    • Introduction to C#
    • Introduction to SQL
    • Introduction to HTML
    • Introduction to CSS
    • Introduction to Java
    • Introduction to JavaScript
    • Introduction to C++
    • Tech for Everyone

    Courses

    See All
    • C# Intermediate
    • Python Intermediate
    • JavaScript Intermediate
    • C++ Intermediate
    • C Intermediate
    • SQL Intermediate
    • Game Development with JS
    • Responsive Web Design
    • Python for Data Science
    • Python for Finance

    Courses

    See All
    • React + Redux
    • Angular + NestJS
    • Python Data Structures
  • Online Compiler
    • HTML
    • CSS
    • Javascript
    • C++
    • C
    • PHP
    • Java
    • Python
    • Swift
    • C#
    • Ruby
    • Node.JS
    • Kotlin
    • jQuery
    • Go
    • R
    • TypeScript
  • Discuss
  • Blog
  • Get Pro
Menu
+ 1

Fragment vs Activity

In Android when to use Fragment and when to use Activity?

android
25th Mar 2017, 8:22 AM
Bhabesh Gogoi
Bhabesh Gogoi - avatar
1 Answer
+ 7
Activity is the screen itself But the Fragment is a part of the screen and you can make 2 or more fragments in the same screen but you can make only one activity on the screen.you can connect the fragments using the main activity file
25th Mar 2017, 12:13 PM
Michael Ehab Mikhail
Michael Ehab Mikhail - avatar
Hot today
How do I generate a list with <N> unique elements randomly selected from another (already existing) list?
3 Votes
Given three integer matrices A(m*n),B(m*n) and C(m*n) . Print the one with more zero elements. beside code
0 Votes
Guys I'm beginner can anyone help me to add photo in my docui
1 Votes
What would be some improvements you would make to this password generator?
1 Votes
sizeof funtion with a loop in c!
0 Votes
1. Write a program that asks the user for their name and how many times to print it. The program should print out the user’s nam
0 Votes
How does output came as "102 f" and it also throwing some error why?
0 Votes
How front end developers and ui designers work together
1 Votes
I still fail test case 4 & 5 in mathematics code challenge.is there anything I miss?
0 Votes
Loops regarding increment (overthinking !! resulted to doubt)
3 Votes

Languages

  • C++
  • C#
  • HTML
  • Java
  • JavaScript
  • Python

Introduction Courses

  • Introduction to Python
  • Introduction to C
  • Introduction to C#
  • Introduction to SQL
  • Introduction to HTML
  • Introduction to CSS
  • Introduction to Java
  • Introduction to JavaScript
  • Introduction to C++
  • Tech for Everyone
  • Web Development Fundamentals
  • R
  • Data Science
  • Machine Learning
  • Coding for Marketers
  • Kotlin
  • Go
  • PHP
  • Ruby
  • Swift 4

Intermediate Courses

  • C# Intermediate
  • Python Intermediate
  • JavaScript Intermediate
  • C++ Intermediate
  • C Intermediate
  • SQL Intermediate
  • Game Development with JS
  • Responsive Web Design
  • Python for Data Science
  • Python for Finance
  • jQuery

Advanced Courses

  • React + Redux
  • Angular + NestJS
  • Python Data Structures

Community

  • Discuss
  • Code Bits
  • Blog
Follow us on Linkedin
Check out our facebook
See what we tweet about
Join our instagram
Watch our Youtube
HomeTop LearnersProFAQContactBug Bounty ProgramCareersTerms of UsePrivacy PolicySololearn mobile
Made with
by  Sololearn | ©2023