草庐IT

android - Android 布局检查器中的灰色 View 是什么意思?

在AndroidStudio中,Tools->LayoutInspector,ViewTree中的灰色View是什么意思?该层仍然具有VISIBLE属性我没有在文档中看到任何解释,https://developer.android.com/studio/debug/layout-inspector悬停View时没有工具提示。您可以downloadthe.lilayoutcaptureinquestionhere对于上下文/引用,我试图弄清楚为什么fragment没有出现在id/content_container中,https://gitlab.com/gitlab-org/gitter

android listview 背景颜色保持灰色,在 Gingerbread 手机上无法更改

我的页面上有一个简单的ListView。无论我将背景设置为什么-无论是图像还是颜色,它都保持灰色。如果我用行填充ListView,行背景颜色会适当显示。此行为仅在Gingerbread手机(到目前为止的droidx和droid3)上表现出来。在模拟器和其他Froyo手机中,它工作正常。 最佳答案 尝试在ListView的布局中设置android:overScrollFooter="@null"。 关于androidlistview背景颜色保持灰色,在Gingerbread手机上无法更改,

android - 如何删除我的 Android 应用程序底部的灰色条?

出于某种原因,我的应用程序底部有一个灰色条:我似乎无法摆脱它。这是我的Activityxml:这是布局:样式.xml:@color/colorPrimary@color/colorPrimaryDark@color/colorAccentfalsetrue 最佳答案 很简单。实际上,@dimen值(value)观在这里起着至关重要的作用。android:paddingBottom="@dimen/activity_vertical_margin"您可以在此处activity_vertical_margin设置值"0dp"或只是删除此

android - 我的 Google+1 按钮显示为灰色且无法使用?

我正在尝试将G+按钮集成到ma应用程序中。G+按钮变灰了。它不计数。如何变成红色?publicclassHomeActivityextendsSherlockActivityimplementsConnectionCallbacks,OnConnectionFailedListener{privatestaticfinalStringURL="https://play.google.com/store/apps/details?id=com.phoneix.allu";privatestaticfinalintPLUS_ONE_REQUEST_CODE=0;privatestaticf

android - 样式被忽略, Lollipop 中的一切都是灰色的

我正在尝试更改应用程序的样式,但一切都是灰色的。有什么问题?我正在使用安卓工作室。这个项目最初是在eclipse上。我没有在AndroidStudio上使用Lollipop构建它styles_materialred.xml:@drawable/selectable_background_materialred@style/PopupMenu.Materialred@style/DropDownListView.Materialred@style/ActionBarTabStyle.Materialred@style/DropDownNav.Materialred@style/Actio

flutter - 在 Flutter 中使用半透明灰色填充渲染的 RaisedButton

我在一个列内有一个RaisedButton,它在一个堆栈内Stack(children:[PageView(children:[...],),Column(crossAxisAlignment:CrossAxisAlignment.center,mainAxisAlignment:MainAxisAlignment.end,children:[RaisedButton(color:Colors.teal,child:Text("Button"),),...),...但是,按钮不是用青色填充渲染的,而是灰色和半透明的。HereitisontopofanorangeContainer.我有

flutter - 在 Flutter 中使用半透明灰色填充渲染的 RaisedButton

我在一个列内有一个RaisedButton,它在一个堆栈内Stack(children:[PageView(children:[...],),Column(crossAxisAlignment:CrossAxisAlignment.center,mainAxisAlignment:MainAxisAlignment.end,children:[RaisedButton(color:Colors.teal,child:Text("Button"),),...),...但是,按钮不是用青色填充渲染的,而是灰色和半透明的。HereitisontopofanorangeContainer.我有

android - 捕获相机预览以在 OpenCV 中使用。转换为 RGB 和灰色垫。 java 。安卓

我想检测相机预览中的人脸。我在OpenCV样本中看到了这个例子:@OverrideprotectedBitmapprocessFrame(VideoCapturecapture){capture.retrieve(mRgba,Highgui.CV_CAP_ANDROID_COLOR_FRAME_RGBA);capture.retrieve(mGray,Highgui.CV_CAP_ANDROID_GREY_FRAME);if(mCascade!=null){intheight=mGray.rows();intfaceSize=Math.round(height*FdActivity.m

android - 为什么 OAuth 流程中的 GitHub 授权按钮是灰色的?

我正在构建一个使用OAuth将用户登录到GitHub的Android应用程序。我按照说明here这样做。作为流程的第一部分,我将用户发送到URLhttps://github.com/login/oauth/authorize?scope=repo&client_id=MY_CLIENT_ID但是,当我在我的Android设备上登录时,Authorizexxxx按钮显示为灰色,我无法点击它。有谁知道这是为什么?(下面的大屏幕截图)我认为按钮之前可能没有变灰,这是我第一次运行应用程序并登录时。但是,我不能确定,因为我很匆忙。 最佳答案

Android 背景颜色设置为灰色而不是@android :color/white

在我的应用程序中,所有背景设置为@background="@android:color/white"的View都可以在除SamsungGalaxyS3mini之外的所有设备上正确显示。在这种情况下,所有这些View都设置为灰色背景。在此特定情况下,包含复选框的LinearLayout的背景应为白色:...我尝试将android:background="@android:color/white"替换为android:background="#FFFFFF",但唯一可行的解​​决方案是在我的drawable目录中创建一个white_bg.xml:并将背景设置更改为android:backg