Fixing margins and fonts

Discussions around the Android version of the Gospel Library application.
cdw3423
Member
Posts: 74
Joined: Mon Nov 15, 2010 4:23 pm
Location: Oklahoma City, OK USA
Contact:

Fixing margins and fonts

Postby cdw3423 » Sat Feb 04, 2017 1:22 pm

So since it doesn't seem like anyone wants to fix this stuff I made an attempt to fix some of the easy stuff.
I found zip files in
/sdcard/Android/data/org.lds.ldssa/files/Download

so I copied 201395165.18-1.zip (which happened to be be handbook 2) to my computer and extracted it. I found an sqlite DB file a css file and a few js files. I found the ridiculous margins in style_classic-library.css.

Code: Select all

body {
  padding: 70px 13.5%; }
  @media screen and (max-width: 736px) {
    body {
      padding: 22px 7%; } }
  @media screen and (max-width: 706px) {
    body {
      padding: 70px 10%; } }
  @media screen and (max-width: 669px) {
    body {
      padding: 22px 7%; } }
  @media screen and (max-width: 450px) {
    body {
      padding: 70px 10%; } }
  @media screen and (max-width: 416px) {
    body {
      padding: 22px 35px; } }


13.5%?! You have to be kidding me. That is on the left and right side. That is wasting 27% of the precious little screen space I have on my 8" tablet. Some of us don't have the eyesight of a teenager any more.
So I changed all of that css to simply....

Code: Select all

body { padding: .5%; }


That is plenty of margin for a tablet or phone. A tablet is a lot different that physical paper you know.

I extracted a chapter from the sqlite DB to an html file to verify the margin changes were working.

They were working, so I put the new css file into the zip file and put it back on my tablet. And .... nothing happened! :( I tried a few other things, not worth detailing here, that also didn't work. Near as I can tell those zip files are just temporary files used to update the real content store. I deleted all 690 of them and the app still worked fine.

So my question is, does anyone know where to find the css files the app actually uses so I can edit them?

Chris W.

p.s.
I thought updates were supposed to make things better.

cdw3423
Member
Posts: 74
Joined: Mon Nov 15, 2010 4:23 pm
Location: Oklahoma City, OK USA
Contact:

Attempt Number 2

Postby cdw3423 » Mon Feb 06, 2017 7:41 pm

So in my continuing quest to fix at least the font and margin issues, I found a tool called APK Studio. With that tool I was able to decode the APK file for the latest version. Once that was done I found the file assets/contentTemplate.html in that file it looks like I can add some css that will override what is in the existing content css files. However after making those changes it turns out APK Studio can't re build the APK file it just decoded. It seems as though the developers are doing some things in a non standard way or using an IDE that prevents the errors I am getting when trying to build the new APK.

Hopefully I can find someone who is more familiar with Android Development than I am that can tell me what I need to do.

To be continued . . .

Chris W.


Return to “Android Gospel Library”

Who is online

Users browsing this forum: No registered users and 2 guests