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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:12:58+00:00 2026-05-30T13:12:58+00:00

What is the difference android:layout_alignParentRight and android:layout_alignRight ?It doesnt make me any sense? My

  • 0

What is the difference android:layout_alignParentRight and android:layout_alignRight?It doesnt make me any sense?

My code:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_height="fill_parent"
        android:layout_width="320dip"
        android:background="@drawable/merhaba_bg_320_480dip">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="320dip"
              android:layout_height="480dip"  >



**<ImageView
        android:layout_height="30dip"
        android:layout_width="64dip"
        android:id="@+id/merhaba_btn_nedir"
        android:background="@drawable/merhaba_btn_nedir_64_30dip"
        android:layout_margin="5dip"
        android:layout_alignRight="@id/bla">
</ImageView>**




    <RelativeLayout
            android:layout_height="44dip"
            android:layout_width="320dip"
            android:background="@drawable/merhaba_header_320_44dip"
            **android:id="@+id/bla**">
        <ImageView
            android:layout_height="32dip"
            android:layout_width="121dip"
            android:background="@drawable/merhaba_logo_121_32dip"
            android:layout_centerInParent="true">
        </ImageView>
        <ImageView
            android:layout_height="30dip"
            android:layout_width="64dip"
            android:background="@drawable/merhaba_btn_nedir_64_30dip"
            android:layout_margin="5dip"
            android:layout_alignParentRight="true">
        </ImageView>
    </RelativeLayout>


</LinearLayout>
    </ScrollView>
  • 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-30T13:12:59+00:00Added an answer on May 30, 2026 at 1:12 pm
    android:layout_alignParentRight 
    

    Accepts a boolean value, and if set to true, it’ll make the right edge of this view match the right edge of the parent.

    android:layout_alignRight
    

    Accepts an id (reference to another view in the same view group), and makes the right edge of this view match the right edge of the given anchor view.

    In other words: the first allows you to position a view relative to its parent, whereas the second positions a view relative to some other view (which should be a sibling view in the same parent). There are similar attributes for left, top and bottom.

    Visualizing things usually helps a lot – just try some different variations of both and watch their results in Eclipse’s layout editor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a faux dialog which uses this layout: <?xml version=1.0 encoding=utf-8?> <FrameLayout xmlns:android=http://schemas.android.com/apk/res/android
<?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent> <ListView android:id=@android:id/list android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 />
I have the following layout: <?xml version=1.0 encoding=utf-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent android:layout_height=fill_parent> <GridView android:id=@+id/grid
This is the layout I am using: <ScrollView xmlns:android=http://schemas.android.com/apk/res/android android:background=@color/background android:layout_width=fill_parent android:layout_height=fill_parent android:padding=30dip >
Is there any difference between @null Vs transparent(#00000000) in my layout I set android:background@color/transparent
In Android, when layout out widgets, what's the difference between fill_parent ( match_parent in
I've got some XML resources in my Android app. Each one has a different
Any difference, performance-wise?
Is there any efficiency difference in an explicit vs implicit inner join? For example:
What's the difference between setting background image in layout xml and setting it from

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.