| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3302 人关注过本帖
标题:关于AppWidget的问题
只看楼主 加入收藏
yu1543054075
Rank: 1
等 级:新手上路
帖 子:102
专家分:8
注 册:2015-4-30
结帖率:90.24%
收藏
 问题点数:0 回复次数:1 
关于AppWidget的问题
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >
    <TextView
        android:id="@+id/tv"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="#ff0000"
        android:textSize="20sp"
        android:text="测试使用了PendingIntent和RemoteViews的appwidget窗口控件"></TextView>
    <Button
        android:id="@+id/bt"
        android:layout_width="fill_parent"
        android:layout_height="100dp"
        android:text="测试"></Button>
   

</LinearLayout>
图片附件: 游客没有浏览图片的权限,请 登录注册

为什么虚拟手机上显示的按钮会那么小,跟我设置的按钮高度不符?请大神指教!!!
搜索更多相关主题的帖子: background android vertical version 
2015-11-10 19:21
kevin_01
Rank: 2
等 级:论坛游民
帖 子:36
专家分:83
注 册:2013-11-23
收藏
得分:0 
dp是设备独立像素,这与模拟器的分辨率是有关的

Hello  World !
2015-11-29 21:38
快速回复:关于AppWidget的问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.051303 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved