package com.cssoft.speedlocker;
import com.cssoft.fonts.MyFonts;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class ContactsTab extends Activity {
private EditText edit_search;
private Button btn_all, btn_supervisor, btn_monitored;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_contacts_tab);
getUI();
setFonts();
}
private void getUI() {
edit_search = (EditText) findViewById(R.id.edit_contact_search);
btn_all = (Button) findViewById(R.id.btn_contact_all);
btn_supervisor = (Button) findViewById(R.id.btn_contact_supervisor);
btn_monitored = (Button) findViewById(R.id.btn_contact_monitored);
}
private void setFonts() {
edit_search.setTypeface(MyFonts.RobotoMedium(this));
btn_all.setTypeface(MyFonts.RobotoMedium(this));
btn_supervisor.setTypeface(MyFonts.RobotoMedium(this));
btn_monitored.setTypeface(MyFonts.RobotoMedium(this));
}
}
import com.cssoft.fonts.MyFonts;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class ContactsTab extends Activity {
private EditText edit_search;
private Button btn_all, btn_supervisor, btn_monitored;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_contacts_tab);
getUI();
setFonts();
}
private void getUI() {
edit_search = (EditText) findViewById(R.id.edit_contact_search);
btn_all = (Button) findViewById(R.id.btn_contact_all);
btn_supervisor = (Button) findViewById(R.id.btn_contact_supervisor);
btn_monitored = (Button) findViewById(R.id.btn_contact_monitored);
}
private void setFonts() {
edit_search.setTypeface(MyFonts.RobotoMedium(this));
btn_all.setTypeface(MyFonts.RobotoMedium(this));
btn_supervisor.setTypeface(MyFonts.RobotoMedium(this));
btn_monitored.setTypeface(MyFonts.RobotoMedium(this));
}
}
No comments:
Post a Comment