【发布时间】:2018-10-11 06:26:54
【问题描述】:
默认通知文本大小是多少?我使用我的自定义尺寸(简化):
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/icon"
android:layout_width="55dp"
android:layout_height="55dp"
android:layout_alignParentLeft="true"
android:src="@drawable/icon" />
<TextView
android:id="@+id/app_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/app_n"
android:textSize="16sp"/>
</RelativeLayout>
但是,这种方法 (android:textSize="16sp") 不适用于所有设备,文本在其中一些设备上被剪切。我只需要找到一些可以在我的自定义通知布局中使用的默认dimens-ed 变量。
【问题讨论】:
标签: android notifications dimensions text-size