0
我在畫布上做了一些繪畫。 我有一個多行edittext。 如何在畫布上顯示多行文字?如何檢索EditText多行文本,因爲它是Android?
<EditText
android:id="@+id/input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
final TextView textview = (TextView) view.findViewById(R.id.input);
....
@Override
public void onClick(View v) {
text = textview.getText().toString();
...//Here I store the input from edittext in the string.
如果輸入是多行的,如何將它作爲多行存儲在字符串中?
非常感謝!
您可以發佈任何例子..? –
您是否在Draw方法上以編程方式添加edittext –
我已經添加了我的示例 – user3678711