开发者社区> 问答> 正文

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>

图片说明

展开
收起
爵霸 2016-06-12 08:35:44 1675 0
1 条回答
写回答
取消 提交回答
  • 一定要正确的设置SDK的环境变量

    2019-07-17 19:33:07
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
58同城Android客户端Walle框架演进与实践之路 立即下载
Android组件化实现 立即下载
蚂蚁聚宝Android秒级编译——Freeline 立即下载