Set color to #AARRGGBB where AA is the alpha channel.
- #00000000 - full transparency
- #80FFFFFF - 50% white
- #CCFFFFFF - 80% white
Alpha channel values:
100% — FF
./couchbase-cli cluster-init -c 127.0.0.1:8091 --user=[CURRENT_USERNAME] --password=[CURRENT_PASSWORD] --cluster-init-username=[NEW_USERNAME] --cluster-init-password=[NEW_PASSWORD] |
# Hierarchy Viewer only works by default with phones running a developer version of the Android OS. | |
# | |
# 1. Phone running Jellybean or higher: add the environment variable: ANDROID_HVPROTO=ddm | |
# 2. You can run Hierarchy Viewer on an emulated phone. | |
# 3. Use the ViewServer library for pre Jellybean phone | |
# https://github.com/romainguy/ViewServer | |
# set this environment variable | |
$ export ANDROID_HVPROTO=ddm; |
# To add navigation back to the main activity using the | |
# Toolbar (material design), we do three things: | |
# 1. Declare the parent activity in the AndroidManifest.xml | |
# | |
# <activity android:name=".MySubActivity" android:label="@string/title_sub_activity" > | |
# <meta-data android:name="android.support.PARENT_ACTIVITY" android:value=".MainActivity" /> | |
# </activity> | |
# 2. Configure the Toolbar in MySubActivity: |
/** | |
* Creating and passing a Parcelable with an Intent | |
*/ | |
// Creating an instance of Student class with user input data | |
Student student = new Student(mNameTV.getText().toString(), | |
Integer.parseInt(mAgeTV.getText().toString()), | |
mAddressTV.getText().toString(), | |
mCourseTV.getText().toString()); | |
// Creating an intent to open the activity StudentViewActivity |
// Assets and Icons | |
http://romannurik.github.io/AndroidAssetStudio/ | |
https://github.com/google/material-design-icons | |
http://developer.android.com/design/downloads/index.html | |
// Material Design | |
http://www.materialpalette.com/ | |
http://www.google.com/design/spec/material-design/introduction.html |
// ensure backup manager is enabled (emulator) | |
adb shell bmgr enable true | |
// request a backup from manager | |
adb shell bmgr backup your.package.name | |
// force backup manager to run queued requests | |
adb shell bmgr run | |
// uninstall app |
Note the adjusting the insets is a specific workaround for views that do not respect layout settings. View Pager has such problems.
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
private void setStatusBarTransparent() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
getWindow().setStatusBarColor(Color.TRANSPARENT);