Commits

Yesid Lazaro Mayoriano committed cb07a99

cambia do icon back en action bar , list mensaje para dialog de share , solo falta que don fabian haga una pequeña validación

  • Participants
  • Parent commits 0fcb49f

Comments (0)

Files changed (11)

Barcamp/res/drawable-mdpi/ic_ab_back_holo_dark.png

Added
New image

Barcamp/res/layout/action_bar.xml

         android:layout_alignParentLeft="true"
         android:layout_centerVertical="true"
         android:contentDescription="@string/app_name"
-        android:src="@drawable/previous"
+        android:src="@drawable/ic_ab_back_holo_dark"
         android:visibility="gone" />
 
     <ImageView

Barcamp/res/layout/details_unconference_screen.xml

 <?xml version="1.0" encoding="utf-8"?>
-<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/content"
     android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:background="@android:color/black"
-    android:padding="5dp" >
-    
-    
+    android:layout_height="wrap_content" >
 
-    <RelativeLayout
-        android:id="@+id/content"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content" >
-        
-        <include 
+    <include
         android:id="@+id/action_bar"
-        layout="@layout/action_bar"
         android:layout_alignParentTop="true"
-        />
-
-        <TextView
-            android:id="@+id/lab_name_unconference"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_gravity="center_vertical"
-            android:layout_below="@+id/action_bar"
-            android:text="@string/app_name"
-            android:textSize="22sp"
-            android:textStyle="bold" />
+        layout="@layout/action_bar" />
 
-        <ImageView
-            android:id="@+id/img_favorite"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_alignParentRight="true"
-            android:layout_alignTop="@+id/lab_name_unconference"
-            android:layout_gravity="center_vertical"
-            android:adjustViewBounds="true"
-            android:contentDescription="@string/app_name"
-            android:src="@drawable/ic_unfavorite" />
+    <ScrollView
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:layout_below="@+id/action_bar"
+        android:background="@android:color/black"
+        android:padding="5dp" >
 
-        <View
-            android:id="@+id/line"
+        <RelativeLayout
             android:layout_width="match_parent"
-            android:layout_height="1dp"
-            android:layout_below="@+id/lab_name_unconference"
-            android:layout_marginTop="2dp"
-            android:background="@color/ligth_blue" />
+            android:layout_height="wrap_content" >
+
+            <TextView
+                android:id="@+id/lab_name_unconference"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_alignParentLeft="true"
+                android:layout_below="@+id/action_bar"
+                android:layout_gravity="center_vertical"
+                android:layout_toLeftOf="@+id/img_favorite"
+                android:text="@string/app_name"
+                android:textSize="22sp"
+                android:textStyle="bold" />
+
+            <ImageView
+                android:id="@+id/img_favorite"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_alignParentRight="true"
+                android:layout_below="@+id/action_bar"
+                android:layout_gravity="center_vertical"
+                android:adjustViewBounds="true"
+                android:contentDescription="@string/app_name"
+                android:src="@drawable/ic_unfavorite" />
+
+            <View
+                android:id="@+id/line"
+                android:layout_width="match_parent"
+                android:layout_height="1dp"
+                android:layout_below="@+id/lab_name_unconference"
+                android:layout_marginTop="2dp"
+                android:background="@color/ligth_blue" />
 
-        <TextView
-            android:id="@+id/lab_schedule"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_below="@+id/line"
-            android:layout_marginTop="4dp"
-            android:text="@string/app_name"
-            android:textColor="@color/blue"
-            android:textSize="18sp" />
+            <TextView
+                android:id="@+id/lab_schedule"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_below="@+id/line"
+                android:layout_marginTop="4dp"
+                android:text="@string/app_name"
+                android:textColor="@color/blue"
+                android:textSize="18sp" />
 
-        <TextView
-            android:id="@+id/lab_description"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_below="@+id/lab_schedule"
-            android:layout_marginTop="4dp"
-            android:gravity="left"
-            android:text="@string/lab_programacion"
-            android:textSize="18sp" />
+            <TextView
+                android:id="@+id/lab_description"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_below="@+id/lab_schedule"
+                android:layout_marginTop="4dp"
+                android:gravity="left"
+                android:text="@string/lab_programacion"
+                android:textSize="18sp" />
 
-        <TextView
-            android:id="@+id/lab_speakers"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_below="@+id/lab_description"
-            android:layout_marginTop="4dp"
-            android:text="@string/title_activity_home"
-            android:textColor="@color/blue"
-            android:textSize="14sp" />
+            <TextView
+                android:id="@+id/lab_speakers"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_below="@+id/lab_description"
+                android:layout_marginTop="4dp"
+                android:text="@string/title_activity_home"
+                android:textColor="@color/blue"
+                android:textSize="14sp" />
 
