Back to project page mobile-chat.
The source code is released under:
GNU General Public License
If you think the Android project mobile-chat 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 br.com.etyllica.mobile.gui; // w w w . ja v a2 s .c om import android.content.Context; import android.view.View; import android.view.ViewGroup.LayoutParams; public class HorizontalRule extends View { private int color = 0xAAEEEEEE; public HorizontalRule(Context context, int color){ super(context); setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, 1)); setBackgroundColor(color); } public HorizontalRule(Context context){ this(context, 0xAAEEEEEE); } public void setColor(int color){ this.color = color; setBackgroundColor(color); } public int getColor(){ return color; } }