For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
This file contains hidden or 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
| [versions] | |
| accompanist = "0.29.2-rc" | |
| androidGradlePlugin = "7.4.2" | |
| androidxComposeBom = "2023.01.00" | |
| androidxComposeCompiler = "1.4.6" | |
| androidxCore = "1.10.0-rc01" | |
| androidMaterial = "1.9.0-alpha02" | |
| androidxAppCompat = "1.7.0-alpha02" | |
| androidxActivity = "1.7.1" | |
| markdownDependency = "0.3.2" |
This file contains hidden or 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
| fun main() { | |
| println("Hi!") | |
| } |
This file contains hidden or 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
| def room_version = "2.3.0" | |
| implementation 'androidx.room:room-runtime:$room_verion' | |
| implementation 'androidx.room:room-ktx:$room_version' | |
| kapt 'androidx.room:room-compiler:$room_verion' |
This file contains hidden or 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
| image: jangrewe/gitlab-ci-android | |
| variables: | |
| ANDROID_COMPILE_SDK: "27" | |
| APP_NAME: "NameOfYourApp" | |
| cache: | |
| key: ${CI_PROJECT_ID} | |
| paths: | |
| - .m2/ |
This file contains hidden or 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.graphics.Bitmap; | |
| import android.graphics.BitmapFactory; | |
| import android.graphics.drawable.BitmapDrawable; | |
| import android.util.Log; | |
| import java.io.ByteArrayInputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.nio.ByteBuffer; | |
| public final class BitmapUtils { | |
| private BitmapUtils(){} |
This file contains hidden or 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 hideEditText(final LinearLayout revealView) { | |
| int cx = revealView.getRight() - 30; | |
| int cy = revealView.getBottom() - 60; | |
| int initalRadius = revealView.getWidth(); | |
| Animator anim = ViewAnimationUtils.createCircularReveal(revealView, | |
| cx, cy, initalRadius, 0f); | |
| anim.addListener(new AnimatorListenerAdapter() { | |
| @Override |
This file contains hidden or 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
| public class AppPreferences { | |
| // shared preferences keys | |
| private static final String KEY_USER_NAME = "KEY_USER_NAME"; | |
| private static final String PREFERENCES_NAME = "PREFERENCES_FILE_NAME"; | |
| private SharedPreferences sharedPreferences; | |
| public AppPreferences(Context context) { |
This file contains hidden or 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
| // Dependencies for local unit tests | |
| testCompile "junit:junit:4.12" | |
| testCompile "org.mockito:mockito-all:1.10.19" | |
| testCompile "org.hamcrest:hamcrest-all:1.3" | |
| testCompile "org.powermock:powermock-module-junit4:1.6.2" | |
| testCompile "org.powermock:powermock-api-mockito:1.6.2" | |
| // Android Testing Support Library's runner and rules | |
| androidTestCompile "com.android.support.test:runner:1.0.1" | |
| androidTestCompile "com.android.support.test:rules:1.0.1" |