23 Oct 2012

How to create Context Menu(Floating Menu) in Android Application


In Android application, menus are the common user interface components which gives user a dynamic user experience. The other details about menus are:
  • android.view.Menu is class which provides the functionality of menu.
  • Till the Android version 2.3 , dedicated menu hardware button is provided for the menu option.
  • After Android version 3.0 and higher, no dedicated button is provided but instead another ways are provided according to type of menu to access the menu.
  • There are three types of Menus or action used in all version of menus.
    1. Option menu and action bar-It is presented by action bar as a combination of on-screen action bar and overflow options.
    2. Context menu and contextual action mode-It is presented by contextual action mode for enabling the menu and selected item.
    3. Pop up menu
Context menu
Lets learn how to create context menu in in Android application.
  • First start your eclipse and select new -> project and click next.
  • Now fill with following details:
    • Project name- ContextMenu
    • Application name-ContextMenu
    • package name-context.menu
    • Minimum required SDK- select android 3.0
    • tick on create custom laucher icon.
    • Name the activity -Context_menu
    • tick on create project in workspace.

  • Now after doing this open the context_menu.xml you will see the following code.
  •  <RelativeLayout 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" >  
       <TextView  
         android:layout_width="wrap_content"  
         android:layout_height="wrap_content"  
         android:layout_centerHorizontal="true"  
         android:layout_centerVertical="true"  
         android:text="@string/hello_world"  
         tools:context=".Context_menu" />  
     </RelativeLayout>  
    

Check Your Pending Friend Request Sent By You On Facebook



You may have many friends on Facebook but there are many of your friends which are not appearing into your friend list because the request which you had sent them to add  as a friend are still pending. If you want to add all your friends to your friend list on Facebook but many of them are not responding then you can message them to accept you as a friend. To do this you will need to know which of your friend haven't responded to you and then you can message them for the further action.

Facebook will show you the list of friend requset which you have got but don't show any such list for the friend request which you have sent in past and is still pending. When there is a will then there is a way also.
In this post I will explain to you the way to find your friends which haven't responded to your friend request.

  • Start the procedure by logging into your Facebook account.
  • Go to Account setting » General Account Setting  
  • Now click on  Download a copy of your Facebook data as shown in picture below.

facebook info,download,pageword,

Translate