我想制造一种习俗性方言,一创造了一种转/价值/行动。
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.RCAlertDialog" parent="android:style/Theme.Dialog">
<item name="android:windowBackground">@drawable/quick_action2</item>
</style>
</resources>
a. 使用可计算单位:
i want to have two buttons inside my graphic that the sum of their two width will be as the width of the red box.How can i do it? this is the code i m using now but the result is changing from portrait to landscape mode.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<ImageButton
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginLeft="30px"
android:layout_marginTop="21px"
android:layout_weight="1"
android:background="@drawable/fav2" />
<ImageButton
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginRight="30px"
android:layout_marginTop="21px"
android:layout_weight="1"
android:background="@drawable/eat2" />
</LinearLayout>
这样做是否正确? 感谢