2015년 12월 10일 목요일

[android]사용자 정의 객체를 xml 에 지정하기

public class BackButtonFocusOutEditText extends EditText {

/*private OnBackPressListener _listener;*/



public BackButtonFocusOutEditText(Context context, AttributeSet attrs) {

super(context, attrs);
// TODO Auto-generated constructor stub
}


EditText 객체를 생성하고 생성자를 AttributeSet 인자를 받는거로 셋팅하고




<home.et.AutoCallManager.BackButtonFocusOutEditText android:id="@+id/edit_phone_name_edt"
            android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:hint="@string/edit_phone_name_edt"
        android:inputType="text"
        android:layout_weight="20"/>

위와 같은방법으로 작성하면 된다.

댓글 없음:

댓글 쓰기

[OS]리눅스서버 WAS 관련 권한 관리

[Best Practice] Linux 서버 WAS 권한 체계 구축 가이드 리눅스 환경에서 다수의 운영자가 WAS(Tomcat, Nginx 등)를 공동 관리할 때 발생하는 권한 꼬임(Permission Denied) 문제를 방지하기 위한 표준 설정...