android - Displaying a TextView immediately after another -


i first time developer android, can i've been learning developing. of code doesn't have xml layout, had no problem patching rookie mistakes. said, rookie mistakes has caught me in regards 2 textviews when designed them gui interface designer (my major rookie mistake).

my display_city tv , display_today_date tv seem have symbiotic relationship each other. removal of either 1 crash app. seem dependent on each other changing each other's positioning impossible (at least myriad of things have tried such setting layout margins).

<textview     android:id="@+id/display_city"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:layout_margintop="20dip"     android:layout_above="@+id/display_today_date"     android:layout_below="@+id/get_data"     android:layout_centerhorizontal="true"     android:gravity="center_horizontal" />  <textview     android:id="@+id/display_today_date"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_centerhorizontal="true"     android:layout_below="@+id/display_pollen_type"/> 

my question - how position display_today_date after display_city? when first started android app, relied lot on gui builder. first rookie mistake, resulted in symbiotic relationship explained.

currently app looks like:

enter image description here

i have tried changing display_today_date's layout android:layout_below="@+id/display_city. results in crash. checked logcat, did not give me relevant information reason of crash within xml file.

p.s. get_data textedit box.

you have city show above date line android:layout_above="@+id/display_today_date". can't have 2 views in relative layout each reference other, or won't able figure out do. if don't want put city above date, delete line add code place want.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -