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

  • SEARCH
  • Home
  • 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 6738801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:24:41+00:00 2026-05-26T11:24:41+00:00

In my application i have two images original upper image and down reflection one.

  • 0

In my application i have two images original upper image and down reflection one. SO i made sample application and it is working fine as specified in this screenshot. Sample app screenshot

now i want to implement same in my application which has complex layout file. SO the code snippt is as follow. but 2nd image is always coming small with no respect of padding. CEnter point of both image is same but the width of down image is most probably half of it. I tried to play with margin but even if i increase it there is no change. let me know if you have any question. the screen and code snippt of my real application and image is as follow. i do not know why it is not working same way as it is working in sample app. enter image description here

    <RelativeLayout android:id="@+id/LinearLayout02"
        android:layout_gravity="center" android:layout_height="fill_parent"
        android:layout_width="wrap_content" android:orientation="vertical">

        <View android:layout_width="match_parent" android:layout_height="32.5px"
            android:layout_alignParentTop="true" android:id="@+id/top_padding"
            android:background="#FFFF0000"></View>

        <VideoView android:id="@+id/video_view"
             android:layout_gravity="center"
             android:layout_centerInParent="true"
            android:layout_width="fill_parent" android:visibility="gone"
            android:layout_below="@+id/top_padding"
            android:layout_height="match_parent">
        </VideoView>

        <ImageView android:id="@+id/video_image_view"
            android:layout_gravity="center" android:layout_below="@+id/top_padding"
            android:layout_above="@+id/bottom_padding" android:layout_height="match_parent"
            android:baselineAlignBottom="true"
            android:src="@drawable/anna" 
            android:layout_width="match_parent">
        </ImageView>

        <View android:layout_width="match_parent" android:layout_height="32.5px"
            android:layout_alignParentBottom="true" android:id="@+id/bottom_padding"
            android:background="#FFFF0000"></View>
        <ImageView android:id="@+id/video_image_view_reflection"

            android:layout_below="@+id/video_image_view" android:layout_width="fill_parent"
            android:background="#FF00FF00" android:layout_alignBaseline="@+id/video_image_view"
            android:layout_marginTop="32.5px"
            android:layout_marginBottom="32.5px"
            android:src="@drawable/anna"
            android:layout_height="match_parent">
        </ImageView>


    </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-05-26T11:24:42+00:00Added an answer on May 26, 2026 at 11:24 am

    Try this modifications:

    <ImageView android:id="@+id/video_image_view"
      android:layout_gravity="center" android:layout_below="@+id/top_padding"
      android:layout_above="@+id/bottom_padding" android:layout_height="fill_parent"
      android:baselineAlignBottom="true"
      android:layout_centerInParent="true"
      android:src="@drawable/anna" 
      android:layout_width="wrap_content">
     </ImageView>
    <View android:layout_width="fill_parent" android:layout_height="32.5px"
      android:layout_alignParentBottom="true" android:id="@+id/bottom_padding"
      android:background="#FFFF0000" ></View>
    <ImageView android:id="@+id/video_image_view_reflection"
      android:layout_below="@+id/video_image_view" android:layout_width="wrap_content"
      android:background="#FF00FF00" android:layout_alignBaseline="@+id/video_image_view"
      android:layout_marginTop="32.5px"
      android:layout_marginBottom="32.5px"
      android:layout_centerInParent="true"
      android:scaleType="matrix"
      android:src="@drawable/anna"
      android:layout_height="fill_parent" >
    </ImageView>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one application in which I have two images. The first image is
I'm working on an image processing application where I have two threads on top
I have two windows application, one is a windows service which create EventWaitHandle and
I have two threads in an Android application, one is the view thread, and
Well I have two buttons, each image in a span, and one should be
I have an application based on CoreDataBooks. I want to toggle two images in
I have a Recipe entity that contains two images: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable=true) public
I have a wpf application. I want to show two images on two buttons
In my application I have two images which are arranged in circle. I want
I have two XML files that are generated by another application I have no

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.