找到约 10000 条结果
  • Android 上使用library时xml使用自定义属性提示 error: Error parsing XML: unbound prefix
    刚刚在用Android-Bootstrap的时候遇到的 在xml里面引用命名空间 {代码...} {代码...}
    2014-05-03
  • Android 用 SlidingUpPanelLayout 实现 Google Music 豆瓣FM 等可拖动滑动面板
    SlidingUpPanelLayout 这个库好像是基于官方的 SlidingPaneLayout 修改而来的 {代码...} 首先是布局 {代码...} 然后再把这两个 FrameLayout replace 上 Fragment 就可以用啦 {代码...}
    2014-10-06
  • 我想只把键盘和输入框那个layout弹上去只有键盘弹出,而且toolbar的颜色会延生到下面 这是设置为adjustPan以后,会把整个界面顶上去,我只想顶输入框activity_chat.xml {代码...} view_toolbar.xml {代码...}
    2016-01-23
    4
  • 从 Auto Layout 的布局算法谈性能
    在上一篇文章中,我们提到了 iOS 界面的渲染过程以及如何对渲染过程进行优化。ASDK 的做法是将渲染绘制的工作抛到后台线程进行,并在每次 Runloop 结束时,将绘制结果交给 CALayer 进行展示。
    2016-09-01
    1
  • {代码...} {代码...}
    2017-04-08
  • 所以最近,使用 Android Studio 2.2 有一个新的 ConstraintLayout 可以让设计变得更容易,但与 RelativeLayout 和 Linearlayout 不同,我不能使用 ScrollView 环绕 ConstraintLayout 。这可能吗?如果是这样,怎么做?
    2022-10-18
    2
    ✓ 已解决
  • 你写了一些没必要的约束,或者约束之间冲突了,我之前看 Auto Layout 也做过这个,可以参考一下: 左: 中: 右: 其中 Proportional Width to: Superview 一项的参数为 0.31: TVC中(这里没能用 Auto Layout 解决,不太满意,有知道怎么做的求指教!): {代码...} 结果: 变宽也一样(丑出声。。。):
    2016-01-22
  • 目标是想让Toolbar不被DrawerLayout的NavigationView遮盖,一直显示。 以下代码运行于Android Studio 2.1.2, 手机5.1.1
    2016-10-22
    6
  • 请问一下这种情况是什么原因,谢谢! 应该是从0开始的,但是前3个挡住了 这是我的布局代码 {代码...}
    2018-02-07
    2
    ✓ 已解决
  • 我必须在向上滚动时隐藏底部导航视图并在向下滚动时显示。如何实现这个?我的布局是这样的 {代码...} 我附上了视图的屏幕截图。请检查一下。 原文由 Karthik Thunga 发布,翻译遵循 CC BY-SA 4.0 许可协议
    2022-10-18
    2
    ✓ 已解决
  • 使用constraintlayout {代码...}
    2019-08-16
  • 如题,android 点击后颜色没有变化是为什么? 以下是具体代码 {代码...} 视图代码如下: {代码...}
    2023-08-18
    3
    ✓ 已解决
  • 有没有办法让 CardView 在顶部只有角半径? {代码...} 原文由 terencey 发布,翻译遵循 CC BY-SA 4.0 许可协议
    2022-10-18
    2
    ✓ 已解决
  • Content Hugging and Compression Resistance Explained
    In a given view, there may be extra space horizontally and not enough vertically, or vice versa(或者相反). There may also be extra or not enough in both directions.
    2017-05-31
  • 在cellForItemAtIndexPath处设置断点,检查cell.frame是否是你预期的。不过话说为什么不用auto layout
    2015-01-30
  • 我在我的应用程序中使用 ConstraintLayout 来制作应用程序布局。 I am trying to a create a screen wheren one EditText and Button should be in center and Button should be below of EditText with a marginTop 只有 16dp。
    2022-10-18
    2
    ✓ 已解决
  • 1.recyclerview的使用gridlayoutManager布局,每行有四个元素。布局的item使用framelayout作为根布局的时候没有卡顿的现象,在使用ConstraintLayout作为根布局的时候就会卡顿,检测发现cpu消耗比较厉害。
    2017-03-24
    1