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
{ | |
"success": true, | |
"inboxSecions": [ | |
{ | |
"id": "56db7e6a9b0e4dc096bc5be6ab60efda", | |
"type": "CUSTOM_SECTION", | |
"title": "Testing ", | |
"spAccountId": "b485f675e7954eaa86fd2202648be999", | |
"createdAt": "1644574368527", | |
"updatedAt": "1676616565805", |
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
Broken pipe java.io.IOException: Broken pipe | |
at sun.nio.ch.FileDispatcherImpl.write0(Native Method) | |
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) | |
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) | |
at sun.nio.ch.IOUtil.write(IOUtil.java:65) | |
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471) | |
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:524) | |
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:627) | |
at com.android.ddmlib.SplitApkInstaller.uploadApk(SplitApkInstaller.java:151) | |
at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:77) |
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
/* class InitDiskCacheTask extends AsyncTask<File, Void, Void> { | |
@Override | |
protected Void doInBackground(File... params) { | |
synchronized (mDiskCacheLock) { | |
File cacheDir = params[0]; | |
try { | |
mDiskLruCache = DiskLruCache.open(cacheDir, 1, 1, DISK_CACHE_SIZE); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} |
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
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the ART/Dalvik VM | |
*.dex | |
# Java class files | |
*.class |
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 VideoView videoView; | |
videoView = (VideoView) findViewById(R.id.videoView); | |
Uri video = Uri.parse("http://www.servername.com/projects/projectname/videos/1361439400.mp4"); | |
videoView.setVideoURI(video); | |
videoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { | |
@Override | |
public void onPrepared(MediaPlayer mp) { | |
mp.setLooping(true); |
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
public class CircleTransform implements Transformation { | |
@Override | |
public Bitmap transform(Bitmap source) { | |
int size = Math.min(source.getWidth(), source.getHeight()); | |
int x = (source.getWidth() - size) / 2; | |
int y = (source.getHeight() - size) / 2; | |
Bitmap squaredBitmap = Bitmap.createBitmap(source, x, y, size, size); | |
if (squaredBitmap != source) { |
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
{ | |
"glossary": { | |
"title": "example glossary", | |
"GlossDiv": { | |
"title": "S", | |
"GlossList": { | |
"GlossEntry": { | |
"ID": "SGML", | |
"SortAs": "SGML", | |
"GlossTerm": "Standard Generalized Markup Language", |
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
@Override | |
protected Bitmap doInBackground(String... strings) { | |
Bitmap bitmap = null; | |
InputStream inputStream; | |
try { | |
// Download Image from URL | |
inputStream = new URL(strings[0]).openStream(); | |
// Decode Bitmap | |
bitmap = BitmapFactory.decodeStream(inputStream); | |
} catch (Exception e) { |
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
@Override | |
protected String doInBackground(String... strings) { | |
try { | |
URL mUrl = new URL(strings[0]); | |
HttpURLConnection httpConnection = (HttpURLConnection) mUrl.openConnection(); | |
httpConnection.setRequestMethod("GET"); | |
httpConnection.setUseCaches(false); | |
httpConnection.setAllowUserInteraction(false); | |
httpConnection.connect(); |
NewerOlder