我目前有<!-- Note `id="ce"`, all `data-target` and control `href` has to match this -->
<div class="carousel slide" id="ce" data-ride="carousel">
<!-- Indicators-->
<ol class="carousel-indicators">
<!-- Note `data-target="#ce"` -->
<li data-target="#ce" data-slide-to="0" class="active"></li>
<li data-target="#ce" data-slide-to="1"></li>
</ol>
<!-- Inner -->
<div class="carousel-inner">
<!--
The size of `.carousel-item`s should be the same,
so the first image now has the same proportion as the img in the secod slide.
Additionally all images set to `width: 100%`.
-->
<div class="carousel-item active">
<img class="w-100" src="http://via.placeholder.com/708x421/c1ae9f/ffffff?text=First+Photo">
</div>
<div class="carousel-item">
<img class="w-100" src="https://static.pexels.com/photos/450301/pexels-photo-450301.jpeg">
</div>
</div>
<!-- Carousel control -->
<!-- Note `href="#ce"` too -->
<a class="carousel-control-prev" href="#ce" data-slide="prev">
<span class="carousel-control-prev-icon"></span>
</a>
<a class="carousel-control-next" href="#ce" data-slide="next">
<span class="carousel-control-next-icon"></span>
</a>
</div>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js"></script>
我在哪里展示
移动
工作正常。
问题是,现在我想添加分页,所以我显示10&#34;移动&#34;,然后,用箭头或其他东西,链接到下一个10&#34;移动&#34;。
这是我的ListView
查看:
listview
型号:
<ListView
android:id="@+id/lstbillingnotifications"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/background_dark_grey"
android:dividerHeight="1dp"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginTop="15dp"
/>
有一些方法可以改变我已有的东西,以便它有一个页面或者必须提供一些新的控件,事实是我不清楚这个谢谢
就像那样,但final ListView lstAuxBilling = (ListView) findViewById(R.id.lstbillingnotifications);
AdapterCobroPendiente adapter = new AdapterCobroPendiente(BillingNotifications.this, items);
lstAuxBilling.setAdapter(adapter);
progressDialog.dismiss();
lstAuxBilling.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {
// no se necesita
}
});
。