Giter VIP home page Giter VIP logo

odnako's People

Contributors

mohaxspb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

odnako's Issues

Work with DB in AsyncTask.

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;

Do PRO ver.

  1. Set isPro to true (it's done authomatically by comparing package name)

  2. Remove goPro from settings

  3. Replace link to app in setttings to pro (it's done authomatically by comparing package name)

  4. Rename project //not needed

  5. Rename package

  6. Change app title

  7. Change name of contentProviders (except of YandexMetrica) and their authorities!

  8. Disable ads!!! (it's done authomatically by comparing package name)

Fragment-Activity lifeCycle issue;

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;

DB constructing.

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...

Fix bug with restoring comments frag;

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;

Move operation of removing fragments to separate class

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)

Fix NPE on findMenu in ActMain onBackPressed

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

Fix Article images height

Now height is fixed and width=deviceWidth; Must fix it via calculating height from device width and image dimentions;

Restyle main card with article info.

  1. Move save, read. comments and share icons to very bottom for better appearance in twPane (tablet) mode on 7' screens.
    So authors name won't be wraped so match.
  2. Add authors description btn and TextView at the bottom of Authors name. Get authors description from updating resources.
  3. Also we can add author images from resources too;

Fix moving top background image on main list screen when slowly scrolling from top to down.

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...

Add animation to lists articles while scrolling.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.