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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:39:10+00:00 2026-06-17T09:39:10+00:00

I am really newbee in android. I just want to create a layout with

  • 0

I am really newbee in android.
I just want to create a layout with some textviews, a picture.

I made it, and it looks good on my editor. (I am using eclipse/adt).

When i tried it first, the result was horrible (see picture). After that i tried it on another config, what is still horrible.

As i know, the dp is for indepency, but as i see it is not. But i guess, i made something wrong.

Please help me, and enlighten me, what do i do wrong, and why is the textviews and the picture moves?

On the picture from left to right:

  • Editor
  • Eclair, 3.3 QVGA 320×480 mdpi
  • Jelly Beans 3.2 WQVGA 240×400 ldpi

textviews

And my code:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/quizLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/quiz_background"
tools:context=".Quiz" >

<Button
    android:id="@+id/btnGo"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_centerHorizontal="true"
    android:layout_marginBottom="36dp"
    android:text="@string/go" />

<TextView
    android:id="@+id/tvQuestion"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_alignParentTop="true"
    android:layout_marginLeft="19dp"
    android:layout_marginTop="60dp"
    android:text="@string/question" />

<TextView
    android:id="@+id/tvPoints"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignLeft="@+id/tvQuestion"
    android:layout_below="@+id/tvQuestion"
    android:layout_marginTop="31dp"
    android:text="@string/points" />

<ImageView
    android:id="@+id/imgCarHolder"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignLeft="@+id/tvPoints"
    android:layout_below="@+id/tvPoints"
    android:layout_marginTop="26dp"

    android:contentDescription="@string/dummy" />

</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-17T09:39:11+00:00Added an answer on June 17, 2026 at 9:39 am

    If you are using fixed values for height or width or any other space context in any of your layout file i recommend you to go separately for each screen size. As for example 35 dp is different for screen with resolution 360*480 and for 480*640.so your screen looks weird if you are using constants in large extents.

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

Sidebar

Related Questions

I want to create something similar to Kannel, for my wavecom GSM modem using
Just want to mention that I am really a newbie in API development (concepts,
This is a really newbie question. I've managed to get some jQuery stuff running
I want to use Jackson JSON parser library in my android project. I saw
I have a web app, that also has an iPhone and Android app using
Would really appreciate some help with this. I have an app which consists of
Hello Everyone I'm really new bee in android and for that I'm confused to
Im experienced iOS dev but new to Android dev and asking some newbie questions
I'm new to C so be patient with me if you see some really
Sorry, really newbie question, but if I was to create an ASP.NET website application,

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.