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
<LinearLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:dividerPadding="10dp" | |
android:layout_alignParentTop="true" | |
android:layout_toLeftOf="@+id/imageButtonSubmitYok" | |
android:layout_marginTop="20dp"> | |
<include |
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
<LinearLayout | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:dividerPadding="10dp" | |
android:layout_alignParentTop="true" | |
android:layout_toLeftOf="@+id/imageButtonSubmitYok" | |
android:layout_marginTop="20dp"> | |
<include |
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 bigcamp.yok.student.model; | |
/** | |
* 아바타 클래스 | |
* Created by Youngjae on 13. 8. 31. | |
*/ | |
public class Avatar { | |
public String head; | |
public String headfront; | |
public String headback; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:id="@+id/imageViewWholeBack"/> |
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
/** | |
* 아바타 셋업. | |
* | |
* @param avatarLayout | |
* @param avatar | |
*/ | |
private void setAvatar(RelativeLayout avatarLayout, Avatar avatar) { | |
int resourceId; | |
// Head | |
ImageView imageViewHead = (ImageView) avatarLayout.findViewById(R.id.imageViewHead); |
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
/// <summary> | |
/// Value converter that translates true to <see cref="Visibility.Visible"/> and false to | |
/// <see cref="Visibility.Collapsed"/>. | |
/// </summary> | |
public sealed class BooleanToVisibilityConverter : IValueConverter | |
{ | |
public object Convert(object value, Type targetType, object parameter, string language) | |
{ | |
var visible = (value is bool && (bool)value) ? Visibility.Visible : Visibility.Collapsed; | |
if (parameter == null) |
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
using UnityEngine; | |
using System.Collections; | |
public class DragAndDrop : MonoBehaviour | |
{ | |
private bool _mouseState; | |
public GameObject Target; | |
public Vector3 screenSpace; | |
public Vector3 offset; |
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
function insert(item, user, request) { | |
request.execute({ | |
success: function() { | |
// Write to the response and then send the notification in the background | |
request.respond(); | |
if(item.platform == "ANDROID") { | |
push.gcm.send(item.channel, item.text, { | |
success: function(response) { | |
console.log('Push sent: ', item.channel, response, 'time: ', new Date()); | |
}, error: function(error) { |
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
private class PushAsyncTask extends AsyncTask<Void, Void, Void>{ | |
protected Void doInBackground(Void... voids) { | |
HttpPost httpPost = new HttpPost("https://<DOMAIN>.azure-mobile.net/tables/<TABLE-NAME>"); | |
httpPost.setHeader("Accept", "application/json"); | |
httpPost.setHeader("Content-type", "application/json"); | |
httpPost.setHeader("X-ZUMO-APPLICATION", "YOUR-AZURE-MOBILESERVICE-KEY-IS-HERE"); | |
JSONObject jsonObject = new JSONObject(); | |
try { |
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 InverseBooleanConverter : IValueConverter | |
{ | |
/// <summary> | |
/// Converts a Boolean value as inversed. | |
/// </summary> | |
/// <returns> | |
/// A converted value. If the method returns null, the valid null value is used. | |
/// </returns> | |
/// <param name="value">The value produced by the binding source.</param> |