How to customize the width and height when show an Activity as a Dialog

前端 未结 5 1126
时光取名叫无心
时光取名叫无心 2020-12-08 19:41

If I have defined a Activity:

public class DialogActivity extends Activity{

    @Override
    public void onCreate(Bundle savedInstanceState) {
        supe         


        
5条回答
  •  [愿得一人]
    2020-12-08 20:21

    You can set the layout height and width in layout xml file

    You can even mention the values like "240px" for android:layout_width/android:layout_height

提交回复
热议问题