Show the list as clickable需要進行右對齊的圖像和中心
從上面的帖子我能有顯示的圖像,但它僅出現在標題文本的第一行。如果標題是2行或更多行,我希望它是中心對齊的。
Android Imageview中的設置會讓我這樣做嗎?
Show the list as clickable需要進行右對齊的圖像和中心
從上面的帖子我能有顯示的圖像,但它僅出現在標題文本的第一行。如果標題是2行或更多行,我希望它是中心對齊的。
Android Imageview中的設置會讓我這樣做嗎?
這裏是它的代碼將在中心顯示圖像
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="#FFFFFF"
android:layout_gravity="center"
>
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/splash"
android:scaleType="centerInside"
android:gravity="center"
/>
</LinearLayout>
這是行不通的。我正在使用相對佈局 – Angelking
檢查了這一點http://stackoverflow.com/questions/10075475/android-relative-layout-cant-make-image-on-center –
放佈局代碼請 –