私はアンドロイド開発/SmartEyeGlass SDKが初めてで、画面の正中線の上に何か(テキスト、画像など)を置くことができるかどうか疑問に思っています. <ImageView>
をlayout.xmlに入れてエミュレーターにロードすると、画像の上端が画面の中央に表示されます。可能であれば、どんな提案も大歓迎です。
レイアウト.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="@dimen/smarteyeglass_control_width"
android:layout_height="@dimen/smarteyeglass_control_height"
android:background="@android:color/black"
android:orientation="vertical"
android:weightSum="2"
tools:ignore="ContentDescription,PxUsage" >
<ImageView
android:id="@+id/test_image"
android:src="@drawable/test"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" />
</LinearLayout>