andriod 侧滑菜单 Item 最后一个置底退出按钮 怎么能让item中的按钮置底 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <LinearLayout android:id="@+id/logout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/item_lin" android:orientation="horizontal"> <Button android:id="@+id/exitbtn" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_gravity="bottom" android:background="@color/button_exit" android:text="退出" android:textColor="@color/white" /> </LinearLayout></RelativeLayout> 不能置底的原因 : 你的 LinearLayout 的高度 是 wrap_content, 那么其高度 与 Button 高度是一样的; 累死 也 无法 在 LinearLayout 中 置底; Button 中设置一个 margin_top 20dip 属性 那么 看起来就置底了想实现啥效果 给个草图 我帮你设计下 使用 RelativeLayout LinearLayout 无法 置底 使用 RelativeLayout 就行了 我的就是RelativeLayout中的LinearLayout android:layout_alignParentBottom="true" 这个属性应该写在linearlayout里面 android:layout_alignParentBottom="true" 这个我加上了 不过这个只能将退出的button置底于当前RelativeLayout或者LinearLayout的整个类似panel的底下 不是整个页面的底下。后来我想着用一个 RelativeLayout或者一个LinearLayout把中间的地方给撑起来 ,但是这个要区分手机的屏幕大小,不能适配全部机型大小。所以还是没有好的解决方法 [急]关于android模拟器和DDMS进行交互的问题 Android开发者的出路 有关于EditText的问题,高手快来帮忙解决一下啊 linux上wireless_tools移植android 100分请教高手两个make文件的问题 怎么让手机root? root软件是如何做到? 手机调试,拔掉usb之后停止运行 华为手机调用file.delete方法不能正常删除文件,残留一个0B的文件 大家帮看看,这样的功能用下面哪种方法实现比较合理? Android studio eclipse中R文件生成报错 Android中实现一分钟内某条件没有发生就执行某操作
android:id="@+id/logout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/item_lin"
android:orientation="horizontal"> <Button
android:id="@+id/exitbtn"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_gravity="bottom"
android:background="@color/button_exit"
android:text="退出"
android:textColor="@color/white" />
</LinearLayout></RelativeLayout>
你的 LinearLayout 的高度 是 wrap_content, 那么其高度 与 Button 高度是一样的;
累死 也 无法 在 LinearLayout 中 置底; Button 中设置一个 margin_top 20dip 属性 那么 看起来就置底了
想实现啥效果 给个草图 我帮你设计下