Android: creating two columns in a linearlayout

转载 2015年11月18日 15:02:16
<LinearLayout
    android:id="@+id/linearLayout2"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal" >

    <TextView
        android:id="@+id/textView1"
        android:layout_width="0dp"
        android:layout_weight="1"
        android:layout_height="wrap_content"
        android:text="Street" 
        android:layout_gravity="left"
        android:background="#88FF0000"/>

    <TextView
        android:id="@+id/textView2"
        android:layout_width="0dp"
        android:layout_weight="1"
        android:layout_height="wrap_content"
        android:text="456546546"
        android:layout_gravity="right" 
        android:background="#8800FF00"/>

</LinearLayout>

enter image description here


http://stackoverflow.com/questions/8447234/android-creating-two-columns-in-a-linearlayout

相关文章推荐

Creating AppWidget in Android, part 1

AppWidget 是能够嵌入到其他应用中的小的视图(view)或者部件(widget)。包含App Widget 的应用被称之为宿主(Host).Home Screen 就是这种宿主应用的一个例子。...

HBaseCon 2013: Using Coprocessors to Index Columns in an Elasticsearch Cluster

Encrypted Columns in Sybase IQ

  • 2011-08-08 10:20
  • 111KB
  • 下载

Accessing columns in the User Information List

I was recently asked how to programmatically retrieve custom fields from the User Information List v...

Mysql 升级到 5.7.16,group by 一直报home brew on columns in GROUP BY clause; this is incompatible with sql

Mysql 版本➜ /etc mysql -v Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connec...

[转]SharePoint: Group By on more than 2 columns in a view (SP 2010)

原文地址: http://techtrainingnotes.blogspot.com/2011/01/sharepoint-group-by-on-more-than-2.html     ...

Is there a limit to the number of columns in an HBase row?

Quora上一个哥们提出下面这个问题,之前其实读过的不过没怎么在意comments,而且自己还亲自测试了一下这个问题确定当一个row很大的时候不会发生拆分的。今天又看了一遍,其实这里面已经包含了很多信...

add more columns in join table using spring, hibernate, JPA Annotations

Can we add more columns in a join table annotation? Generally I see people ending up with adding two...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)