Android短信页面

 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="match_parent"
 5     android:layout_height="match_parent"
 6     android:padding="10dp">
 7
 8      <EditText
 9             android:layout_width="match_parent"
10             android:layout_height="wrap_content"
11             android:hint="To"/>
12
13         android:layout_width="match_parent"
14         android:layout_height="wrap_content"
15         android:layout_weight="1">
16         <EditText
17             android:layout_width="match_parent"
18             android:layout_height="wrap_content"
19             android:hint="Subject"/>
20
21         android:layout_width="match_parent"
22         android:layout_height="wrap_content"
23         android:layout_weight="4">
24         <EditText
25             android:layout_width="match_parent"
26             android:layout_height="wrap_content"
27             android:hint="Massage"
28             android:height="360dp"
29             android:gravity="top"/>
30     <LinearLayout
31         android:layout_width="match_parent"
32         android:layout_height="wrap_content"
33         android:layout_weight="1">
34         <Button
35             android:layout_width="0dp"
36             android:layout_height="wrap_content"
37             android:text="Reset"
38             android:id="@+id/button3"
39             android:layout_weight="1"/>
40
41         <Button
42             android:layout_width="0dp"
43             android:layout_height="wrap_content"
44             android:text="Send"
45             android:id="@+id/button4"
46             android:layout_weight="1"/>
47
48     </LinearLayout>
49
50 </LinearLayout>

短信界面

时间: 2024-08-07 19:07:12

Android短信页面的相关文章

Android 短信验证码控件

Android 短信验证码控件,便于项目中使用统一样式,统一提示修改,个人认为挺好用的 <span style="font-size:18px;">public class SMSButton extends Button { /** 是否展示 */ private boolean mAttached; /** 发送验证码后等待的时间 */ private int delayTime = 60; /** Button 上面的文本 */ private String show

andorid中发送短信页面以及邮件发送

跳转到发送短信页面 Uri smsToUri = Uri.parse("smsto://10086"); Intent mIntent = new Intent( android.content.Intent.ACTION_SENDTO, smsToUri ); startActivity( mIntent ); 我们都知道,在Android中调用其他程序进行相关处理,几乎都是使用的Intent,所以,Email也不例外. 在Android中,调用Email有三种类型的Intent: 

Android短信彩信收发流程(应用层)

下图为ComposeMessageActivity中confirmSendMessageIfNeeded部分的信息发送流程.主要以接收者有效性的确认为主,然后转向sendMessage方法进行发送. ComposeMessageActivity.sendMessage从下图可以看出,在这个方法中,主要做的事是确认手机状态的有效性.最终调用WorkingMessage的send方法进行信息的发送.  WorkingMessage.send从下图可以看出,在本方法中,对于不同类型的消息,分别调用不同

Android短信监听(三)——利用Loader实现短信监听

MainActivity如下: package cc.c; import android.net.Uri; import android.os.Bundle; import android.app.Activity; import android.app.LoaderManager.LoaderCallbacks; import android.content.Context; import android.content.Loader; import android.database.Curs

Android短信监听(二)——利用ContentObserver实现短信监听

MainActivity如下: package cc.testsmslistener; import cc.testsmslistener.SMSContentObserver.MessageListener; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.widget.TextView; import android.app.Activity; /** *

Android短信监听(一)——利用BroadcastReceiver实现短信监听

MainActivity如下: package cc.testsmsbroadcastreceiver; import cc.testsmsbroadcastreceiver.SMSBroadcastReceiver.MessageListener; import android.os.Bundle; import android.widget.TextView; import android.app.Activity; /** * Demo描述: * 利用BroadcastReceiver实现

Android -- 短信

背景                                                                                           主要代码                                                                                      发送按钮的监听器: phone_number_editText = (EditText) findViewById(R.id.phon

初识安卓小程序(Android短信发送器)

首先,先创建一个安卓项目(我的版本是4.4.2的),名字为"短信发送器" 然后在res文件夹下找到layout文件夹,找到activity_main.xml或fragment_main.xml,在里面输入或拖拽按钮 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tool

Android短信插入器源码

package com.examp.createsms; import android.app.Activity; import android.content.ContentResolver; import android.content.ContentValues; import android.net.Uri; import android.os.Bundle; public class MainActivity extends Activity { @Override protected