我想在上面过的ImageButton设置相关图片如下顶部对齐图像上的ImageButton
但我不能够这样做。如果我使用下面的代码
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<ImageButton
android:id="@+id/btn"
android:layout_width="40dip"
android:layout_height="40dip"
android:src="@drawable/button_bar_top"
android:scaleType="fitStart"
android:adjustViewBounds="true"
/>
</LinearLayout>
而且我正在下面看看
所以我想将其调整到顶部,我想删除周围的红色条微胖。图像的大小是40×10和ImageView的宽度也是相同的
是否绘制button_bar_top有填充的东西?它是一个图像或XML文件? –
添加您的布局文件。 – Bhavin
我同时拥有图像和形状,图像没有任何填充 – Hunt