Android AnalogClock簡單使用方法實例
本文實例講述了Android AnalogClock簡單使用方法。分享給大家供大家參考,具體如下:
AnalogClock組件的使用很簡單,先來看看效果圖:
AnalogClock組件的使用只需要在布局中指定的顯示位置寫入此組件即可使用,不需要在java代碼中進行實例化。
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <AnalogClock android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal"/> </LinearLayout>
更多關于Android開發(fā)相關內容感興趣的讀者可查看本站專題:《Android開發(fā)入門與進階教程》
希望本文所述對大家Android程序設計有所幫助。
相關文章
Android開發(fā)中Launcher3常見默認配置修改方法總結
這篇文章主要介紹了Android開發(fā)中Launcher3常見默認配置修改方法,結合實例形式分析了Android Launcher3的功能與配置修改相關操作技巧,需要的朋友可以參考下2017-11-11Android開發(fā)之CheckBox的簡單使用與監(jiān)聽功能示例
這篇文章主要介紹了Android開發(fā)之CheckBox的簡單使用與監(jiān)聽功能,結合簡單實例形式分析了Android使用CheckBox控件的布局與功能實現技巧,需要的朋友可以參考下2017-07-07Android使用WebView.loadUri()打開網頁的方法
這篇文章主要介紹了Android使用WebView.loadUri()打開網頁的方法,結合實例形式分析了Android中WebView控件的loadUri()打開網頁的使用技巧,需要的朋友可以參考下2016-01-01Android的Fragment的生命周期各狀態(tài)和回調函數使用
這篇文章主要介紹了Android的Fragments的生命周期各狀態(tài)和回調函數使用,Fragments的生命周期與Activity息息相關,需要的朋友可以參考下2016-02-02eclipse中運行monkeyrunner腳本之環(huán)境搭建(4)
這篇文章主要為大家詳細介紹了eclipse中運行monkeyrunner腳本之環(huán)境搭建的相關資料,具有一定的參考價值,感興趣的小伙伴們可以參考一下2016-12-12