Posts

Showing posts from February, 2014

[Android] Make android button transparent.

You can make android button transparent by inserting following code in layout xml file.

android:background="@android:color/transparent"

For example, I used it in one of my button as following.

<Button
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentTop="true"
        android:text="Who is computer Geek?"
        android:background="@android:color/transparent" />

CSS Basics

Making bold the whole paragraph.

<p style="font-weight: bold;">This is a bold paragraph.</p>

Making a word italic.

This is the <span style="font-style:italic;">greatest</span> web page I’ve made yet.

Using an internal style sheet.

<!doctype html>
<html>
<head>
<title>Using an internal style sheet.</title>
<style type=”text/css”>
div {
      font-weight: bold;
}
span {
      font-style: italic;
}
</style>
</head>
<body>

            <div>This is my web page.</div>
</body>
</html>

Using an external style sheet.

<link rel="stylesheet" type="text/css" href="path_to_style_sheet/style.css">

HTML Basics

Basic HTML Page


<!doctype html>
<html>
    <head>
           <title>Basic HTML Web Page Template</title>
    </head>
    <body>
           <div>Web Page Content</div>
    </body>
</html>

Creating unordered list.

<ul>
       <li>Pine</li>
       <li>Oak</li>
       <li>Elm</li>

</ul>

Creating ordered list.

<ol>
       <li>Pine</li>
       <li>Oak</li>
       <li>Elm</li>

</ol>

Creating a table.

<table>
    <tr>
          <th>Airport Code</th>
          <th>Common Name/City</th>

    </tr>
    <tr>
          <td>CWA</td>
          <td>Central Wisconsin Airport</td>
    </tr>
    <tr>
          <td>ORD</td>
          <td>Chicago O’Hare</td>
    </tr>
    <tr>
          <td>LHR</td>
          <td>…