How to write Text on ImageView in android coding?

后端 未结 4 1485
攒了一身酷
攒了一身酷 2020-12-06 06:08

Hi I\'ve been trying to write Numbers on Imageview. Images for N number of questions. If the user entered answer is correct, then it should be displayed with question number

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-06 06:33

    From the Android documentation :

    BitmapDrawable(Bitmap bitmap) This constructor was deprecated in API level 4. Use BitmapDrawable(Resources, Bitmap) to ensure that the drawable has correctly set its target density.

    You can also create your own view (see Android: Creating Custom Views tutorial for an example) and put you image and the text in this view.

提交回复
热议问题