【发布时间】:2017-01-04 03:25:22
【问题描述】:
我正在玩 smart mirror code,当我在 Android TV AVD 上构建和运行该应用程序时,该应用程序会使屏幕上的所有信息过于接近。 Github 网站上显示的应用程序非常整洁且分散,但我的如下图所示是全部。
是否有我忘记更改的设置?
【问题讨论】:
标签: android android-studio android-tv
我正在玩 smart mirror code,当我在 Android TV AVD 上构建和运行该应用程序时,该应用程序会使屏幕上的所有信息过于接近。 Github 网站上显示的应用程序非常整洁且分散,但我的如下图所示是全部。
是否有我忘记更改的设置?
【问题讨论】:
标签: android android-studio android-tv
尝试在activity_home.xml中添加这一行来控制你的textSize ,本例设置30sp,你可以设置其他你需要的。
例子
<TextView
android:id="@+id/news_1"
style="@style/NewsStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginBottom="@dimen/intra_group_margin"
android:drawableLeft="@drawable/news_ap"
android:drawablePadding="@dimen/icon_margin"
add > android:textSize = "30sp"
tools:text="Obama, Sanders at the White House: Nice chat but that's all"/>
【讨论】: