当前位置: 首页 > news >正文

如何制作自己的网站的邮箱wordpress 媒体 路径

如何制作自己的网站的邮箱,wordpress 媒体 路径,网络销售怎样找客户,长安网站建设好吗目录#xff1a; 1. Test5.java2. activity_main5.xml3. Empty.java (这个是用来带参数打开Activity按钮用的)4. activity_empty.xml5. 总结 一些基本的问题就不进行说明了#xff0c;直接上代码#xff01;#xff01;#xff01; // 最后的隐形intent和带返回值没有解决… 目录 1. Test5.java2. activity_main5.xml3. Empty.java (这个是用来带参数打开Activity按钮用的)4. activity_empty.xml5. 总结 一些基本的问题就不进行说明了直接上代码 // 最后的隐形intent和带返回值没有解决 1. Test5.java package com.example.myapplication;import androidx.appcompat.app.AppCompatActivity;import android.content.ComponentName; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView;public class Test5 extends AppCompatActivity {Button Call, Browser, Note, Set, Photo, JumpDesket, XianNo, GetReturn, GetNumber, Yin;//设置一些按钮名称Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_test5);// 对按钮进行赋予功能Call findViewById(R.id.buttonCall);Note findViewById(R.id.buttonNote);Browser findViewById(R.id.buttonBrowser);Set findViewById(R.id.buttonSet);Photo findViewById(R.id.buttonPhotograph);JumpDesket findViewById(R.id.buttonJumpDesk);XianNo findViewById(R.id.buttonXianNo);GetReturn findViewById(R.id.buttonGetReturn);GetNumber findViewById(R.id.buttonGet);Yin findViewById(R.id.buttonYin);// 赋予点击能力Call.setOnClickListener(onClickListener);Note.setOnClickListener(onClickListener);Browser.setOnClickListener(onClickListener);Set.setOnClickListener(onClickListener);Photo.setOnClickListener(onClickListener);JumpDesket.setOnClickListener(onClickListener);XianNo.setOnClickListener(onClickListener);GetReturn.setOnClickListener(onClickListener);GetNumber.setOnClickListener(onClickListener);Yin.setOnClickListener(onClickListener);}// 对按钮进行写方法private final View.OnClickListener onClickListener new View.OnClickListener() {Overridepublic void onClick(View view) {//点击事件Button button (Button) view; //把点击获得的id信息传递给buttontry {if (button.getId() R.id.buttonCall) { // 打电话Intent intent new Intent();intent.setAction(Intent.ACTION_DIAL); //调用拨号面板intent.setData(Uri.parse(tel:110)); //设置要拨打的号码startActivity(intent);} else if (button.getId() R.id.buttonNote) { // 发短信Intent intent new Intent();intent.setAction(Intent.ACTION_SENDTO); //调用发送短信息intent.setData(Uri.parse(smsto:110XXXXXX)); //设置要发送的号码自己设计就好intent.putExtra(sms_body, Welcome to Android!); //设置要发送的信息内容startActivity(intent);} else if (button.getId() R.id.buttonBrowser) { // 浏览器Intent intent new Intent();// 设置浏览器地址intent.setData(Uri.parse(https://blog.csdn.net/weixin_51395608?typeblog));// 设置动作intent.setAction(Intent.ACTION_VIEW);startActivity(intent);} else if (button.getId() R.id.buttonSet) { // 设置Intent intent new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS);startActivity(intent);} else if (button.getId() R.id.buttonPhotograph) { // 拍照Intent intent new Intent(MediaStore.ACTION_IMAGE_CAPTURE);intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);startActivity(intent);} else if (button.getId() R.id.buttonJumpDesk) { // 跳转到桌面Intent intent new Intent();// 设置action动作属性intent.setAction(Intent.ACTION_MAIN);// 设置categoty种类显示主屏幕intent.addCategory(Intent.CATEGORY_HOME);startActivity(intent);} else if (button.getId() R.id.buttonXianNo) { // 显性不带参数Intent intent new Intent(Test5.this, MainActivity.class);startActivity(intent);} else if (button.getId() R.id.buttonYin) { // 隐形 待完成Intent intent new Intent();// 未完成startActivity(intent);} else if (button.getId() R.id.buttonGet) { // 带参数Intent intent new Intent(Test5.this, Empty.class);intent.putExtra(data, 我带着一些数据来了);startActivity(intent);} else if (button.getId() R.id.buttonGetReturn) { // 带返回值 // 未完成Intent intent new Intent(Test5.this, Empty.class); //跳转设置Bundle extras new Bundle();extras.putString(key, value); // startActivityForResult(intent, 1, extras); //带返回的跳转 requestCode 1} else {Log.e(orror, 未知按钮组件调用);}} catch (Exception e) {Log.e(No, main,error);}}};}2. activity_main5.xml ?xml version1.0 encodingutf-8? androidx.constraintlayout.widget.ConstraintLayout xmlns:androidhttp://schemas.android.com/apk/res/androidxmlns:apphttp://schemas.android.com/apk/res-autoxmlns:toolshttp://schemas.android.com/toolsandroid:layout_widthmatch_parentandroid:layout_heightmatch_parenttools:context.Test5TextViewandroid:idid/textView4android:layout_width276dpandroid:layout_height71dpandroid:textIntent的使用android:textSize48spapp:layout_constraintEnd_toEndOfparentapp:layout_constraintStart_toStartOfparenttools:layout_editor_absoluteY17dp /LinearLayoutandroid:idid/linearLayoutandroid:layout_width282dpandroid:layout_height495dpandroid:orientationverticalapp:layout_constraintBottom_toBottomOfparentapp:layout_constraintEnd_toEndOfparentapp:layout_constraintHorizontal_bias0.496app:layout_constraintStart_toStartOfparentapp:layout_constraintTop_toTopOfparentapp:layout_constraintVertical_bias0.444Buttonandroid:idid/buttonCallandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:text打电话tools:layout_editor_absoluteX24dptools:layout_editor_absoluteY104dp /Buttonandroid:idid/buttonNoteandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:text发短信tools:layout_editor_absoluteX24dptools:layout_editor_absoluteY152dp /Buttonandroid:idid/buttonBrowserandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:text打开浏览器tools:layout_editor_absoluteX25dptools:layout_editor_absoluteY200dp /Buttonandroid:idid/buttonSetandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:text设置tools:layout_editor_absoluteX24dptools:layout_editor_absoluteY248dp /Buttonandroid:idid/buttonPhotographandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:text拍照tools:layout_editor_absoluteX24dptools:layout_editor_absoluteY296dp /Buttonandroid:idid/buttonJumpDeskandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:text转到桌面tools:layout_editor_absoluteX24dptools:layout_editor_absoluteY344dp /Buttonandroid:idid/buttonXianNoandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:text打开另一个Activity(显性不带参数)tools:layout_editor_absoluteX24dptools:layout_editor_absoluteY394dp /Buttonandroid:idid/buttonYinandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:text打开另一个Activity(隐性)tools:layout_editor_absoluteX24dptools:layout_editor_absoluteY442dp /Buttonandroid:idid/buttonGetandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:text带参数打开另一个Activitytools:layout_editor_absoluteX24dptools:layout_editor_absoluteY490dp /Buttonandroid:idid/buttonGetReturnandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:text带返回值打开另一个Activitytools:layout_editor_absoluteX25dptools:layout_editor_absoluteY540dp //LinearLayout/androidx.constraintlayout.widget.ConstraintLayout效果没有专门去设计 3. Empty.java (这个是用来带参数打开Activity按钮用的) package com.example.myapplication;import androidx.appcompat.app.AppCompatActivity;import android.annotation.SuppressLint; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.widget.TextView;public class Empty extends AppCompatActivity {Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_empty);String currentType getIntent().getStringExtra(data);TextView t findViewById(R.id.textVE);t.setText(currentType);} }4. activity_empty.xml ?xml version1.0 encodingutf-8? androidx.constraintlayout.widget.ConstraintLayout xmlns:androidhttp://schemas.android.com/apk/res/androidxmlns:apphttp://schemas.android.com/apk/res-autoxmlns:toolshttp://schemas.android.com/toolsandroid:layout_widthmatch_parentandroid:layout_heightmatch_parenttools:context.EmptyTextViewandroid:idid/textVEandroid:layout_width243dpandroid:layout_height361dpandroid:background#FFFFFFandroid:textTextViewandroid:textColor#4A4A4Aandroid:textSize48spapp:layout_constraintBottom_toBottomOfparentapp:layout_constraintEnd_toEndOfparentapp:layout_constraintStart_toStartOfparentapp:layout_constraintTop_toTopOfparentapp:layout_constraintVertical_bias0.283 /Buttonandroid:idid/buttonandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:text返回值app:layout_constraintBottom_toBottomOfparentapp:layout_constraintEnd_toEndOfparentapp:layout_constraintStart_toStartOfparentapp:layout_constraintTop_toBottomOfid/textVEapp:layout_constraintVertical_bias0.419 / /androidx.constraintlayout.widget.ConstraintLayout效果 5. 总结 不是很难
http://www.hkea.cn/news/14427559/

