R
R
Roman Kuzmenko2016-10-19 16:37:51
Android
Roman Kuzmenko, 2016-10-19 16:37:51

How to programmatically set background and rounded corners for FrameLayout in Android?

Hello!
How in Android to programmatically set the background and rounded corners for a FrameLayout that is in a widget? (RemoteViews)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2016-10-19
@YuryBorodkin

have you tried remoteViews.setInt(R.id.my_view, "setBackgroundResource", R.drawable.my_drawable)?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question