and*_*n76 5 parameters layout android toast
我toast非常喜欢小部件的布局,这意味着圆角,透明度,浅灰色边框.有没有办法看到这样的android标准小部件的布局参数toast如何?
我想TextView用相同的布局参数定义一个.
Tho*_*nvv 10
布局可以在{SDKBASEDIR}/platforms/{RELEASE} /res/layout/transient_notification.xml下找到
例如2.1:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/toast_frame">
<TextView
android:id="@android:id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textAppearance="@style/TextAppearance.Small"
android:textColor="@color/bright_foreground_dark"
android:shadowColor="#BB000000"
android:shadowRadius="2.75"
/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
drawable toast_frame.9.png可以在{SDKBASEDIR}/platforms/{RELEASE}/res/drawable {-RESOLUTION}下找到