The button under Android realizes the effect of text and text mixing

Button realizes the mixed arrangement effect of text and text. The specific contents are as follows

1、 Introduction

This paper introduces two kinds of mixed arrangement of pictures and texts

1. Android: drawabletop = "@ drawable / Star" realize that there are pictures on the text

Of course, up and down, left and right, etc

2. Imagespan of spannablestring realizes mixed arrangement of text and text

2、 Code example

design sketch:

One, two, three, four is the first way

The following uses the second method

code:

fry.Activity02

/buttonDemo1/res/layout/activity02.xml

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>