Unable to drag and drop widgets in Grid layout after adding two widgets in GridLayout in Android Studio 2.3.3 -
i using android 2.3.3 , new android development. unable drag , drop widget in gridlayout more 2. when want place 3rd in row or column, not added. have gone through replies available here no 1 works me. here code:
<?xml version="1.0" encoding="utf-8"?> <android.widget.relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.firstapplication.gridlayoutlatest.mainactivity"> <gridlayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignparentstart="true" android:layout_alignparenttop="true" android:layout_marginstart="0dp" android:layout_margintop="0dp" android:visibility="visible"> <button android:id="@+id/button3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="button" android:layout_row="0" android:layout_column="1" /> <button android:id="@+id/button4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="button" /> </gridlayout> </android.widget.relativelayout>
Comments
Post a Comment