sách gpt4 ăn đã đi

android - ImageView 在另一个 ImageView 之上

In lại 作者:太空狗 更新时间:2023-10-29 14:34:19 29 4
mua khóa gpt4 giày nike

我有一个列表布局,其中包含如下所示的项目:

alt text

首先有一个 ImageView(灯光),然后是两个 textView。所有这些都在 TableLayout 中。 (来源:http://code.google.com/p/switchctrl/source/browse/trunk/android/res/layout/device_switch.xml)

当此特定设备(灯)执行操作或对其执行操作时,我希望在此灯的顶部有一个加载指示器的旋转动画。

我如何将动画放在这个灯光 ImageView 之上?

câu trả lời hay nhất

试试这个:



xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">

<>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/Frame">

<>
android:layout_height="wrap_content"
android:id="@+id/Image1" />
<>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/Image2" />


android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="1"
android:orientation="vertical"
android:id="@+id/TextLayout">

<>
android:text="@+id/Line1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/Line1" />
<>
android:text="@+id/Line2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/Line2" />


关于android - ImageView 在另一个 ImageView 之上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3048315/

29 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress