1
說明: 我想在Android的AutoCompleteTextView組件的末尾放置「Powered by google」文本。我該如何在Android的AutoCompleteTextView中設置「Powered by Google」標題?
這是圖像,以確定我想要什麼?
正是我想要像上面的圖像。請幫我解決這個問題。
說明: 我想在Android的AutoCompleteTextView組件的末尾放置「Powered by google」文本。我該如何在Android的AutoCompleteTextView中設置「Powered by Google」標題?
這是圖像,以確定我想要什麼?
正是我想要像上面的圖像。請幫我解決這個問題。
爲您的文本視圖中創建一個自定義佈局
// 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);