How to place a recyclerview inside a scroll view? - android-scrollview

My View has a scroll view, Long enough, and at the bottom, i'm planning to show a comments section, which would basically be a recycler view. Dont know if this is right.
I've created a recycler view and everything as for a normal recycler view, but i'm not able to scroll the items in recycler view.
Please help me out..
Edit:
Found a solution: example link in comment

Related

NavigationController & hidesBarsOnSwipe with CollectionView subview

I'm pretty new to iOS development and I'm having some trouble with navigation controller and a collection view as a Subview.
Ive started my project with a single view application and embedded in a Navigation controller (The Navigation controller root is my ViewController).
Inside my view controller i've added a Collection view with a custom cell (it doesn't take the whole screen).
when I run my application everything works fine.
when I tried to set the method
navigationController?.hidesBarsOnSwipe = true
nothing happens inside my Collection view even though I'm scrolling, but if I swipe within the View controller and not the Collection view the method works and the Navigation bar gets hidden just fine.
I want the method to work when I swipe inside the Collection view.
Thank...
If your collection view top is set to the top layout guide top then the view behind is has never scrolled, i.e. your view isn't scrolling so the navigation bar is not hiding.
Try setting your collection view top to the "Top Layout Guide.Top". Try changing this to "Superview.Top".

How do I add a fragment to a ViewFlipper, programmatically, in Android?

I have one listview, when i click on listView Item the fragment load details of that item.I want to add that fragment to viewFlipper. when i slide that fragment i should able to see the details of next item.
I would be grateful if anyone could help me with this.

How to navigate to a new Screen when using SideBarController in Xamarin.iOS

I have an application with a lot of screens, let say HomePage, Section Screen and Detail Page, Category Screen.
I use a NavigationController to Navigate from HomePage to Section Screen.
In the SectionScreen I have used a SideBarController component (https://components.xamarin.com/view/sidebarnavigation) to implement a navigation drawer or a flyout menu.
The problem is how to navigate from Section Screen to Detail Page or to Category Screen. I need to make this kind of navigation from MenuController or ContentController.
I don't want to just change the contentView. I want to push another UIViewController.
I have used the usual one:
this.NavigationController.PushViewController( new UIViewControllerExample(), true);
but there are some problems:
In the details page I can't access the NavigationBar
When I press back, the app crashes with an error:
Cant add self to subview
This is how to it should look like.
This is the problem. The first image display what happen when i use the above code,
Any idea how to solve this.
as you can find in that page of component you should use SidebarController as your navigationcontroller
SidebarController.ChangeContentView(new OtherContentController());

Not able to drag scrollview object in interface builder

I'm using XCode 4.6 and interface builder. I've got a UIViewController in interface builder, and a UIScrollView on top within the UIViewController. The scroll view completely spans the view controller (actually, it's taller than the view controller, it has height that is below the bottom of the view controller). This has been working for sometime, but I just ran into a problem. Somehow, I can no longer grasp the scroll view to drag it and reposition it. I click on the scroll view in IB or within the outline but the "hand" icon will not appear to enable movement and repositioning of the scroll view. Ideas?
I'd really rather not re-create all the detailed views within the scroll view. Perhaps this is why some people have a negative attitude about IB? Loosing work because of silly problems that stop you dead.
Thanks,
Chris.
I think I've solved this now. I believe there was supposed to be three layers: (from top to bottom; top towards user) scroll view, view (), and view controller. Somehow I lost the view in the middle () and this was not letting me resize the scroll view.

UINavigationController with UITableView in modal popup (on iPad)

Short Version:
"How do you get a simple UITable drill down UINavigationController-styled non-full-screen modal dialog on the iPad?"
Long version:
I have a very specific set of requirements that I can't seem to get working...
I have a functioning iPad program that that needs to pop up a non-full-screen modal view. This modal needs to have a navigation controller and a simple drill-down table that displays a detailed view that I can have edit some values related to the selected item in the table.
Of course I am looking to have the regular "Back" and "Delete" buttons in the Navigation Bar.
I can handle the detailed view, what I am having issues with:
Non-full-screen popup (mine is
always full screen no matter what I
try).
The Navigation controller will not display the Table View I tell it to and the navigation bar does not even have the title I assigned to it in IB.
I can't seem to get any of this working. If anyone has a step by step example of how to do this, that would be great,
~Eric
P.S. I am not afraid of doing this 100% programmatically, but all the examples I have been trying to follow (and failing at extending to my problem) use IB.
As for the fullscreen issue, you need to set modalPresentationStyle to UIModalPresentationFormSheet or UIModalPresentationPageSheet on the controller you want to present modally. I'm not sure of a way to do this through IB.
As for your navigation controller/table view, I think more information is needed to provide an answer.

Resources