Tobias Duehr avatar Tobias Duehr committed 0397466

Show owner in the repositories activity

Comments (0)

Files changed (3)

gen/com/saibotd/bitbeaker/R.java

         public static final int top_search=0x7f020012;
     }
     public static final class id {
-        public static final int ad_space=0x7f070015;
-        public static final int bt_issues=0x7f07001b;
+        public static final int ad_space=0x7f070016;
+        public static final int bt_issues=0x7f07001c;
         public static final int bt_search=0x7f070006;
-        public static final int bt_source_browser=0x7f07001a;
-        public static final int bt_wiki=0x7f07001c;
+        public static final int bt_source_browser=0x7f07001b;
+        public static final int bt_wiki=0x7f07001d;
         public static final int changeset_files=0x7f070002;
-        public static final int changeset_loading=0x7f070019;
+        public static final int changeset_loading=0x7f07001a;
         public static final int changeset_message=0x7f070000;
         public static final int changeset_what=0x7f070009;
         public static final int frameLayout1=0x7f070008;
         public static final int header_title=0x7f070005;
-        public static final int icon=0x7f070017;
+        public static final int icon=0x7f070018;
         public static final int imageView1=0x7f070004;
         public static final int is_locked=0x7f07000e;
         public static final int issues_subtitle=0x7f07000c;
         public static final int issues_title=0x7f07000a;
         public static final int issues_what=0x7f07000b;
-        public static final int login_button=0x7f070013;
-        public static final int login_password=0x7f070012;
-        public static final int login_username=0x7f070011;
-        public static final int menu_logout=0x7f070020;
-        public static final int menu_refresh=0x7f07001f;
-        public static final int repositories_list=0x7f070014;
-        public static final int repository_changesets=0x7f070018;
-        public static final int repository_description=0x7f070016;
-        public static final int source_title=0x7f07000f;
-        public static final int source_webview=0x7f07001d;
-        public static final int source_what=0x7f070010;
+        public static final int login_button=0x7f070014;
+        public static final int login_password=0x7f070013;
+        public static final int login_username=0x7f070012;
+        public static final int menu_logout=0x7f070021;
+        public static final int menu_refresh=0x7f070020;
+        public static final int owner_listitem_repositories=0x7f07000f;
+        public static final int repositories_list=0x7f070015;
+        public static final int repository_changesets=0x7f070019;
+        public static final int repository_description=0x7f070017;
+        public static final int source_title=0x7f070010;
+        public static final int source_webview=0x7f07001e;
+        public static final int source_what=0x7f070011;
         public static final int subtitle=0x7f070007;
         public static final int textView1=0x7f070001;
         public static final int title=0x7f070003;
         public static final int title_listitem_repositories=0x7f07000d;
-        public static final int wiki_webview=0x7f07001e;
+        public static final int wiki_webview=0x7f07001f;
     }
     public static final class layout {
         public static final int changeset=0x7f030000;

res/layout/listitem_repositories.xml

 <LinearLayout
   xmlns:android="http://schemas.android.com/apk/res/android"
   android:layout_width="match_parent"
-  android:padding="15dip" android:orientation="horizontal" android:layout_height="wrap_content">
+  android:padding="5dip" android:orientation="horizontal" android:layout_height="wrap_content">
     <FrameLayout android:id="@+id/frameLayout1" android:layout_height="wrap_content" android:layout_width="match_parent">
-        <TextView android:layout_height="wrap_content" android:text="TextView" android:id="@+id/title_listitem_repositories" android:textSize="20dip" android:layout_width="wrap_content"></TextView>
+        <TextView android:layout_height="wrap_content" android:text="TextView" android:id="@+id/title_listitem_repositories" android:textSize="20dip" android:layout_width="wrap_content" android:paddingBottom="18dip"></TextView>
         <ImageView android:layout_width="wrap_content" android:src="@drawable/lock" android:id="@+id/is_locked" android:layout_height="match_parent" android:layout_gravity="right|center_vertical"></ImageView>
+        <TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:textAppearance="?android:attr/textAppearanceSmall" android:text="TextView" android:layout_gravity="bottom" android:id="@+id/owner_listitem_repositories"></TextView>
     </FrameLayout>
 </LinearLayout>

src/com/saibotd/bitbeaker/RepositoriesActivity.java

     		}
     		view.setId(position);
     		TextView title = (TextView) view.findViewById(R.id.title_listitem_repositories);
+    		TextView owner = (TextView) view.findViewById(R.id.owner_listitem_repositories);
     		try {
     			title.setText(this.getItem(position).getString("name"));
+    			owner.setText(this.getItem(position).getString("owner"));
     			if(this.getItem(position).getBoolean("is_private") == true){
     				view.findViewById(R.id.is_locked).setVisibility(View.VISIBLE);
     			} else {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.