当前位置:首页 » 安卓系统 » android短信界面

android短信界面

发布时间: 2022-11-03 17:39:35

㈠ android中如何美化发送短信息的程序界面。

1.跟开发WEB程序一样,先做出UI界面,因为这里我们是要实其功能,界面不作过多的美化。代码如下:
Activity_main.xml
<TextView
android:id="@+id/tv_input_number" //这个是提示用户输入电话号码的TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/please_input_number"
android:textSize="20px" />
<EditText
android:id="@+id/et_number" //这个是输入电话号码的文本框
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_input_number"
android:ems="10"
android:inputType="phone" >
</EditText>
<TextView
android:id="@+id/tv_input_content" //提示输入内容的文本
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/et_number"
android:layout_below="@+id/et_number"
android:text="@string/please_input_content"
android:textSize="20px"
android:textColor="#333333"
/>
<EditText
android:id="@+id/et_content" //这是输入文本内容的文本编辑器
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tv_input_content"
android:singleLine="true"
android:lines="5"
android:inputType="textMultiLine" />
<Button
android:id="@+id/bt_send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/et_content"
android:layout_below="@+id/et_content"
android:layout_marginTop="17dp"
android:height="30px"
android:text="@string/send"
android:textColor="#ff3333"
android:textSize="20px" />
</RelativeLayout>
备注:要注意创建相应该元件的ID号。
2.开始实功能代码.在MainAcivity.java文件中加入以下代码:
MainAcivity.java
public class MainActivity extends ActionBarActivity implements OnClickListener {
private EditText et_number;
private EditText et_content;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
et_number = (EditText) findViewById(R.id.et_number);
et_content= (EditText) findViewById(R.id.et_content);
Button bt_send=(Button) findViewById(R.id.bt_send);
bt_send.setOnClickListener(this);
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.bt_send:
String number=et_number.getText().toString().trim();
String content=et_content.getText().toString().trim();
if(TextUtils.isEmpty(number)||TextUtils.isEmpty(content)){
Toast.makeText(this, "手机号和内容不能为空", Toast.LENGTH_LONG).show();
return;
}else{
SmsManager smsManger=SmsManager.getDefault();
ArrayList<String> contents=smsManger.divideMessage(content);
for(String str:contents){
smsManger.sendTextMessage(number, null, str, null, null);
}
}
break;
default:
break;
} }}

㈡ android 如何进入短信编辑界面

Intent intent = new Intent("android.intent.action.SENDTO",
Uri.parse("smsto:" + "手机号"));
intent.putExtra("sms_body","test"); //默认短信文字
startActivity(intent);

㈢ 怎样修改安卓系统背景和短信背景悬赏

