Re: [android-developers] Problem with fragments

2012-09-02 Thread dminik
The problem was solved in the same weird way, as it appeared - I've only removed activity_main.xml and now I can see a big calendar and a button under it. In addition, I've removed some strings from res and the button name in string.xml. So, everything works fine for now. -- You received this

Re: [android-developers] Problem with fragments

2012-09-02 Thread dminik
Yeah, and one more thing, I've removed if -statements. With if -statements it doesn't work. In this case, there is the a problem in manuals... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Problem with fragments

2012-09-02 Thread dminik
One more thing, in if -statement =) There is a kind of typo: R.*layout*.container_calendar. The right way it suppose to be is R.*id*.calendar_container... since I'm using findViewById -method =) Noh, at least I found out it. Problem can be marked as SOLVED. -- You received this message

[android-developers] Problem with fragments

2012-09-01 Thread dminik
Hello! I'm a newbie in software development for android. In my simple program I'm trying to add a new fragment into the main activity during run-time. And here is the place where problems come - the fragment doesn't appear at all. Here is the code from the main activity: public class