Multiline UIStackView / Break line if necessaries Xamarin.iOS - xamarin.ios

I'd like to create some buttons (or UILables) and list them in a line and if necessaries, it breaks line automatically. Just like this image :
what I want
So, as I use IOS 9+, I've added a UIStackView and inside it I've added my buttons, but I have no new line definition in UIStackView. Do you have any have any idea or solution for my problem?
For now, my UIStackView is :
What I have

You can add some Horizontal Stack Views into one Vertical Stack View just like this image :

Related

Layout issues after updates to xcode 9

I've updated Xcode 8 to Xcode 9, and now .xib files on main screen not looking good.
Buttons and Labels not fit in screen and looks like it was cut.
Someone familiar with those issues?
I have a similar problem with multiline labels inside UIStackView. If you set label's amount of lines to anything other than 1, stack view goes crazy and layout looks totally broken in interface builder.
I've solved it by explicitly adding a constant width constraint to the label, but checked "remove at build time". So that it looks OK in interface builder but doesn't interfere with app's behavior.

Android Studio Widget, Text Field, Large, Medium and Small Text is missing all I have is Plain which gives a Name. How can I get it and others?

I'm looking at Youtube examples and I see the instructor has Widgets I don't have, Like different size Text Fields and an analogue clock.
Is there somewhere I can get more Widgets?
I obtained a text size same as to the "tutorial" using:
android:textAppearance="#style/TextAppearance.AppCompat.Large"
Looks like AndroidStudio has undergone some change. Best option is to enter the "Text" mode and type the style yourself. For ex. if you need an equivalent of LargeText view, then add a TextView and move onto the Text mode and add this line:
android:textAppearance="#style/?android:attr/textAppearanceLarge"
Or you could also edit the properties of TextView too.
You should add this line android:textAppearance="#android:style/TextAppearance.Large"
inside the TextView after clicking on the Text tab near Design tab located in the middle left to the right of design tab.
but you have to consider that first of all you need to drag and drop TextView from Widgets into the user interface or Design section.
Click into the Text tab located middle left to the right of the Design tab, find the TextView element and within it simply enter this line of code:
style="/?android:attr/textAppearanceLarge"
Remember this line of code has to be within the element in order for it to work.
Go to properties and then select text appearance and select app.
combat.large
Use this:
android:text="Large Text"
android:textAppearance="?android:attr/textAppearanceLarge"
Add it inside your Textview tag.

How to add CKEditor for input field ? - Livecode

I don't know for this question is possible.
I want to add CKEditor when input text in textfield same this :
This is not possible with ckEditor.
But there is a Library available called "FieldTrip" which provides a RichTextEditor feature for Livecode Fields
With the library you can create an editor toolbar.
The command
ftSetToolbar "font4s/size2 biu colors supersub ;align strikebox lists spacing borders move", "2,10,5", (390,15,"topcenter")
for example would create the following toolbar
Find some information about it here

How to add emoticons in UITextView while editing

I am developing xmpp-client app. One of the features is sending smiles and user should have ability to edit its like usuall text. Emoticons editing in Viber App is best example of what i want to implement.
I already tried three ways to solve problem:
I create emoticon like usual UIImageView and place it as a subview on UITextView using current caret rect. I use 5 whitespaces as a text placeholder in text view. There are two problems: with placing emoticons on new line when inserting text in the middle(printing whitespace not make caret move to new line); when user placing caret using magnify glass, he can move caret through emoticon(through 5 whitespaces), as delegate method not called during this process.
I have tried EGOTextView. There are problems with caret position and resizing when new line should be added. And there are some rendering artifacts when using it one line size.
I also have tried using UIWebView. But there were great problems with resizing based on text size and other artifacts with speed of response when becoming first responder.
May be some one could give me advice of really working solution?
Any suggestion please?
Thanks!

What is the best way to achieve the following customized layout?

I am kind of wondering what the recommended method is for a customized UI. I have about 5 screens, which will share some of the same elements. One is a topbar, kind of like the navigationbar but different. It has the title on the left, no back buttons, a background image and a logo on the right. The other is a menu at the bottom containing and UIImageView for the bar, 3 UIButtons a the moment opening 2 different screens and one opens the Camera. I want to reuse the top bar and bottom bar on all 5 screens. Sort of like one would use a UserControl on ASP.NET.
Currently I have created 5 ViewControllers, which gives me 5 XIB files that I have to put the same elements on and I have to hook up the same events. I would want to create 2 elements (top and bottom bar) which I can reuse across all screens. Or is there a simpler solution to all of this like e.g. 1 screen pushing different middle parts into it or something like that? Quite the beginner at MonoTouch for that matter, so I'd love to know what the way-to-go for something like this is?
If you are not able to customise / reuse the standard UINavigationController etc, you could -
Create a custom UIView in Xamarin / Monotouch for each of your reusable elements, then insert them into each ViewController (programmatically is probably easiest) as required. This would give some code reuse and is akin to the UserControl example you mentioned.
Alternatively for IOS5+ you could create a Custom ViewController Container which has all the common parts in one place and have a single container UIView which you would then switch the rest of your Content ViewControllers as you need to.
I have actually just finished a github example of this which may help -
https://github.com/wickedw/ViewControllerContainer

Resources