當前位置:首頁 » 安卓系統 » 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.運行效果圖

熱點內容
坦洲郵政局可以解壓嗎 發布:2024-05-03 20:09:55 瀏覽:731
二級程序編譯答案 發布:2024-05-03 18:41:35 瀏覽:653
領動自動精英版是哪個配置 發布:2024-05-03 18:37:30 瀏覽:150
java編譯器中cd什麼意思 發布:2024-05-03 18:36:00 瀏覽:389
傳奇伺服器如何刷錢 發布:2024-05-03 18:36:00 瀏覽:977
安卓版twitter怎麼注冊 發布:2024-05-03 18:28:05 瀏覽:893
Python邏輯優先順序 發布:2024-05-03 18:26:14 瀏覽:267
linux查看svn密碼 發布:2024-05-03 18:12:47 瀏覽:804
地鐵逃生怎麼進入游戲安卓 發布:2024-05-03 17:49:35 瀏覽:992
aws雲存儲 發布:2024-05-03 17:48:50 瀏覽:955