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
|-src | |
|- components | |
|- scenes | |
|- style | |
|- utils | |
constain.js | |
index.android.js | |
index.ios.js | |
/** details **/ |
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
import android.content.Context; | |
import android.graphics.drawable.Drawable; | |
import android.util.AttributeSet; | |
import android.view.ViewGroup; | |
import android.view.ViewParent; | |
import android.widget.ImageView; | |
/** | |
* Created by nuuneoi on 2/17/15 AD. | |
*/ |
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
/*** MaiFragment **/ | |
/** | |
* Created by ThanhCS94 on 1/6/17. | |
* I'm HIDING. Don't waste your time to find me. | |
*/ | |
public class SimpleMapsActivity extends Fragment implements OnMapReadyCallback { | |
public static String TAG = "MAPS"; | |
private ViewGroup infoWindow; |
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
package com.google.devrel.samples.gmstest.app; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
import android.view.View; |
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 void takeScreenshot() { | |
Date now = new Date(); | |
android.text.format.DateFormat.format("yyyy-MM-dd_hh:mm:ss", now); | |
try { | |
// image naming and path to include sd card appending name you choose for file | |
String mPath = Environment.getExternalStorageDirectory().toString() + "/" + now + ".jpg"; | |
// create bitmap screen capture | |
View v1 = //your view here, example linnerlayout, framlayout.. |
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
Pattern emailPattern = Patterns.EMAIL_ADDRESS; // API level 8+ | |
Account[] accounts = AccountManager.get(this).getAccounts(); | |
for (Account account : accounts) { | |
if (emailPattern.matcher(account.name).matches()) { | |
String possibleEmail = account.name; | |
Log.wtf(TAG+"-possibleEmail : ", possibleEmail); | |
} | |
} | |
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> |
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
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | |
Calendar cal = Calendar.getInstance(); | |
Date start = new Date(); | |
try { | |
start = dateFormat.parse(time); | |
} catch (ParseException e) { | |
e.printStackTrace(); | |
} | |
tvDate.setText(new DateTimeUtil().getDiff(start, cal.getTime())); | |
// |
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 FontTextView extends TextView { | |
public FontTextView(Context context, AttributeSet attrs, int defStyle) { | |
super(context, attrs, defStyle); | |
parseAttributes(context, attrs); | |
} | |
public FontTextView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
parseAttributes(context, attrs); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
android:shape="rectangle"> | |
<solid android:color="#293131" /> | |
<corners android:radius="15dp" /> | |
<padding | |
android:left="15dp" | |
android:top="4dp" | |
android:right="15dp" | |
android:bottom="4dp" /> |