小编Dee*_*yee的帖子

找到了google-services.json,但它表示您似乎无法访问的项目ID

在Firebase Option Android Studio中,当我点击"连接到firebase"时,我收到以下错误.

找到了"google-services.json",但它表示您似乎无法访问的项目ID.请求访问或删除文件以继续进行连接过程.

我不知道如何请求访问和删除.我该怎么办?

android firebase android-studio

13
推荐指数
2
解决办法
2万
查看次数

如何以编程方式使用OutlineBox创建TextInputLayout

我想用Widget.MaterialComponents.TextInputLayout.OutlinedBox样式创建TextInputLayout.我尝试了很多方法,但无法获得所需的结果.这是我的代码.

TextInputLayout textInputLayout = new TextInputLayout(getActivity(),null,R.style.Widget_MaterialComponents_TextInputLayout_OutlinedBox);
textInputLayout.setHint("My Hint");
TextInputEditText editText = new TextInputEditText(textInputLayout.getContext());
textInputLayout.addView(editText);
parentView.addView(textInputLayout);
Run Code Online (Sandbox Code Playgroud)

我也尝试过:

TextInputLayout textInputLayout = new TextInputLayout(getActivity(),null,TextInputLayout.BOX_BACKGROUND_OUTLINE);
Run Code Online (Sandbox Code Playgroud)

我想创建这样的视图.在此输入图像描述

android android-layout android-styles material-design textinputlayout

11
推荐指数
1
解决办法
3612
查看次数