Skip to content
Dr James Froggatt
  • Website security (& ethical hacking)
  • Web programming services
  • Website development
  • Prices
  • Blog
  • Contact
  • Toggle website search
Menu Close
  • Website security (& ethical hacking)
  • Web programming services
  • Website development
  • Prices
  • Blog
  • Contact
  • Toggle website search

Fragments

10) Scrollable tabs

  • Post author:admin
  • Post published:April 29, 2014
  • Post category:Fragments
  • Post comments:0 Comments

Creating a scroll tab: 1) Create the fragment classes and layouts 2) Create a view pager - a view pager is layout manager where each child is a separate page.…

Continue Reading10) Scrollable tabs

9) Dialog Fragment

  • Post author:admin
  • Post published:April 29, 2014
  • Post category:Fragments
  • Post comments:0 Comments

A Dialog box is like a prompt for user decisions/information for an app to continue a task (e.g. deleting a record in a database) A Dialog Box is composed of…

Continue Reading9) Dialog Fragment

8) ListFragment

  • Post author:admin
  • Post published:April 28, 2014
  • Post category:Fragments
  • Post comments:0 Comments

In this example the fragment xml file is hard coded into the activity_main.xml file. We could however use the fragment manager and add() method in the java code to give…

Continue Reading8) ListFragment

7) Setting fragment backstack and popbackstack

  • Post author:admin
  • Post published:April 28, 2014
  • Post category:Fragments
  • Post comments:0 Comments

MainActivity.java FragmentA.java FragmentB.java activity_main.xml fragment_a.xml fragment_b.xml Notes from Vivz slide nerd videos at youtube

Continue Reading7) Setting fragment backstack and popbackstack

6) Fragment Manager, Fragment Transaction, Fragment Lifecycle

  • Post author:admin
  • Post published:April 28, 2014
  • Post category:Fragments
  • Post comments:0 Comments

MainActivity.java FragmentA.java FragmentB.java activity_main.xml fragment_a.xml fragment_b.xml AndroidManifest.xml Output: Example above is from:

Continue Reading6) Fragment Manager, Fragment Transaction, Fragment Lifecycle

5) Modular UI Design with better fragment communication

  • Post author:admin
  • Post published:April 26, 2014
  • Post category:Fragments
  • Post comments:0 Comments

The slides on this page are screen shots from Vivz slidenerd videos on youtube. Full video can be seen on the bottom of this page. Below we have the modified…

Continue Reading5) Modular UI Design with better fragment communication

4) Getting fragments to talk to each other

  • Post author:admin
  • Post published:April 25, 2014
  • Post category:Fragments
  • Post comments:0 Comments

Example below is from Vivz slide nerd videos on youtube MainActivity.java FragmentA.java FragmentB.java activity_main.xml fragment_a.xml fragment_b.xml AndroidManifest.xml When orientation changes - how do we remember the state of Fragment A…

Continue Reading4) Getting fragments to talk to each other

3) Adding fragments using Java code

  • Post author:admin
  • Post published:April 24, 2014
  • Post category:Fragments
  • Post comments:0 Comments

The Fragment Manager Every activity has its own Fragment Manager which is accessible through the method: getFragmentManager() The Fragment Manager maintains references to all the fragments within an activity. You…

Continue Reading3) Adding fragments using Java code

2) Adding Fragments in XML

  • Post author:admin
  • Post published:April 24, 2014
  • Post category:Fragments
  • Post comments:0 Comments

This is not the preferred method, it is betting to do it in java so that things happen dynamically at runtime, be here is a demo of doing it in…

Continue Reading2) Adding Fragments in XML

1) Fragment Life Cycle

  • Post author:admin
  • Post published:April 23, 2014
  • Post category:Fragments
  • Post comments:0 Comments

To make a fragment we have to: 1) Extend the fragment class 2) Give the appearance in XML or Java 3) Override the onCreateView() method to link appearance 4) Use…

Continue Reading1) Fragment Life Cycle

Search

Recent

  • Make grass than bends September 24, 2022
  • Making a png sprite map in InkScape (for later use in Javascript Game or any other game) September 24, 2022
  • Setting up node JS September 21, 2022

Categories

  • AJAX
  • Android Development
    • Activities and Intents
    • Android Examples
    • Big Nerd Ranch Notes
    • Fragments
    • Program Anatomy
  • CSS
  • GIT
  • HTML
  • Inkscape
  • Installations
    • VBulletin5
    • Wordpress
    • XAMPP
  • Java
    • "this" keyword
    • Abstract Classes & Interfaces
    • Arrays
    • Class Files
      • Abstract classes & methods
      • Final
      • Public, private, this
      • Static
      • Time Class
    • Compostition
    • Conditional operators
    • Constructors
      • Basics
      • Overloading Constructors
    • Decision statements
    • Enumeration
    • Inheritance
    • Inner classes
    • Interfaces
    • Java GUI
    • Java I/O
    • Keywords
      • Static
      • Super
    • Loops
    • Math Operators
    • Methods
      • Implicit & Explicit Parameters
      • Overloading
      • Overriding
      • Static Methods
      • Substring()
      • toString
    • Object Reference Preservation
    • Objects
      • Basics
      • Examples
    • Reference Types vs Primitive Types
    • Simple Programs
    • Specific Concepts
    • Variables
      • Basic Variables
      • Static variables
      • Variable Scope
  • Javascript
    • NodeJS
  • Javascript HTML DOM
  • Metatrader
  • Miscellaneous
    • Cooking recipes
    • DIY E-liquids
    • Go Pro 2
    • Holidays
    • Oakham School
    • Out and about on Android
    • Survivors Manchester
    • Trading
    • Wordle
    • Wordpress Stuff
  • Notepad++
  • PHP Programming
    • PHP Objects
    • PHP security
  • PMF
  • Python and Neural Networks
    • Latex
    • Lists and Arrays
    • Manipulating CSV files
    • Neural Network Notation
    • Sigmoids and tan
  • React and Node.js
  • SQL & Databases
    • SQL Specifics
    • World Map Manipulation

Copyright James Froggatt 2017-2020