[Q] Android: Graphical Problems with headers and first views on a ListFragment - General Questions and Answers

I've made an app that has a file browser on the side based of a ListFragment. I've created a custom View called IconTextView which is Basically a linear layout with a drawable for an icon and a text view for text. I also created it's adapter. I use the fragment as a file browser, the user selects a file and sends the string back to the main activity to do something with that file. For reference the class that implements the ListFragment is called FileBrowser.
This is my problem:
In the onCreate() method of FileBrowser First I add two Headers to the ListView Then I set the root directory of my application (which is a Specific Folder of the memory card) to generate the first file list.
While using the app: When the user then touches a folder I browse to it by generating the file list and setting my custom adapter again. What happens here is that the background still retains the original file list. It is obviously inactive but it is there kind of like a wallpaper and it is like the new list in front of it is transparent and the old list is the background. It works just fine, but it looks horrible. I've tried setting the original folder to multiple different folders but it is the same. Also when I scroll the file list, it goes behind the two stationary headers I mentioned.
The work around I found was to set the adapter in the OnCreate Method to null and simply press a button to show the first file list when the application is allready running. This implies that it should be a problem of simply when the setListAdapter is called for the first time. I've tried in the onResume() but the same thing happens. Even with this solution when I scroll the list of items it still goes behind the headers I mentioned just like before.
What I would like to know is if has anyone encountered this before and has found a way to solve it?
Thank you very much for all the help.
PD: The I just realized something else, the color of the headers I define is a custom color with an alpha value. Could it be that the non default alpha value creates the translucency problem?

Related

ScaliCommander File Explorer

There's a new file explorer app for android that has a lot of nice features and a weird name.
ScaliCommander http://sites.google.com/site/gslngr/
The developer is very quick to respond to questions and fixes and I'm surprised that it has as few downloads as it does.
Features:
Two Panel browsing with drag-and-drop Copy/Move between folders (single or multiple files)
Image Gallery View with extreme zoom (see 5-10 images per line or zoom in to 1 image per line)
Fully customizable in colors and text/folder sizes
Excellent search capabilities
Some of the setting menus can be hard to find at first but are mainly done by long-pressing on a file or folder.
1: When looking at a folder of images, by default it will be in Details View just showing a list of files. Long-press on the folder bar and select Icon View and then you can pinch to zoom in to your desired thumbnail size.
2: To select a batch of files in Multiselect mode, select the first file, scroll to the last file and long-press and it will give you an option to Select Span
looks quite interesting.
going to read the documentation later, hopefully i'll understand how to operate scali after that

Text editor that is not limited by file size