-        <TextView
-            android:id="@+id/lab_keywords"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_below="@+id/lab_speakers"
-            android:layout_marginTop="4dp"
-            android:text="@string/title_activity_home"
-            android:textColor="@color/blue"
-            android:textSize="14sp" />
-    </RelativeLayout>
+            <TextView
+                android:id="@+id/lab_keywords"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_below="@+id/lab_speakers"
+                android:layout_marginTop="4dp"
+                android:text="@string/title_activity_home"
+                android:textColor="@color/blue"
+                android:textSize="14sp" />
+        </RelativeLayout>
+    </ScrollView>
 
-</ScrollView>
+</RelativeLayout>

Barcamp/res/layout/unconference_row.xml

         android:text="@string/app_name"
         android:layout_toLeftOf="@+id/img_favorite"
         android:layout_alignParentLeft="true"
-        android:textAppearance="?android:attr/textAppearanceLarge"
+        android:textAppearance="?android:attr/textAppearanceMedium"
         android:textColor="@android:color/white"
         android:textStyle="bold" />
     

Barcamp/res/layout/unconference_screen.xml

         android:layout_height="wrap_content"
         android:layout_below="@+id/action_bar"
         android:text="@string/app_name"
+        
         android:textAppearance="?android:attr/textAppearanceLarge"
         android:textColor="@android:color/white"
         android:textStyle="bold" />

Barcamp/src/com/orleonsoft/android/barcamp/AppsConstants.java

 
 	String LOG_TAG = "com.orleonsoft.android.barcamp";
 
+	String SHARE_MSJ= "Descarga ya la aplicaci�n de BarcampMed y disfruta del contenido de este evento.";
+	String  SHARE_SUBJECT = "Barcamp Med 2012";
 	String TWITTER_ACCOUNT = "@Barcamp_Med";
+	
+	String LINK_PLAY_STORE = "http://";
 
 	String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
 	String DATE_FORMAT = "yyyy-MM-dd";

Barcamp/src/com/orleonsoft/android/barcamp/HomeActivity.java

 			break;
 			
 		case R.id.but_action_share:
-			Utils.share(HomeActivity.this, "Barcamp Med", "Descarga ya la aplicaci�n de Barcamp");
+			Utils.share(HomeActivity.this, AppsConstants.SHARE_SUBJECT, AppsConstants.SHARE_MSJ+" "+AppsConstants.LINK_PLAY_STORE);
 			break;
 
 		default:

Barcamp/src/com/orleonsoft/android/barcamp/ListUnconferencesActivity.java

 			break;
 			
 		case R.id.but_action_share:
-			Utils.share(ListUnconferencesActivity.this, "Barcamp Med", "Descarga ya la aplicaci�n de Barcamp");
+			Utils.share(ListUnconferencesActivity.this, AppsConstants.SHARE_SUBJECT, AppsConstants.SHARE_MSJ+" "+AppsConstants.LINK_PLAY_STORE);
 			break;
 			
 		case R.id.ic_app_icon:

Barcamp/src/com/orleonsoft/android/barcamp/PagerAdapter.java

 		case 0:
 			return "Favoritas";	
 		case 1:
-			return "Programacion";	
+			return "Programacin";	
 		case 2:
 			return "Twitter";
 		case 3:

Barcamp/src/com/orleonsoft/android/barcamp/UnconferenceDetailActivity.java

 			break;
 			
 		case R.id.but_action_share:
-			Utils.share(UnconferenceDetailActivity.this, "Barcamp Med", "Descarga ya la aplicaci�n de Barcamp");
+			Utils.share(UnconferenceDetailActivity.this, AppsConstants.SHARE_SUBJECT, AppsConstants.SHARE_MSJ+" "+AppsConstants.LINK_PLAY_STORE);
 			break;
 			
 		case R.id.ic_app_icon:

Barcamp/src/com/orleonsoft/android/barcamp/network/AdapterListTweets.java

 		
 		Linkify.addLinks(labMessage, Linkify.WEB_URLS);
 		labMessage.setMovementMethod(LinkMovementMethod.getInstance());
-		
-		
-		
+			
 		TextView labDateTime = (TextView) view
 				.findViewById(R.id.lab_date_time);
-
-		labMessage.setText(tweets.get(position).getMesagge());
+		//se hace substring (12) porque el mensaje trae el username de barcamp en twitter y no se quiere mostrar eso en cada row
+		labMessage.setText(tweets.get(position).getMesagge().substring(12));
 		labDateTime.setText(tweets.get(position).getDate());