小编Mos*_*bel的帖子

除了那些之外,android中还有其他传感器吗?

到目前为止,我在Android设备中找到了以下传感器.我将开发一个应用程序,提供有关设备中所有可用传感器的信息.为此我需要知道Android设备可以拥有多少传感器,下面给出了这些传感器?

  • 陀螺仪传感器
  • 光传感器
  • 方向传感器
  • 接近传感器
  • 温度感应器
  • 加速计传感器
  • 声音
  • 磁场
  • 压力

任何参考链接,有用的评论将不胜感激.

android-sensors

8
推荐指数
2
解决办法
129
查看次数

如何在Android XML Linear Layout中设置中心底部的按钮?

我正在尝试在线性布局的中心和底部放置一个按钮.我使用下面的代码,它不起作用.你们可以帮助我吗?

<Button
            android:id="@+id/button1"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:layout_gravity="center|bottom"
            android:background="#C01831"
            android:onClick="meonFb"
            android:textColor="#ffffff"
            android:layout_alignParentBottom="true"
            android:text="Talk to Developer" />
Run Code Online (Sandbox Code Playgroud)

母亲的布局是,

 <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="fill_parent"
        android:layout_margin="12dp"
        android:background="#f9f9f9"
        android:orientation="vertical"
        android:padding="10dp" >

</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

android android-layout

0
推荐指数
1
解决办法
5832
查看次数

标签 统计

android ×1

android-layout ×1

android-sensors ×1