Removed default text and made sure button is invisible

This commit is contained in:
Nils Norman Haukås 2015-04-21 19:51:22 +02:00
parent 7763b36be6
commit 53af84c74b
2 changed files with 3 additions and 6 deletions

View file

@ -123,6 +123,7 @@ public class DetailFragment extends Fragment implements LoaderManager.LoaderCall
detailView.setText(Utility.parseDetailsText(data.getString(COL_EVENT_DETAILS)));
dateFromView.setText(Utility.getFriendLyDate(data.getString(COL_EVENT_DATE_FROM)));
dateToView.setText(Utility.getFriendLyDate(data.getString(COL_EVENT_DATE_TO)));
eventUrlButton.setVisibility(View.VISIBLE);
eventUrlButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent(Intent.ACTION_VIEW).setData(Uri.parse("http://www.uib.no/" + data.getString(COL_EVENT_URL)));

View file

@ -8,7 +8,6 @@
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:id="@+id/list_item_title_textview"
android:text="@string/list_item_title_textview"
android:padding="10dp" />
<LinearLayout
@ -29,7 +28,6 @@
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:id="@+id/list_item_details_textview"
android:text="@string/list_item_details_textview"
android:paddingLeft="10dp" />
<Button
@ -38,7 +36,8 @@
android:text="@string/event_url_button"
android:id="@+id/event_url_button"
android:padding="10dp"
android:layout_marginTop="15dp" />
android:layout_marginTop="15dp"
android:visibility="gone" />
</LinearLayout>
@ -53,7 +52,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/list_item_category_textview"
android:id="@+id/list_item_category_textview" />
<TextView
@ -61,7 +59,6 @@
android:layout_height="match_parent"
android:textAppearance="?android:attr/textAppearanceMedium"
android:id="@+id/list_item_date_from_textview"
android:text="@string/list_item_date_from_textview"
android:padding="10dp"
android:gravity="center_vertical|right" />
@ -70,7 +67,6 @@
android:layout_height="match_parent"
android:textAppearance="?android:attr/textAppearanceMedium"
android:id="@+id/list_item_date_to_textview"
android:text="@string/list_item_date_to_textview"
android:padding="10dp"
android:gravity="center_vertical|right" />