亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

下面是當時的答案,總覺的有些不太優美。大家有什么好方法么?謝謝。

下面是當時的答案,總覺的有些不太優美。大家有什么好方法么?謝謝。

互換的青春 2023-04-08 18:14:50
看到的一個問題,之前也遇到過,后來便不了了之。<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:background="#ffe0e8ec"     android:orientation="vertical" >          <LinearLayout         android:layout_width="fill_parent"         android:layout_height="20dip" />     <LinearLayout         android:layout_width="fill_parent"         android:layout_height="fill_parent"         android:layout_weight="1.0" />     <LinearLayout         android:layout_width="fill_parent"         android:layout_height="20dip" /></LinearLayout>
查看完整描述

2 回答

?
心有法竹

TA貢獻1866條經驗 獲得超5個贊

思路1:用RelativeLayout布局
思路2:設置LinearLayout的android:layout_gravity
暫時想到這兩個方法,不過目前沒在開發環境下,明天試試看是否可行 : )

查看完整回答
反對 回復 2023-04-11
?
慕俠2389804

TA貢獻1719條經驗 獲得超6個贊

對的,用權重的話是很容易解決大部分問題的,而且對于不同分辨率的適應性還是比較不錯的

查看完整回答
反對 回復 2023-04-11
  • 2 回答
  • 0 關注
  • 219 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號