Showing an Activity or View Over a ListIem - c#

I'm trying to add an overlay to a ListItem in an Xamarin Android ListView control. I was able to easily achieve this in iOS and made it appear like the following, in normal view:
And then when you click on the item:
It shows an overlay with additional images (which is actually a UIViewController). I was wondering if it's possible to do the same within Android; I would like to keep the same UI WITHOUT using a dialog, which is what all of the responses seem to indicate so far. Seems like it should be possible... Any ideas how to do it with an Activity (I need an activity to respond to the events within the UI as well).
Thanks.

If I understood correctly, then this is what you're looking for: https://github.com/flavienlaurent/poppyview

You can implement Quick Actions for this purpose. Quick Actions are not provided in the Android SDK
You can find lots of examples on how to create them. Such as here and here.
Although these are not in Xamarin, they can help u in creating them.

Related

UWP Multiple MenuItem Views in NavigationView

Is there a way in a NavigationView in UWP to have multiple "Views" for NavigationViewMenuItems? The concept would be to have Categories or Folders as MenuItems, and when clicked or the NavigationViewMenuItems would slide out to the left and show the contents of the folder or category. Then when navigating back out of the folder, the folder and categories list would slide in from the left again. I know I can change the NavigationView.MenuItemsSource in C#, but I'd like to instead have this done primarily in XAML. I've tried numerous ways to do this, but can't seem to find a way that works.
I don't really have any code to demonstrate this, as this is a whole concept issue rather than a single bug that isn't working. I have searched everywhere, and have found numerous articles/links about loading different views into NavigationView.Content, but nothing of changing the MenuItems portion.
Does anyone have any ideas on how to achieve this, or a link to a tutorial I could follow? I can't imagine that this has never been done before, this seems like such a common-sense UI interface.
What you need actually is a Tree Navigator. The UWP has no such a built-in control for us. You could use the third-party control like Syncfusion TreeNavigator.
See the code sample on GitHub: https://github.com/syncfusion/uwp-demos/tree/master/Navigation

How to display an entry alert in xamarin forms

I'm trying to show an alert with an entry inside it, as I can see it in a lot of apps, but I could'n t find a solution for now (neither custom renders)
Any suggestions?
You can use UserDialogs libary
After initialization simply use:
UserDialogs.Instance.Alert("message")
You can do that in multiple ways. Lets say if you have your own UI and the Entry field. Then you can create the Popup Page and Display that Popup Page whenever necessary for the User Input. If you want to use Popup Page (best - only if you have requirements to have your own style of prompt):
https://github.com/rotorgames/Rg.Plugins.Popup
If you have very simple requirement of only Showing the Entry Field the use :
https://github.com/aritchie/userdialogs
Since this is very common question and have all the resources online. Please go through the websites above have all the examples you can look into. Please let me know if you still need any more help.

How to add options which appears on swipe gesture in List View in Windows 10

I am new to Windows 10 and I just came across Windows 10 new Outlook App which has swipe features but my requirement of swipe is different. I want to add 3-3 options on left and right side of ListView. I also came across below Nuget package from Github but it doesn't help much
SwipeListView
What I want to achieve is below
Please can someone suggest a good and easy way to add swipe actions in ListView.
As far as I know there is no library ready made for your need.
You can achieve the effect using custom ListViewItem. You will need a trick along the way to get the ListView accept TranslateX manipulation: Set ManipulationMode of the ItemsPresenter inside ListView template to TranslateX, System.
The rest is quite easy: you set manipulation mode of the custom ListViewItem to TranslateX, System, and handle ManipulationStarted, ManipulationDelta and ManipulationCompleted events. You also need to put UI underlay of the custom ListViewItem.
I can not give complete code sample given the big scope of your question. But you can take a loot at Comet to get the basic ideal of how to handle things.
There's no library that does exactly this, as far as I know. There are a few things that get close, however, and you could probably modify them for your needs. I'd recommend taking a look at this one. All you should need to do is slightly modify the template control, then set the control as the content of the ListViewItem.
However, it should be noted that having to tap the command pretty much defeats the purpose of being able to swipe the item; it would actually be faster for the user if you just used a button on the item which launches a CommandPopup. (Unless, of course, you do something really interesting and completely impractical and would launch whichever command they stop swiping on.)
After some research, I got a Nuget Package which meets my requirements
LLMListView
It has some very useful options as the following
Swipe Left/Right with one action
Swipe Left/Right with one action with animation
Swipe Right with fixed and multiple actions
Some extras
Pull to refresh
Pull with a button
Load More
Load More in Group view
Here is the screenshot
LLMListView Demo

Simpler Breadcrumb Bar Sample

my question is very simple. I am building an app(WPF CSharp) and I need user to give me paths that my app is going to use. Previously I added textboxes to show pathways, however, later I decided that it would be cool to use a Win 7 style Explorer navigation bar, which is a Breadcrumb bar. I found a great open source component for it here (http://www.codeproject.com/KB/tree/WPFBreadcrumbBar.aspx) however, I could not use it in my app. I added references both to Toolbox section and Project>References section. I can also add the control to my WPF window from Toolbox, yet I could not figure out how to fill it, how to change and show items in it etc. With respect to component author, I think article on Codeproject is not very 'understandable'(XAML? I want C# code please) and also PopulateItems event, for instance, did not work for me. So, if someone give me a basic example on how to add items to this bar easily, change items, or shortly, shows me how to make it work, I will appreciate for that,
Thanks.
I Guess it depends on how you want to present it. If you want to use a tab control to simulate the functionality you could go this route:
http://www.wpfblogger.com/post/BreadCrumb-TabControl-Style-for-WPF-40.aspx

What control will be best for Buddy List?

I'm developing a xmpp chat client in C#.NET. I'm little confused about what control should I use for Buddy list. Buddy list will consist of status icon, name & his buddy pic. Can u please recommend that what control will be best for me to use? (Do u think that ListView will be appropriate?)
Another question, I'm using agsxmpp. Does it support invisible status in Gtalk. Is there any library out there bettre than this ?
Thanks.
I think the ListView would be fine, it supports everything you would need. You could also go with an owner-draw ListBox if you want something with a little more flexibility (though obviously, that'd be more work).
As for your other question, I'm not sure. You might want to check the documentation for the library.
Using TreeView will be the best control, it will help you in grouping buddies. I used it before for the same purpose.
The RosterTree code in Jabber-Net would be a good starting point. It already does owner-draw, and could be pretty easily extended to do avatars by modifying the DrawItem method.

Categories