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>