Android手机系统背景更换,短信界面透明。
工具/原料
re浏览器
电脑端压缩软件(好压orWinRaR)
方法/步骤
下面系统背景更换教程步骤十分简单。当然,前提是手机已经root。下面是详细的步骤,只要认识下面的字都会操作)
1、用re浏览器打开; system/framework,复制SemcGenericUxpRes.apk到SD卡2、将文件放到电脑桌面,最好能备份一份,将后缀.apk改为.zip!3、打开压缩包,将res文件夹拉出来4、系统背景图就在res/drawable-hdpi中5、找到图片semc_ bg.png,这个就是我们需要更换的图片了这步就是机油自由发挥的时候了,随便更改美化,然后再将图片替换上就是了7、将原压缩包的res文件夹删除,将换好图的res重新放入8、将.zip重新改为.apk然后放回SD卡9、用RE浏览器将已修改的xx.apk放到system中,先修改权;限。(原来的权限!)这一步很重要,不要和第十步顺序搞错了!!10、修改完权限后再将xx.apk移到到framework覆盖原文件11、重启~~OK!!注意:第9和第10步一定要注意!!切勿掉乱顺序
下面短信界面透明教程先从原ROM里提取出未编译过的mms.apk
一、反编译Mms.apk二、路径res/drawable/conversation_item_background_read.xml 打开,找到;<item android:state_selected="false"android:drawable="@color/read_bgcolor" />修改为:<item android:state_selected="false"android:drawable="@android:color/transparent" />保存,退出!!!三、路径res/drawable/conversation_item_background_unread.xml 打开,找到<item android:state_selected="false"android:drawable="@color/unread_bgcolor" />修改为:<item android:state_selected="false"android:drawable="@android:color/transparent" />保存,退出四、路径res/layout/compose_message_activity.xml 打开,找到<EditText android:textSize="16.0sp"android:textColorHint="#ff858585"android:id="@id/subject"android:visibility="gone"android:layout_width="fill_parent"android:layout_height="wrap_content" android:layout_marginLeft="3.2999878dip"android:layout_marginTop="5.299988dip"android:layout_marginRight="3.2999878dip" android:hint="@string/subject_hint"android:singleLine="true"android:maxLength="40"android:capitalize="sentences"android:autoText="true" />修改里面android:textColorHint="#ff858585"为:android:textColorHint="#00000000"再找到:<EditText android:textSize="18.0sp"android:textColor="@touchwiz:color/tw_color002"android:textColorHint="#ff858585"android:gravity="top"android:id="@id/embedded_text_editor"android:background="#ffffffff"android:nextFocusRight="@id/send_button"android:layout_width="wrap_content" android:layout_height="fill_parent"android:layout_marginLeft="10.0dip"android:layout_marginTop="12.0dip"android:hint="@string/type_to_compose_text_enter_to_send" android:capitalize="sentences"android:autoText="true"android:layout_toLeftOf="@id/sendbuttons"android:layout_alignParentLeft="true" android:inputType="textCapSentences|textAutoCorrect|textMultiLine"android:imeOptions="actionSend|flagNoEnterAction" />修改里面两段代码:android:textColorHint="#ff858585"修改为android:textColorHint="#00000000"
END
注意事项
手机要root
经验内容仅供参考,

㈣ ANDROID 系统的 G6更新后每次打开短信界面都是显示第一行

呵呵,还好啊,安卓的短信就这么显示的,自己习惯了就好

㈤ 安卓系统 如何设置接收短信时 直接在桌面上显示

需要下载飞信,(如果之前有直接显示过而现在弄没了,那么你把它取消的界面就是在飞信里的)。打开飞信设置:主菜单——设置——快速回复——打开快速回复(打勾)本人今天也在纠结这个,现在找到了。

㈥ Android系统手机如何设置状态栏不显示未读信息提示

如您的Android系统手机不需要在状态栏里显示未读信息请进入信息界面—》点击菜单键,选择“设置”功能—》不勾选“通知”(上述内容仅适用于广东联通用户)

㈦ Android系统手机如何查看信息详情

如您需要查看Android系统手机的详细信息请进入信息界面—》选择信息—》长按信息,出现快捷键—》选择“查看详情”功能(上述内容仅适用于广东联通用户)

㈧ 安卓系统怎么呼出手机信息界面

设置——关于手机。
还有查看测设信息:拨号界面输入*#*#4636#*#*,输完即跳出页面。

㈨ 安卓系统,短信界面跟通讯录界面的背景怎么美化 啊

需要root权限,找/systerm/app/Contacts.apk,以zip形式打开,替换里面的背景图片

㈩ 怎样使用android创建一个手机信息页面

用Android Studio创建一个名为“手机信息页面”的程序,该程序用于展示手机设置页面的信息。

1.运行效果图

热点内容
什么安卓模拟器可以截图扫码 发布:2025-03-05 06:05:04 浏览:712
源网络硬盘源码 发布:2025-03-05 05:56:16 浏览:979
拉力竞速安卓用什么手柄 发布:2025-03-05 05:37:13 浏览:895
C编译多个 发布:2025-03-05 05:21:16 浏览:508
ftp有cd命令吗 发布:2025-03-05 04:47:20 浏览:576
云服务器比物理机的优势 发布:2025-03-05 04:46:05 浏览:467
俺妈密码是什么 发布:2025-03-05 04:40:46 浏览:160
yacclex编译器 发布:2025-03-05 04:35:37 浏览:151
安卓相片怎么转另一个手机 发布:2025-03-05 04:23:40 浏览:545
解压要素 发布:2025-03-05 04:16:05 浏览:791