Giter VIP home page Giter VIP logo

todo-b4a's Introduction

todo-b4a

A nice Todo List android app created using B4A

Preview:

   

Made with ❤ in B4X

Download and Develop with B4A for FREE: https://www.b4x.com/b4a.html

To change the theme, add AppCompat Library and add the following lines in Manifest Editor

Manifest Editor

'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.

SetApplicationAttribute(android:theme, "@style/Todo")
CreateResource(values, colors.xml,
<resources>
	<color name="actionbar">#FF8A2BE2</color>
   	<color name="statusbar">#FF8A2BE2</color>
   	<color name="navigationBar">#FF8A2BE2</color>	
   	<color name="textColorPrimary">#FF000000</color>	
   	<color name="colorAccent">#FFE91E63</color>	
</resources>
)


CreateResource(values, theme.xml,
<resources>
	<style name="Todo" parent="Theme.AppCompat.Light">
		<item name="colorPrimary">@color/actionbar</item>
        <item name="colorPrimaryDark">@color/statusbar</item>
		<item name="android:navigationBarColor">@color/navigationBar</item>		
       	<item name="android:textColorPrimary">@color/textColorPrimary</item>		
       	<item name="colorAccent">@color/colorAccent</item>
       	<item name="windowNoTitle">true</item>
       	<item name="windowActionBar">false</item>
       	<item name="windowActionModeOverlay">true</item>
    </style>
</resources>
)

In Main Activity, add #Extends: android.support.v7.app.AppCompatActivity

#Region  Activity Attributes
	#FullScreen: False
	#IncludeTitle: False
	#Extends: android.support.v7.app.AppCompatActivity
	#IgnoreWarnings: 32
#End Region

YouTube tutorial playlist: https://youtube.com/playlist?list=PLnM2IRsCeAoanBmIThXgdDQpomr59iHKv

todo-b4a's People

Contributors

pyhoon avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

operezm

todo-b4a's Issues

Library 'AppCompat' is not used. (warning #32)

Please ignore this warning. You need to include AppCompat library (Version 3.30) or else the project will compile with error. This is required to generate a theme file in Manifest Editor.

SetApplicationAttribute(android:theme, "@style/Todo")
CreateResource(values, theme.xml,
<resources>
    <style name="Todo" parent="Theme.AppCompat.Light">
        <item name="colorPrimary">#FFFFFF</item>
        <item name="colorPrimaryDark">#8A2BE2</item>
        <item name="colorAccent">#E91E63</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
    </style>
</resources>
)

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.