フラグメント上のリストビューを作成しました。フラグメントのリストビューは表示されません
<?xml version="1.0" encoding="utf-8"?>
<android.support.wearable.view.BoxInsetLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#ddffff"
xmlns:app="http://schemas.android.com/apk/res-auto"
>>
<android.support.wearable.view.WearableListView
android:id="@+id/mylist"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbars="none"></android.support.wearable.view.WearableListView>
</android.support.wearable.view.BoxInsetLayout>
が、私は私のアプリを実行すると、リストビューが表示されない:
public class MyList extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
view = inflater.inflate(R.layout.mylist, container, false);
return view;
}
}
この
は、リストビューでxmlファイルです。画面全体が黒です。私が知りたいのは、なぜこれが起こっているのかです。ため、次の行にタイプミスの
あなたのデータを 'adapter'に渡し、' listview' [HERE](http://www.learnandroidwear.com/sample-1/)に 'adapter'を渡してください。あなたはアダプタについてのアイデアを得ることができます。 –