2011년 7월 14일 목요일

My Android 개발팁 1 (in Menifest)

    <application android:icon="@drawable/icon" android:label="@string/app_name">
     <!-- icon: .png  res/drawable-hdpi  (72*72),
                                /drawable-ldpi   (36*36),
                                /drawable-mdpi (48*48)
           label: icon 아래의 Application 제목으로 쓰임.
      -->
        <activity android:name=".UnitMainActivity"
            android:theme="@android:style/Theme.NoTitleBar"
            <!-- 타이틀바를 없앤다
                   java code: requestWindowFeature(Window.FEATURE_NO_TITLE);
                  상태바까지 없앰: "@android:style/Theme.NoTitleBar.FullScreen"
            -->
            android:screenOrientation="portrait"
            <!-- 세로화면으로 고정한다 -->
            android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".UnitActivity"
            android:theme="@android:style/Theme.NoTitleBar"  
            android:screenOrientation="portrait"                    
            android:windowSoftInputMode="adjustResize"     
            <!-- ScrollView에 많은 EditBox시 필요 (ScrollView외의 View 고정) -->
            />
        <activity android:name=".ShowActivity"
                  android:theme="@android:style/Theme.Dialog"
                  android:screenOrientation="portrait">
        </activity>
    </application>

댓글 없음:

댓글 쓰기