0
A
回答
0
您還可以在非道德way..its相當快捷的方式實現這一目標來實現這個....嘗試......
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff" >
<EditText
android:id="@+id/edittext"
android:layout_width="fill_parent"
android:layout_height="90dp"
android:layout_alignLeft="@+id/button"
android:layout_below="@+id/textView1"
android:layout_marginTop="61dp"
android:background="@drawable/border"
android:ems="10"
android:inputType="text"
android:text="hia" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="20dp"
android:layout_marginTop="46dp"
android:background="#ffffff"
android:clickable="false"
android:text="vvvv"
android:textSize="24dp" />
</RelativeLayout>
0
使用從HERE
複製裏面的佈置此佈局<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:background="@android:color/white">
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
android:background="@android:color/white" android:padding="5dp"
android:text="Testing"
android:layout_marginLeft="30dp" android:textColor="@android:color/black" />
<RelativeLayout
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:background="@drawable/frame"
android:orientation="vertical" android:padding="20dp"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true">
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="Main Content" android:layout_centerInParent="true" />
</RelativeLayout>
</RelativeLayout>
創建一個frame.xml
內部可繪製
<shape xmlns:android="schemas.android.com/apk/res/android">
<stroke android:width="1px" android:color="@color/black" /><padding android:left="1dp"
android:top="1dp"
android:right="1dp"
android:bottom="1dp" />
</shape>
相關問題
- 1. 附加到文件的Android
- 2. 附加文本Javascript
- 3. 附加文本與文本的UITextField
- 4. 附加到文本文件
- 5. Android附加特定文件
- 6. Android ACTION_SEND附加文件
- 7. 如何附加到android中的文本文件?
- 8. 文本不附加 - C#
- 9. jquery自動附加文本
- 10. C#附加文本與Encoding.UTF8
- 11. MongoDB GridFS PHP附加文本
- 12. Android - 在文本文件中附加Specfic行
- 13. Laravel Form中的附加/預附加文本selectRange
- 14. Java FileWriter - 附加文本文件行
- 15. 使用PrintStream附加到文本文件
- 16. 使用WriteAllLines附加到文本文件
- 17. 附加文本文件與Python
- 18. Python文本文件附加錯誤
- 19. 附加文本輸入/ jQuery的
- 20. 在Java的JTextArea中附加文本
- 21. jQuery的移除附加文本
- 22. 將文本附加到Android TextView但不可編輯
- 23. 如何通過使用附加文件,同時附加一個文本文件
- 24. 將文本附加到包含文本的現有字段
- 25. 附加一個文本框的值在第一次文本框
- 26. 你如何覆蓋而不是附加到Android中的文本文件?
- 27. 當從Android的txt文件中讀取unicode文本時附加'a'char字符串
- 28. 將div附加到文本區域?
- 29. 在div上編輯附加文本 - knockout.js
- 30. JointJS附加文本不可見
是對一些頂級的文本視圖其他視圖/沒什麼特別/ –
[legend and fieldset in android]可能的重複(http://stackoverflow.com/questions/12155353/legend-and-fieldset-in-android) –
你可以用WebView來實現這個任務 –