Android 将listview项目的位置更改为右侧
我一直在使用listview和数组,我正在努力解决的是,我希望listview的项目位于右侧而不是左侧,滚动条位于左侧 以下是我的xml:Android 将listview项目的位置更改为右侧,android,listview,Android,Listview,我一直在使用listview和数组,我正在努力解决的是,我希望listview的项目位于右侧而不是左侧,滚动条位于左侧 以下是我的xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="
<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="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="36dp"
android:background="#00688B"
android:cacheColorHint="#fff"
android:clickable="true"
android:fastScrollEnabled="false"
android:smoothScrollbar="true"
android:gravity="center_vertical" >
</ListView>
</LinearLayout>
给你一个链接,你将不得不作出一些改变 在main.xml中,您可以删除ImageView并将以下标记设置为TextView
android:layout_alignParentRight="true"
其他内容仅在该站点中
希望这对你有帮助
android:layout_alignParentRight="true"