手机里的“劳力士”
来源:互联网 发布:士兵突击知乎 编辑:程序博客网 时间:2024/04/27 13:46
Java文件
package com.example.clock;
import android.app.Activity;
import android.app.ActionBar;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.os.Build;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.fragment_main);
}
}
XML文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:background="#99ccff"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
tools:context="com.example.clock.MainActivity$PlaceholderFragment" >
<AnalogClock
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<DigitalClock
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14px"
android:textColor="#f0f"
android:drawableRight="@drawable/ic_launcher"
/>
<AnalogClock
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:dial="@drawable/watch"
android:hand_minute="@drawable/hand"
/>
</LinearLayout>
- 手机里的“劳力士”
- 给老婆买的劳力士
- 手机中的劳力士:HTC是执迷不悟还是不悔?
- 手机里的照片
- 手机里的flash
- 手机里的传感器
- Rolex 劳力士时间之神的完美化身
- 自定义view————Android上的劳力士
- 劳力士 ROLEX
- 在手机的世界里
- 手机里的图片在相册里显示不了
- 手机里暗藏的十个秘密
- 【转】您手机里的秘密
- 如何让手机里的“隐私”“天衣无缝”
- 手机里暗含的秘密 大吃一惊
- 手机里暗含的秘密 大吃一惊
- 获取手机通讯录里的电话号码
- 手机里你不知道的功能
- js数组的操作
- 算法基础第一篇:排序汇总(2)
- zoj1025 贪心
- 第十四周阅读程序1
- 从文件路径中获取文件名(含格式)、文件类型、文件名
- 手机里的“劳力士”
- jsp和Servlet之间传值出现乱码的解决方案
- 利用js调用iframe中父页面/子页面中的JavaScript方法
- ffmpeg参数说明
- amlogic 红外遥控器适配 remote.conf
- 用一个闭包定义对象的属性的例子: JavaScript函数重载
- 导入EXCEL报错:"外部表不是预期的格式错误"、文件格式和扩展名不匹配,文件可能已损坏或不安全的解决方法
- Linux下Nginx+Tomcat整合的安装与配置
- MFC学习之第六天 异形窗口二