android - layout with text surrounding a button -
could 1 suggest me how implement layout following:
that's multiple lines of texts surrounding button. linear layout?
you have create two linear layouts
inner layout horizontal orientation ( 1 textview , 1 button) outer layout verticalr orientation wil have textview wrap content
similar following
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <linearlayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"> <textview android:id="@+id/list" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="clear cache"/> </linearlayout> <textview android:id="@+id/list" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </linearlayout>
Comments
Post a Comment