For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<component name="ProjectRunConfigurationManager"> | |
<configuration default="false" name="BuildCleaner" type="ShConfigurationType"> | |
<option name="SCRIPT_TEXT" value="" /> | |
<option name="INDEPENDENT_SCRIPT_PATH" value="true" /> | |
<option name="SCRIPT_PATH" value="$PROJECT_DIR$/scripts/buildCleaner.sh" /> | |
<option name="SCRIPT_OPTIONS" value="" /> | |
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" /> | |
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$" /> | |
<option name="INDEPENDENT_INTERPRETER_PATH" value="true" /> | |
<option name="INTERPRETER_PATH" value="/usr/bin/env" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" | |
android:maxSdkVersion="29" | |
tools:ignore="ScopedStorage" /> | |
Use version 29 to work on Android 10. Need enable storage permission in app settings. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<androidx.core.widget.NestedScrollView | |
android:id="@+id/nswContent" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sticky dialog for [RecyclerView]. | |
* Create instance when RecyclerView will be initialized and | |
* call [StickyDialog.show] when a user clicked by item in a list | |
* | |
* @author Ivan V on 31.07.2020. | |
* @version 1.0 | |
*/ | |
class StickyDialog : DialogFragment { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void onClickBnvMenu() { | |
bnvMenu.setOnNavigationItemSelectedListener(item -> { | |
final int itemId = item.getItemId(); | |
if (selectedCategoryId == itemId) { | |
return false; | |
} | |
switch (itemId) { | |
case R.id.item_feed: | |
// Do something |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.os.CountDownTimer | |
import java.util.concurrent.TimeUnit | |
/** | |
* Countdown timer helper | |
* @author Ivan V on 23.04.2020. | |
* @version 1.0 | |
*/ | |
class SimpleTimer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.example; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.net.Uri; | |
import android.text.TextUtils; | |
import android.util.Log; | |
import androidx.annotation.Nullable; | |
import androidx.core.content.FileProvider; |
NewerOlder