小编Vis*_*nth的帖子

不使用setBackgroundDrawable方法以编程方式安装Android Button或TextView Border

我正在寻找一种方法,以编程方式为textview或按钮设置边框,而不使用setBackgroundResource方法.

我试图在这里实现的目标是,动态地改变背景颜色,但具有固定的边框.当我使用setBackgroundResource方法作为背景边框时,在以编程方式更改背景颜色后,边框不会保留.

android border button textview

18
推荐指数
1
解决办法
3万
查看次数

输出:mount.nfs:不支持请求的 NFS 版本或传输协议

我正在复制控制器示例 [1] 中尝试 Kubernetes NFS 卷声明。

我已经设置了 NFS 服务器、PV 和 PVC。我的复制控制器看起来像这样

apiVersion: v1
kind: ReplicationController
metadata:
  name: node-manager
  labels:
    name: node-manager
spec:
  replicas: 1
  selector:
    name: node-manager
  template:
    metadata:
      labels:
        name: node-manager
    spec:
      containers:
      -
        name: node-manager
        image: org/node-manager-1.0.0:1.0.0
        ports:
        -
          containerPort: 9763
          protocol: "TCP"
        -
          containerPort: 9443
          protocol: "TCP"
        volumeMounts:
          - name: nfs
            mountPath: "/mnt/data"
      volumes:
      - name: nfs
        persistentVolumeClaim:
          claimName: nfs
Run Code Online (Sandbox Code Playgroud)

当我尝试部署Replication Controller时,容器处于ContainerCreating状态,我可以在minion的日志中看到以下错误

Feb 26 11:39:41 node-01 kubelet[1529]: Mounting arguments: 172.17.8.102:/ /var/lib/kubelet/pods/0e66affa-dc79-11e5-89b3-080027f84891/volumes/kubernetes.io~nfs/nfs nfs []
Feb 26 11:39:41 node-01 …
Run Code Online (Sandbox Code Playgroud)

nfs vagrant vagrantfile kubernetes

6
推荐指数
1
解决办法
8276
查看次数

标签 统计

android ×1

border ×1

button ×1

kubernetes ×1

nfs ×1

textview ×1

vagrant ×1

vagrantfile ×1