jav_cn 2015-09-11 13:38 采纳率: 57.1%
浏览 1499
已采纳

android的界面设计总是出错,大神帮忙看看这种方法错在哪里

这是按键的代码
style="@style/ll_linear">

    <Button
        style="@style/btn_operand"
        android:text="7" />

    <Button
        style="@style/btn_operand"
        android:text="8" />

    <Button
        style="@style/btn_operand"
        android:text="9" />
    <Button
        style="@style/btn_operate"
        android:text="/" />
</LinearLayout>

    这是格式的代码
    <style name="btn_operand">
    <item name="android:background">@color/gray</item>
    <item name="android:gravity">center</item>
    <item name="android:textColor">@color/black</item>
    <item name="android:textSize">70sp</item>
    <item name="android:layout_weight">1</item>
    <item name="android:layout_height">match_parent</item>
    <item name="android:layout_width">match_parent</item>
</style>
<style name="btn_operate" parent="btn_operand">
    <item name="android:textColor">@color/white</item>
    <item name="android:background">@color/org</item>
</style>
![图片说明](https://img-ask.csdn.net/upload/201509/11/1441978664_232095.png)
  • 写回答

3条回答 默认 最新

  • jav_cn 2015-09-12 05:26
    关注

    一定要正确的设置SDK的环境变量

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记