Google 還宣布 Google Cast 開發者網站, 提供 Google Cast Developer Preview. 通過 Google Cast Developer Preview, 可以開發運行在 Android, iOS, 和 Chrome 上的 sender 應用程序, 以及運行在縮減版本的Chrome 上的 receiver 應用程序.
2013年7月25日星期四
谷歌推出 Chromecast (HDMI 串流電視棒), 只售 $35 美元
Google 還宣布 Google Cast 開發者網站, 提供 Google Cast Developer Preview. 通過 Google Cast Developer Preview, 可以開發運行在 Android, iOS, 和 Chrome 上的 sender 應用程序, 以及運行在縮減版本的Chrome 上的 receiver 應用程序.
2013年7月24日星期三
通過 Java 設定旋轉角度 setRotation()
適用 API Level 11:
![]() |
| 通過 Java 設定旋轉角度 |
package com.example.androidview;
import android.os.Bundle;
import android.app.Activity;
import android.widget.ImageView;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ImageView image = (ImageView)findViewById(R.id.image);
image.setRotation(270);
}
}
<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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher" />
</RelativeLayout>
通過XML設定旋轉角度 android:rotation
例子:
<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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/ic_launcher"
android:rotation="45.0" />
</RelativeLayout>
2013年7月17日星期三
比爾·蓋茨在微軟研究院教育高峰會2013開幕主題演講
Bill Gates Opening Keynote at Microsoft Research Faculty Summit 2013
微軟董事長比爾·蓋茨在微軟研究院教育高峰會2013討論計算研究如何可以改善我們的世界.
2013年7月13日星期六
2013年7月11日星期四
訂閱:
留言 (Atom)

