titleview

VoiceOver reads accessibility label twice when focusing non-UILabel titleView

十年热恋 提交于 2021-02-10 06:18:37
问题 I'm encountering a strange issue with VoiceOver. Goals: Set a UIStackView containing multiple UILabel 's as my navigationItem.titleView . Mark the stack view as an accessibility element and set its accessibilityLabel to an appropriate value. Set the stack view as the initial VoiceOver focus by calling UIAccessibility.post(notification: .screenChanged, argument: navigationItem.titleView) inside viewDidAppear(animated:) . Expected Result: When the view controller appears the focus appears to be

Remove left space in title view xamarin forms

淺唱寂寞╮ 提交于 2021-02-08 10:08:01
问题 I had an issue in removing the extra left space in title view as shown in the image below please see the screenshot here Ps: I'm using tabbed page and that bar is the navigation title view. 回答1: Set the xml below in your Toolbar.xml of Android part. app:contentInsetLeft="0dp" app:contentInsetStart="0dp" app:contentInsetStartWithNavigation="0dp" Do not forget to add the namespace of app in your Toolbar.xaml . xmlns:app="http://schemas.android.com/apk/res-auto" And check the code below, it need

Remove left space in title view xamarin forms

情到浓时终转凉″ 提交于 2021-02-08 10:05:16
问题 I had an issue in removing the extra left space in title view as shown in the image below please see the screenshot here Ps: I'm using tabbed page and that bar is the navigation title view. 回答1: Set the xml below in your Toolbar.xml of Android part. app:contentInsetLeft="0dp" app:contentInsetStart="0dp" app:contentInsetStartWithNavigation="0dp" Do not forget to add the namespace of app in your Toolbar.xaml . xmlns:app="http://schemas.android.com/apk/res-auto" And check the code below, it need

Xamarin Forms Shell TitleView does not center image

我的未来我决定 提交于 2021-02-05 07:57:06
问题 I have an app that uses the new Shell in Xamarin.Forms. I added the following code to one of my pages in an attempt to use the TitleView area to display my app header image centered. (FYI - I have tried Center for both of the alignment options and it made no difference.) <Shell.TitleView> <Image Source="UCIApp.png" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" /> </Shell.TitleView> What I get after doing this is the image in the title bar but centered in the space the

How to fix titleView being masked to navigation bar during transition?

一曲冷凌霜 提交于 2020-02-02 12:45:26
问题 In my view controller I am setting the titleView to a UIView which contains a UIImageView which is made into a circle using setCornerRadius on its layer. The top half of the circle is positioned over the navbar, and the bottom half over the view, like this: Now when I push this view controller, as it animates in, the bottom half of the circle is cut off until the animation completes. Only the part that's in the navbar is shown, something like this: As soon as the push animation ends, the full

How to fix titleView being masked to navigation bar during transition?

流过昼夜 提交于 2020-02-02 12:45:08
问题 In my view controller I am setting the titleView to a UIView which contains a UIImageView which is made into a circle using setCornerRadius on its layer. The top half of the circle is positioned over the navbar, and the bottom half over the view, like this: Now when I push this view controller, as it animates in, the bottom half of the circle is cut off until the animation completes. Only the part that's in the navbar is shown, something like this: As soon as the push animation ends, the full

UIButton style when added to navigationItem.titleView

喜欢而已 提交于 2020-01-23 02:03:33
问题 I need to add a button to the UINavigationItem titleView (actually to the center of the UINavigation Bar. I've used the following code to accomplish so: UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btn.frame = CGRectMake(0, 0, 70, 30); [btn setSelected:YES]; [btn setTitle:@"list" forState:UIControlStateNormal]; And I've go the following: I need to give the same style of the "Done" button (which is UIBarButtonItem ) to the button "list"? 回答1: You can use

Multiple properties with name 'BadgeView.Shared.CircleView.CornerRadius' found - Exception

时光总嘲笑我的痴心妄想 提交于 2019-12-24 19:32:36
问题 I am using BadgeView plugin in Xamarin.Forms with TitleView but getting exception Xamarin.Forms.Xaml.XamlParseException: Position 8:81. Multiple properties with name 'BadgeView.Shared.CircleView.CornerRadius' found. This is my code <NavigationPage.TitleView> <StackLayout Orientation="Horizontal" VerticalOptions="End" Spacing="10"> <Image Source="bell.png" HorizontalOptions="Center" VerticalOptions="Center"></Image> <badge:BadgeView Text="2" BadgeColor="Yellow" VerticalOptions="End"

Xamarin.Forms 4.0 Shell TitleView iOS cannot set black background color

你。 提交于 2019-12-24 11:15:49
问题 I am working for a company that brand guideline requesting title view having black (#000) as background color. I am using Xamarin.Forms 4.0 Shell to build the app. Android is working great but iOS is "not that black". To demonstrate the problem, I am using official example "Xaminals" as trial and changing the title color to "Black". Please see the resulting image below. iOS Screenshot Android Screenshot Please see if there are anything wrong with my code in order to achieve "Real Black" (#000

How to change back bar button's width of a UINavigationController in iPhone?

可紊 提交于 2019-12-24 07:17:21
问题 I have two table view controllers. Say TableViewController1 and TableViewController2 . I push TableViewController2 when someone clicks on the TableViewController1 's cell. I set the TableViewController1 's clicked cell's value as the TableViewController2 's back bar button's title value. According to the length of the TableViewController1 cell's string, the back bar button's length also get changing. Is it possible to fix the width of the back bar button? I really need this, because I want to