<TextView android:id="@+id/textView1" android:layout_width="match_parent" android:layout_height="10" android:layout_alignBottom="@+id/editText2" android:layout_alignRight="@+id/editText2" android:layout_alignEnd="@+id/editText2" android:layout_marginBottom="63dp" android:text="@string/hello" />
Every time I enter text without a line, it gives me a yellow I. Therefore, I made a line. Now I get the message above in layout_height. I am new to Android development.
Use either dp or sp to specify with integer values
android:layout_height="10dp"
or
android:layout_height="35sp"
u should indicate the heght value in dp.
height and weight values ββare based on units. u can not just add an integer.
check these lnks too
What is the difference between "px", "dp", "dip" and "sp" on Android?
http://developer.android.com/guide/topics/resources/more-resources.html#Dimension
What is the difference between fill_parent and wrap_content?
Source: https://habr.com/ru/post/980652/More articles:Is it possible to install UIDatePicker only for a few days (excluding hours, minutes and seconds)? - iosFind out which font matplotlib uses - pythonInstall multiple times for notifications in Swift - iosTableViewCell animation in fast - uitableviewHow to convert POJO to JSON in Play Framework 2.3.x (Scala)? - jsonInterception number 0-9 in Android EditText - androidIntelliJ IDEA: ClassNotFoundException when Debug starts, execution / start works - javaCreating a new member programmatically in Umbraco - c #How to avoid% in printfn / sprintf? - f #Using Lambda / Template / SFINAE to automate the protection of trampolines from attempts / capture - c ++All Articles