全部 文章 问答 分享 共找到160个相关内容
[问答] 整型 Int 与 dp 之间的换算关系
写动画的时候,targetValue 是 Int 型,我想要根据 dp 值 换算得到 int 值, 有这种换算关系吗?
2022-08-11 19:41
·
android
[问答] 安卓pad应用目标视图居右距上100dp布局使用RelativeLayout
布局代码与Preview效果如图然而真机效果却显示居右,距顶部100dp不起作用
2020-07-29 18:09
·
布局
[问答] ScrollView滚动条遮住了其他控件
:layout_marginTop="160dp"android:layout_marginEnd="20dp"android:clickable="true"android:orientation="
2021-03-01 08:53
·
控件被遮住
[问答] 想问一道算法题
trim().toCharArray();
char[] s2 = in.readLine().trim().toCharArray();
int[][] dp
2022-07-24 12:38
·
算法

[文章] 你可能不知道的 MaterialButton
"@+id/btn_like"android:layout_width="match_parent"android:layout_height="50dp
[问答] 这个输入框怎么才能在别的控件的上面
@+id/jiaoziStd_video"
android:layout_width="match_parent"
android:layout_height="200dp
2022-02-19 01:50
·
Android
[问答] CradView弄个圆角
里面的子项则是一个个CardView
// 最外层设置成圆角 10dp
2022-09-17 16:40
·
Android
[问答] Android这个输入框bug怎么解决
nbsp; android:layout_width="match_parent"
android:layout_height="60dp
2022-02-15 00:13
·
Android

[文章] 动态规划 -- 简单入门
=newint[n+1];dp[0]=0;dp[1]=1;for(inti=2;i<=n;i++){dp[i]=dp[i-1]+dp[i-2];}returndp[n];}}也可以不用数组classSolution
2022-08-05 11:21
·
算法
[问答] 请问OptionMenu如何调节宽度?右边空白太多,是不是调节不了?
--设置不覆盖锚点--><itemname="android:minWidth">10dp</item><!

[文章] 0-1 背包问题
假设现在背包重量为4,物品有3个,价值val={2,1,3},对应的重量weight={4,2,3},那么结果应为6.初始化一个dp[N][W]数组,其中dp[i][w]表示对于前i个物品,当背包容量为
2022-08-03 20:26
·
算法
[问答] 这段代码我明明写了右边却没有显示右边
LinearLayoutandroid:layout_width="match_parent"android:layout_height="wrap_content"android:layout_marginTop="50dp"android
2019-12-05 15:00
·
代码与视频教程的问题

[文章] android-UI学习记录-CSDN个人主页
"android:layout_marginLeft="5dp"/><Buttonandroid:layout_width="70dp"android
2020-01-17 12:07
·
android学习
[问答] Android 手机验证码登陆问题!
activity.LogActivity"><ImageViewandroid:layout_width="match_parent"android:layout_height="@dimen/dp
2021-03-05 13:45
·
手机验证码登陆
[问答] 约束布局 padding无效呢? 设置padding 背景图就跟着变大 ,没有padding效果
<androidx.cardview.widget.CardViewandroid:id="@+id/constraintLayout2"android:layout_width="0dp"android
2021-01-25 17:50
·
约束布局

[文章] 【领券联盟】笔记:视频96,97-显示搜索历史和推荐关键字并实现删除历史记录UI
quot;match_parent"android:layout_height="wrap_content"android:layout_marginTop="10dp
2020-04-09 15:26
·
课堂笔记
[问答] github下载的项目TwinklingRefreshView安装后不能打开
wrap_content"android:layout_width="match_parent"android:theme="@style/AppTheme.AppBarOverlay"app:elevation="0dp
2020-05-05 17:42
·
安卓问题
[问答] 根据framlayout注入fragment实现切换ui不显示的问题
"
android:layout_width="60dp"
android:layout_height="60dp"
android
2022-05-06 22:54
·
领券联盟
[问答] 自定义View集成MagicIndicator后titleIView不显示文字
:layout_width="300dp"android:layout_height="340dp"><LinearLayoutandroid:orientation="horizontal"android

[文章] android单位转换工具类
android单位转换工具类我们如果要在代码里直接填写尺寸,一般是px,如果要做好屏幕适配,我们通常使用dp作为单位。这里给大家一个工具类。

[文章] 【领券联盟】笔记:视频31-首页标题已及ViewPager的预加载
quot;center"android:orientation="horizontal"><Viewandroid:layout_width="10dp
2020-03-31 00:36
·
课堂笔记

[文章] 【领券联盟】笔记:视频86,87,88-实现搜索记录缓存
quot;><LinearLayoutandroid:layout_width="match_parent"android:layout_height="40dp
2020-04-07 01:52
·
课堂笔记

[文章] 单位转换工具类
#单位转换工具类dp和px之间的关系取决于具体设备上的像素密度,densitydensity=px/dp;//根据手机分辨率从dp转成pxpublicclassSizeUtils{publicstaticintdip2px
2020-03-16 14:45
·
android

[文章] 7、Android开发基础之编写计算器UI例子
quot;><LinearLayoutandroid:layout_width="match_parent"android:layout_height="80dp

[文章] Android tv开发02强制聚焦到某个控件
="wrap_content"android:layout_height="wrap_content"android:layout_margin="5dp
- 1
- 2
- 3
- 4
- 5
- 6