Monday 24 November 2014

Blur effect in image in core android


XML code ...



We can take ImageView also.

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="${packageName}.${activityClass}" >

    <LinearLayout
        android:id="@+id/blurimage"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >
    </LinearLayout>

</LinearLayout>

HOW TO CREATE FIRST ANDROID MOBILE APP

1. What do you need:
  • Basic XML knowledge
  • Basic Java knowledge
  • Basic Eclipse knowledge

  • 2. Prerequisites:
    • Before you can start you need the Android SDK and a IDE. Android offers a special bundle for that: Android SDK Bundle
    • Download the bundle, unzip and run the “SDK Manager.exe”.
    • start Eclipse

3. Create a Android virtual machine (dalvik):
To run, test and debug your Application you can create and run a virtual android machine on your computer. Later you can deploy your Application to this virtual machine.
  • Click on “Windows” at the navigation toolbar
  • Open “Android Virtual Device manager
virtualdevicemanager

After that you can start the AVD

AVD

Configure Project:


projectname


firstStart




android DrawerLayout demo

XML code....


<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <LinearLayout
        android:id="@+id/parent"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >

        <ImageView
            android:id="@+id/slidebar_btn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="right"
            android:onClick="slideclicks"
            android:src="@drawable/abc_ic_menu_moreoverflow_normal_holo_light" />

        <LinearLayout
            android:id="@+id/header"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="vertical" >

            <ScrollView
                android:layout_width="match_parent"
                android:layout_height="match_parent" >

                <WebView
                    android:id="@+id/webView1"
                    android:layout_width="match_parent"
                    android:layout_height="284dp"
                    android:orientation="vertical"
                    android:scrollbars="vertical" />
            </ScrollView>
        </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:id="@+id/RightDrawer"
        android:layout_width="250dp"
        android:layout_height="fill_parent"
        android:layout_gravity="end"
        android:background="#8aabb6"
        android:orientation="vertical" >

        <TextView
            android:id="@+id/textView1"
            android:layout_width="250dp"
            android:layout_height="fill_parent"
            android:text="TextView" />
    </LinearLayout>

</android.support.v4.widget.DrawerLayout>