Permalink
Browse files

updated screenshots

  • Loading branch information...
1 parent b1831ef commit dbc992eb9ae7648dfac9c9e6ce078f061313d143 @olgalazarova olgalazarova committed Mar 2, 2012
@@ -4,6 +4,24 @@
android:layout_height="fill_parent"
android:background="@color/grid_background"
android:orientation="vertical" >
+
+ <LinearLayout
+ android:id="@+id/txt_linear"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_gravity="center"
+ android:gravity="center_horizontal"
+ android:paddingTop="5dip" >
+
+ <TextView
+ android:id="@+id/title_last_photo"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/last_photo"
+ android:textColor="@color/white"
+ android:textSize="18sp" />
+ </LinearLayout>
<ImageView android:id="@+id/lastPhotoImg"
android:layout_width="wrap_content"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -19,6 +19,7 @@
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.GridView;
+import android.widget.TextView;
import com.chute.android.photopickerplus.R;
import com.chute.android.photopickerplus.adapter.PhotoSelectCursorMultiAdapter;
@@ -36,13 +37,15 @@
private PhotoSelectCursorMultiAdapter gridAdapterMulti;
private PhotoSelectCursorSingleAdapter gridAdapterSingle;
PhotoStreamActivityIntentWrapper photoStreamWrapper;
+ private TextView selectPhotos;
/** Called when the activity is first created. */
@Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.photos_select);
+ selectPhotos = (TextView) findViewById(R.id.txt_select_photos);
grid = (GridView) findViewById(R.id.gridView);
grid.setEmptyView(findViewById(R.id.empty_view_layout));
photoStreamWrapper = new PhotoStreamActivityIntentWrapper(getIntent());
@@ -75,6 +78,7 @@ protected void onPostExecute(final Cursor result) {
return;
}
if (photoStreamWrapper.getIsMultiPicker() == true) {
+ selectPhotos.setText(getApplicationContext().getResources().getString(R.string.select_photos));
if (gridAdapterMulti == null) {
gridAdapterMulti = new PhotoSelectCursorMultiAdapter(
PhotoStreamActivity.this, result);
@@ -86,6 +90,7 @@ protected void onPostExecute(final Cursor result) {
NotificationUtil.showPhotosAdapterToast(
getApplicationContext(), gridAdapterMulti.getCount());
} else {
+ selectPhotos.setText(getApplicationContext().getResources().getString(R.string.select_a_photo));
if (gridAdapterSingle == null) {
gridAdapterSingle = new PhotoSelectCursorSingleAdapter(
PhotoStreamActivity.this, result);
@@ -32,7 +32,7 @@
* in a grid. If you wish to enable multi-picking functionality, set
* isMultipicker=true, otherwise set isMultiPicker=false.
*/
- private boolean isMultiPicker = true;
+ private boolean isMultiPicker = false;
@Override
public void onCreate(Bundle savedInstanceState) {

0 comments on commit dbc992e

Please sign in to comment.