首页 > 其他 > 详细

开发小Tips

时间:2018-01-01 19:55:27      阅读:302      评论:0      收藏:0      [点我收藏+]

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

原文:https://www.cnblogs.com/yanyojun/p/8168433.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!