A SceneReference
wrapper class that uses ISerializationCallbackReceiver and a custom PropertyDrawer
to provide safe, user-friendly scene references in scripts.
![alt text][1]
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="ws.crandell.simplekeyboard"> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" | |
android:supportsRtl="true" | |
android:theme="@style/AppTheme"> | |
<service android:name=".SimpleIME" |
/* | |
Add a "How did you hear about us?" field Membership Checkout for new members only. | |
Display the field for admins-only in the profile and in the Members List CSV export. | |
*/ | |
function my_pmpro_how_hear_fields() { | |
global $current_user; | |
if(class_exists( 'PMProRH_Field' ) && (!pmpro_hasMembershipLevel() || current_user_can( 'edit_users' ) ) ) { | |
pmprorh_add_checkout_box( 'additional', 'Additional Information' ); | |
// www.website.com/page?id=100 | |
$('#pageLink').attr('href', $('#pageLink').attr('href').replace(/((\?|&)id\=)[0-9]*/, '$1' + '123')); | |
// www.website.com/page?id=123 |
import android.graphics.Canvas; | |
import android.graphics.ColorFilter; | |
import android.graphics.Matrix; | |
import android.graphics.Rect; | |
import android.graphics.RectF; | |
import android.graphics.drawable.Drawable; | |
import android.support.annotation.IntRange; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; |
public class CustomInAppKeyboard extends LinearLayoutCompat { | |
private static final String TAG = "MyKeyboard"; | |
@Override | |
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { | |
super.onMeasure(widthMeasureSpec, heightMeasureSpec); | |
if(BuildConfig.DEBUG){ | |
Log.e("CustomInAppKeyboard", "w:" + widthMeasureSpec + " :: " + MeasureSpec.toString(widthMeasureSpec)); |
A SceneReference
wrapper class that uses ISerializationCallbackReceiver and a custom PropertyDrawer
to provide safe, user-friendly scene references in scripts.
![alt text][1]
// app/src/debug/java/com/akhil/sampleapp/CustomMultiDexApplication.java | |
package com.akhil.sampleapp; | |
import android.support.multidex.MultiDexApplication; | |
import com.squareup.leakcanary.AndroidExcludedRefs; | |
import com.squareup.leakcanary.LeakCanary; | |
import com.squareup.leakcanary.RefWatcher; | |
This example pulls together various examples of work with trees in D3.js.
The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.
One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.
Dragging can be performed on any node other than root (flare). Dropping can be done on any node.
Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.