android eclipse 布局文件修改为默认LInearLayout

修改默认为LinearLayout布局
D:\360Downloads\adt-bundle-windows-x86-20130522\sdk\tools\templates\activities\BlankActivity\root\res\layout\activity_simple.xml.ftl(activity_simple_xml.ftl源文件保存在360云盘的software中)


<LinearLayout 
xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
    android:layout_width=<#if buildApi lt 8 >"fill_parent"<#else>"fill_parent"</#if>
    android:layout_height=<#if buildApi lt 8 >"fill_parent"<#else>"fill_parent"</#if> >


    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world"
        tools:context=".${activityClass}" />


</LinearLayout>

猜你喜欢

转载自blog.csdn.net/hulan_baby/article/details/40154211