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 javafx.application.Application; | |
import javafx.fxml.FXMLLoader; | |
import javafx.stage.Stage; | |
import javafx.scene.Parent; | |
import javafx.scene.Scene; | |
public class Main extends Application { | |
@Override | |
public void start(Stage primaryStage) { |
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 javafx.application.Application; | |
import javafx.fxml.FXMLLoader; | |
import javafx.stage.Stage; | |
import javafx.scene.Parent; | |
import javafx.scene.Scene; | |
public class Main extends Application { | |
@Override | |
public void start(Stage primaryStage) { |
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 javafx.application.Application; | |
import javafx.fxml.FXMLLoader; | |
import javafx.stage.Stage; | |
import javafx.scene.Parent; | |
import javafx.scene.Scene; | |
public class Main extends Application { | |
Stage window; | |
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
<RelativeLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="@string/app_name" | |
android:layout_centerInParent="true"/> | |
</RelativeLayout> |
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
editText.addTextChangedListener(new TextWatcher() { | |
@Override | |
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {} | |
@Override | |
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {} | |
@Override | |
public void afterTextChanged(Editable editable) {} | |
}); |
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
Uri uri = Uri.parse("market://details?id=" + context.getPackageName()); | |
Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri); | |
goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY | | |
Intent.FLAG_ACTIVITY_NEW_DOCUMENT | | |
Intent.FLAG_ACTIVITY_MULTIPLE_TASK); | |
try { | |
startActivity(goToMarket); | |
} catch (ActivityNotFoundException e) { | |
startActivity(new Intent(Intent.ACTION_VIEW, | |
Uri.parse("http://play.google.com/store/apps/details?id=" + context.getPackageName()))); |
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
<?php | |
$to = "[email protected]";//change receiver address | |
$subject = "This is subject"; | |
$message = "<h1>This is HTML heading</h1>"; | |
$header = "From:[email protected] \r\n"; | |
$header .= "MIME-Version: 1.0 \r\n"; | |
$header .= "Content-type: text/html;charset=UTF-8 \r\n"; | |
$result = mail ($to,$subject,$message,$header); |
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 com.example.sharifulislam.potest; | |
import android.app.AlertDialog; | |
import android.content.Context; | |
import android.os.AsyncTask; | |
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.IOException; | |
import java.io.InputStream; |
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
<!-- Float view right to left --> | |
<?xml version="1.0" encoding="utf-8"?> | |
<translate | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:duration="@android:integer/config_longAnimTime" | |
android:fromXDelta="100%p" | |
android:toXDelta="0%p"> | |
</translate> |