Android Open Source - mobile-chat Horizontal Rule






From Project

Back to project page mobile-chat.

License

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.

Java Source Code

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;

  }

}




Java Source Code List

br.com.etyllica.mobile.gui.HorizontalRule.java
br.com.etyllica.sonat.adapter.mina.client.MinaChatClientHandler.java
br.com.etyllica.sonat.adapter.mina.client.MinaClient.java
br.com.etyllica.sonat.adapter.mina.server.MinaChatServerHandler.java
br.com.etyllica.sonat.adapter.mina.server.MinaServer.java
br.com.etyllica.sonat.chat.ChatServerHandler.java
br.com.etyllica.sonat.client.ClientImpl.java
br.com.etyllica.sonat.client.ClientListener.java
br.com.etyllica.sonat.client.Client.java
br.com.etyllica.sonat.server.ServerHandler.java
br.com.etyllica.sonat.server.ServerImpl.java
br.com.etyllica.sonat.server.Server.java
br.unirio.livechat.ChatActivity.java
br.unirio.livechat.LoginActivity.java
br.unirio.livechat.ServerActivity.java