I am proud to present Need To Write!
It's a text editor unlimited by file sizes and offers a lot of customization and power tools.
v1.76 onwards also allows you to choose the language for its user interface. Currently supports English and 简体中文. If you would like to volunteer your translation services for your preferred language, just drop me an email at [email protected] or post on NTW's facebook page!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Completely FREE version!
Paid version
Difference between Paid and Free version is mainly in the poweruser options.
Paid version mainly adds lotsa poweruser options ;D
1) Remembers up to 9999 undo/redo operations
2) Control over the End-Of-Line characters (Apple, Unix and Windows tend to handle different End-Of-Line differently when doing plain text editing)
3) Allows user to specify buffer size
4) Allows custom fonts and background images
5) Allows user to customize 6 extra Themes in addition to the built-in 3 Themes.
6) Allows toggling of word wrap
7) Continuous Text to Speech.
8) Automatic backup of multiple files to user specified locations on SD card
Free version:
1) Remembers just 1 undo/redo operation, plus 1 reset buffer
2) Defaults to Android EOL handling
4) Fixed 10000 buffer size
5) Custom fonts and backgrounds disabled. You can still paint over the existing 3 themes with a solid color though, just adjust your Opacity bar in your themes dialog.
6) Customization of 3 built in Themes.
7) Always wordwrap
8) Text to Speech reads single paragraphs only.
9) Automatic backup of 1 file to user specified location on SD card
Version 1.71 features:
1) A File List, which works like a Bookshelf/Task_list/Recent_files hybrid management system. So basically, you can use it as a Task list, text bookreader, and text file editor as well.
2) Edit mode with unlimited file size, and tracking system to resume your reading/editing progress.
3) HTML mode! Supports non html files as well.
4) Text to Speech! I'm gonna use it to listening to ebooks when my eyes are tired
5) GoTo, Search, Replace, Cut, Copy, and Paste
6) Multiple Undo and Redo with undo history up to 9999(for the full version). Also comes with a sliding bar to easily rewind and fast forward the changes you made.
7) Themes! Customizable display; you can specify your own background images, custom fonts, background and font colors, line spacing, indents etc.
8) Landscape mode
9) EditText view with inertia scrolling, and yet no irritating problems of the view rectangle not being called to show your cursor, nor the rectangle jumping all over the place when you try to place your cursor far away.
10) Toggleable word wrap and autocapitalization (if supported by keyboard app)
11) Specify what End-Of-Line chars for saving your files with.
12) Tons of encoding options from ISO, windows 125_, Cyrillic, Japanese, Korean, Chinese, etc.
13) Share your files or just specific lines of selected text via email, bluetooth etc.
14) Automatic backup of files to user specified locations on SD card
15) HTML mode to easily switch between plain text and HTML view
If you like what you see, download now!
OMG, I just realized I published v1.1 on 2011-01-11!!!!! Damn, I should have labelled it version v1.1111
Latest version 1.3 is up!
Major changes are:
- Bookshelf/memo_list/recent_files hybrid system. Basically, you can use it as a memo list, bookreader, and text file editor.
- Fixed most of the pesky question marks by using windows-1252 as the default encoding.
- Added a lot of encoding options from ISO, windows 125_, Japanese, Korean, and Chinese.
- Themes! Customizable themes, and you can specify your own background images (Paid version only).
- Share your files via email/bluetooth etc.
- Built in file browser
- No more popup nag box! :s
Almost every time i try tap for next page, the program crashes
Samsung Galaxy S i9000, Froyo.
L.B.
Hmmm.... this is really strange since you did manage to load the part you are currently viewing, my guess would be write permissions for that file, or possibly an issue with custom fonts or custom background image if you have specified any. Another likely reason could be due to the recent mess up I made with 1.32 to 1.35, where I changed the backup file placement system quite drastically.
Pls let me try to fix this by answering the following questions.
1) Does it happen in View mode only, or Edit mode only, or both?
2) Do the >> or << buttons work?
3) Does "GoTo" work?
4) How big is your file? It could be because there isn't enough space to save the backups.
5) Does this happen for every file, or just one particular file?
6) If (5), have you tried "Forget" on that file, then reloaded it?
If 5) and 6), then as a last resort, you can try deleting mnt/sdcard/.NeedToWrite, then reopen the file. But backup file data will be lost, so just make sure you save all your other files first.
Time zone where I am is midnight now, so I will not be able to reply you until 10 hrs later ,
New version 1.40!
NTW now talks! Comes with ability to adjust pitch, speech rate, and supported languages.
But be warned, I think Android's Text to Speech is a bit buggy, so the voice doesn't really respond consistently to my controls for pitch and speech rate.
Edit: I found out it does respond consistently, but I have to be patient and wait for the next sentence to play naturally, instead of pressing stop and play for instant replay
v1.41 is out. It only patches NTW crashing due to certain Text to Speech settings. Download if you encounter this crashing.
Ok, I think I've solved the crashing problem some of you may be experiencing. Hopefully anyway......
v1.42
- Patches NTW crashing due to your phone's Text to Speech settings or lack of TTS.
- More encodings: ISO-2022 for JP, KR & CN. KOI-8R for russian.
Heheheheh!!! Always wanted to implement multiple undo/redo, but only recently figured out how to do so efficiently
v1.45
- Multiple undo/redo! Undo History bar allows easy rewinding or fast forwarding of your changes, maxed at 9999 steps.
"Reset chunk" replaces the original Undo/Redo menu option.
Clicking of "Reset chunk" is recorded in Undo history.
Note: Free version has Undo history of only 1 in addition to "Reset chunk".
- Improved File Browser
- Streamlined File List interface.
Long press to view the preview, file properties, "Forget" and "Share" options.
NTW v1.47 is out!
Basically, this update makes the search, goTo, and undo/redo operations much easier than before. It also makes much better use of the space at the top which was previously just showing the filename and current %.
- Implemented fast scroll thumbs for browser and NTW shelf .
- Icon toolbar for convenient undo/redo, goTo, search, load next/prev chunk. Long click of undo/redo buttons pop up the undo history bar. Click the % display to shwo the goTo dialog.
- Improved goTo function.
NTW v1.48 is out!
- Fast scroll thumb for the main text box! (Built from scratch, whew! The behavior of ListView's fast scroll thumb was really tough to emulate properly )
- Progress bar above icon bar to show you where is your currently loaded chunk.
- Search backwards in addition to searching forwards. Plus some tweaks to search behavior
v1.49 is out!
This is mostly tweaking the behavior, performance and efficiency of undo/redo, search and replace, and the cursor.
- Fixed search backwards so that it works for single char searches too.
- Tweaks to UI of file browser and File List when adding/forgetting files
- Changed Replace operation so it is more compatible with undo/redo
- Fixed the auto shifting of cursor interfering with delete by holding down delete key
- Minor cursor tweaks and speed enhancement to File List
V1.51 is out!
New features:
- Incredibly cool Viking android as fast scroll icon!
- Even more incredibly cool menu icons!
- Delete command now available in file browser. This should be useful if you sometimes find yourself itching to do some file clean up from within NTW itself.
- Adjustments to left and right indent seekbar range and auto fadeout time of fast scroll icon.
- Self-fading pop up dialog boxes for messages like successful save, successful overwrite, or other error messages. I made the fadeout time for non-error related messages quite fast, but if you still find them irritating, let me know and I'll program in a check box to toggle their existence.
V1.52 is out!
Changes:
- File List now displays the file name only.
- Added shortcut to change "Encoding". Long press the main editing window to bring up the context menu, then select "Encoding Options".
- Ratings button, and my blog address added into Help
- Text cursor will no longer move along with the scrolling page.
- Tablet users should (hopefully) be able to find NTW in the Market now.
- NTW now supports only Android v 2.2 or higher. I think NTW was crashing for for v2.1.
I'm thinking I should probably move on to something else for now. Have an idea for an interesting variation of a file explorer....
I'll get back to NTW as and when I have time, maybe improve the search and replace or the GoTo % accuracy etc.
v1.53
Mainly bug fixes for Tablets:
- NTW now supports only Android v 2.2 or higher. I think NTW was crashing for for v2.1.
- Patched some crash on start up bugs
- Changed iconsbar layout to uniform spacing
- Soft Menu button will now appear for tablets with no physical menu button
(I just hope what I did to solve this did not stop NTW from appearing in the Market Search results.)
Yes, I did it again... released a new version specifically to patch the last updated version , forgive my hasty uploads.
v1.55 is out! You should get this if you have files with very similar names or chnage the upper/lower case of your filenames. File List is also improved for easier viewing of file details across multiple files.
Note: v1.55 should support Android 1.6 onwards
Changes
- 1 touch save button on the toolbar
- Fixed bug of corrupted file if only the upper/lower case of filename is changed when using the complete save dialog.
- Added buttons in File List to expand/collapse file properties. Email me if you want more development in this aspect.
- Help menu in File Browser and File List.
- Fixed bugs of upper/lower case and very similar filenames.
- Various tweaks
v1.59 is out
- Search now allows limited usage of wildcards '*'. See Help for details.
- Replace button is now more versatile. Useable as a paste button too.
- fixed issue of other textboxes taking up whole screen in landscape mode.
Note: Icons bar are now horizontally scrollable, although you'll only realize it if your screen is really small. This is in preparation for at least 4 more icons which you may be able to guess the use of ...
v1.60 is out
- Dedicated cut, copy, and paste icons!
- Dedicated text selection tool. Works like a shift button except it doesn't affect uppercase/lowercase. Single tap on its icon will have the same effect as holding down the shift key. Then tap anywhere on the screen to place the end of the text selection.
- Icon colors will now behave properly
- Misc tweaks and slightly nicer icons
And now, be prepared for v1.61 to fix any bugs I seem to always leave behind somewhere..
Note: For those who have experienced crashes when navigating with NTW's file browser to particular folders, the cause of this is apparently due to some atypical file or folder properties/permissions that screw up NTW's autosorting by date system.
I dun know how to fix this yet. In the meantime, you can simply use a generic file browser to navigate to the file you want, then long click on it and choose NTW to open it. NTW should then be able to open it normally. If NTW still crashes and won't start up again without crashing, then you can try going to your sdcard/.NeedToWrite folder, open your log.txt file and delete the line containing the problematic file path.
Yay! v1.60 was released without any need for major debugging afterwards
Let's hope v1.61 can do the same.
Ladies and Gentlemen, I present to you NTW v1.61!
- Sort NTW's shelf by file name, date, type etc!
- HTML view at long last! And with text justification (i.e. alignment of both left and right)
However, HTML mode is view only, but you can easily switch between raw text and html modes to edit it on the fly.
Note: File with non ".html" extensions are displayed using a default template whose font size, spacing and colors will follow your theme settings. If you know how to use HTML tags, you can insert them in yourself to manipulate the look of specific words and sentences, and even display pictures! However, the text that your custom tags wrap around must not contain any newlines.
Files with ".html" extensions are displayed using the file's specifications. Some errors may be present due to NTW's chunking system.
- No more weird truncation between each chunk. Loading of each chunk will now preferentially start and end with newlines, spaces, ".", or ","
- Disabled long press during view only mode.
- Tweaks to copy/cut/paste, select text functions
- Made some icons more informative.
- Minor tweaks and corrections
Feedback, anyone?
OT, but at least its still my app
Ahem, pls help me share my vid? I'm hoping to make it go viral

[APP][2.2+] Professional Text Modifier [Accepting Requests]

Have you ever got a real big java class, essay or list of names and wanted to edit a word that its wrong, but it appears like 1,000 times? Or you have two different lists and want to merge them? Even better you need every name of your 100+ pics in your picture folder!!??
Well this app is for you!
This app have some easy to use tools for your texts, those text can be any long you want!!
Includes:
Alphabetize
Find and replace
Get file names
Merge text line by line
Add prefix and/or suffix
Random number generator
Remove empty lines
Is as easy as just select what action you want to perform, add the text you want to modify, add what to modify and press the go button. Within a few seconds you will get your new modified text!!
Download it from Play Store!!!!
Reserved for changelog and requests
Version 2:
Added new features: remove lines containing, case convert, enumerate lines and number generator.
Version 1.3:
Better file selection (Easier and now its in alphabetical order).
Version 1.4:
Reduced minimum sdk needed to 7.
Removed files from folder selection, ROOT Folders can't be clicked now, removed EditText from output and added a TextView instead, clicking the output will copy the output.Removed forced landscape orientation.
Changed file selection class, now it should be easier. more to come...
New version with a couple of fixes, and some changes.
Added to slideme market: http://slideme.org/application/text-modifier
NOTE: This is the same as the google market app, is just a donate version.
New update with a couple of new things.

[App][Preview][2.3+] Dml : Diagram Modeling Language

Hi guys, i'd like to introduce Dml.
Dml (Diagram modeling language) is a diagram application like Visio.
Created diagram can be flowchart , Uml or even 2D building drawing.
This is a early preview release, for feedback during development.
A lot of functionalities are not yet implemented.
Dml differs from other diagram applications on several points of view :
A shape on a page is not only a graphical representation, but is also an object with some properties.
The same object can be drawn on different pages, keeping its name and the same text.
All properties of the object can be changed precisely in an editor, like position, size, rotation or color.
It's like a development environment for programmers but very simple to use.
The application will have scripting possibilities (create object and change properties, timer,button,...)
Users can create graphical object and reuse it.
Open to other programmers (via plugins)
Working
MultiPage
Put a shape (circle, rectangle, star,...) on the active page.
Property editor
Full text editor (like excell)
Join a line to other object, change line style (direct or bezier)
split line, horizontal or vertical line
Move and size view
Move objects, resize, rotate
Todo
Add text editor to other shapes.
Lines : Add text editor to lines , set start and target arrows
Lines : Create a line directly from an object
Clipboard : Undo, Redo, Cut, Copy, paste, duplicate
New shapes (like parallelogram), uml , user shape
Multi Select pane (for alignment)
Object tree page (for copying object to another page, or to retrieve objects easily)
Save as, new file, import, export, parameters
Align object
Scripting
plugins
Version 1.1
Removed internet permission
reserved 1
reserved 2
reserved 3
Hey, it's a nice idea!
Could you post some screenshots?
mod:
I downloaded it.
It needs full internet access. Why?
Also it crashed after I ran it (on Galaxy Tab 2.0 7). Maybe the reason was that the firewall blocked the internet access?
gyokzoli said:
Hey, it's a nice idea!
Could you post some screenshots?
mod:
I downloaded it.
It needs full internet access. Why?
Also it crashed after I ran it (on Galaxy Tab 2.0 7). Maybe the reason was that the firewall blocked the internet access?
Click to expand...
Click to collapse
I Removed internet access and Uploaded 1.1
Note that a lot of functionalities are not implemented.
For example, the load and save use always the same file (sample.xml)
No undo, redo,...

[Guide] Customize the shape of QS Tiles

If you use a Custom ROM (e.g. Havoc/Xtended/crDroid etc.) where you can choose the design of the QS tiles, you can change the tile shape in the following way:
Choose a simple tile shape, I take the design "Teardrop" as an example here in the tutorial.
Search under /system/app/ the folder QstileTeardrop with the apk QStileTeardrop.apk. If there are no QStile....-folders in your ROM, you have to search... I was able to work on the following QStiles well (others caused some problems somehow or I didn´t try): Inkdrop, Mountain, Ninja, Pokesign, Squaremedo, Teardrop, Wavey.
Take the QStileTeardrop.apk to the computer and decompile the apk (e.g. with apktool).
Import the file ic_qs_circle.xml as Vector Drawable on this page: https://shapeshifter.design.
This file is in the following folder of the decompiled apk: ...\QstileTeardrop\res\drawable.
Export the image as SVG.
Open the exported SVG (vector.svg in Downloads) with Inkscape/Adobe Illustrator. If you don't see anything the fill color is probably white like the background. As background you now have a document/page in the size you need (this might varies depending on Custom ROM).
Change the path according to your imagination or create a new shape, or import an image that you convert into a path. Adjusts the path to the page so that it does not protrude beyond the document/page. It is best to center the path vertically and horizontally so that the icons (WIFI icon, Bluetooth icon, airplane icon, etc.) are also well centered.
Save your path as SVG (YourCustomTile.svg). Now go back to https://shapeshifter.design and import this SVG. Before that you should delete the old path with File > New. In the preview window at the top you can see if the alignment and size of the tile design on the background is okay. Click on path in the lower left corner and copy everything in the field "pathData".
Open the file ic_qs_circle.xml (in ...\QstileTeardrop\res\drawable) in an editor (e.g. Notepad++). Now insert the path (LettersAndNumbers) from the field "pathData" between the quotation marks:
<path android:fillColor="#ffffffff" android: pathData="Insert_new_path_here" /> (Without spaces between : and p, this results in a ...)
If you have several paths, they just come among one another:
<path android:fillColor="#ffffffff" android: pathData="Path1" />
<path android:fillColor="#ffffffff" android: pathData="Path2" />
<path android:fillColor="#ffffffff" android: pathData="Path3" />
Compile and sign the QstileTeardrop.apk and replace the old one on your mobile phone. The QS-tiles now have your own tile design under the name Teardrop. A restart may be necessary, in my ROM it is enough to switch between the designs.
exactly what i was looking for .
Thank you so much
edit: everything worked great , i made couple and they all worked (a preview attached).
but i'm having a problem now , as i said above , everything worked UNTIL i restarted my phone , they revert back the the default style , so let's say i changed the apk of QstileTeardrop.apk and it worked and showed the one i made , then i restarted my phone , it shows the system default style -not even the old teardrop style- , and when i check in settings it shows that QstileTeardrop is still selected , and if i select a different one -one that i didn't edit- it works , and if i go back and select the QstileTeardrop it shows the default again , it is like as if it is not there , the phone/system is not reading the file . i tried with 3-4 different ones and still the same result .
any help ?
Great tuto thanks. One question I want to change icon of as tiles and stay bar but where is it located ? Frameworks or systemUI ? Is it in XML ?
I'm on havoc Android 10
EgyBob said:
... UNTIL i restarted my phone , they revert back the the default style...
Click to expand...
Click to collapse
oh, sorry. I'm quite out of the loop since I have a new mobile. So I think I can't help you unfortunately, I never had that problem. Do you have maybe any Magisk modules active that might be causing this?
Bradco said:
Great tuto thanks. One question I want to change icon of as tiles and stay bar but where is it located ? Frameworks or systemUI ? Is it in XML ?
I'm on havoc Android 10
Click to expand...
Click to collapse
It may not work under Havoc 10. I think that not all functions (like QS Tiles menu) are implemented in Havoc 10 like in previous versions. But as written above I'm a little out of loop, I don't really know about havoc 10...
C-3OP said:
It may not work under Havoc 10. I think that not all functions (like QS Tiles menu) are implemented in Havoc 10 like in previous versions. But as written above I'm a little out of loop, I don't really know about havoc 10...
Click to expand...
Click to collapse
No problem I confirm no change with havoc 10, anyway thanks for your answer

Categories

Resources