android - How to stop layout from taking all width -
i have activity , need stop filling width of textview , button. these shown in centre filling width. how stop , make width fixed? please see layout below. <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="1280dp" android:layout_height="match_parent" android:gravity="center_vertical|center_horizontal" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" tools:context=".login" > <textview android:id="@+id/lblusername" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparent...