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
fun isEmailValid(email: String): Boolean { | |
return Pattern.compile( | |
"^(([\\w-]+\\.)+[\\w-]+|([a-zA-Z]|[\\w-]{2,}))@" | |
+ "((([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]?" | |
+ "[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\." | |
+ "([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]?" | |
+ "[0-9]{1,2}|25[0-5]|2[0-4][0-9]))|" | |
+ "([a-zA-Z]+[\\w-]+\\.)+[a-zA-Z]{2,4})$" | |
).matcher(email).matches() | |
} |
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 Item[] items = { | |
new Item("Email", android.R.drawable.ic_menu_add), | |
new Item("Facebook", android.R.drawable.ic_menu_delete), | |
new Item("...", 0),//no icon for this one | |
}; | |
ListAdapter adapter = new ArrayAdapter<Item>( | |
this, | |
android.R.layout.select_dialog_item, | |
android.R.id.text1, |
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
.popup-container{ | |
position: fixed; | |
z-index:99999; | |
background-color:#bb000000; | |
min-height:100; | |
width:100%; | |
height:100%; | |
padding: 30px; | |
overflow: show; | |
margin: auto; |
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
const ObservableArray = require("data/observable-array").ObservableArray; | |
function xViewModel(items) { | |
var viewModel = new ObservableArray(items); | |
return viewModel; | |
} | |
module.exports = xViewModel; |
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 ComputerGraphics; | |
import java.awt.*; | |
import java.applet.*; | |
import java.util.Random; | |
public class SolarSystem extends Applet { | |
Dimension screen; | |
Random random; | |
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 ComputerGraphics; | |
import java.awt.*; | |
import java.applet.*; | |
import java.util.Random; | |
public class SolarSystem extends Applet { | |
Dimension screen; | |
Random random; | |
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
/** | |
* DRAW GOOGLE CHROME ICON WITH JAVA APPLET | |
* | |
* @author (CAHYA DYAZIN) | |
* @github gist (https://gist.github.com/dyazincahya/faeb74b80bf95964ce07c043bd3e62df) | |
* @version (8/10/2019) | |
*/ | |
import java.awt.*; | |
import java.applet.*; |