Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
[All] Basic Right-To-Left Support (#1222)
Browse files Browse the repository at this point in the history
* Restart RTL work

* Remove IsInherited flag as it never got used

* [Core] Unit tests

* [Core] FlowDirection

* Add FlowDirectionGallery

* Android gallery supports RTL

Need to set minSdkVersion to 17 to test

* iOS gallery supports RTL

* UWP gallery supports RTL

* [Android] Implement FlowDirection

* [iOS] Implement FlowDirection

* [macOS] Implement FlowDirection

* [UWP] Implement FlowDirection

* Update docs

* [Core] Simplify EffectiveFlowDirection enum & expose helper extensions

Also, TEST TEST TEST

* Update docs
  • Loading branch information
samhouts authored and rmarinho committed Nov 9, 2017
1 parent 0a0f8f0 commit d3d59ee
Show file tree
Hide file tree
Showing 87 changed files with 3,236 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<uses-permission android:name="android.permission.READ_LOGS" />
<uses-permission android:name="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" />
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
<application android:label="AndroidControlGallery">
<application android:label="AndroidControlGallery" android:supportsRtl="true">
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
</application>
</manifest>
2 changes: 1 addition & 1 deletion Xamarin.Forms.ControlGallery.WP8/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void InitializeLanguage()
//
// If a compiler error is hit then ResourceFlowDirection is missing from
// the resource file.
FlowDirection flow = (FlowDirection)Enum.Parse(typeof(FlowDirection), AppResources.ResourceFlowDirection);
System.Windows.FlowDirection flow = (System.Windows.FlowDirection)Enum.Parse(typeof(System.Windows.FlowDirection), AppResources.ResourceFlowDirection);
RootFrame.FlowDirection = flow;
}
catch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
</Dependencies>
<Resources>
<Resource Language="x-generate" />
<Resource Language="en" />
<Resource Language="ar" />
</Resources>
<Applications>
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="Xamarin.Forms.ControlGallery.WindowsUniversal.App">
Expand Down
7 changes: 7 additions & 0 deletions Xamarin.Forms.ControlGallery.iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@
<string>{320, 480}</string>
</dict>
</array>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>ar</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads </key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<MtouchUseLlvm>False</MtouchUseLlvm>
<MtouchUseThumb>False</MtouchUseThumb>
<MtouchOptimizePNGs>True</MtouchOptimizePNGs>
<MtouchI18n />
<MtouchI18n>mideast</MtouchI18n>
<BuildIpa>True</BuildIpa>
<IpaMetadata />
<IpaPackageName />
Expand Down Expand Up @@ -132,6 +132,9 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'AppStore|iPhoneSimulator'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Default' ">
<AppExtensionDebugBundleId />
</PropertyGroup>
<ItemGroup>
<Compile Include="BrokenImageSourceHandler.cs" />
<Compile Include="BrokenNativeControl.cs" />
Expand Down
Loading

0 comments on commit d3d59ee

Please sign in to comment.