【发布时间】:2017-12-31 15:20:45
【问题描述】:
我的 ListView 在我的应用程序中不可见。
布局文件中添加了ListView,如下图,但模拟器显示为图片。
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.yds.Pages.CokCikanListActivity"
>
<CheckBox
android:id="@+id/checkboxYapildimi"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:color="#3bbdfa"
android:focusable="false"
android:focusableInTouchMode="false" />
<ListView
android:id="@+id/listViewCCList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:divider="#ffffff"
android:dividerHeight="1dp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_weight="0.44" />
</android.support.constraint.ConstraintLayout>
【问题讨论】:
-
为了得到答案,你应该编辑你的问题,明确你在问什么
-
@sinan yilmaz 谢谢。加 1。
标签: android android-layout listview