/** ** Copyright (c) 2010 Ushahidi Inc ** All rights reserved ** Contact: team@ushahidi.com ** Website: http://www.ushahidi.com ** ** GNU Lesser General Public License Usage ** This file may be used under the terms of the GNU Lesser ** General Public License version 3 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 3 requirements ** will be met: http://www.gnu.org/licenses/lgpl.html. ** ** ** If you have questions regarding the use of this file, please contact ** Ushahidi developers at team@ushahidi.com. ** **/ package com.ushahidi.android.app.views; import android.app.Activity; import android.view.animation.AnimationUtils; import android.widget.Button; import android.widget.EditText; import android.widget.Gallery; import android.widget.ImageSwitcher; import android.widget.ImageView; import android.widget.TextView; import com.google.android.gms.maps.GoogleMap; import com.ushahidi.android.app.R; /** * AddReportView All the widgets for /res/layout/add_report.xml */ public class AddReportView extends View { public EditText mIncidentTitle; public EditText mIncidentLocation; public EditText mIncidentDesc; public ImageView mSelectedPhoto; public EditText mLatitude; public EditText mLongitude; public TextView mActivityTitle; public EditText mNews; public Button mBtnSend; public Button mBtnAddCategory; public Button mPickTime; public Button mPickDate; public Button mBtnPicture; public Button mDeleteReport; public GoogleMap map; public Gallery gallery; public ImageSwitcher mSwitcher; public AddReportView(Activity activity) { super(activity); mBtnPicture = (Button) activity.findViewById(R.id.btnPicture); mBtnAddCategory = (Button) activity.findViewById(R.id.add_category); mPickDate = (Button) activity.findViewById(R.id.pick_date); mPickTime = (Button) activity.findViewById(R.id.pick_time); mDeleteReport = (Button) activity.findViewById(R.id.delete_report); mLatitude = (EditText) activity.findViewById(R.id.incident_latitude); mLongitude = (EditText) activity.findViewById(R.id.incident_longitude); gallery = (Gallery) activity.findViewById(R.id.gallery); mIncidentTitle = (EditText) activity.findViewById(R.id.incident_title); mIncidentLocation = (EditText) activity .findViewById(R.id.incident_location); mIncidentDesc = (EditText) activity.findViewById(R.id.incident_desc); mNews = (EditText) activity.findViewById(R.id.report_news); mSwitcher = (ImageSwitcher) activity .findViewById(R.id.sel_image_switcher); mSwitcher.setInAnimation(AnimationUtils.loadAnimation(activity, android.R.anim.fade_in)); mSwitcher.setOutAnimation(AnimationUtils.loadAnimation(activity, android.R.anim.fade_out)); } }