package ice.hrbeu.helloandroid;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
第3章代码.zip
共36个文件
xml:11个
png:10个
properties:3个
需积分: 0 1 下载量 26 浏览量
2023-10-17
19:44:25
上传
评论
收藏 142KB ZIP 举报
温馨提示
第3章代码.zip
资源推荐
资源详情
资源评论
收起资源包目录
第3章代码.zip (36个子文件)
HelloAndroid
gradle.properties 1KB
gradle
wrapper
gradle-wrapper.jar 53KB
gradle-wrapper.properties 236B
app
src
androidTest
java
ice
hrbeu
helloandroid
ExampleInstrumentedTest.java 783B
test
java
ice
hrbeu
helloandroid
ExampleUnitTest.java 399B
main
java
ice
hrbeu
helloandroid
MainActivity.java 1KB
res
mipmap-xxhdpi
ic_launcher_round.png 12KB
ic_launcher.png 8KB
mipmap-hdpi
ic_launcher_round.png 5KB
ic_launcher.png 4KB
drawable-v24
ic_launcher_foreground.xml 2KB
mipmap-anydpi-v26
ic_launcher.xml 276B
ic_launcher_round.xml 276B
menu
main.xml 206B
values-night
themes.xml 849B
mipmap-mdpi
ic_launcher_round.png 3KB
ic_launcher.png 3KB
mipmap-xxxhdpi
ic_launcher_round.png 16KB
ic_launcher.png 10KB
mipmap-xhdpi
ic_launcher_round.png 7KB
ic_launcher.png 5KB
values
colors.xml 387B
strings.xml 184B
themes.xml 849B
layout
activity_main.xml 491B
drawable
ic_launcher_background.xml 6KB
AndroidManifest.xml 948B
proguard-rules.pro 770B
libs
build.gradle 1KB
.gitignore 6B
gradlew.bat 2KB
build.gradle 553B
settings.gradle 49B
local.properties 436B
gradlew 5KB
.gitignore 240B
共 36 条
- 1
资源评论
2301_77979053
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功