简体   繁体   中英

Two vertical side by side views in Android

我想知道如何在Android中做两个垂直并排视图,其中一侧是Google日历,另一侧是Google任务

您可以在一个父布局中采用两个布局(可以是水平方向的LinearLayout),然后为子布局或视图提供android:layout_weight =“ 1” 。因此,我认为这可能使其工作。

Create an Activity with two Fragments . The sample application FragmentBasics illustrates how fragments are used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM