javadi3d
شنبه 17 اسفند 1392, 17:15 عصر
سلام
کد زیر در تمام گوشی ها به درستی کار میکند ولی در تلبت تصویر پس زمینه بهم میریزد.
گوشیها مثلا galaxy s advance :
http://0up.ir/img/Album/f-Screenshot-2014-03-08-16-10-01.jpg
تلبت:
http://0up.ir/img/Album/4-Screenshot.jpg
xml:
<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"
tools:context=".Main"
android:background="@drawable/backmatnziarat" >
<ImageButton
android:id="@+id/btnkhoruj"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/btndarbareh"
android:layout_centerHorizontal="true"
android:background="@null"
android:src="@drawable/khoruj" />
<ImageButton
android:id="@+id/btndarbareh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/btnmahsulat"
android:layout_marginRight="24dp"
android:background="@null"
android:src="@drawable/darbareh" />
<ImageButton
android:id="@+id/btnmahsulat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/btnfehrest"
android:layout_marginLeft="22dp"
android:background="@null"
android:src="@drawable/mahsulat" />
<ImageButton
android:id="@+id/btnfehrest"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="50dp"
android:background="@null"
android:src="@drawable/fehrest" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" >
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/main"
android:scaleType="fitXY" />
</FrameLayout>
</RelativeLayout>
کد زیر در تمام گوشی ها به درستی کار میکند ولی در تلبت تصویر پس زمینه بهم میریزد.
گوشیها مثلا galaxy s advance :
http://0up.ir/img/Album/f-Screenshot-2014-03-08-16-10-01.jpg
تلبت:
http://0up.ir/img/Album/4-Screenshot.jpg
xml:
<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"
tools:context=".Main"
android:background="@drawable/backmatnziarat" >
<ImageButton
android:id="@+id/btnkhoruj"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/btndarbareh"
android:layout_centerHorizontal="true"
android:background="@null"
android:src="@drawable/khoruj" />
<ImageButton
android:id="@+id/btndarbareh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/btnmahsulat"
android:layout_marginRight="24dp"
android:background="@null"
android:src="@drawable/darbareh" />
<ImageButton
android:id="@+id/btnmahsulat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/btnfehrest"
android:layout_marginLeft="22dp"
android:background="@null"
android:src="@drawable/mahsulat" />
<ImageButton
android:id="@+id/btnfehrest"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="50dp"
android:background="@null"
android:src="@drawable/fehrest" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" >
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/main"
android:scaleType="fitXY" />
</FrameLayout>
</RelativeLayout>