레이아웃 xml 파일에서

    <ProgressBar
        android:id="@+id/my_progressbar"
        style="?android:attr/progressBarStyleHorizontal"
        android:max="100"     
        android:layout_gravity="top"
        android:layout_width="fill_parent"
        android:layout_height="4dp"
        android:paddingLeft="3dp"
        android:paddingRight="3dp" />

인 프로그래스바를 자바코딩으로 만들때 속성을 어떻게해야되나요?

width height 값은

       LinearLayout.LayoutParams proLy = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, 4);

이렇게하면되는데 나머지부분의 속성값들은 어떻게해야되는지...

style 과 layout_gravity .등등...

조언부탁드립니다