mirror of
https://github.com/bspeice/itcs4180
synced 2024-12-04 13:18:16 -05:00
Added default of INVISIBLE to result button
This commit is contained in:
parent
ce42163569
commit
051b4acdc2
@ -48,6 +48,7 @@
|
|||||||
android:id="@+id/btnViewResult"
|
android:id="@+id/btnViewResult"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:visibility="invisible"
|
||||||
android:text="@string/btnViewResult" />
|
android:text="@string/btnViewResult" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
@ -57,7 +57,7 @@ public class SearchActivity extends Activity {
|
|||||||
|
|
||||||
locationText.setText(restLocation.getName());
|
locationText.setText(restLocation.getName());
|
||||||
riddleView.setText(restLocation.getRiddle());
|
riddleView.setText(restLocation.getRiddle());
|
||||||
if (restLocation.getKey() != null) {
|
if (restLocation.getKey() != null && restLocation.getKey().compareTo("")!=0) {
|
||||||
resultButton.setVisibility(View.VISIBLE);
|
resultButton.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user