Stats: 3,191,819 members, 7,945,621 topics. Date: Tuesday, 10 September 2024 at 09:13 PM |
Nairaland Forum / Science/Technology / Programming / Padding/margin I Need Help (1519 Views)
Solving The Nigerian Budget Padding Issue With PHP (2) (3) (4)
Padding/margin I Need Help by Nobody: 3:12pm On Jun 29, 2016 |
plz gurus in the house what is the difference between padding, margin, layout_margin, and layout_padding? |
Re: Padding/margin I Need Help by Nobody: 3:34pm On Jun 29, 2016 |
I shall abuse you o, you posted a question without specifying language. My language detector shows android sha. The space between a container and its content is called padding. The space between the container and its parent is called margin. Use sample codes to practicalize this. 1 Like |
Re: Padding/margin I Need Help by Nobody: 3:37pm On Jun 29, 2016 |
^^^ android ui. @boss check out this simpleview list i was experimenting with.
|
Re: Padding/margin I Need Help by Nobody: 4:39pm On Jun 29, 2016 |
You need padding inside those list items. |
Re: Padding/margin I Need Help by rushman003: 9:41pm On Jun 29, 2016 |
Actually my own understanding of padding is space within element, while margin is space outside an element. Gbam. ........ dtml8, guru01 and other wailers can fall in. ![]() ![]() |
Re: Padding/margin I Need Help by Nobody: 10:01pm On Jun 29, 2016 |
The other wailers then, I was the first wailer. . . |
Re: Padding/margin I Need Help by israelboy1(m): 11:12pm On Jun 29, 2016 |
padding: this will give you a spacing...within your element...for instance..you have a text box....the spacing you want to give from the border of your text box (inside of it) is defined with that , margin...for this your text box...you want to make a space..between it..and the layout..if you are familiar with all those primary school note books...you will see one vertical .line like that..in red paint..the spacing between it to the left corner of the page is called the margin...just like the spacing you want to define..between your text box and it's layout...which I assume you defined as either wrap_content or fill_parent . layout_margin: this is the margin you wanna set in your layout...be it for the elements...or layout itself e.g. <? xml version = "1.0" encoding = "utf-8" ?> <LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android" android:layout_width = "fill_parent" android:layout_height = "fill_parent" android:orientation = "vertical" > " <!-- More GUI components go here --> </LinearLayout> for the buttons...you can define your layout_margin to be anything...same goes for the linear layout... ..all about the spacing you wanna give... you can have multiple layouts ..in your XML...just use it do define your margins and layout_padding? ..same with layout_margin....but...just inside...while margin is outside |
Re: Padding/margin I Need Help by Nobody: 7:53am On Jul 02, 2016 |
thanks guys, especially isrea*, i am very grateful. |
Re: Padding/margin I Need Help by Nobody: 7:53am On Jul 02, 2016 |
thanks guys, especially israe*, i am very grateful. |
Re: Padding/margin I Need Help by Nobody: 8:21am On Jul 02, 2016 |
^^^And you refused to thank the first wailer abi? Is alright, I shall deal specially with you - make i go get my cane. |
Re: Padding/margin I Need Help by israelboy1(m): 8:48am On Jul 02, 2016 |
dhtml18: I think the * in my name includes yours ...lolzzz |
Re: Padding/margin I Need Help by Nobody: 9:02am On Jul 02, 2016 |
israelboy1: I think you are right, *returns the e-cane to its hiding place* |
Re: Padding/margin I Need Help by satmaniac(m): 10:15am On Jul 02, 2016 |
dhtml18: crotonite need to give thanks given o! |
Re: Padding/margin I Need Help by Nobody: 3:55pm On Jul 02, 2016 |
![]() ![]() |
Re: Padding/margin I Need Help by Nobody: 4:25pm On Jul 02, 2016 |
crotonite:Oiled and dipped in hot pepper - with an extra layer of XSS/CSRF/Injection to make it very sweet too. |
Re: Padding/margin I Need Help by Nobody: 7:26pm On Jul 02, 2016 |
dhtml18: one stroke will make me see stars (DDOS + zipbomb, stack overflow and medula-priviledge escalation ![]() |
Re: Padding/margin I Need Help by Nobody: 7:55pm On Jul 02, 2016 |
^^^plus boko haram bomb |
Re: Padding/margin I Need Help by Nobody: 8:32pm On Jul 02, 2016 |
ROFL... You no go kill me with this ur jokes. ¤¤exits thread via emergency exit>>> ¤¤ |
(1) (Reply)
Fix Any Error On Your Website/script / Java JDBC Database Object Mysql Connection And Manipulation Library By Antware / Sales And Invoicing Application
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 16 |