if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
getWindow().setStatusBarColor(ContextCompat.getColor(this, android.R.color.transparent));
}| public class LoginActivity extends AppCompatActivity { | |
| private static final int RC_SIGN_IN = 343; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); | |
| setSupportActionBar(toolbar); |
The only way I've succeeded so far is to employ SSH.
Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config file in a .ssh directory. The config file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh directory by default. You can navigate to it by running cd ~/.ssh within your terminal, open the config file with any editor, and it should look something like this:
Host * AddKeysToAgent yes
> UseKeyChain yes
| if [ $# -eq 0 ]; then | |
| echo "No arguments supplied" | |
| else if [ -f "$1" ]; then | |
| echo " Creating different dimensions (dips) of "$1" ..." | |
| mkdir -p drawable-xxhdpi | |
| mkdir -p drawable-xhdpi | |
| mkdir -p drawable-hdpi | |
| mkdir -p drawable-mdpi | |
| if [ $1 = "ic_launcher.png" ]; then |
| import android.view.View; | |
| /** | |
| * inspired and credits | |
| * @see http://stackoverflow.com/questions/16534369/avoid-button-multiple-rapid-clicks | |
| * A Debounced OnClickListener | |
| * Rejects clicks that are too close together in time. | |
| * This class is safe to use as an OnClickListener for multiple views, and will debounce each one separately. | |
| * This class allows a single click and prevents multiple clicks on | |
| * the same button in rapid succession. Setting unclickable is not enough |
Create the following file, with your favourite editor:
- Across all users:
/usr/share/applications/application_name.desktop - For current user only:
~/.local/share/applications/application_name.desktop
Add the following content to the file and save:
[Desktop Entry]
Version=1.0
| /** | |
| * Useful utility methods for controlling the length & adding padding to strings. | |
| * | |
| * @author Abdallah Abdelazim | |
| */ | |
| public final class StrPad { | |
| /** | |
| * Prevent instantiation. | |
| */ |
| /* | |
| * Copyright 2017 Google Inc. | |
| * Copyright 2020 Abdallah Abdelazim. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * |
| package com.example.app.data.local.dao; | |
| import androidx.room.Delete; | |
| import androidx.room.Insert; | |
| import androidx.room.OnConflictStrategy; | |
| import androidx.room.Update; | |
| import java.util.List; | |
| /** |
Replace the file ara in this gist with the one at /usr/share/X11/xkb/symbols/ara.
Or simply run $ sudo cp ara /usr/share/X11/xkb/symbols/ara
Fix source: https://forum.manjaro.org/t/alt-shift-is-not-working-in-arabic-keyboard-layout/41743/23