我正在制作我的应用程序,但我无法完成此操作,我需要获得以下信息:
Layout that I need
问题是我需要这个角色
6点01分33秒
在左边,中间是混乱(所有字母)和右边的按钮。
我试过几件事,比如使用体重,但我还是没能做到。我也试过相对的布局,但还是没什么。我让你知道我所做的代码:
<android.support.v7.widget.CardView
app:cardBackgroundColor="?attr/cardBackgroundColor"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:weightSum="3"
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_height="wrap_content">
<TextView
android:layout_weight="1"
android:padding="10dp"
android:layout_width="wrap_content"
android:textColor="?attr/primaryTextColor"
android:text="105: 46.23"
android:layout_height="wrap_content" />
<TextView
android:layout_weight="1.5"
android:padding="10dp"
android:layout_width="wrap_content"
android:textColor="?attr/secondaryTextColor"
android:text="F2 R B L2 F R B L2 F R B2 L' R2 B F"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_weight="0.5"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/fui_transparent"
android:text="+2"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/fui_transparent"
android:text="DNF"/>
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>