我正在尝试制作一个警报对话框,如图所示。我尝试使用框架布局,但无法使其像图片一样正确。在我当前的布局中,我使用了 imageView 和 textview。
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src=""/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@strings/text"
/>
</FrameLayout>
<!---<other layouts--->
</LinearLayout>
最佳答案
您可能需要查看Crouton library :
关于java - 如何在android中制作覆盖窗口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19812895/