当我在Nexus 7上运行Sony Android附件模拟器时,我的手表应用程序的SmartWatch 2模拟与实际的SmartWatch 2设备不匹配。模拟器上的textviews布局与设备略有不同。这个模拟器在三星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>
答案 0 :(得分:1)
没有设置来修复模拟器的布局。它是一款应用程序在一天结束时模拟智能手表与Smartwatch 2的Smart Connect和Host应用程序等其他组件连接的行为。但我很好奇你真正面临的问题。这更像是一个布局问题还是一个错误?