XML을 통해
<TextView  
android:layout_width="wrap_content" 
android:layout_height="wrap_content"  
android:textSize="20dp"
/>

이런식으로 설정했는데 TextView를 java에서 동적으로 생성할일이있었습니다.
TextView title = new TextView(this);
title.setTextSize(30.0f);

이런식으로 float으로 설정하게 되어있던데 dp값으로 셋팅은 어떻게 하나요?
java에서 생성시 styles.xml에 정의해놓은 style적용은 안되는가요?