Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Problem in android programming(beginner)?
I have problem guys, in the program i have two textview and one button. and my layout is linear layout, when I put all of them wrap content height and width they all become next to each other but when I change the text view into fill_parent, the textview takes the whole wdith and the other textview and button disappear. What is the problem??
Here is the code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android%22
xmlns:tools="http://schemas.android.com/tools%22
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/hello_world" />
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="@string/menu_settings"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Tutorial Button"
android:textsize="25dp" />
</LinearLayout>
2 Answers
- Nerd_IsuruLv 48 years agoFavorite Answer
Fill parent takes all the parent. My advise is to use RelativeLayout instead.
- ?Lv 44 years ago
In a be conscious, definite! it rather isn't any information that some people in a rehab for alcohol abuse have tried that one. there is the two a actual and psychological dependence for people who abuse/have a topic with alcohol. it rather is probable a mix of the two that would have them drink the mouthwash. in the event that they did no longer have one or the two a sort of dependencies, they does no longer do it, whilst quickly as.