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
<script type="text/javascript"> | |
var map; // กำหนดตัวแปร map ไว้ด้านนอกฟังก์ชัน เพื่อให้สามารถเรียกใช้งาน จากส่วนอื่นได้ | |
var GGM; // กำหนดตัวแปร GGM ไว้เก็บ google.maps Object จะได้เรียกใช้งานได้ง่ายขึ้น | |
function initialize() { // ฟังก์ชันแสดงแผนที่ | |
GGM=new Object(google.maps); // เก็บตัวแปร google.maps Object ไว้ในตัวแปร GGM | |
// กำหนดจุดเริ่มต้นของแผนที่ | |
var my_Latlng = new GGM.LatLng(19.169977866142748,99.90623474121094); | |
var my_mapTypeId=GGM.MapTypeId.ROADMAP; // กำหนดรูปแบบแผนที่ที่แสดง | |
// กำหนด DOM object ที่จะเอาแผนที่ไปแสดง ที่นี้คือ div id=map_canvas | |
var my_DivObj=$("#map_canvas")[0]; |
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
{ | |
"RedemptionRepetitionType": "UNLIMITED", | |
"PeriodStartDateType": "UNLIMITED", | |
"CreateDate": "/Date(1400485246763)/", | |
"Description": "", | |
"Disclaimer": "", | |
"PeriodStartDate": "/Date(1392784040047)/", | |
"PeriodEndDateType": "FIXED", | |
"PeriodEndDate": "/Date(1392784040047)/", | |
"ModifyDate": "/Date(1400485246763)/", |
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
{ | |
\"Agent\":\"\", | |
\"Start\":\"\/Date(1402587263404)\/\", | |
\"SaleNumber\":\"\", | |
\"IpAddress\":\"\", | |
\"Isp\":\"\", | |
\"QuestionResponses\":[ | |
{ | |
\"Start\":\"\/Date(1402587263404)\/\", | |
\"QuestionItems\":[ |
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
{ | |
"rewardQRKey":"FB108:REWARD_KEY::635381949851949613:12", | |
"RedemptionRepetitionType":"UNLIMITED", | |
"ReceiverEmail":"[email protected]", | |
"CreateDate":"\/Date(1403163224028)\/", | |
"Description":"PRE_CREATE_REWARD_TEMPLATE_DEFAULT_DESCRIPTION_ENG", | |
"Disclaimer":"PRE_CREATE_REWARD_TEMPLATE_DEFAULT_DISCLAIMER_ENG", | |
"PeriodStartDateType":"UNLIMITED", | |
"PeriodStartDate":"\/Date(1402669824367)\/", | |
"PeriodEndDateType":"UNLIMITED", |
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
String validfrom = ""; | |
Date startDate = new Date(Long.valueOf(App.getReward().getPeriodStartDate().substring(6, 19))); | |
Date endDate = new Date(Long.valueOf(App.getReward().getPeriodEndDate().substring(6, 19))); | |
Date dateNow = new Date(); | |
if (App.getReward().getPeriodStartType()==0) { | |
validfrom += "Unlimit"; | |
}else { | |
validfrom += formatter.format(startDate); | |
} | |
validfrom += " to "; |
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.layer.view; | |
import android.content.Context; | |
import android.graphics.Typeface; | |
import android.util.AttributeSet; | |
import android.widget.TextView; | |
public class TextViewRoboto extends TextView { |
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
int pagerIndex = 2; //ลำดับ pager ที่จะอ้างถึง | |
MyFragment currentFragment = (MyFragment)getSupportFragmentManager() | |
.findFragmentByTag("android:switcher:" + R.id.viewpager + ":" + pagerIndex); | |
currentFragment.getMyListview(); |
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 xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" | |
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" | |
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"> | |
<WebView android:id="@+id/webview" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_above="@+id/edt_layout" |
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
{ | |
"Status": true, | |
"ErrorMessage": null, | |
"Body": { | |
"DefaultApplicationLanguageID": 1, | |
"AppLanguages": [ | |
{ | |
"Language": { | |
"ID": 10, | |
"Code": "en", |
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 TextViewTH extends TextView { | |
public TextViewTH(Context context) { | |
super(context); | |
//mContext = context; | |
setFont(); | |
} | |
public TextViewTH(Context context, AttributeSet attrs) { |
OlderNewer