0% found this document useful (0 votes)
34 views1 page

Android Fragment Layout Example

This document contains the code for a FrameLayout in an Android application. The FrameLayout contains a single TextView widget that displays sample text. It is a blank fragment layout that can be updated with other widgets. There are also comments mentioning code for replacing this fragment with other fragments and setting titles.

Uploaded by

shiv alph
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views1 page

Android Fragment Layout Example

This document contains the code for a FrameLayout in an Android application. The FrameLayout contains a single TextView widget that displays sample text. It is a blank fragment layout that can be updated with other widgets. There are also comments mentioning code for replacing this fragment with other fragments and setting titles.

Uploaded by

shiv alph
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

<FrameLayout

xmlns:android="[Link]
xmlns:tools="[Link]
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="[Link]">

<!-- TODO: Update blank fragment layout -->


<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />

<!--[Link]([Link].title_notifications);
inside case mylottery

setTitle("Fragment Title Two");


FragmentName fragment = new FragmentName();
FragmentTransaction fragmentTransaction2 =
getSupportFragmentManager().beginTransaction();
[Link]([Link], fragment,
"FragmentName");
[Link]();

setTitle("Fragment Title Three");


FragmentName fragment = new FragmentName();
FragmentTransaction fragmentTransaction3 =
getSupportFragmentManager().beginTransaction();
[Link]([Link], fragment, "FragmentName");
[Link]();
-->
</FrameLayout>

You might also like