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
| package io.totalcoin.ui.widget.currencylistview; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Color; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.support.v4.util.Pair; | |
| import android.support.v7.widget.GridLayoutManager; |
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 static void executeMultipartPost(String url, String imgPath, String field1, String field2){ | |
| try { | |
| HttpClient client = new DefaultHttpClient(); | |
| HttpPost poster = new HttpPost(url); | |
| File image = new File(imgPath); //get the actual file from the device | |
| MultipartEntity entity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE); | |
| entity.addPart("field1", new StringBody(field1)); | |
| entity.addPart("field2", new StringBody(field2)); | |
| entity.addPart("image", new FileBody(image)); |
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
| // formatting numbers | |
| // => "1.2" | |
| String.format("%s", new DecimalFormat("#.##").format(1.2)) | |
| // => "1.20" | |
| String.format("%.2f", 1.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
| keytool -genkey -alias myKey -keystore store.jks | |
| keytool -selfcert -alias myKey -keystore store.jks | |
| keytool -list -v -keystore store.jks | |
| … | |
| go to https://console.developers.google.com | |
| … | |
| PROFIT |
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
| … | |
| final Dialog dialog = new Dialog(this); | |
| Window window = dialog.getWindow(); | |
| window.setGravity(Gravity.CENTER); | |
| window.setLayout(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT); | |
| dialog.setTitle(null); | |
| dialog.setContentView(R.layout.selectpic_dialog); | |
| dialog.setCancelable(true); |
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
| -startup | |
| plugins/org.eclipse.equinox.launcher_1.3.0.v20140224-1459.jar | |
| --launcher.library | |
| plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20140303-1747 | |
| -product | |
| org.eclipse.epp.package.standard.product | |
| --launcher.defaultAction | |
| openFile | |
| --launcher.XXMaxPermSize | |
| 256M |
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 ExampleOne { | |
| public static final ExampleOne INSTANCE = new ExampleOne(); | |
| public String getText() { | |
| return "Sample text."; | |
| } | |
| } |
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
| … | |
| , REPLACE(ltrim(str([BEGKM],200,3)),'.',',') AS [BEGKM] | |
| , REPLACE(ltrim(str([ENDKM],200,3)),'.',',') AS [ENDKM] | |
| … | |
| PROFIT |
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
| SELECT [LOGIN] FROM [D_USER] WHERE [LOGIN]= @lParam COLLATE Latin1_General_CS_AS |
NewerOlder