Popular questions for this item

Important information for buyers!

Support for my items includes:
  • Responding to questions or problems regarding the item and its features
  • Fixing bugs and reported issues
Item support does not include:
  • Customization and installation services
  • Support for third party software and plug-ins

What tools do I need in order to customize / edit the product?

You need Android Studio. You can download it from here

I want to use local .xml file. How should I set into the app to use it?

Open AppConstants.java and find the following line of code:

public static final String XML_URL = "http://dmb-team.com/assets/jokes.xml";

Instead of url addres you should enter the local address like this:

public static final String XML_URL = "file:///android_asset/jokes_test.xml";

How can I change the package name?

Check the following reply: http://stackoverflow.com/a/29092698

There are some important steps like:

1) Step 5, where you have to update the build.gradle file with the new package name. By default Google uses com.example as basis and you have to explicitly add the item applicationId within the defaultConfig section.

2) Check the AndroidManifest.xml file for strings with the old package name. Just us the search feature.

3) Last but not least, clean the project from Build > Clean project

How can I change the background color from red to different color?

Open fra_home_content.xml file within the res/layout/ folder and look for the following elements: 1) The first LinearLayout:

<LinearLayout
            android:layout_width="match_parent" 
            android:layout_height="match_parent" 
            android:background="#c63b3b" 
            android:orientation="vertical" >

2) The first RelativeLayout within the LinearLayout from the previous step:

 <RelativeLayout
                android:layout_width="match_parent" 
                android:layout_height="0dp" 
                android:layout_marginTop="@dimen/home_slider_top" 
                android:layout_marginBottom="@dimen/home_slider_bottom" 
                android:background="#c63b3b" 
                android:layout_weight="1" 
                android:orientation="vertical" >

On those elements you have to change the value of the following property:

 android:background="#c63b3b" 

For example if you want to change the background to black color, do it this way:

 android:background="#000000" 

How to change the color of the dots representing the paging at home screen?

The most clear way is to define your own color within the colors.xml file located in res/values folder. So open the colors.xml file and define new color:

<color name="circle_indicator">#ff0000</color>

After that open the FraHomeContent.java file (you can access the file by using a shortcut: ctrl+shift+T and just write in the popup the desired name of the file) and search for the following line of code:

mIndicator.setFillColor(getResources().getColor(R.color.yellow));

and replace the yellow string with the name of the new define color—in our case circle_indicator. So the final variant will be:

mIndicator.setFillColor(getResources().getColor(R.color.circle_indicator));

That’s it :)

How to change the color of the bottom and top border of the Header and of the Footer?

About the borders: You have two options: to remove them or to change their colors.

1) To remove them: Open the activity_main.xml file and there you will find the LinearLayouts that are responsible for the header and footer:

<LinearLayout
            android:id="@+id/main_container_header" 
            android:layout_width="match_parent" 
            android:layout_height="0dp" 
            android:layout_weight="0.12" 
            android:background="@android:color/white" 
            android:orientation="vertical" 
            android:paddingBottom="1dp" />

and

<LinearLayout
            android:id="@+id/main_container_footer" 
            android:layout_width="match_parent" 
            android:layout_height="0dp" 
            android:layout_gravity="bottom" 
            android:layout_weight="0.13" 
            android:background="@android:color/white" 
            android:gravity="bottom" 
            android:orientation="vertical" 
            android:paddingTop="1dp" />

Just remove the android:paddingBottom=”1dp”declaration for the first one and the android:paddingTop=”1dp” for the second LinearLayout and you are done.

2) To change the color: in the same elements, edit the following declaration:

android:background="@android:color/white" 

For examle, if we want to change the color to RED, just edit it to the following:

android:backgroind="#ff0000" 

You are done!

How to control the number of the jokes displayed within the Home screen / tab?

The default value is 10 and we recommend to either stick with this value or change it to smaller. NOTE: We do not recommend to increase that value.

The number is controlled within the DatabaseManager.java and more specific within the following method:

/**
     * Returns the first ten jokes
     * @return
     */
    public List<Joke> getFirstFiveJokes() {
        List<Joke> allJokes = getAllJokesSortedLatest();

        if (allJokes.size() > 10) {
            ArrayList<Joke> subList = new ArrayList<Joke>();

            for (int i = 0; i < 10; i++) {
                subList.add(allJokes.get(i));
            }

            return subList;
        } else {
            return allJokes;
        }
    }

Just replace the 10 number within the if statement and within the for loop statement.

How can I change the color of the joke’s text on the home screen?

Open res/layout/fra_main_pager_item.xml and find the following element:

<TextView
            android:id="@+id/joke_text" 
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content" 
            android:maxHeight="150dp" 
            android:maxLines="99" 
            android:textColor="@android:color/white" 
            android:textSize="15sp" />

Just replace the value of textColor attribute. You can change the @android:color/white to a hex color value (e.g.#ff0000, which is red).

How the New Stuff screen works?

The idea of New Stuff is to provide to the user a screen, where he/she can see the newly added jokes. This is controlled via the .xml file and when you are about to add new jokes, just add the following additional item to the joke’s structure and it will appear on the New Stuff screen:

<newStuff>true</newStuff>

Example of new joke:

<joke>
        <id>18</id>

               <!-- New Joke marker -->
        <newStuff>true</newStuff>

        <author>John Doe</author>
        <date>18.01.2014</date>
        <jokeText>NEW Joke Text gies here</jokeText>
</joke>

Show more

by
by
by
by
by
by