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 7947417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:25:34+00:00 2026-06-04T01:25:34+00:00

I created carousel design application, it’s working fine. I wish to show one default

  • 0

I created carousel design application, it’s working fine. I wish to show one default logo in center of the screen. so i am tried many ways, please help me.

This is my screen shot:
enter image description here

i wish to show one logo in center of the carousel design.

This is my xml source code:

>

<LinearLayout
    android:layout_weight="0.5"
    android:padding="5dip"
    android:gravity="top"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" 
    >
        <com.globems.controls.Carousel
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:id="@+id/carousel"  
            pj:UseReflection="true"
            pj:Items="@array/entries"
            pj:Names="@array/names" 
            pj:SelectedItem="0"
            android:animationDuration="200"
        />    
         <ImageView
    android:id="@+id/imageView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/ic_launcher" />

</LinearLayout>     

in this code I am using imageview to show the logo but its not working.

Updated xml:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:pj="http://schemas.android.com/apk/res/com.globems.main"
    xmlns:bm="com.carousel.main"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background ="@drawable/blue3"

    >

    <RelativeLayout
        android:layout_weight="0.5"
        android:padding="5dip"
        android:gravity="top"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" 
        >
            <com.globems.controls.Carousel
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:id="@+id/carousel"  
                pj:UseReflection="true"
                pj:Items="@array/entries"
                pj:Names="@array/names" 
                pj:SelectedItem="0"
                android:animationDuration="200"
            />    
        <ImageView
        android:id="@+id/imageView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_launcher"
        android:centerinHorizontal="true"
        />

    </RelativeLayout>       
</RelativeLayout>
  • 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-06-04T01:25:35+00:00Added an answer on June 4, 2026 at 1:25 am

    its better to Use RelativeLayout and add android:centerinParent="true" in imageView…

    UPDATE ::

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:pj="http://schemas.android.com/apk/res/com.globems.main"
        xmlns:bm="com.carousel.main"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="@drawable/blue3" >
    
        <com.globems.controls.Carousel
            android:id="@+id/carousel"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            pj:Items="@array/entries"
            pj:Names="@array/names"
            pj:SelectedItem="0"
            pj:UseReflection="true"
            android:animationDuration="200" />
    
        <ImageView
            android:id="@+id/imageView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:src="@drawable/icon" />
    
    </RelativeLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a little fadeIn/fadeOut carousel in jQuery and it's working fine in every
I have an application created for 3D carousel view using open gl es. I
I created a project in flex builder with application server type set to none.
I've created a slide carousel and it uses pseudo element :before to identify the
Using the TinyCarousel program I created the following sample page. http://www.dealred.com/wa/jqimage.htm The carousel is
I recently tried to create an object like this: var carousel = { $slider:
i created a carousel in jquery that slides an item or set of items
I need to create a div carousel for a project Im working on. I
Hi I want to create a simple jquery carousel for my php web application.
Created new scaffold Users that has fields name & description All working as suppose

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.