Forum Xamarin.Android

XML file disable editing

monemdcmonemdc Member ✭✭✭
edited May 2020 in Xamarin.Android

hi

I created a new interface and placed these elements inside xml. The interface problem appears. The interface stops editing

As it is not possible to change or increase the size of any tool (button ,textview ,etic..).

if delete xmlns:ads and adview. xml enable editing.

https://drive.google.com/file/d/1YCNpLvW7LmibxlYNCPEsn5Z0xLitx7QD/view?usp=sharing

Tagged:

Best Answer

  • jezhjezh Member, Xamarin Team Xamurai
    edited June 2020 Accepted Answer

    There is some problem with your code,I modified some code, and tested on my device.
    I just change the font size , layout_height and text color for the first textview of CardView.

              <android.support.v7.widget.CardView
                android:layout_marginRight="45dp"
                android:layout_marginTop="60dp"
                android:layout_gravity="right"
                android:layout_width="147dp"
                android:layout_height="141dp"
                app:cardCornerRadius="20dp"
                app:cardElevation="2dp"
                android:layout_marginBottom="10dp">
                <LinearLayout
                  android:id="@+id/historyLayout"
                  android:layout_height="match_parent"
                  android:layout_width="match_parent"
                  android:orientation="vertical">
                  <ImageView
                    android:contentDescription="@NULL"
                    android:layout_marginTop="10dp"
                    android:layout_gravity="center_horizontal"
                    android:src="@drawable/imagb"
                    android:layout_width="wrap_content"
                    android:layout_height="95dp"
                        />
                  <View
                    android:background="@color/colorAsh"
                    android:layout_width="match_parent"
                    android:layout_height="1dp"/>
                  <TextView
                    android:text="@string/text_a"
                    android:layout_width="142.5dp"
                    android:id="@+id/content"
                    android:layout_marginLeft="0dp"
                    android:textSize="20dp"
                    android:textColor="@android:color/holo_green_dark"
                    android:layout_height="30dp"
                    android:gravity="center|fill_vertical" />
                </LinearLayout>
              </android.support.v7.widget.CardView>
    

    The result is:

    So,we could change or increase the size of the textview.

Answers

  • jezhjezh Member, Xamarin Team Xamurai

    XML file disable editing

    Sorry, I don't quite follow you meanings. What do you mean by above words ?

    As it is not possible to change or increase the size of any tool (button ,textview ,etic..).

    Besides,what do you mean by it is not possible to change or increase the size of any tool?

    Can you elaborate on the question more clearly?

  • monemdcmonemdc Member ✭✭✭
    edited May 2020

    Picture to illustrate the problem
    As it is not possible to change or increase the size of any tool (button ,textview ,etic..).

    I developed a simple project for modifying attachments

  • jezhjezh Member, Xamarin Team Xamurai
    edited June 2020 Accepted Answer

    There is some problem with your code,I modified some code, and tested on my device.
    I just change the font size , layout_height and text color for the first textview of CardView.

              <android.support.v7.widget.CardView
                android:layout_marginRight="45dp"
                android:layout_marginTop="60dp"
                android:layout_gravity="right"
                android:layout_width="147dp"
                android:layout_height="141dp"
                app:cardCornerRadius="20dp"
                app:cardElevation="2dp"
                android:layout_marginBottom="10dp">
                <LinearLayout
                  android:id="@+id/historyLayout"
                  android:layout_height="match_parent"
                  android:layout_width="match_parent"
                  android:orientation="vertical">
                  <ImageView
                    android:contentDescription="@NULL"
                    android:layout_marginTop="10dp"
                    android:layout_gravity="center_horizontal"
                    android:src="@drawable/imagb"
                    android:layout_width="wrap_content"
                    android:layout_height="95dp"
                        />
                  <View
                    android:background="@color/colorAsh"
                    android:layout_width="match_parent"
                    android:layout_height="1dp"/>
                  <TextView
                    android:text="@string/text_a"
                    android:layout_width="142.5dp"
                    android:id="@+id/content"
                    android:layout_marginLeft="0dp"
                    android:textSize="20dp"
                    android:textColor="@android:color/holo_green_dark"
                    android:layout_height="30dp"
                    android:gravity="center|fill_vertical" />
                </LinearLayout>
              </android.support.v7.widget.CardView>
    

    The result is:

    So,we could change or increase the size of the textview.

Sign In or Register to comment.