# TextView with icon

**URL:** <https://discourse.processing.org/t/textview-with-icon/14630>\
**Category:** Processing for Android\
**Created:** [October 12, 2019, 1:21pm UTC](https://discourse.processing.org/t/textview-with-icon/14630 "2019-10-12T13:21:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [October 12, 2019, 1:21pm UTC](https://discourse.processing.org/t/textview-with-icon/14630/1 "2019-10-12T13:21:00Z")

</div>

Hi.  
I want to add an icon to my TextView with something like:

```auto
TextView tv = (TextView) findViewById(TxtViewIdNumber);
tv.setCompoundDrawablesWithIntrinsicBounds(R.drawable.icon, 0, 0, 0)

```

But since I only have the data directory, how can I access or link the icon?
