Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
xml では、ドローアブルを TextView のテキストの左、右、下、または上に設定できます。コードを使用してこのドローアブルを設定/変更する方法はありますか?
TextView textView = (TextView)findViewById(R.id.myTxtView); textView.setCompoundDrawablesWithIntrinsicBounds( R.drawable.icon, //left 0, //top 0, //right 0);//bottom