開發小Tips
阿新 • • 發佈:2018-01-01
splash print action style 開發 標題欄 標題 定義 add
Kotlin語言篇:
1、抽象類的定義
1 abstract class Person(var name : String, var age : Int) : Any() { 2 3 abstract var addr : String 4 abstract val weight : Float 5 6 abstract fun doSwim() 7 8 fun doFly() { 9 println("doFly") 10 } 11 12 fun doEach() { 13 println("doEach")14 } 15 }
2、去掉標題欄
1 <application 2 android:allowBackup="true" 3 android:icon="@mipmap/ic_launcher" 4 android:label="@string/app_name" 5 android:roundIcon="@mipmap/ic_launcher_round" 6 android:supportsRtl="true" 7 android:theme="@style/Theme.AppCompat.Light.NoActionBar"> 8 <activity android:name=".activity.SplashActivity"> 9 <intent-filter> 10 <action android:name="android.intent.action.MAIN" /> 11 12 <category android:name="android.intent.category.LAUNCHER" /> 13 </intent-filter> 14 </activity> 15 </application>
開發小Tips