【发布时间】:2015-03-26 21:51:51
【问题描述】:
我是 android 新手,我在网上制作了 psd 到 pngs,现在我有各种 pngs。 我需要设计 UI,其中有一个背景图像和一个菜单图标图像
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:src="@drawable/shape"
android:background="@drawable/shapes"
android:text="Button" />
我尝试将它们设置为背景,但我有两个图像如何做到这一点。还可以在其上设置文本图像。 我的 psd 到 png 链接是 here 我有多个图像。
【问题讨论】:
-
您能解释一下吗?标记 png 的区域,即您要尝试的区域。
-
不工作:(我已经这样做了。我有两张图片在我的图片中寻找它写欢迎菜单的地方。第一个是背景第二个是图像图标(菜单)
-
这是我在这里提到的文件:s7.postimg.org/dj2cjoil7/pngs2.png
-
所以你只想做那部分?
-
你能用简单的话告诉我们你想做什么吗?
标签: android android-layout layout