Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4595468
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:58:29+00:00 2026-05-21T22:58:29+00:00

in my app i am using the view flipper. One side of the flip

  • 0

in my app i am using the view flipper. One side of the flip i have placed some text and edit text view. In the other part of the flip i have the map view.

To flip between these two views i am using the swipe concept. I am able to swipe from the text view to the map view. But to get back to the text page from view i decided to place a button in the in the map view but still, the button is not visible.

Following is my layout of the view flipper

<ViewFlipper android:background="#000000"  android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/viewFlipper1">
           <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent"
                         android:layout_height="wrap_content" android:layout_marginTop="25dip"
                         android:layout_marginBottom="10dip">
                  <TextView android:id="@+id/distance" android:text="0.0" android:textColor="#ffffff"
                            android:layout_width="80dip" android:layout_height="wrap_content"
                            android:gravity="center_vertical|right" android:layout_marginLeft="18dip"
                            android:textSize="20dip">
                  </TextView>     

                  <Spinner android:id="@+id/unitspinner" android:layout_width="fill_parent"
                           android:layout_height="wrap_content" android:drawSelectorOnTop="true"
                           android:prompt="@string/unit_prompt"/>           
            </LinearLayout>

            <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.google.android.maps.MapView android:id="@+id/mapView"
                                 android:layout_width="wrap_content"
                                 android:layout_height="match_parent"
                                 android:enabled="true"
                                 android:clickable="true"                                 android:apiKey="0XXXXXXXXXXXXXXXXXXXX">
 <Button android:id="@+id/widget306" android:layout_width="wrap_content" android:layout_height="wrap_content"
                   android:text="Back">
           </Button>
               </com.google.android.maps.MapView>

                  <LinearLayout android:id="@+id/zoom" android:layout_width="wrap_content" android:layout_height="wrap_content" 
                                android:layout_alignParentBottom="true" android:layout_centerHorizontal="true"> 
                  </LinearLayout> 

            </LinearLayout>
        </ViewFlipper>

how to get the button to be visible. Please help me….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T22:58:30+00:00Added an answer on May 21, 2026 at 10:58 pm

    The buttons are visible only in the relative layout. the xml file must be as follows

    ?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
       android:id="@+id/map_main"
       android:orientation="vertical"
       android:layout_width="fill_parent"
       android:layout_height="fill_parent" >
    
    
    <com.google.android.maps.MapView
        android:id="@+id/mapview"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:clickable="true"
        android:apiKey="0y6Hyjz6Kxo-NOV_9KHYF7-ECYeGt99xeyVU3IQ"/>
    
    <Button 
        android:id="@+id/select_3" 
        android:layout_marginTop="13dp"
        android:layout_height = "wrap_content"
        android:layout_width  = "wrap_content"
        android:onClick="selfSelectCenterLocation">
    </Button>
    </RelativeLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Android app using PhoneGap 1.6 and Sencha Touch 1.1.1. One view
In android app i m using two view flipper to flip the view. I
I am building an app using storyboard. I have added a table view to
I have a view in a MonoTouch app using MvvmCross framework that I would
I have created a Universal app using Interface Builder. My view controllers are embedded
i am developing one app using opengl surface view ,how can implemented please forward
I have made a new split view iPad app using CoreData. All I have
Users can view and edit account information in my app using UsersController This controller
I'm creating an iPhone app using storyboard. I have a table view and 4
In my ASP.net MVC App (using Razor views) I have a ProductDetails view. This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.