class MyClass
constructor(
private val value1: Int,
var value2: String,
value3: Int,
)- 这里的
private val value1: Int表示传入参数 value1 并赋值给命名为 value1 的成员变量 - value3 参数只在构造方法中使用
| package adb_tools | |
| import ( | |
| "fmt" | |
| "log" | |
| "os/exec" | |
| "strings" | |
| ) | |
| func RunAdb(args ...string) { |
| ### Keybase proof | |
| I hereby claim: | |
| * I am donglua on github. | |
| * I am donglua (https://keybase.io/donglua) on keybase. | |
| * I have a public key ASC0uWQWVisv533-0eaRZJw39kRpmkBbCKWwkbiKiUhi9Qo | |
| To claim this, I am signing this object: |
| git rm --cached `git ls-files -i --exclude-from=.gitignore` |
class MyClass
constructor(
private val value1: Int,
var value2: String,
value3: Int,
)private val value1: Int表示传入参数 value1 并赋值给命名为 value1 的成员变量| import android.content.Context; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.Drawable; | |
| import android.net.Uri; | |
| import android.text.Html; | |
| import android.view.View; | |
| import android.widget.TextView; | |
| import com.bumptech.glide.Glide; |
| Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
| All Clickable Views: | |
| ----------- | |
| * ripple effect (Lollipop only) -- "colorControlHighlight" | |
| Status Bar: | |
| ------------ | |
| * background (Lollipop only) - "colorPrimaryDark" |
| import android.content.Context; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| import org.jetbrains.annotations.NotNull; | |
| import org.jetbrains.annotations.Nullable; | |
| public class EmptyRecyclerView extends RecyclerView { | |
| @Nullable View emptyView; |
| rails new demo --skip-test-unit | |
| bundle install | |
| rails server | |