我目前的佈局顯示不是全屏的活動(沒關係)。如何創建顯示在指定屏幕位置的android活動?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="100dip"
android:layout_height="200dip" >
<TextView android:layout_height="wrap_content" android:id="@+id/textView1"
android:layout_width="fill_parent" android:text="@string/hello"></TextView>
我還添加機器人:主題= 「@安卓風格/ Theme.Translucent」 體現了我的活動。
我的200x100dip活動現在顯示在左上角。我怎樣才能指定我的線性佈局(或我的活動)的位置?
我將最外面的佈局更改爲相對佈局,我可以在dp中使用哪個參數? – DixieFlatline