当我在 Nexus 7 上运行 Sony Android Accessory Emulator 时,我的手表应用程序的 SmartWatch 2 仿真与实际的 SmartWatch 2 设备不匹配。模拟器上文本视图的布局与设备略有不同。该模拟器在三星 S3 上运行良好。是否有任何模拟器设置可以解决此问题?
(我意识到仿真并不总是准确的,但在这种情况下,我希望它更接近手表。)
这是布局文件:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="@dimen/screen_width"
android:layout_height="@dimen/screen_height"
tools:context=".MainActivity"
android:background="@color/screen_background" >
<TextView
android:id="@+id/text_current_location_name"
style="@style/text_current_location_name"
android:text="State College" />
<ImageView
android:id="@+id/img_current_location_icon"
style="@style/img_current_location_icon"
android:src="@drawable/ic_current_location"
android:clickable="true" />
<ImageView
android:id="@+id/img_weather_icon"
style="@style/img_weather_icon" />
<RelativeLayout
android:id="@+id/rl_current_temperature"
style="@style/rl_current_temperature" >
<!-- current temperature symbol -->
<TextView
android:id="@+id/text_temperature_symbol"
style="@style/text_temperature_symbol"
android:text="°" />
<TextView
android:id="@+id/text_temperature_value"
style="@style/text_temperature_value"
android:text="72" />
</RelativeLayout>
<TextView
android:id="@+id/text_weather"
style="@style/text_weather_short"
android:text="Thunderstorms" />
<RelativeLayout
android:id="@+id/rl_today_temperature"
style="@style/rl_today_temperature" >
<TextView
android:id="@+id/day_min_temperature_symbol"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:textSize="@dimen/today_temperature_font_size"
android:textColor="@color/text"
android:text="°" />
<TextView
android:id="@+id/day_min_temperature_value"
android:layout_toLeftOf="@id/day_min_temperature_symbol"
style="@style/today_temperature_text"
android:text="67" />
<TextView
android:id="@+id/day_temperature_divider"
android:layout_toLeftOf="@id/day_min_temperature_value"
style="@style/today_temperature_text"
android:text="/" />
<TextView
android:id="@+id/day_max_temperature_symbol"
android:layout_toLeftOf="@id/day_temperature_divider"
style="@style/today_temperature_text"
android:text="°" />
<TextView
android:id="@+id/day_max_temperature_value"
android:layout_toLeftOf="@id/day_max_temperature_symbol"
style="@style/today_temperature_text"
android:text="80" />
<TextView
android:id="@+id/day_temperature_label"
android:layout_toLeftOf="@id/day_max_temperature_value"
style="@style/today_temperature_text"
android:text="Today: " />
</RelativeLayout>
<ImageView
android:id="@+id/img_accuweather_logo"
style="@style/img_accuweather_logo"
android:src="@drawable/ic_accuweather" />
</RelativeLayout>