Disable EditText context menu

the solution is very simple public class MainActivity extends AppCompatActivity { EditText et_0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); et_0 = findViewById(R.id.et_0); et_0.setCustomSelectionActionModeCallback(new ActionMode.Callback() { @Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { //to keep the text selection capability available ( selection cursor) return true; } @Override public boolean onPrepareActionMode(ActionMode mode, Menu menu) … Read more

Vertical Text widget for Flutter

Sideway text is possible using RotatedBox, which is enough for the text to correctly wrap as you’d expect. Row( children: <Widget>[ RotatedBox( quarterTurns: 1, child: Text(sample), ), Expanded(child: Text(sample)), RotatedBox( quarterTurns: -1, child: Text(sample), ), ], ), Similarly, Flutter now supports inline widgets inside text. This can be used to rotate smileys inside a text. … Read more

How do you make a vertical text UILabel and UITextView for iOS in Swift?

Edit: This is how I finally did it. Here’s a very basic implementation in my GitHub: Vertical-Text-iOS. Nothing fancy, but it works. Finally I had to mix TextKit and image processing. Take a look at the code. It involves: Subclassing NSTextContainer to get the right text dimensions. Creating a custom UIView to render the text … Read more

Working with Unicode code points in Swift

Updated for Swift 3 String and Character For almost everyone in the future who visits this question, String and Character will be the answer for you. Set Unicode values directly in code: var str: String = “I want to visit 北京, Москва, मुंबई, القاهرة, and 서울시. 😊” var character: Character = “🌍” Use hexadecimal to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)