相关文章:

  • 响应式网站建设公司'室内装修公司排行
  • 在那个网站做定制旅游重庆市建设工程信息
  • 网站和后台怎么撤销网站备案
  • 烟台开发区网站网站404设置
  • 赣州微网站建设费用公网ip购买
  • 北京的网站建设公司南通建设厅网站
  • 知名网站建设推广查logo的网站
  • 门户网站怎么做网站建设968
  • 余姚微信网站建设多媒体应用设计师怎么报考
  • 可以发布广告的网站做网站需要什么备案
  • 灰色网站欣赏外贸网站seo怎么做
  • 做视觉影像网站用什么软件系统广州开发区和黄埔区的关系
  • 新闻资讯专业翻译公司seo外包服务专家
  • 陕西农产品网站建设程序员自己做网站怎么赚钱
  • 网站运营预期效果做快递单的网站会不会是骗人的
  • 怎么做网站的需求邢台县建设局网站
  • 荆门做网站公司wordpress和dz
  • 深圳网站设计首选刻北京网站建设公司 北京网站设计 网页设计制作 高端网站建设 分形科技
  • 宠物网站建设需求分析网站制作商城
  • 实验室网站制作邯郸市网络建站
  • 免费网站在线制作南京学习网站建设
  • 门户网站管理流程免费微信小程序商城官网
  • 库尔勒网站建设哪家好医院导航网站怎么做
  • 广州比较有名的网站建设公司网络规划设计师教程第二版 pdf下载地址
  • 济南网站建设是什么意思网站建设 体会
  • 全国二级建造师查询网站seo美式
  • 个人免费网站wordpress环境文件包
  • 模板网站制作logo设计培训
  • 《网站建设与维护》讲义网站搜索建设
  • 庆阳网站设计公司wordpress 不更新