Fragments represent reusable behaviors or portions of user interface in an Android app.
0
votes
2answers
11 views
Border with 2 fragments
How can I apply this design specially brown border , how can i apply something like that with 2 fragments and list of static buttons at the end of screen .
sorry i cannot upload image website error ...
1
vote
1answer
16 views
Why LinearLayout inside ScrollView of a Fragment is NULL object?
I am trying to add multiple views to the Fragment dynamically:
@Override
public View onCreateView(LayoutInflater inflater,
ViewGroup container, Bundle savedInstanceState) {
ViewGroup ...
0
votes
1answer
19 views
Replace one fragment to another fragment in the TabHost
I am creating a five tabs that contains one fragment each;
I am using listView in the first tab, in the listView OnItemClickListener I want to replace from the first Tab Fragment to second tab ...
0
votes
0answers
12 views
Android WebView Not Showing Fragment
App loads when I click on the fragment, just does not show anything just a white screen, Eclipse does not show any errors but there is something wrong. Any help would be great, sorry for being a noob ...
0
votes
1answer
17 views
How Do I Retrieve An Instance of A Fragment Defined in XML?
In short, the problem is that I can find my element by id but it keeps asking me to cast it to a view and I cannot cast it to a type of my object name. I'm not sure if casting to view is how it is ...
0
votes
0answers
6 views
Fragment WebView Error
i'm trying to implament a WebView into one of my framents but getting 3 errors, any help would be great, sorry only a beginner.
First (new WebAppInterface(this),
Second onCreateOptionsMenu(Menu ...
0
votes
0answers
16 views
Adding Fragments in HorizontalListView
I want horizontalListview with vertical scrolling. Earlier i tried to implement it using Horizontalscrollview inside Listview. It works fine for static no. of data items. But In my case they are ...
0
votes
0answers
11 views
Using onConfigurationChanged in a fragment
I have this code in a fragment
public class TestOne extends Fragment {
View view = null;
@Override
public void onConfigurationChanged(Configuration newConfig) {
...
0
votes
0answers
29 views
How to add Fragments in ViewPager And Linking to PagerAdapter?
I want to set Fragments in my ViewPager to swipe every Fragment left and right. I also want to connect the Fragments to the Container items. Please help me out, I am very confused. Comment or start a ...
0
votes
0answers
24 views
fragment switching overlapping android
Hi am getting strut up while fragment switching one fragment to andthot fragment ..
see my code help me....
MainActivity
-------------------
// adding new item
addItem()
{
FragmentManager ...
0
votes
0answers
17 views
Refresh ExpandableList fragment
I am trying to make 3 different views of ExpanableList for each fragment of my activity.
I have 3 buttons, each button is other fragment. When I push second button I change currentPage, so my ...
0
votes
0answers
11 views
How to show DatePicke/TimePicker dialog from Fragment class
I have a Fragment where I have a FragmentTabHost and some tabs attached to it. Each tab is also a Fragment.Now, from any of them , I want to display DatePicker and Timepicker, then how will I show ...
0
votes
0answers
13 views
Set OptionsMenu in Fragment in ViewPager in Fragment
I have a Fragment A that has a ViewPager.
The ViewPager adapter is a FragmentStatePagerAdapter with getChildFragmentManager.
Then the ViewPager has 3 Fragment B, C, D.
I want to create optionsmenu in ...
0
votes
2answers
21 views
How to clear Fragment backstack in android
hi how to clear fragment back stack am using below logic it's not working...
for(int i = 0; i < mFragmentManager.getBackStackEntryCount(); ++i) {
mFragmentManager.popBackStack();
...
0
votes
0answers
7 views
android slide menu using slide menu library
I implemented the Sliding Menu library in my app but I have an issue with the navigation.
In the behind view, I’ve set some buttons which when pressed change the Fragment of my current Activity. ...