Xml deki elemanları nasıl sabitlerim
Ben bir xml dosyası oluşturdum fakat her cihazda farklı gozukuyor bütün cihazlar için aynı goruntuyu nasıl sağlayabilirim örneğin şu kod
[code]
<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:background="@drawable/indir"
tools:context="com.example.fixwordd.MainActivity" >
<Button
android:id="@+id/eniyi"
android:layout_width="140dp"
android:layout_height="60dp"
android:layout_alignLeft="@+id/button1"
android:layout_below="@+id/button1"
android:layout_marginTop="16dp"
android:background="@drawable/kahvebutonn"
android:text="Enaa"
android:textStyle="bold" />
<TextView
android:id="@+id/textView1"
android:layout_width="fill_parent"
android:layout_height="70dp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginTop="36dp"
android:background="@drawable/abc_ab_bottom_transparent_light_holo"
android:gravity="center"
android:text=" Fix"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#CC9900"
android:textSize="50sp"
android:textStyle="italic" />
<Button
android:id="@+id/button1"
android:layout_width="140dp"
android:layout_height="60dp"
android:layout_alignLeft="@+id/button3"
android:layout_below="@+id/textView1"
android:layout_marginTop="15dp"
android:background="@drawable/kahvebutonn"
android:text="Oyun"
android:textStyle="bold" />
<Button
android:id="@+id/button3"
android:layout_width="140dp"
android:layout_height="60dp"
android:layout_alignLeft="@+id/button4"
android:layout_below="@+id/eniyi"
android:layout_marginTop="17dp"
android:background="@drawable/kahvebutonn"
android:text="TTTTT"
android:textStyle="bold" />
<Button
android:id="@+id/button4"
android:layout_width="140dp"
android:layout_height="60dp"
android:layout_below="@+id/button3"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp"
android:background="@drawable/kahvebutonn"
android:text="GOO"
android:textStyle="bold" />
/>
</RelativeLayout>
[/code]