![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
杰希JC
人人可学,皆有所获!
人人可教,皆可成才!
展开
-
android实现图片平移、旋转、缩放
#效果图#文件目录activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:pad原创 2020-05-15 10:25:17 · 950 阅读 · 2 评论 -
android:Menu(菜单)
在程序中创建上下文菜单的步骤:第一步,重写Activity的onCreateContextMenu()方法,调用Menu的add()方法添加菜单项MenuItem。第二步,重写Activity的onContextItemSelected()方法,响应菜单单击事件。第三步,调用registerForContextMenu()方法,为视图View对象注册上下文菜单。#效果图#具体代码...原创 2020-04-16 15:18:13 · 176 阅读 · 0 评论 -
android:使用XML文件定义菜单项的选项菜单
##长按文本显示菜单##长按编辑框显示菜单activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" ...原创 2020-04-16 15:13:06 · 478 阅读 · 0 评论 -
android:Intent与组件通信
#Intent与组件通信具体步骤##效果图##音乐存放路径##代码实现MainActivity.javapackage com.qsd;import java.io.File;import android.app.Activity;import android.content.Intent;import android.net.Uri;import android.os...原创 2020-04-16 14:57:23 · 341 阅读 · 0 评论 -
android利用spinner选择加减乘除进行运算!!!!
#android利用spinner选择加减乘除进行运算!!!!##效果图##代码部分.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_pa...原创 2020-04-09 22:13:55 · 701 阅读 · 0 评论 -
Android简单实现加减乘除(两个EditText,两个TextView,四个button)
#Android简单实现加减乘除(两个EditText,两个TextView,四个button)##界面效果##代码activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" a...原创 2020-04-09 22:04:32 · 3509 阅读 · 3 评论 -
希望对大家有用:android实现计算器功能
android实现计算器功能线性布局表格布局activity功能实现线性布局// table_main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_w...原创 2020-04-09 09:10:50 · 363 阅读 · 0 评论