mohaxspb / odnako Goto Github PK
View Code? Open in Web Editor NEWOdnako
Home Page: https://play.google.com/store/apps/details?id=ru.kuchanov.odnako
Odnako
Home Page: https://play.google.com/store/apps/details?id=ru.kuchanov.odnako
Think about it. This will cause no need to ask Article table for calculating next ArtCatTable entry ID;
files: aspose and bcprov
I hope i won't need to set them a huge amounts of different images and this can be done by setting alpha or something else;
If it won't work check fersion and do NOT any animation, except of setting alpha to actionBar.
Need it to make design as google recommends in Lolipop. And it must be easier to use.
We must show them from DB, because we update it.
We test
Looper.myLooper() == Looper.getMainLooper()
on onResume() and in Service and we have true here.
But in AsyncTask we have false, so, as I understand, we will have no lags (i.e. onReceiving arts in frag) while working with DB;
Set isPro to true (it's done authomatically by comparing package name)
Remove goPro from settings
Replace link to app in setttings to pro (it's done authomatically by comparing package name)
Rename project //not needed
Rename package
Change app title
Change name of contentProviders (except of YandexMetrica) and their authorities!
Disable ads!!! (it's done authomatically by comparing package name)
There is another instance of artsList fragment on each second screen rotation, so each second time we have no info in savedInstanceState Bundle of these fragments.
What we can do?
(We gain allArtsInfo for listFrag from bundle now. If it's null, we set default info and send request to service)
So, as I understand we can simply gain allArtsInfo from hashMap of mainActivity by categoryToLoad... And so we can rewrite it in future by request to RESTful...
But now we have default info in hashMap on first lunch in MainActivity; So we need to write a method of gain info with timeStamp. If it is more than some const interval, we will start request to service;
This will be not hard, but a bit boring.
Add it to "About" settings;
Remember to make switch by server of modes (in list, at the bottom of screen);
OK, we need one more table for storing arts by author (ArtAutTable, named so as ArtCatTable), where we'll store all art's id's from main Article table and id of art's Author...
Also we need field sinhronised in Author table to mark list is sinked as we do it in Categories table;
It's realy hard to make DB for arts, that can have or not an author, and 0 or "n" categories and do it so, that we can know if art's list of author or category is in the right order (by date) if we can't simply know it's date...
RecyclerView don't have methods for checking or selecting items. WTF?!
It's too hard for me now to check and solve situation of publishing new arts between already written to DB, so we can simply delete all rows of broken category (author) and start loading from top;
We can fix it by greater interval of checking it (to 5s from 3) or by adding DB tasks to list in service...
I vote for 1st option)))
Make it to use animations.
Might be fixed by setting fakeHeader height in Dp, nt px. So do with Image (?).
I hope this can be fix by theme.
If not, I'll set their background programmatically. I'll wind them from ActionBar and...
Can be reproduse in !twoPane mod while starting show comments from mainActivity by clicking comments icon on articleCard;
Fragment shows again after it's closing and screen rotation;
If we start it from article activity all is OK;
Mayby can fix if we manualy will change this in code. For example onPreferenceChangeListener.
But why there is no call to onBuildHeaders in OnCreate when orientaion changed?
As i understand it's useful for set rounded corners for ImageViews.
https://github.com/nostra13/Android-Universal-Image-Loader/tree/master
So we can simply call this in onPagelistners (in twoPane mode) and avoid situation, when we open new category/ article via pagers or drawer menu and article\ comments fragments still here and make changes in right pager invisible.
(now we write code in each situation... It's bad)
So we can copy the design of https://play.google.com/store/apps/details?id=com.google.android.apps.magazines.
Before we can do it, we must switch to RecyclerView and ToolBar.
Now, if article has image and author we show only art image. Must fix it via getting author image URL from db/ resousrces;
Now on lolipop commentDialogFragment has wrong width on lolipop
As I understand we can have menu=null, because it's not setted... May be we can get menu here from toolbar or check it for null
ReportID=63f29df5-0c9f-4a9e-9e2c-08c9df16aacd
Now height is fixed and width=deviceWidth; Must fix it via calculating height from device width and image dimentions;
That's surprie for me, that there can be more then one author per article... I.e. http://www.odnako.org/blogs/propaganda-na-krovi-k-politizacii-ubiystva-armyanskoy-semi-rossiyskim-voennosluzhashchim/ 14/01/2015
Image doesn't mving to the end because of different speed and depending on item position of list, not on absolute coordinate (Y).
May be there is a workaround by saving position of firtVisibleItem of list, that is shown when Image totaly dissapears (Image.y=-Image.height) and it's (item of list) Y.
But it will cause more variables to save in activity...
second way is to animate moving Image to zero Y coord on end of list's scrolling if Image.Y<0; But there might be some memoryLeaks if activity will be destroided during this action...
Now comm btn gets url from activity, and must get it from current showing fragment;
Try using add/ remove actions on recyclerView with adding data to adapter... So getItemCount must return 1; then increment it by adding more data...
In listView try some libs from LibrariesForDevelopers app.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.