In this repository I'll show the usages of "tools" attribute of Android Studio. It's a very useful tricks to preview your XML design as like as real App before running it. Check my Bengali tutorial post from here
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Android-Tools-Attribute
data
.gitignore
README.md

README.md

Android tools Attribute For Previewing XML UI Design

In this repository I'll show the usages of "tools" attribute of Android Studio. It's a very useful tricks to preview your XML design as like as real App before running it

You don't need to run the project. Simply open the layout xml files with Android Studio and check the preview of layouts.

Problem 1: Simple Use of "tools"

Layout XML source code of activity_main.xml

Problem 2: Simple Use of "tools" attribute in RecyclerView

Layout XML source code of layout_food_list.xml

Layout XML source code of item_food.xml

Problem 3: Use of "tools" attribute with default sample data of Android Studio in RecyclerView

Layout XML source code of layout_book_list.xml

Layout XML source code of item_book.xml

Problem 4: Use of "tools" attribute with default sample data in RecyclerView

Layout XML source code of layout_profile_list.xml

Layout XML source code of item_profile.xml

Problem 5: Use of "tools" attribute with custom JSON data in RecyclerView

Layout XML source code of layout_student_list.xml

Layout XML source code of item_student.xml