MasterDetailPage with hamburger menu on the right - xamarin.forms

I want to place the hamburger menu icon on the right like on the picture below. And the menu should slide from right to left.
I looked for a way to do this but it looks like a simple setting does not exist for this? I started a few days ago learning Xamarin.Forms and this is the first problem I got. I spent hours but without success...
If anyone knows a solution, please share.
I tried this on Github but it has no effect at all and it also says:
'MasterDetailPageRenderer.MasterDetailPageRenderer()' is obsolete:
'This constructor is obsolete as of version 2.5. Please use
MasterDetailPageRenderer(Context) instead.'
And please don't tell me to use SlideOverKit. Something simple as this should be out of the box.

Apparently there is a way of doing this (as explained here):
manifest:
<application android:label="Sanaap" android:icon="#mipmap/launcher_foreground" android:theme="#style/MainTheme" android:supportsRtl="true">
MainView.xaml:
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Sanaap.App.Views.MenuView"
FlowDirection="RightToLeft"
Title="Main">
One downside, FlowDirection must be set back to LeftToRight on all other ContentPages

Related

How to change FlowDirection as RightToLeft in Xamarin.Forms FlyoutPage?

I have an app it used Xamarin.Forms FlyoutPage. It is designed to open from left side. But I also want to support the Arabic language now. That's why I want to open it from right side.
I added FlowDirection="RightToLeft" to FlyoutPage. It made aligned to right side the all text. But the side menu has not been changed to open from the right side. I applied this right to left localization steps And I also changed localization settings of test devices. None of them could not changed flyout direction as right to left.
I also added following codes to xaml.cs of Flyout page. But it didn't work.
Flyout.FlowDirection = FlowDirection.RightToLeft;
Detail.FlowDirection = FlowDirection.RightToLeft;
I have seen Xamarin.Forms Shell flyout. And I tried it with an sample project. FlowDirection="RightToLeft" command works with shell. But it will take me a lot of time to turn it into shell. (Because my app has lots of page and my all navigation will change when i change it.)
That's why I am trying to find a way to rotate side menu as right to left with Xamarin.Forms FlyoutPage. How can I do it?
EDIT: I solved this. My problem occured because of FlyoutPage CustomRenderer. I used to use custom renderer to narrow the width of my side menu. And there is a line as "GravityFlags.Left" in custom renderer. This caused problem. I understand now. I changed it as "GravityFlags.Right". Maybe it helps another person.

How to extend the bullet content out further in Roam?

I've been trying for a while to get the bullets in Roam (RoamResearch) to extend all the way to where the filter button is in the "linked references" section at the bottom of the page. When the sidebar is close, the bullets actually do extend out that far and they can show more content on a single line. But I want to always have the bullets reach that far.
I've dug into the CSS but can't find out how. Here's a link to the Roam help page with a demo graph to dig into.
I'll attach a screenshot below to show where I want it to extend. For some reason, I just can't figure this one out. I've used the developer tools in Chrome to try and figure it out, but I just can't.

customize carousel help required

I need suggestions in building below UI. It's a carousel like structure where active over is highlighted in green and we can still see next overs disabled or gray color.
I have researched for this for ex. Can I make use of any carousel to fit this design but can't seem to come to any conclusion. Thought of slider also but did not see that fitting this design.
Guys, do you have any suggestion or pointers to get me started here. I do not need code; just want a startup point. So far I am stuck with carousel or slider.
I understand this might not be most constructive question on SO but any pointers will be highly appreciated.
Unfortunately, you didn't provide any information about what should happen when you click on these items. If I understand correctly, you are looking for a carousel supporting your own pager design. If this is correct, you must add the pager markup first, after that you can use any carousel that supports slide switching methods. Then you can add click event listener to your pager items and call switching method in the listener, setting by that a new slide corresponding to the pager element index.
For example, you can try slick carousel, as it has .slickGoTo() method, which you can use to switch slides programmatically. You can also try to customize slick's default pager, but it might be not so easy or even impossible at all.

H5P timeline alignment

I have a running website that has a H5P timeline that works really well in chrome but in Firefox its outside the canvas and off to the side. The website is here:
http://www.tunapanda.org
If you scroll down a little bit you will see the timeline developed in H5P. This timeline should show under the heading "Our History". It does this in Chrome, but in Firefox it appears to the right of the heading, to a large part outside the window.
Any help would be greatly appreciated!
I can't find your content, it seems you have removed it from the page.
If you're still looking to solve the problem I would suggest updating your H5P timeline or grabbing it directly from github by getting the wrapper and the external timelinejs library.
If you still experience problems after this I suggest trying to isolate the problem and put up a code snippet, link to a jsfiddle or an off-prod site that we can check out to help you further.

Horizontal scroll - syntaxhighlighter

I was googling to find a solution for this forever, I was so close but still can't find the problem...
The closest solution I found was at this site But:
I want exactly the opposite of what this guy posted: Automatic line break in js SyntaxHighlighter
He wants instead of horizontal bar to break the code down, but what do I want is instead of breaking the code down, to display a horizontal bar.
I've used SH on multiple projects and never actually had this issue till now.
I've installed it in wordpress as a plugin in a custom theme, I modified the theme css file(s) and the syntax highlighter's file(s) (.css), but still nothing's going on.
Here's a screenshot
If you have any suggestion what the problem might be, please tell me - any help is appreciated.
I think what you are looking for is a combination of overflow and white-space css properties.
pre {overflow:scroll;}
.pre-wrap {white-space:pre-wrap;}
Please see the footle here

Resources