CSS – block, inline-block and inline

CSS – block, inline-block and inline

Table with block and inline elements Block elements Inline elements p a, br, img h1, h2, h3, h4, h5, h6 span, sub, sup div, table i, b, small, big blockquote q ul, ol, li map, object, script pre, form button, input hr label, select, textarea Table with differences between block, inline-block and inline block inline-block inline ignores the vertical align property vertical-align and white-space can be used takes its children’s heigh or height if is set. You can set width and height respects width and height properties and vertical padding…

CSS – block, inline-block and inline Read More

CSS – border properties

CSS – border properties

border-color – sets border’s color border-width – sets border’s width border-style – sets border’s style. Values can take none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset Instead of using the above three properties you can use only the property border. First you specify the width, then the type and then the color. If you do not want to have all the four borders, then you can use border-left, border-top, border-right and border-bottom. border-radius – defines the shape of the…

CSS – border properties Read More

ANDROID – BROADCAST RECEIVERS PART 3

ANDROID – BROADCAST RECEIVERS PART 3

You can read Part 1 here and Part 2 here. send broadcasts Android supports three mechanisms to send a broadcast: Normal – send with sendBroadcast(Intent) and sends to all the receivers Ordered – send with sendOrderedBroadcast(Intent, String). It delvers to one receiver at a time. The receiver can also cancel the broadcast so no other receiver receive the broadcast. with permission Local Broadcast – send with LocalBroadcastManager.sendBroadcast(Intent) and only to receivers that are in the same app as the sender. Security Any application can send an intent to any registered…

ANDROID – BROADCAST RECEIVERS PART 3 Read More

CSS – background properties

CSS – background properties

Let’s see some properties related to the background. background-color – sets the background color of an element background-image – set an image as a background background-size – specifies the size of the background image As you see from the example above, when the images is smaller than the element, then it will be repeated vertically and horizontally. background-repeat – Specifies how background images are tiled. It can take 6 different values. repeat-x 2. repeat-y 3. no-repeat 4. repeat 5. space 6. round cursor This property specifies the type of cursor…

CSS – background properties Read More

ANDROID – BROADCAST RECEIVERS PART 2

ANDROID – BROADCAST RECEIVERS PART 2

You can read Part 1 here. Register receivers By registering receivers you register their interest in certain intents via intent filters. You can register receivers in two ways, statically and dynamically. statically in AndroidManifest.xml You need to create a receiver element for every receiver. Inside the receiver element you need to specify the intent filters with Intent-filter element. Then you must use the action element to specify the action for the intent-filter. It can contain one or more action elements. dynamically with registerReceiver First, instantiate your receiver. Then instantiate an…

ANDROID – BROADCAST RECEIVERS PART 2 Read More