2 個標簽具有單獨的背景和邊框,并且這些標簽與背景之間應該有距離。
uj5u.com熱心網友回復:
您可以添加這兩個屬性:
<android.support.design.widget.TabLayout
...
app:tabPaddingStart="10dp"
app:tabPaddingEnd="10dp" />
我之前發現了同樣的問題,你可以在那里找到答案:https ://stackoverflow.com/a/36511524/9040853
我希望你發現我的回答很有用。
uj5u.com熱心網友回復:
歡迎,在另一個視圖之上保持這樣的視圖(那個勾號)被稱為Overlapping Layouts,你可以通過使用相對布局來做到這一點,畫廊視圖和影像視圖將重疊
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@ id/gallerylayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Gallery
android:id="@ id/overview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<ImageView
android:id="@ id/navigmaske"
android:background="#0000" /*use #000000 for black colour*/
android:src="@drawable/navigmask" //put your image here
android:scaleType="fitXY"
android:layout_alignTop="@id/overview"
android:layout_alignBottom="@id/overview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</RelativeLayout>
參考帖
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/411577.html
標籤:
上一篇:滾動視圖中帶有文本的多個影像視圖
