Vertical TextView taking too much space in Android

后端 未结 11 1667
鱼传尺愫
鱼传尺愫 2021-02-01 04:02

I am trying to create something like the following using LinearLayout and TableLayout:

\"enter

11条回答
  •  礼貌的吻别
    2021-02-01 04:19

        val textPaint = Paint(Paint.ANTI_ALIAS_FLAG)
        textPaint.textSize=toPx(16)
        textPaint.color=Color.parseColor("#FFFFFF")
        canvas.save()
        canvas.translate(50F, 60F)
        canvas.rotate(90F)
        canvas.drawPaint(textPaint)
        canvas.drawText("YourText", 0F,0F, textPaint)
        canvas.restore()
    

提交回复
热议问题