全部 文章 问答 分享 共找到1387个相关内容
[问答] ViewGroup中ImageView的堆叠问题
自定义组合控件在继承viewGroup的时候,里面的子View是ImageView,在布局的时候,第一个Imageview不论是先layout还是后layout,都不会显示在最上面。
[问答] android studio 闪退
(View.java:22114)
at android.view.ViewGroup.layout(ViewGroup.java:6335)
2021-05-26 17:32
·
异常
[问答] 自定义控件ViewGroup流式布局在Layout里面放子类View 的时候,运行UI界面只能显示一行数据。
自定义控件ViewGroup视频里流式布局在Layout里面放子类View的时候,子类只能显示一行,打Log运行出来currentBottom已经自加了这是MainActivityjava代码packagecom.yucha.customcontrolactivity
2021-01-01 20:56
·
Android
[问答] 报错:FATAL EXCEPTION: main 怎么解决
;at android.view.ViewGroup.drawChild(ViewGroup.java:4388)
at android.view.ViewGroup.dispatchDraw
2023-07-17 16:42
·
Android

[文章] 【Android】tabLayout改变标签文字大小时发生的跳闪问题解决方法
><FrameLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width
[问答] android写轮播图代码没问题,运行起来啥也不显示
>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http:
2022-06-02 22:01
·
代码没报错但是运行起来什么也没有
[问答] android 问题 Error inflating class fragment
;
import android.view.View;
import android.view.ViewGroup;
public class HomeFragment extends Fragment
2022-07-03 15:51
·
Android

[文章] Rejecting re-init on previously-failed class java.lang.Class 解决
(int,android.view.ViewGroup,boolean)(LayoutInflater.java:423)atandroid.view.Viewandroid.view.LayoutInflater.inflate
[问答] 关于fragment与activity之间的通讯问题
Fragment fragmentById = getSupportFragmentManager().findFragmentById(R.layout.right_fragment);
//方式2
android.app.Fragment

[文章] 你可能不知道的 MaterialButton
可实现方案圆角Shape+ViewGroup+ImageView+TextView圆角Shape+ViewGroup+TextView自定义TextViewMaterialButton缘灭在app.gradle

[文章] 如何在 Android 中绘制色卡效果
实现思路方案1使用ViewGroup(比如:ConstraintLayout套在最外层,然后里面一个TextView和两个用于设置背景色的View)<androidx.constraintlayout.widget.ConstraintLayoutandroid
[问答] Android自定义View课程中的KeyPadView测量子view时出现的问题
自定义ViewGroup代码
package com.example.customview.customview.keypad
2022-09-08 17:09
·
Android

[文章] 【领券联盟】笔记:视频29,30-实现轮播图
fragment_home_pager布局中添加looper_pager<androidx.viewpager.widget.ViewPagerandroid:id="@+id/looper_pager"android
2020-03-30 16:46
·
课堂笔记

[文章] 【Android源码】Activity和AppCompatActivity的setContentView方法区别
Viewview){getWindow().setContentView(view);initWindowDecorActionBar();}publicvoidsetContentView(Viewview,ViewGroup.LayoutParamsparams
[问答] 轮播图那个案例,滑动到第二张图片的时候app闪退,求解决。。。
-wrap12(android.app.ActivityThread,android.app.ActivityThread$ActivityClientRecord,android.content.Intent
2020-11-12 18:37
·
轮播图案例
[问答] 喜马拉第三集雅视频教学中导入SDK后立马运行 APP可以运行 但是有错
;atandroid.view.Viewandroid.view.LayoutInflater.inflate(org.xmlpull.v1.XmlPullParser,android.view.ViewGroup
2020-05-08 23:49
·
喜马拉雅

[文章] 动画详解之视图动画
=null);}}}这里调用了函数invalidateChildInParent(),需要注意的是这里这个函数的实现有两个,一个是ViewGroup中,而另一个是ViewRootImpl。
[问答] RecycleView中使用了View Binding
package com.example.myapplication.adapter import android.view.LayoutInflater

[文章] 【android学习笔记一】用户界面常见控件
用户界面常见控件常见控件TextView1.让textView里面的内容水平居中:android:gravity="center_horizontal"2.让textView控件在它的父布局里水平居中
[问答] RelativeLayout 子布局重叠点击问题
android:clickable="true" android:layout_height="match_parent"> &
[文章] Android 智能刷新框架SmartRefreshLayout
它继承自ViewGroup而不是FrameLayout或LinearLayout,提高了性能。
2020-08-03 23:25
·
UI

[文章] JavaScript面向对象
height){this.height=height;}getWidth(){returnthis.width;}getHeight(){returnthis.height;}}写到这里,突然有一个想法,把android
- 1
- 2
- 3
- 4
- 5
- 6
- 47