标题:关于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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-459073-1-1.html




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

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