locked
How to show Shell hambuger menu at right side RRS feed

  • Question

  • User362099 posted

    Hi All I want to show Shell hamburger menu icon at right side. I have made two changes. But it is not working.

    Added below code in Main Activity.cs Window.DecorView.LayoutDirection = LayoutDirection.Rtl;

    Added below code in AndroidManifest file;

    <application android:label="MyApp.Android" android:supportsRtl="true"></application>

    Thursday, December 17, 2020 5:25 AM

Answers

  • User380187 posted

    @tusharthakar Hi, from shared screenshot, there are two <application ...> inside the AndroidManifest file. That's the problem, you need to remove one. You could have a look at the following AndroidManifest file:

    <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.appshelltest"> <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" /> <application android:label="AppShellTest.Android" android:supportsRtl="true" android:theme="@style/MainTheme"></application> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> </manifest>

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, December 18, 2020 1:42 AM

All replies

  • User380187 posted

    @TusharPawar Hi, whether the android:minSdkVersionis above 17. I have checked in my local site and it works.

    Thursday, December 17, 2020 8:07 AM
  • User362099 posted

    Its not working at my end. I tried with all these options android:minSdkVersion="21", android:minSdkVersion="17" and android:minSdkVersion="16"

    Thursday, December 17, 2020 12:17 PM
  • User380187 posted

    @tusharthakar Hi, from shared screenshot, there are two <application ...> inside the AndroidManifest file. That's the problem, you need to remove one. You could have a look at the following AndroidManifest file:

    <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.appshelltest"> <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" /> <application android:label="AppShellTest.Android" android:supportsRtl="true" android:theme="@style/MainTheme"></application> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> </manifest>

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, December 18, 2020 1:42 AM
  • User362099 posted

    Thank you @JuniorJiang its working. Thank you for help. :)

    Friday, December 18, 2020 5:25 AM