Android Tutorial Full Android 4.x UI

Hi,

In the past creating a UI in B4A annoyed me a lot, not because of a bad designer but the lack of nice UI components. With the StdActionbar and some AH libraries it all got better and it proves the library approach by B4A is the right one.

Attached is a full Android 4.x UI sample project which you can use to create your own UI. The readme file contains a list of the libraries you need. The main activity also contains a Region called Project Instructions.

What did I do with this project?

- Android 4.x UI
- Actionbar
- Fixed tabs
- Drawer menu
- Pager tabs.

You can use it anyway you like. Please credit the library authors that made this all possible.

The project also contains some build configurations you can use.

Update:
Sorry guys, totally forgot that the project zip does not contain the resources. You can download the project here: http://www.things.io/downloads/android/tt_ui_v1.zip
 

Attachments

  • ui_actionwithtabs.png
    ui_actionwithtabs.png
    12.5 KB · Views: 1,294
  • ui_actionwithpager.png
    ui_actionwithpager.png
    12.4 KB · Views: 1,264
  • ui_actionbar.png
    ui_actionbar.png
    10.2 KB · Views: 1,155
  • ui_drawer.png
    ui_drawer.png
    19.3 KB · Views: 1,371
  • ui_main.png
    ui_main.png
    21.3 KB · Views: 1,168
Last edited:

alienhunter

Active Member
Licensed User
Longtime User
Hi i got a error using your example

AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.Mytheme').
 

rboeck

Well-Known Member
Licensed User
Longtime User
Hi, i am working on the same example: Read the instructions in Line 7 - 10; here we should find an theme.zip file; but i didnt find it too..
 

bluedude

Well-Known Member
Licensed User
Longtime User
Alright, my fault. I assumed all resources would be packaged too. Let me try to correct this.
 

bluedude

Well-Known Member
Licensed User
Longtime User
jdiperla,

Yes I listed the core B4A as a library, sorry for that. All is compiled with 3.8.

I guess it would work with older versions but without the build configurations.

Cheers.
 

bluedude

Well-Known Member
Licensed User
Longtime User
BTW, i'm working on a full Kitchen Sink demo application which should shd bow some more work shared by others and implemented in this interface. Stuff like: expandable panels, EZCamera or Camera class, apply nine patch to panels.

I use my Kitchen Sink for creating new apps.
 

Uitenhage

Member
Licensed User
Longtime User
Hi,

I downloaded the project zipfile and unpacked it.
I downloaded StdActionBarHelper and XmlLayoutBuilder and put the .jar's and .xml's in the Additional Libraries Folder.
All of the libraries mentioned in the Readme.txt are the same version or newer.
I used the SDK Manager to get the most recent Build Tools (20).
I did the 3 steps in the app's Project Instructions.
I verified that the paths for Additional Libraries, javac.exe and android.jar are correct.

Compiling with Release, Release (obfuscated) or Debug (legacy) produces this dialog:

upload_2014-8-15_19-13-39.png


I've grasped at every straw that Google threw my way- being careful to undo any failed changes so I'm always looking at a fresh page.

I have run out of ideas and would really appreciate some clues as to where else I can look.

Thanks,

Jim
 

Attachments

  • upload_2014-8-15_19-12-48.png
    upload_2014-8-15_19-12-48.png
    38.4 KB · Views: 392

bluedude

Well-Known Member
Licensed User
Longtime User
Interesting, not sure yet what the problem is. Let me check. What device are you running on?
 

Uitenhage

Member
Licensed User
Longtime User
I'm trying to use a Galaxy Note 2 but it isn't getting that far - it is still building the package.
 

IanMc

Well-Known Member
Licensed User
Longtime User
This is a great thread but its not a 'code snippet'

As it is so educational perhaps this thread should be moved to the tutorials forum to protect the integrity of this code snippets forum?
 

Roberto Cardenas

Member
Licensed User
Longtime User
Hello, could you please publish the zip file again, I tried the link in the first post and is down (404).

Thanks a lot.
 

Antony Danby

Member
Licensed User
Longtime User
Me too. I am also getting a 404
 

Antony Danby

Member
Licensed User
Longtime User

Erel, did you move this tutorial to code snippets? Is this why myself and Roberto are getting a 404 when we go for the zip file?

Thanks
 

Roberto Cardenas

Member
Licensed User
Longtime User
Thanks for your response.
Bluedude, could you please upload it here or somewhere else?

Thanks a lot.
Roberto
 
Last edited:
Top