2016-07-30 73 views

回答

0

爲您的文本視圖中創建一個自定義佈局

// inflate text view 
    TextView textView = (TextView) getLayoutInflater().inflate(R.layout.customtextview, null); 


// this is a custom layout that you to add at the text view and it should include text and image view as your requirement 
    LinearLayout layoutForText = (LinearLayout)findViewById(R.id.layout_for_text); 
layoutForText.addView(main); 
相關問題