-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimizing the uploader layout & taking user configured sorting into account #5
Changes from all commits
cecab96
a3359d0
f2e9365
df013d2
cd0082c
3ca1033
af9c055
6a66b0a
a931baf
3b43040
10594f4
6376103
1a12fe2
74fa109
acdd68d
60d71a9
593e3e9
225cd23
e0a283a
b5b1aab
bce26b4
20fc4b8
944af7e
8073679
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,28 +17,75 @@ | |
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
--> | ||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:background="#fefefe" | ||
android:orientation="horizontal" | ||
android:layout_height="72dp" | ||
android:padding="@dimen/standard_padding"> | ||
|
||
<ImageView | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/standard_list_item_size" | ||
android:background="@drawable/list_selector" | ||
android:orientation="horizontal"> | ||
|
||
<ImageView | ||
android:id="@+id/thumbnail" | ||
android:layout_width="@dimen/file_icon_size" | ||
android:layout_height="@dimen/file_icon_size" | ||
android:layout_gravity="center_vertical|center" | ||
android:src="@drawable/ic_menu_archive" | ||
android:id="@+id/thumbnail" | ||
android:layout_marginRight="@dimen/standard_padding"/> | ||
|
||
<TextView | ||
android:text="TextView" | ||
android:layout_width="fill_parent" | ||
android:id="@+id/filename" | ||
android:layout_height="wrap_content" | ||
android:textColor="@android:color/black" | ||
android:textSize="16sp" /> | ||
|
||
android:layout_gravity="center_vertical" | ||
android:layout_margin="12dp" | ||
android:src="@drawable/ic_menu_archive" /> | ||
|
||
<LinearLayout | ||
android:layout_width="0dp" | ||
android:layout_height="@dimen/standard_list_item_size" | ||
android:layout_weight="1" | ||
android:gravity="center_vertical" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:id="@+id/filename" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_vertical" | ||
android:layout_marginLeft="0dp" | ||
android:layout_marginRight="4dp" | ||
android:ellipsize="middle" | ||
android:singleLine="true" | ||
android:text="TextView" | ||
android:textColor="@color/textColor" | ||
android:textSize="16dip" /> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginLeft="0dp" | ||
android:layout_marginRight="4dp" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't it be better to have one text view and format string when inserting? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @przybylski I vote no since this would be the next change that doesn't add additional value but let's the code diverge from oC |
||
android:id="@+id/file_size" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="Size MB" | ||
android:textColor="@color/list_item_lastmod_and_filesize_text" | ||
android:textSize="@dimen/two_line_secondary_text_size"/> | ||
|
||
<TextView | ||
android:id="@+id/file_separator" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:gravity="right" | ||
android:text=", " | ||
android:textColor="@color/list_item_lastmod_and_filesize_text" | ||
android:textSize="@dimen/two_line_secondary_text_size"/> | ||
|
||
<TextView | ||
android:id="@+id/last_mod" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:gravity="right" | ||
android:text="Mod Date" | ||
android:textColor="@color/list_item_lastmod_and_filesize_text" | ||
android:textSize="@dimen/two_line_secondary_text_size"/> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
constants pls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for 4dp? or for 0dp or for 16dip? 😄
And again this would rather be a complete refactoring task where one would need to go through all the layouts and replace 4dp with the @dims value so I would again (for now) vote against it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok