1.drawable/round_background.xml 만들기
 
 
         
         
         

2.적용할 Layout에 다음 코드 삽입
android:background="@drawable/round_background"
출처 : http://xyunsikx.tistory.com/21
Posted by Rcen_J
,
해당 Edittext가 있는 레이아웃의 옵션값에
    
와 같이 android:focusable="true", android:focusableInTouchMode="true 속성을 지정해주면 포커싱이 되지않는다.
Posted by Rcen_J
,

1.동적으로 추가할 미리생성된 xml의 id로 레이아웃을 읽어온다.

 

ex)

LinearLayout View = (LinearLayout)findViewById(R.id.mainview);

2.생성할 위젯을 생성한뒤 추가 한다.
LinearLayout View = (LinearLayout)findViewById(R.id.mainview);
Button button = new Button(this);
View.addView(button);
Posted by Rcen_J
,