Back to project page eyebrows-sync.
The source code is released under:
Copyright (c) 2014 Jon Petraglia of Qweex All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
If you think the Android project eyebrows-sync listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.qweex.eyebrowssync; // w w w. ja v a2 s .c o m import android.content.Context; import android.util.AttributeSet; import android.widget.Button; import android.widget.RelativeLayout; import android.widget.TextView; public class AttachedRelativeLayout extends RelativeLayout { Syncer currentSyncer; public AttachedRelativeLayout(Context context) { super(context); } public AttachedRelativeLayout(Context context, AttributeSet attrs) { super(context, attrs); } public AttachedRelativeLayout(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } public void attachTo(Syncer s) { if(currentSyncer!=null) currentSyncer.setViewOnScreen(null); currentSyncer=s; if(currentSyncer!=null) currentSyncer.setViewOnScreen(this); } public TextView status() { return (TextView) findViewById(R.id.status); } public Button button() { return (Button) findViewById(R.id.button); } }