简介 目录 评价 推荐
  • 慕的地2220355 2023-05-07

    http://img4.mukewang.com/64576c0a0001e4aa28601590.jpg

    materialButton

    http://img2.mukewang.com/64576c1d000158b314340912.jpg

    http://img1.mukewang.com/64576c540001d79112820182.jpg

    http://img1.mukewang.com/64576e5400016a3913120838.jpg

    0赞 · 0采集
  • zhaiduting 2023-04-03

    我并没有配置 implementation 'com.google.android.material:material:1.5.0' 为什么 <com.google.android.material.button.MaterialButton /> 仍然可以正常显示?

    机器人回答

    如果您没有在 build.gradle 文件中添加 implementation 'com.google.android.material:material:1.5.0',而仍然可以在布局文件中使用 <com.google.android.material.button.MaterialButton />,则可能是因为您的项目依赖于另一个库或库中包含该依赖项。

    例如,如果您的项目依赖于 androidx.appcompat 库,则 androidx.appcompat 库将包含 MaterialButton 控件的依赖项,因此您无需单独添加它们。在这种情况下,如果您在布局文件中使用 MaterialButton 控件,则它将正常显示,因为它已经在 androidx.appcompat 库中可用。

    另外,请注意,如果您在应用程序的主题中使用了 MaterialComponents 主题(例如 Theme.MaterialComponents.Light),则您可以在应用程序中使用 Material Design 控件而不需要单独添加其依赖项。这是因为 MaterialComponents 主题已经包含了这些控件的依赖项。

    0赞 · 0采集
  • 尽予听书络 2022-12-16

    MaterialButton

    1. project模式下——app——build.gradle

    在里面写这句依赖"com.google.android.material:material:1.3.0"

    再点击“Sync Now”(同步)

    https://img.mukewang.com/639be19e0001b39409710500.jpg

    2. project模式下——app——src——main——AndroidManifest.xml

    在里面写这句依赖"com.google.android.material:material:1.3.0"

    FirstApp那里左键点击

    http://img3.mukewang.com/639be4280001a3bf11050503.jpg

    将这里改为


     

    0赞 · 0采集
  • weixin_慕姐1306574 2022-09-04

    笔记

    0赞 · 0采集
  • weixin_慕姐1306574 2022-09-04

    笔记

    0赞 · 0采集
  • qq_寺西_0 2022-02-09

    去除边距

    0赞 · 0采集
  • qq_寺西_0 2022-02-09

    MaterialButton  


    添加依赖

    com.google.android.material:material:1.3.0


    修改主题

    android:theme="@style/Theme.MaterialComponents.Light.NoactionBar"

    0赞 · 0采集
  • KeeLiang 2021-10-06

    MaterialButton按钮

    0赞 · 0采集
  • KeeLiang 2021-10-06

    songyubao.com/book/primary

    0赞 · 0采集
  • qq_慕丝6288745 2021-09-26

    ### 添加依赖

    > implementation 'com.google.android.material:material:1.3.0'

    ### 主题修改

    > android:theme="@style/Theme.MaterialComponents.Light.NoActionBar"

    > 在Manifest.xml中,application节点下,修改theme关联的themes.xml 
    > parent="Theme.MaterialComponents.Light.NoActionBar"

    0赞 · 0采集
数据加载中...
开始学习 免费