내 휴대 전화에서 모든 것이 완벽하게 작동하지만 에뮬레이터에서 실행되는 동안 내 앱에 TextViews를 표시하는 데 사소한 문제가 있습니다. 나는 당신 대부분이 신경 쓰지 않을 것이라고 알고 있지만, 내 앱의 최고 품질의 스크린 샷을 얻어야합니다 (졸업을위한 제 프로젝트이고 프로젝트 스크린 샷이 프로젝트 문서에 포함되어야합니다).Android 에뮬레이터가 TextView를 올바르게 표시하지 않음 (기기에서 정상적으로 작동 함)
XML 레이아웃 파일에서 일부 값으로 채워진 TextViews가 올바르게 표시됩니다. 그러나 사용자가 로그인 한 후 동적으로 채워지는 항목 (웹 서비스의 String 값)은 부분적으로 만 표시되며 줄의 맨 위 부분 만 표시됩니다.이 스크린 샷에서 볼 수 있습니다.
앞서 언급 한 것처럼 모든 것이 내 장치 (삼성 i5510)에 제대로 표시됩니다. 해당 TextView는 TableLayout 및 각 행의 일부입니다 (왼쪽 열의 정적 레이블과 오른쪽 열의 동적 값). XML 레이아웃은 다음과 같습니다.
<TableRow android:id="@+id/brandTableRow" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:orientation="horizontal"
android:paddingBottom="2sp" android:paddingTop="2sp">
<TextView android:id="@+id/brandLabel" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="Model pojazdu:"
android:layout_column="1">
</TextView>
<TextView android:id="@+id/brandTextView"
android:layout_width="wrap_content" android:layout_height="12px"
android:text="" android:gravity="right">
</TextView>
</TableRow>
<TableRow android:id="@+id/widget67" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:orientation="horizontal"
android:paddingBottom="2sp" android:paddingTop="2sp">
<TextView android:id="@+id/widget40" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="Ping:"
android:layout_column="1">
</TextView>
<TextView android:id="@+id/pingTextView"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="n/a" android:gravity="right">
</TextView>
</TableRow>
어떻게 수정합니까?
기기의 AVD 일치의 화면 해상도/밀도를 확인하기 만하면됩니까? 두 개를 일치시키지 않고 동작이 어떻게되는지보십시오. – havexz