The Android Developer's Guide for Creating a Custom Dialog defines the layout that begins:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layout_root" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="10dp" >
If I use this code, I get a dialog box that is in the center of the screen with about 40 pixels of the main view, visible on each side.
What exactly does fill_parent mean (for width and height)?
Octavian Damiean, , , . java- onCreate ( super.onCreate(...) setContentView (...). , Java, : " mContext = getApplicationContext();" " mContext = this;", "dialog.show();", .
:
fill_parent, , .
, , . 10dip 0dip (- .) 100 dip :
, padding , .
, . . 10dip ( , , , ) - . wrap_content, , .
10dip
wrap_content
fill_parent ViewGroup.LayoutParams.
Source: https://habr.com/ru/post/1773540/More articles:GROUP BY and ORDER BY - sqlboost :: asio with SSL - problems after SSL error - c ++netbeans 6.9 UML support? - ideNSMutableArray - ะะฐะบ ะฟะพะปััะธัั ะดะพัััะฟ - objective-cAjax Calendarextender location with invisible text box - ajaxcopy SQLite database - c #Working with JTable in IntelliJ IDEA - intellij-ideaCreating a new instance of an object at the click of a button - instantiationBash: invoking a script using special keyboard shortcuts? - linuxWPF Datagrid ComboBox DataBinding - data-bindingAll Articles