메신저이 레이아웃을 사용하여 두 ImageViews 다른 하나를 넣어하지만 두 이미지는 1 투명 픽셀 공간으로 구분하는 것 같습니다.안드로이드에 두 ImageView 사이에 원치 않는 공간
public class MainActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.main);
}
}
임 안드로이드 2.2 장치를 사용하여 :
파란색 배경
<?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"
android:background="#0000FF">
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_marginTop="5dip">
<ImageView
android:src="@drawable/i_position_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<ImageView
android:src="@drawable/i_position_seekbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>
된 .java는 ... 문제를 관찰하기 쉽게하기 위해 존재한다.
1.6 에뮬레이터가 아닌 2.1-update1 에뮬레이터에서 글리치를 재현 할 수 없었습니다 ...
Ive가 이미지를 확인했으며 추가 픽셀이 없습니다.
또한 이미지에 빨간색 1px 너비 경계를 별도로 추가하려고했는데 결함이 여전히 있으므로 이미지가 문제가없는 것처럼 보입니다.
이 문제가있는 이미지 (올바르게 여기에 표시)은 다음과 같습니다
http://dl.dropbox.com/u/7024937/i_position_icon.png
http://dl.dropbox.com/u/7024937/i_position_seekbar.png
그리고 이것은 내가 내 장치에서 볼 것입니다 :
감사합니다.
SDK 버전을 알려주십시오. –
안드로이드 2.2가 장착 된 기기를 사용 중입니다. 1.6 에뮬레이터가 아닌 2.1-update1 에뮬레이터에서 글리치를 재현 할 수 없었습니다. – Gero