在 Android 中,如何在 ListView 下方设置大小相同的按钮。按钮还应显示和指示正在运行的活动:
示例:&imgdii=&imgrc=UZQjvC20IaJ_PM%3A%3BraF-YhtnnBxVuM%3Bhttp%253A%252F%252Fwww.handster.com%252Feditimg%252Fjob_search_android_device.jpg%3Bhttp%253A%252F%252Fwww.handster.com%252Fproduct-review 253Fid%253D198%3B250%3B375">https://www.google.co.in/search?q=Bottom+Buttons+in+Android&source=lnms&tbm=isch&sa=X&ei=ETDyUd64I4mzrAfbrYHYAw&ved=0CAkQ_AUoAQ&biw=1600&bih=799#facrc= &imgdii = &imgrc=UZQjvC20IaJ_PM%3A%3BraF-YhtnnBxVuM%3Bhttp%253A%252F%252Fwww.handster.com%252Feditimg%252Fjob_search_android_device.jpg%3Bhttp%253A%252F%252Fwww.handster.com%252Fproduct-review.php%253Fid% %3B250%3B375
我尝试使用 TabActivity,但不想使用它,因为它现在是 Android 4.0 之后不推荐使用的方法。
下面是我的代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<ListView
android:id="@+id/rssfeed_listview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:divider="#b5b5b5"
android:dividerHeight="1dp"
android:listSelector="@drawable/list_selector" />
</LinearLayout>