歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> Android應用開發:短信發送器

Android應用開發:短信發送器

日期:2017/3/1 10:29:18   编辑:Linux編程

效果圖:

界面布局:

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:Android="http://schemas.android.com/apk/res/android"
  3. android:orientation="vertical"
  4. android:layout_width="fill_parent"
  5. android:layout_height="fill_parent"
  6. >
  7. <!--顯示控件-->
  8. <TextView
  9. android:layout_width="fill_parent"
  10. android:layout_height="wrap_content"
  11. android:text="@string/moblie"
  12. />
  13. <!--文本框按鈕-->
  14. <EditText
  15. android:layout_width="fill_parent"
  16. android:layout_height="wrap_content"
  17. android:id="@+id/moblie"
  18. />
  19. <TextView
  20. android:layout_width="fill_parent"
  21. android:layout_height="wrap_content"
  22. android:text="@string/content"
  23. />
  24. <EditText
  25. android:layout_width="fill_parent"
  26. android:layout_height="wrap_content"
  27. android:minLines="3"
  28. android:id="@+id/content"
  29. />
  30. <Button
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:text="@string/button"
  34. android:id="@+id/button"
  35. />
  36. </LinearLayout>
Copyright © Linux教程網 All Rights Reserved