Layout distortion in Bluestack

Asked

Viewed 325 times

2

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"
    android:addStatesFromChildren="false">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:text="Cadastrar ..."
        android:id="@+id/textView"
        android:textSize="68dp"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="50dp" />

    <ImageView
        android:layout_width="300dp"
        android:layout_height="300dp"
        android:id="@+id/imgViewContactImage"
        android:src="@drawable/camera"
        android:focusableInTouchMode="true"
        android:layout_below="@+id/textView2"
        android:layout_alignRight="@+id/textView2"
        android:layout_alignEnd="@+id/textView2"
        android:layout_marginTop="81dp" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:text="Escolher Foto"
        android:id="@+id/textView2"
        android:textSize="50dp"
        android:layout_above="@+id/imageView2"
        android:layout_toRightOf="@+id/textView"
        android:layout_toEndOf="@+id/textView" />

    <EditText
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:inputType="textPersonName"
        android:ems="10"
        android:id="@+id/txtNome"
        android:textSize="50dp"
        android:shadowColor="#ffbfbfbf"
        android:textColor="#ff000000"
        android:hint="Nome do Tema"
        android:layout_below="@+id/textView"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true" />

    <ImageView
        android:layout_width="150dp"
        android:layout_height="150dp"
        android:id="@+id/imageView2"
        android:src="@drawable/mic"
        android:layout_below="@+id/txtNome"
        android:layout_toLeftOf="@+id/textView"
        android:layout_toStartOf="@+id/textView"
        android:layout_marginTop="155dp"
        android:layout_marginRight="75dp" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:text="Escolher Som"
        android:id="@+id/textView3"
        android:textSize="50dp"
        android:layout_alignTop="@+id/imgViewContactImage"
        android:layout_toLeftOf="@+id/textView"
        android:layout_toStartOf="@+id/textView"
        android:layout_marginLeft="50dp"
        android:textColor="#ff000000" />

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Cadastrar"
        android:id="@+id/btnCadTema"
        android:textSize="50dp"
        android:layout_alignBottom="@+id/button2"
        android:layout_alignRight="@+id/textView3"
        android:layout_alignEnd="@+id/textView3" />

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Voltar"
        android:id="@+id/button2"
        android:textSize="50dp"
        android:layout_alignBottom="@+id/imgViewContactImage"
        android:layout_alignRight="@+id/textView5"
        android:layout_alignEnd="@+id/textView5" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Gravar Som"
        android:id="@+id/textView5"
        android:layout_alignBottom="@+id/textView3"
        android:layout_toLeftOf="@+id/textView2"
        android:layout_toStartOf="@+id/textView2"
        android:textSize="50dp"
        android:layout_marginRight="50dp"
        android:textColor="#ff000000" />

    <ImageView
        android:layout_width="150dp"
        android:layout_height="150dp"
        android:id="@+id/imageView"
        android:src="@drawable/mic"
        android:layout_alignTop="@+id/imageView2"
        android:layout_centerHorizontal="true" />

</RelativeLayout>

I use my Nexus 10 format application in Landscape mode in Android Studio, only when I use the Bluestacks virtual machine to run my application it appears all distorted, not the way I set up the layout.Na Maquina Virtual Bluestack

Na aplicação do Android Studio

I tested on Eclipse, it has no distortion, only the Android Studio

  • You could add the relevant code to your question?

  • I don’t know if that’s what it said, but I posted the screen code. What is giving problem is that appears all distorted when I use Android Studio in the virtual machine, but only in the virtual machine that Distorci all

  • @Gabrielsantanabonatto you will have to create I suppose, a canvas in Portrait and another in Landscape, this in Android Studio.

1 answer

0


The only way I found for this problem was to change the format to smaller screen resolution, in case anyone knows of any other solution, I will be very grateful :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.