This gives me error: EditText messageEdit = (EditText)findViewById(R.id.description_text); Why can I not do like this on a eittext with lines?
This is how the Edittext looks like
<EditText android:id="@+id/message_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:lin开发者_JAVA百科es="3"
android:gravity="top"/>
EditText messageEdit = (EditText)findViewById(R.id.description_text);
Shouldn't that be:
EditText messageEdit = (EditText)findViewById(R.id.message_text);
(You're using the wrong ID name?)
精彩评论