SmallActivity创建

来源:互联网 发布:淘宝网店流量的重要性 编辑:程序博客网 时间:2024/06/06 02:09
SmallActivity创建的时候要做特殊调整
在配置文件中调整ctivity的主题为:
 android:theme="@android:style/Theme.Translucent.NoTitleBar" 
在布局文件中调整
把根节点调整大小为下面的大小,
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="200dp"
    android:layout_height="200dp"
    android:background="#207044"
    tools:context=".SmallActivity" >


    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="SmallActivity"
        android:textSize="30sp" />


</RelativeLayout>
0 0
原创粉丝点击