-5

嗨,我正在尝试在 android 中获取以下屏幕,请帮助我如何获取以下附加屏幕。 在此处输入图像描述

4

1 回答 1

1

GUI 中还有什么请显示完整的 GUI 图片或您尝试过的代码android:background="@drawable/ur_background_name"如果您不了解布局,您可以使用 textView 添加 ImageButton 或 Button 来将背景设置为布局中的 GUI 使用。 .. 然后阅读这个,但在这里你可以使用垂直方向的线性布局,然后使用 TextView,然后使用 Button 或 ImageButton 并为其添加背景,请确保它只是一个按钮而不是微调器,微调器基本上是下拉菜单单击它的列表,您还可以使用按钮的样式,在可绘制文件夹中创建形状 XML 文件并编写下面给出的代码

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
  android:shape="rectangle">
  <gradient android:startColor="#545253" 
    android:endColor="#000000"
    android:angle="270" />
  <corners android:radius="15dp" />
  <stroke android:width="2px" android:color="#eecc68" />
</shape>
于 2013-11-07T10:02:47.447 回答